:root,
html[data-theme="dark"] {
    --bg: #001540;
    --bg2: #020817;
    --card: rgba(10, 18, 40, .72);
    --nav: rgba(2, 8, 23, .72);
    --text: #f8fafc;
    --muted: #a9b7d0;
    --line: rgba(255,255,255,.12);
    --soft: rgba(255,255,255,.06);
    --blue: #2563eb;
    --green: #22c55e;
    --cyan: #06b6d4;
    --phone: #071021;
    --radius: 28px;
}

html[data-theme="light"] {
    --bg: #f8fafc;
    --bg2: #eaf1ff;
    --card: rgba(255,255,255,.82);
    --nav: rgba(255,255,255,.82);
    --text: #020817;
    --muted: #475569;
    --line: rgba(15,23,42,.12);
    --soft: rgba(15,23,42,.06);
    --phone: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: radial-gradient(circle at 80% 20%, rgba(34,197,94,.18), transparent 35%), radial-gradient(circle at 60% 60%, rgba(37,99,235,.25), transparent 35%), linear-gradient(135deg, var(--bg), var(--bg2));
    min-height: 100vh;
    transition: background .25s ease, color .25s ease;
}

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

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

.container {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: -999px;
}

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 16px 0;
    backdrop-filter: blur(18px);
}

.nav-inner {
    width: min(1180px, calc(100% - 32px));
    margin: auto;
    height: 68px;
    padding: 0 20px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--nav);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    letter-spacing: .08em;
}

.brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 12px;
}

.nav-links {
    display: flex;
    gap: 26px;
    align-items: center;
    color: var(--muted);
    font-weight: 700;
}

.theme-toggle {
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
}

.hero {
    min-height: calc(100vh - 110px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    padding: 64px 0;
}

.eyebrow,
.small-title {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--text);
    background: var(--soft);
    border: 1px solid var(--line);
    padding: 9px 14px;
    border-radius: 999px;
    font-weight: 800;
}

.pulse {
    width: 10px;
    height: 10px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 0 8px rgba(34,197,94,.12);
}

h1 {
    font-size: clamp(46px, 7vw, 92px);
    line-height: .92;
    letter-spacing: -.07em;
    margin: 28px 0 24px;
}

h2 {
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1;
    letter-spacing: -.04em;
    margin: 18px 0;
}

.lead {
    color: var(--muted);
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.65;
    max-width: 720px;
}

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

.btn {
    min-height: 56px;
    padding: 0 24px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    border: 1px solid var(--line);
    transition: .2s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--green));
    color: white;
    box-shadow: 0 20px 50px rgba(37,99,235,.28);
}

.btn-secondary {
    background: var(--soft);
    color: var(--text);
}

.ios-note {
    color: var(--muted);
    margin-top: 14px;
    font-size: 14px;
}

.hero-proof {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.stat {
    padding: 16px 18px;
    border-radius: 20px;
    background: var(--soft);
    border: 1px solid var(--line);
}

    .stat strong {
        display: block;
        font-size: 22px;
    }

    .stat span {
        color: var(--muted);
        font-size: 13px;
    }

.phone-stage {
    position: relative;
    min-height: 560px;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(35px);
    opacity: .7;
}

.orb-one {
    width: 260px;
    height: 260px;
    background: rgba(37,99,235,.38);
    left: 80px;
    top: 80px;
}

.orb-two {
    width: 260px;
    height: 260px;
    background: rgba(34,197,94,.24);
    right: 60px;
    bottom: 80px;
}

.phone {
    position: absolute;
    width: 235px;
    border-radius: 34px;
    padding: 10px;
    background: var(--phone);
    border: 1px solid var(--line);
    box-shadow: 0 30px 80px rgba(0,0,0,.45);
    overflow: hidden;
}

    .phone img,
    .phone video {
        border-radius: 26px;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.phone-main {
    width: 280px;
    right: 150px;
    top: 80px;
    z-index: 3;
}

.phone-left {
    left: 20px;
    top: 190px;
    transform: rotate(-5deg);
}

.phone-right {
    right: 0;
    top: 220px;
    transform: rotate(5deg);
}

.section {
    padding: 80px 0;
}

.section-head {
    max-width: 760px;
    margin-bottom: 34px;
}

    .section-head p,
    .card p,
    .cta p {
        color: var(--muted);
        line-height: 1.7;
        font-size: 17px;
    }

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

.card,
.cta,
.legal-doc,
.legal-aside {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px;
    backdrop-filter: blur(18px);
}

.icon {
    font-size: 34px;
}

.card h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.footer {
    padding: 34px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.footer a {
    margin-left: 18px;
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: .7s ease;
}

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

.legal-wrap {
    padding: 64px 0;
}

.legal-shell {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
}

.legal-aside {
    position: sticky;
    top: 110px;
    align-self: start;
    display: grid;
    gap: 10px;
}

    .legal-aside a {
        color: var(--muted);
        font-weight: 700;
    }

.legal-doc h1 {
    font-size: clamp(38px, 5vw, 64px);
}

.legal-doc h2 {
    font-size: 28px;
    margin-top: 34px;
}

.legal-doc p,
.legal-doc li {
    color: var(--muted);
    line-height: 1.8;
}

.notice {
    padding: 18px;
    border-radius: 20px;
    background: rgba(37,99,235,.12);
    border: 1px solid var(--line);
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 36px;
    }

    .phone-stage {
        min-height: 520px;
    }

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

    .cta,
    .footer-inner,
    .legal-shell {
        flex-direction: column;
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .legal-aside {
        position: static;
    }

    .nav-links a:first-child {
        display: none;
    }
}

@media (max-width: 560px) {
    .nav-inner {
        height: 60px;
        padding: 0 14px;
    }

    .nav-links {
        gap: 12px;
        font-size: 14px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .phone-stage {
        min-height: 430px;
    }

    .phone {
        width: 185px;
    }

    .phone-main {
        width: 220px;
        right: 42px;
        top: 20px;
    }

    .phone-left {
        left: 0;
        top: 170px;
    }

    .phone-right {
        right: 0;
        top: 185px;
    }
}
