:root {
    --navy-950: #111a2e;
    --navy-900: #17233d;
    --ink: #182135;
    --muted: #667085;
    --line: #e3e7ee;
    --surface: #ffffff;
    --surface-soft: #f6f7f9;
    --violet: #6d63dc;
    --violet-dark: #5147bd;
    --orange: #ff9b45;
    --shadow: 0 22px 60px rgba(17, 26, 46, .09);
    --radius: 14px;
    --shell: min(1180px, calc(100% - 40px));
    --copy: 680px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--surface);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

body.dialog-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 4px;
}

.shell {
    width: var(--shell);
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    color: #fff;
    background: var(--navy-950);
    border-radius: 8px;
    text-decoration: none;
    transform: translateY(-180%);
    transition: transform .2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    color: var(--ink);
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(227, 231, 238, .9);
    backdrop-filter: blur(16px);
}

.header-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1.03rem;
    letter-spacing: -.015em;
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, var(--violet), #8f86f0);
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(109, 99, 220, .24);
}

.brand-mark svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.primary-nav a {
    color: #4a5568;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 650;
    transition: color .2s ease;
}

.primary-nav a:hover {
    color: var(--violet-dark);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 40px;
    padding: 9px;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.menu-toggle span:not(.sr-only) {
    display: block;
    height: 2px;
    margin: 4px 0;
    background: currentColor;
    border-radius: 2px;
}

.hero {
    padding: 96px 0 92px;
    background:
        radial-gradient(circle at 80% 0%, rgba(109, 99, 220, .1), transparent 32%),
        linear-gradient(180deg, #fff 0%, #fff 72%, var(--surface-soft) 100%);
}

.hero-copy {
    max-width: 840px;
    margin: 0 auto;
    text-align: center;
}

.eyebrow,
.kicker {
    margin: 0 0 14px;
    color: var(--violet-dark);
    font-size: .76rem;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    color: #5147bd;
    background: #f0efff;
    border: 1px solid #e2dfff;
    border-radius: 999px;
    letter-spacing: .05em;
}

.eyebrow span {
    padding-right: 10px;
    border-right: 1px solid #d8d4ff;
}

h1,
h2,
h3,
p {
    text-wrap: pretty;
}

h1 {
    max-width: 900px;
    margin: 22px auto 0;
    font-size: clamp(3rem, 6vw, 5.8rem);
    line-height: .98;
    letter-spacing: -.065em;
}

.hero-lead {
    max-width: 700px;
    margin: 28px auto 0;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 750;
    transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

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

.button-primary {
    color: #fff;
    background: var(--violet);
    box-shadow: 0 10px 26px rgba(109, 99, 220, .24);
}

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

.button-secondary {
    color: var(--ink);
    background: #fff;
    border-color: var(--line);
}

.button-secondary:hover {
    border-color: #cfd5df;
    box-shadow: 0 8px 24px rgba(17, 26, 46, .06);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
    margin: 24px 0 0;
    padding: 0;
    color: #7a8496;
    list-style: none;
    font-size: .86rem;
}

.hero-meta li::before {
    margin-right: 7px;
    color: var(--violet);
    content: "✓";
}

.hero-preview-wrap {
    margin-top: 66px;
}

.hero-preview {
    width: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dfe4ec;
    border-radius: var(--radius);
    box-shadow: 0 30px 80px rgba(17, 26, 46, .13);
}

.hero-preview::before {
    display: block;
    height: 30px;
    content: "";
    background:
        radial-gradient(circle at 15px 15px, #ff7168 0 4px, transparent 5px),
        radial-gradient(circle at 30px 15px, #ffbd4a 0 4px, transparent 5px),
        radial-gradient(circle at 45px 15px, #49ca70 0 4px, transparent 5px),
        #f0f2f5;
    border-bottom: 1px solid #e2e6ec;
}

.screenshot-button {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    cursor: zoom-in;
    background: #fff;
    border: 0;
}

.screenshot-button img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: top center;
    transition: opacity .2s ease;
}

.screenshot-button:hover img {
    opacity: .97;
}

.zoom-label {
    position: absolute;
    right: 16px;
    bottom: 16px;
    padding: 7px 11px;
    color: #fff;
    background: rgba(17, 26, 46, .84);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    font-size: .77rem;
    font-weight: 750;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity .2s ease, transform .2s ease;
}

.screenshot-button:hover .zoom-label,
.screenshot-button:focus-visible .zoom-label {
    opacity: 1;
    transform: translateY(0);
}

.section {
    padding: 110px 0;
}

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

.section-heading {
    max-width: var(--copy);
    margin-bottom: 46px;
}

.section-heading.centered {
    margin-inline: auto;
    text-align: center;
}

.section-heading.compact-heading {
    margin-bottom: 36px;
}

.section-heading h2,
.cta-card h2 {
    margin: 0;
    font-size: clamp(2.1rem, 4vw, 3.65rem);
    line-height: 1.05;
    letter-spacing: -.05em;
}

.section-heading > p:last-child,
.story-copy p,
.cta-card p {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1.04rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.feature-card {
    min-height: 190px;
    padding: 30px 26px;
    background: transparent;
    border-right: 1px solid var(--line);
}

.feature-card:last-child {
    border-right: 0;
}

.feature-icon {
    display: inline-flex;
    min-width: 40px;
    height: 32px;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    color: var(--violet-dark);
    background: #eceaff;
    border-radius: 8px;
    font-size: .78rem;
    font-weight: 900;
}

.feature-card h3 {
    margin: 22px 0 8px;
    font-size: 1.04rem;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: .92rem;
}

.lead-shot {
    margin: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.lead-shot figcaption,
.shot-card figcaption {
    display: flex;
    gap: 8px 20px;
    align-items: baseline;
    justify-content: space-between;
    padding: 16px 18px 18px;
    border-top: 1px solid #edf0f4;
}

.lead-shot figcaption strong,
.shot-card figcaption strong {
    white-space: nowrap;
}

.lead-shot figcaption span,
.shot-card figcaption span {
    color: var(--muted);
    font-size: .88rem;
    text-align: right;
}

.story-stack {
    display: grid;
    gap: 118px;
    margin-top: 118px;
}

.story-row {
    display: grid;
    grid-template-columns: minmax(260px, .66fr) minmax(0, 1.34fr);
    gap: 70px;
    align-items: center;
}

.story-row.reverse {
    grid-template-columns: minmax(0, 1.34fr) minmax(260px, .66fr);
}

.story-row.reverse .story-copy {
    grid-column: 2;
    grid-row: 1;
}

.story-row.reverse .shot-card {
    grid-column: 1;
    grid-row: 1;
}

.story-copy h3 {
    margin: 10px 0 0;
    font-size: clamp(1.7rem, 3vw, 2.55rem);
    line-height: 1.1;
    letter-spacing: -.04em;
}

.step-number {
    color: var(--violet);
    font-size: .79rem;
    font-weight: 900;
    letter-spacing: .11em;
}

.shot-card {
    margin: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 16px 44px rgba(17, 26, 46, .07);
}

.admin-lead {
    margin-top: 18px;
}

.admin-lead .lead-shot {
    max-width: 1080px;
    margin-inline: auto;
}

.mini-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-top: 92px;
}

.module-grid {
    display: grid;
    grid-template-columns: minmax(280px, .66fr) minmax(0, 1.34fr);
    gap: 74px;
    align-items: center;
}

.module-grid .section-heading {
    margin-bottom: 0;
}

.check-list {
    display: grid;
    gap: 12px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 27px;
    color: #4f5c70;
}

.check-list li::before {
    position: absolute;
    top: .38em;
    left: 0;
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    color: #fff;
    background: var(--violet);
    border-radius: 50%;
    content: "✓";
    font-size: .68rem;
    font-weight: 900;
}

.states-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.cta-section {
    padding: 92px 0;
    background: #fff;
}

.cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 42px;
    padding: 54px;
    color: #fff;
    background:
        radial-gradient(circle at 88% 0, rgba(109, 99, 220, .32), transparent 36%),
        var(--navy-950);
    border-radius: 20px;
}

.cta-card .kicker {
    color: #aaa3ff;
}

.cta-card p {
    color: rgba(255, 255, 255, .68);
}

.cta-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 18px;
}

.button-light {
    color: var(--navy-950);
    background: #fff;
}

.button-light:hover {
    background: #f2f3f5;
}

.text-link {
    color: #fff;
    text-decoration: none;
    font-weight: 750;
}

.text-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.site-footer {
    padding: 42px 0;
    color: #6d7788;
    background: var(--surface-soft);
    border-top: 1px solid var(--line);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px 40px;
    align-items: center;
}

.footer-brand {
    color: var(--ink);
}

.footer-inner > div > p {
    margin: 10px 0 0;
    font-size: .9rem;
}

.footer-links {
    display: flex;
    gap: 22px;
}

.footer-links a {
    text-decoration: none;
    font-size: .9rem;
    font-weight: 650;
}

.footer-links a:hover {
    color: var(--violet-dark);
}

.copyright {
    grid-column: 1 / -1;
    margin: 0;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: .84rem;
}

.image-dialog {
    width: min(96vw, 1500px);
    max-width: none;
    max-height: 94vh;
    padding: 0;
    overflow: hidden;
    color: #fff;
    background: #101727;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, .45);
}

.image-dialog::backdrop {
    background: rgba(7, 11, 20, .82);
    backdrop-filter: blur(6px);
}

.dialog-inner {
    display: grid;
    max-height: 94vh;
    grid-template-rows: minmax(0, 1fr) auto;
}

.dialog-image-wrap {
    display: grid;
    min-height: 0;
    place-items: center;
    overflow: auto;
    background: #0c1220;
}

.dialog-image-wrap img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(94vh - 68px);
    object-fit: contain;
}

.dialog-footer {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 13px 18px;
    border-top: 1px solid rgba(255, 255, 255, .09);
}

#dialog-caption {
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: .9rem;
}

.dialog-close {
    flex: 0 0 auto;
    padding: 8px 12px;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    cursor: pointer;
}

.dialog-close:hover {
    background: rgba(255, 255, 255, .14);
}

@media (max-width: 980px) {
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-card:nth-child(2) {
        border-right: 0;
    }

    .feature-card:nth-child(-n+2) {
        border-bottom: 1px solid var(--line);
    }

    .story-row,
    .story-row.reverse,
    .module-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .story-row.reverse .story-copy,
    .story-row.reverse .shot-card {
        grid-column: auto;
        grid-row: auto;
    }

    .story-row.reverse .story-copy {
        order: 0;
    }

    .story-row.reverse .shot-card {
        order: 1;
    }

    .cta-card {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 760px) {
    :root {
        --shell: min(100% - 28px, 1180px);
    }

    html {
        scroll-padding-top: 76px;
    }

    .header-inner {
        min-height: 62px;
    }

    .menu-toggle {
        display: block;
    }

    .primary-nav {
        position: absolute;
        top: calc(100% + 1px);
        right: 14px;
        left: 14px;
        display: none;
        padding: 10px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 12px;
        box-shadow: 0 18px 50px rgba(17, 26, 46, .14);
    }

    .primary-nav.is-open {
        display: grid;
    }

    .primary-nav a {
        padding: 10px 12px;
        border-radius: 8px;
    }

    .primary-nav a:hover {
        background: var(--surface-soft);
    }

    .hero {
        padding: 70px 0 70px;
    }

    h1 {
        font-size: clamp(2.65rem, 13vw, 4rem);
    }

    .hero-preview-wrap {
        margin-top: 46px;
    }

    .hero-preview::before {
        height: 24px;
        background:
            radial-gradient(circle at 12px 12px, #ff7168 0 3px, transparent 4px),
            radial-gradient(circle at 24px 12px, #ffbd4a 0 3px, transparent 4px),
            radial-gradient(circle at 36px 12px, #49ca70 0 3px, transparent 4px),
            #f0f2f5;
    }

    .section {
        padding: 78px 0;
    }

    .feature-grid,
    .mini-gallery,
    .states-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .feature-card:nth-child(2) {
        border-bottom: 1px solid var(--line);
    }

    .feature-card:last-child {
        border-bottom: 0;
    }

    .story-stack {
        gap: 82px;
        margin-top: 82px;
    }

    .mini-gallery {
        margin-top: 72px;
    }

    .lead-shot figcaption,
    .shot-card figcaption {
        display: block;
    }

    .lead-shot figcaption span,
    .shot-card figcaption span {
        display: block;
        margin-top: 4px;
        text-align: left;
    }

    .cta-section {
        padding: 68px 0;
    }

    .cta-card {
        padding: 34px 26px;
    }

    .cta-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .text-link {
        text-align: center;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-wrap: wrap;
    }

    .copyright {
        grid-column: auto;
    }

    .image-dialog {
        width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }

    .dialog-inner {
        max-height: 100vh;
    }

    .dialog-image-wrap img {
        max-height: calc(100vh - 76px);
    }

    .dialog-footer {
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
