@font-face {
    font-family: "DM Sans";
    src: url("./fonts/DMSans-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "DM Sans";
    src: url("./fonts/DMSans-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: light;
    --brand-blue: #1e3bc9;
    --brand-blue-deep: #132a8c;
    --brand-blue-soft: #dfe7ff;
    --ink-strong: #0f172a;
    --ink-main: #24324d;
    --ink-soft: #47546f;
    --line: rgba(20, 34, 87, 0.14);
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: #ffffff;
    --bg-top: #f6f8ff;
    --bg-bottom: #edf3ff;
    --shadow-soft: 0 24px 70px rgba(24, 41, 99, 0.08);
    --shadow-strong: 0 34px 100px rgba(19, 42, 140, 0.16);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --max-width: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "DM Sans", sans-serif;
    color: var(--ink-main);
    background-color: var(--bg-bottom);
    background:
        radial-gradient(circle at top left, rgba(30, 59, 201, 0.16), transparent 28%),
        radial-gradient(circle at top right, rgba(30, 59, 201, 0.12), transparent 24%),
        linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
}

body::before,
body::after {
    content: "";
    position: fixed;
    z-index: -1;
    border-radius: 999px;
    filter: blur(18px);
    pointer-events: none;
}

body::before {
    top: 72px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: rgba(30, 59, 201, 0.1);
}

body::after {
    bottom: 80px;
    left: -100px;
    width: 260px;
    height: 260px;
    background: rgba(103, 139, 255, 0.14);
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--brand-blue-deep);
    outline-offset: 4px;
}

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

.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: absolute;
    top: -56px;
    left: 16px;
    z-index: 40;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-blue) 0%, #3157ff 100%);
    box-shadow: 0 18px 34px rgba(30, 59, 201, 0.2);
}

.skip-link:focus {
    top: 14px;
}

.site-shell {
    width: calc(100% - 28px);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 22px 0 72px;
}

.topbar {
    position: sticky;
    top: 16px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.brand img {
    width: 168px;
    height: auto;
}

.nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
    color: var(--ink-main);
    font-size: 14px;
}

.nav a {
    transition: color 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
    color: var(--brand-blue);
}

.nav-cta,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-blue) 0%, #3157ff 100%);
    box-shadow: 0 18px 34px rgba(30, 59, 201, 0.2);
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.nav-cta:hover,
.btn:hover {
    transform: translateY(-2px);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    gap: 30px;
    align-items: center;
    min-height: calc(100vh - 150px);
    padding: 28px 0 24px;
}

.hero-copy,
.hero-stage,
.stat-strip,
.audience-card,
.install-card,
.honest-note,
.cta-band,
.section-heading {
    opacity: 0;
    transform: translateY(26px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-copy,
.hero-stage,
.hero-actions,
.section-heading,
.install-copy,
.cta-band > div,
.cta-band-actions,
.script-card,
.audience-card,
.nav {
    min-width: 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(30, 59, 201, 0.1);
    color: var(--brand-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1,
.section h2,
.cta-band h2 {
    margin: 18px 0 0;
    color: var(--ink-strong);
    font-size: clamp(2.9rem, 7vw, 5.3rem);
    line-height: 0.94;
    letter-spacing: -0.06em;
}

.hero-lead,
.section-heading p,
.audience-card p {
    color: var(--ink-soft);
    font-size: 1.02rem;
    line-height: 1.8;
}

.hero-lead {
    max-width: 620px;
    margin: 22px 0 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.signal-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0;
    margin: 24px 0 0;
    list-style: none;
}

.signal-row li {
    padding: 12px 14px;
    border: 1px solid rgba(30, 59, 201, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    color: var(--ink-main);
    font-size: 14px;
}

.audience-card,
.stat-strip,
.cta-band {
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.hero-visual {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 40px;
    background-color: rgba(8, 18, 64, 0.98);
    background:
        radial-gradient(circle at 74% 24%, rgba(58, 100, 255, 0.28), transparent 24%),
        radial-gradient(circle at 20% 84%, rgba(203, 222, 255, 0.16), transparent 24%),
        linear-gradient(145deg, rgba(8, 18, 64, 0.98), rgba(18, 40, 126, 0.96));
    box-shadow: var(--shadow-strong);
}

.hero-visual-backdrop,
.hero-visual-ring {
    position: absolute;
    pointer-events: none;
}

.hero-visual-backdrop-a {
    top: 48px;
    right: 48px;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(67, 109, 255, 0.92) 0%, rgba(67, 109, 255, 0.16) 62%, transparent 100%);
    filter: blur(10px);
}

.hero-visual-backdrop-b {
    left: 52px;
    bottom: 72px;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 76%);
}

.hero-visual-ring {
    inset: 70px 40px 40px 110px;
    border-radius: 42px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.hero-device,
.hero-float {
    position: absolute;
    z-index: 1;
}

.hero-device {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 34px 90px rgba(4, 10, 36, 0.36);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.hero-device img {
    display: block;
    width: 100%;
    height: auto;
}

.hero-device-main {
    top: 88px;
    right: 70px;
    width: min(460px, 72%);
    transform: rotate(-10deg) translate3d(0, 0, 0);
    transform-origin: center center;
    animation: heroFloatMain 9s ease-in-out infinite;
}

.hero-float {
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(225, 235, 255, 0.84));
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 60px rgba(4, 10, 36, 0.24);
    color: var(--ink-strong);
}

.hero-float-badge strong {
    display: block;
    margin-top: 0;
    font-size: 1.02rem;
    color: var(--ink-strong);
}

.hero-float-badge span {
    margin: 8px 0 0;
    color: var(--ink-main);
    font-size: 0.94rem;
    line-height: 1.7;
}

.hero-float-badge {
    left: 34px;
    bottom: 34px;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 340px;
    padding: 16px 18px;
    border-radius: 22px;
    animation: heroFloatBadge 10s ease-in-out infinite;
}

.hero-float-badge img {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
}

@keyframes heroFloatMain {
    0%, 100% {
        transform: rotate(-10deg) translate3d(0, 0, 0);
    }

    50% {
        transform: rotate(-7deg) translate3d(-8px, -12px, 0);
    }
}

@keyframes heroFloatBadge {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -10px, 0);
    }
}

.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
    padding: 22px 24px;
    border-radius: var(--radius-xl);
}

.stat-strip article {
    display: grid;
    gap: 8px;
}

.stat-strip strong {
    color: var(--ink-strong);
    font-size: clamp(1.3rem, 4vw, 2.2rem);
    line-height: 1;
    text-transform: lowercase;
}

.stat-strip span {
    color: var(--ink-soft);
    line-height: 1.6;
}

.section {
    padding: 104px 0 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 28px;
}

.section h2 {
    font-size: clamp(2.2rem, 5vw, 3.7rem);
}

.audience-grid,
.install-grid {
    display: grid;
    gap: 18px;
}

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

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

.audience-card,
.install-card {
    padding: 24px;
    border-radius: var(--radius-lg);
}

.honest-note {
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.honest-note h2 {
    margin: 14px 0 0;
    color: var(--ink-strong);
}

.honest-note p {
    color: var(--ink-soft);
    line-height: 1.8;
}

.code-block {
    margin: 0;
    padding: 20px;
    overflow: auto;
    border-radius: var(--radius-lg);
    background: #0e1738;
    color: #e8eeff;
    box-shadow: inset 0 0 0 1px rgba(126, 154, 255, 0.14);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.code-block code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    line-height: 1.8;
}

.download-row {
    margin-top: 18px;
}

.code-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.btn-copy {
    border: 0;
}

.script-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.script-options-single {
    grid-template-columns: 1fr;
    max-width: 760px;
}

.script-card {
    padding: 20px;
    border: 1px solid rgba(20, 34, 87, 0.08);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.88);
}

.script-card p {
    margin: 12px 0 0;
    color: var(--ink-soft);
    line-height: 1.7;
}

.install-card {
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.showcase-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(30, 59, 201, 0.08);
    color: var(--brand-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


.install-card {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.install-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 999px;
    border: 2px solid var(--brand-blue);
    color: var(--brand-blue);
    font-size: 1.5rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.9);
}

.install-copy h3 {
    margin: 0;
    color: var(--ink-strong);
    font-size: 1.35rem;
}

.install-copy p {
    margin: 10px 0 0;
    color: var(--ink-soft);
    line-height: 1.8;
}

.install-list {
    margin: 16px 0 0;
    padding-left: 20px;
    color: var(--ink-main);
    line-height: 1.9;
}

.install-list code {
    padding: 2px 6px;
    border-radius: 8px;
    background: rgba(30, 59, 201, 0.08);
    color: var(--brand-blue-deep);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
}

.audience-card h3 {
    margin: 0 0 10px;
    color: var(--ink-strong);
    font-size: 1.18rem;
}

.section-contrast {
    position: relative;
}

.section-contrast::before {
    content: "";
    position: absolute;
    inset: 40px -2% 0;
    z-index: -1;
    border-radius: 44px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.54), rgba(207, 220, 255, 0.56));
}

.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 104px;
    padding: 32px;
    border-radius: var(--radius-xl);
}

.honest-note {
    padding: 28px;
    border-radius: var(--radius-xl);
}

.cta-band h2 {
    font-size: clamp(2rem, 4.5vw, 3rem);
}

.cta-band-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    flex-shrink: 0;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .topbar,
    .audience-card,
    .stat-strip,
    .cta-band,
    .honest-note,
    .install-card,
    .hero-device,
    .hero-float {
        background: rgba(255, 255, 255, 0.96);
    }

    .hero-visual {
        background: linear-gradient(145deg, #0b1a58, #18379d);
    }
}

.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

@media (max-width: 1100px) {
    .hero,
    .cta-band,
    .audience-grid,
    .script-options {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: 12px;
    }

    .hero-visual {
        min-height: 620px;
    }

    .hero-device-main {
        right: 34px;
        width: min(380px, 70%);
    }

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

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

@media (max-width: 840px) {
    .topbar {
        flex-wrap: wrap;
        border-radius: 26px;
    }

    .nav {
        order: 3;
        width: 100%;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap;
    }

    .stat-strip {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 560px;
    }

    .hero-visual-ring {
        inset: 84px 20px 22px 56px;
    }

    .hero-device-main {
        top: 118px;
        right: 18px;
        width: min(320px, 76%);
    }

    .hero-float-badge {
        left: 18px;
        bottom: 18px;
        max-width: 250px;
    }
}

@media (max-width: 640px) {
    .site-shell {
        width: calc(100% - 20px);
        padding-top: 14px;
    }

    .topbar {
        padding: 14px;
    }

    .brand img {
        width: 148px;
    }

    .nav-cta,
    .btn {
        width: 100%;
    }

    .hero-actions,
    .cta-band-actions {
        width: 100%;
    }

    .install-card {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 500px;
        border-radius: 28px;
    }

    .hero-visual-ring {
        inset: 96px 10px 14px 10px;
        border-radius: 28px;
    }

    .hero-device-main {
        top: 132px;
        right: 8px;
        width: min(278px, 78%);
        transform: rotate(-8deg) translate3d(0, 0, 0);
    }

    .hero-float-badge {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
    }
}

@media (max-width: 420px) {
    .topbar {
        top: 10px;
        gap: 12px;
        border-radius: 22px;
    }

    .nav {
        font-size: 13px;
        gap: 10px;
    }

    .hero h1 {
        font-size: clamp(2.4rem, 15vw, 3.4rem);
    }

    .hero-visual {
        min-height: 440px;
    }

    .hero-visual-ring {
        inset: 110px 8px 12px 8px;
    }

    .hero-device-main {
        top: 138px;
        right: 6px;
        width: min(250px, 82%);
    }

    .hero-float-badge {
        padding: 12px 14px;
        gap: 10px;
    }

    .hero-float-badge img {
        width: 40px;
        height: 40px;
    }

    .install-step {
        width: 56px;
        height: 56px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .hero-copy,
    .hero-stage,
    .stat-strip,
    .audience-card,
    .install-card,
    .honest-note,
    .cta-band,
    .section-heading {
        opacity: 1;
        transform: none;
    }
}
