:root {
    --ink: #171717;
    --muted: #5d6470;
    --line: #e6e2dd;
    --paper: #fffdf9;
    --soft: #f5f0e8;
    --primary: #6d28d9;
    --primary-dark: #42138b;
    --accent: #0f766e;
    --warm: #f59e0b;
    --shadow: 0 24px 80px rgba(23, 23, 23, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

body.nav-open {
    overflow: hidden;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

.site-header {
    position: fixed;
    z-index: 30;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 76px;
    padding: 18px clamp(18px, 5vw, 72px);
    color: #fff;
    transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.nav-visible {
    color: var(--ink);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 40px rgba(23, 23, 23, 0.08);
    backdrop-filter: none;
}

.brand {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    color: inherit;
    font-size: 1.45rem;
    font-weight: 800;
    text-decoration: none;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    text-decoration: none;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.site-nav a:hover {
    background: rgba(255, 255, 255, 0.16);
}

.site-header.is-scrolled .site-nav a:hover,
.site-header.nav-visible .site-nav a:hover {
    background: #eee8f8;
}

.site-nav .nav-cta {
    color: #fff;
    background: var(--primary);
}

.site-nav .nav-cta:hover {
    color: #fff;
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    color: inherit;
    background: rgba(255, 255, 255, 0.14);
    font-size: 1.5rem;
}

.site-header.is-scrolled .nav-toggle,
.site-header.nav-visible .nav-toggle {
    background: #eee8f8;
}

.hero {
    position: relative;
    display: grid;
    align-items: end;
    min-height: 96vh;
    overflow: hidden;
    padding: 132px clamp(20px, 6vw, 92px) 42px;
    color: #fff;
}

.hero-image,
.hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-image {
    object-fit: cover;
    transform: scale(1.02);
    transition: opacity 700ms ease, transform 7600ms ease;
}

.hero-image.is-changing {
    opacity: 0.28;
    transform: scale(1.05);
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(19, 13, 31, 0.82) 0%, rgba(19, 13, 31, 0.58) 42%, rgba(19, 13, 31, 0.28) 100%),
        linear-gradient(0deg, rgba(19, 13, 31, 0.82) 0%, rgba(19, 13, 31, 0) 45%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
    padding-bottom: 154px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero .eyebrow,
.final-cta .eyebrow {
    color: #f7c45c;
}

.hero h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(3.4rem, 9vw, 7.2rem);
    font-weight: 800;
    line-height: 0.95;
}

.hero-copy {
    max-width: 620px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1.08rem, 2vw, 1.45rem);
    line-height: 1.55;
}

.hero h1,
.hero-copy {
    transition: opacity 520ms ease, transform 520ms ease;
}

.hero-text-changing h1,
.hero-text-changing .hero-copy {
    opacity: 0;
    transform: translateY(8px);
}

.hero-actions,
.final-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-actions {
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button.primary {
    color: #fff;
    background: var(--primary);
}

.button.primary:hover {
    background: var(--primary-dark);
}

.button.secondary {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.1);
}

.button.secondary:hover {
    border-color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.18);
}

.hero-panel {
    position: absolute;
    z-index: 2;
    right: clamp(18px, 6vw, 92px);
    bottom: 36px;
    left: clamp(18px, 6vw, 92px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
}

.hero-panel div {
    min-height: 118px;
    padding: 22px;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-panel div:last-child {
    border-right: 0;
}

.hero-panel span {
    color: #f7c45c;
    font-size: 0.76rem;
    font-weight: 800;
}

.hero-panel strong {
    display: block;
    margin-top: 6px;
    font-size: 1.25rem;
}

.hero-panel p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.74);
}

.section {
    padding: clamp(72px, 9vw, 120px) clamp(20px, 6vw, 92px);
}

.section-heading {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: clamp(24px, 7vw, 92px);
    align-items: end;
    margin-bottom: 42px;
}

.section-heading.compact {
    grid-template-columns: 1fr;
    max-width: 720px;
}

.section-heading h2,
.feature-copy h2,
.about-section h2,
.final-cta h2 {
    margin: 0;
    font-size: clamp(2rem, 4.2vw, 4.4rem);
    font-weight: 800;
    line-height: 1.03;
}

.flow-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--line);
}

.flow-card {
    min-height: 270px;
    padding: 28px;
    background: #fff;
}

.flow-card i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    color: var(--primary);
    background: #eee8f8;
    font-size: 1.35rem;
}

.flow-card h3,
.case-grid h3 {
    margin: 26px 0 10px;
    font-size: 1.18rem;
    font-weight: 800;
}

.flow-card p,
.case-grid p,
.feature-copy p,
.about-section p,
.footer-brand p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.feature-band {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(28px, 6vw, 78px);
    align-items: center;
    padding: clamp(72px, 9vw, 120px) clamp(20px, 6vw, 92px);
    background: var(--soft);
}

.feature-media {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.feature-media img {
    width: 100%;
    height: min(58vw, 620px);
    min-height: 420px;
    object-fit: cover;
}

.feature-copy {
    max-width: 670px;
}

.feature-copy > p {
    margin-top: 22px;
    font-size: 1.05rem;
}

.feature-list {
    display: grid;
    gap: 12px;
    margin: 32px 0;
}

.feature-list div {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    font-weight: 700;
}

.feature-list i {
    color: var(--accent);
    font-size: 1.25rem;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}

.text-link:hover {
    color: var(--primary-dark);
}

.use-cases {
    background: #fff;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.case-grid article {
    min-height: 230px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

.case-icon {
    color: var(--warm);
    font-size: 1.8rem;
}

.pricing-section {
    background: var(--soft);
}

.pricing-heading > p {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
    font-size: 1.04rem;
    line-height: 1.7;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 620px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

.pricing-card.featured {
    border-color: rgba(109, 40, 217, 0.42);
    box-shadow: var(--shadow);
}

.plan-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #fff;
    background: var(--accent);
    font-size: 0.75rem;
    font-weight: 800;
}

.plan-header p {
    margin: 0 0 12px;
    color: var(--primary);
    font-size: 0.92rem;
    font-weight: 800;
    text-transform: uppercase;
}

.plan-header h3 {
    max-width: 340px;
    margin: 0;
    font-size: clamp(1.55rem, 2.2vw, 2rem);
    font-weight: 800;
    line-height: 1.08;
}

.plan-price {
    margin: 24px 0 22px;
    font-size: 1.08rem;
    font-weight: 800;
}

.plan-features {
    display: grid;
    gap: 13px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--muted);
    line-height: 1.5;
}

.plan-features i {
    margin-top: 2px;
    color: var(--accent);
    font-size: 1.08rem;
}

.commission-box,
.tier-box {
    display: grid;
    gap: 10px;
    margin: 28px 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.commission-box span,
.tier-box > span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.commission-box strong {
    line-height: 1.45;
}

.commission-box.muted strong {
    color: var(--muted);
    font-weight: 600;
}

.tier-box div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.tier-box strong {
    color: var(--primary);
    font-size: 1.35rem;
}

.tier-box p {
    margin: 0;
    color: var(--muted);
    text-align: right;
}

.pricing-card .button {
    width: 100%;
    margin-top: auto;
}

.button.outline {
    color: var(--primary);
    border: 1px solid rgba(109, 40, 217, 0.32);
    background: #fff;
}

.button.outline:hover {
    color: #fff;
    border-color: var(--primary);
    background: var(--primary);
}

.pricing-note {
    max-width: 760px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.about-section {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(24px, 7vw, 92px);
    padding: clamp(72px, 9vw, 120px) clamp(20px, 6vw, 92px);
    color: #fff;
    background: #171717;
}

.about-section p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.08rem;
}

.final-cta {
    justify-content: space-between;
    padding: clamp(48px, 7vw, 82px) clamp(20px, 6vw, 92px);
    color: #fff;
    background: var(--primary);
}

.final-cta h2 {
    max-width: 780px;
}

.final-cta .button.primary {
    color: var(--primary);
    background: #fff;
}

.final-cta .button.primary:hover {
    color: #fff;
    background: var(--primary-dark);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 38px clamp(20px, 6vw, 92px);
    color: #fff;
    background: #111;
}

.footer-brand img {
    width: 132px;
    margin-bottom: 14px;
}

.footer-brand p {
    max-width: 360px;
    color: rgba(255, 255, 255, 0.68);
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 600;
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
}

@media (max-width: 980px) {
    .site-header.is-scrolled,
    .site-header.nav-visible {
        color: var(--ink);
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 10px 28px rgba(23, 23, 23, 0.12);
        backdrop-filter: none;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .site-nav {
        position: fixed;
        top: 76px;
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 8px;
        color: var(--ink);
        background: var(--paper);
        box-shadow: var(--shadow);
    }

    .site-header.nav-visible .site-nav {
        display: flex;
    }

    .site-nav a {
        justify-content: space-between;
        min-height: 48px;
        border-radius: 6px;
    }

    .site-nav .nav-cta {
        justify-content: center;
        margin-top: 4px;
    }

    .hero {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        min-height: 100dvh;
        padding-top: 118px;
    }

    .hero-content {
        padding-bottom: 28px;
    }

    .hero-panel {
        position: relative;
        right: auto;
        bottom: auto;
        left: auto;
        width: 100%;
        margin-top: 26px;
        grid-template-columns: 1fr;
    }

    .hero-panel div {
        min-height: auto;
        padding: 16px 18px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    }

    .hero-panel div:last-child {
        border-bottom: 0;
    }

    .section-heading,
    .feature-band,
    .about-section {
        grid-template-columns: 1fr;
    }

    .flow-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .case-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card {
        min-height: auto;
    }
}

@media (max-width: 640px) {
    .site-header {
        min-height: 68px;
        padding: 14px 18px;
    }

    .site-nav {
        top: 68px;
    }

    .hero {
        padding: 98px 18px 28px;
    }

    .hero-content {
        width: 100%;
        padding-bottom: 24px;
        text-align: center;
    }

    .hero .eyebrow,
    .hero-copy {
        margin-right: auto;
        margin-left: auto;
    }

    .hero h1 {
        max-width: 100%;
        font-size: clamp(2.7rem, 15vw, 4.1rem);
        line-height: 1;
    }

    .hero-actions {
        justify-content: center;
    }

    .button {
        width: 100%;
    }

    .section,
    .feature-band,
    .about-section,
    .final-cta,
    .site-footer {
        padding-right: 18px;
        padding-left: 18px;
    }

    .flow-grid {
        grid-template-columns: 1fr;
    }

    .flow-card,
    .case-grid article {
        min-height: auto;
        padding: 24px;
    }

    .feature-media img {
        height: 360px;
        min-height: 360px;
    }

    .final-cta,
    .site-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .footer-links {
        align-items: flex-start;
        justify-content: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-image {
        transition: none;
        transform: none;
    }

    .hero h1,
    .hero-copy {
        transition: none;
    }
}
