/* ── Tokens ── */

:root {
    --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;

    color-scheme: dark;
    --accent: #3b9cff;
    --accent-ink: #7dbcff;
    --accent-soft: rgba(59, 156, 255, 0.16);
    --green: #30c56a;
    --bg: #0b0b0f;
    --bg-alt: #121218;
    --surface: #17171f;
    --line: rgba(255, 255, 255, 0.09);
    --text: #f4f5f7;
    --text-2: #a5adbb;
    --text-3: #6f7784;
    --phone-frame: #2a2c33;
    --phone-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 10px 24px -10px rgba(0, 0, 0, 0.6);
    --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -16px rgba(0, 0, 0, 0.6);
    --bubble-user: #0a7aff;
    --bubble-user-text: #ffffff;
    --bubble-app: #2c2c2e;
    --bubble-app-text: #f4f5f7;
    --glow-a: rgba(59, 156, 255, 0.14);
    --glow-b: rgba(48, 197, 106, 0.08);
}

:root[data-theme="light"] {
    color-scheme: light;
    --accent: #0a7aff;
    --accent-ink: #0060d1;
    --accent-soft: rgba(10, 122, 255, 0.10);
    --green: #30c56a;
    --bg: #ffffff;
    --bg-alt: #f5f6f8;
    --surface: #ffffff;
    --line: rgba(15, 23, 42, 0.08);
    --text: #0f172a;
    --text-2: #5b6474;
    --text-3: #8a93a3;
    --phone-frame: #111318;
    --phone-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.35), 0 10px 24px -10px rgba(15, 23, 42, 0.2);
    --card-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px -16px rgba(15, 23, 42, 0.18);
    --bubble-user: #0a7aff;
    --bubble-user-text: #ffffff;
    --bubble-app: #e9e9eb;
    --bubble-app-text: #0f172a;
    --glow-a: rgba(10, 122, 255, 0.22);
    --glow-b: rgba(48, 197, 106, 0.18);
}

/* ── Reset ── */

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

html, body {
    overflow-x: clip;
    max-width: 100%;
}

html {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    font-size: 1rem;
}

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

ul { list-style: none; }
a { color: inherit; text-decoration: none; }
figure { margin: 0; }

h1, h2, h3 {
    font-family: var(--font-display);
    letter-spacing: -0.025em;
    line-height: 1.1;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.5rem, 6.5vw, 4.25rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 16px;
}

h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.center { text-align: center; }

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding-left: clamp(20px, 4vw, 40px);
    padding-right: clamp(20px, 4vw, 40px);
}

section, .hero {
    padding-top: clamp(64px, 9vw, 120px);
    padding-bottom: clamp(64px, 9vw, 120px);
}

.eyebrow {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-ink);
    margin-bottom: 14px;
}

.lead {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    color: var(--text-2);
    max-width: 34rem;
    margin: 22px 0 30px;
}

/* ── Nav ── */

.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    border-bottom: 1px solid var(--line);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.logo-mark {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--accent), #5ab0ff);
    color: #fff;
    box-shadow: 0 6px 14px -6px rgba(10, 122, 255, 0.7);
}

.logo-mark svg { width: 17px; height: 17px; }

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-2);
}

.nav-link:hover { color: var(--accent-ink); }

.nav-right { display: flex; align-items: center; gap: 18px; }

/* ── Theme toggle ── */

.theme-toggle {
    --size: 40px;
    position: relative;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: var(--card-shadow);
    transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), background 0.3s, color 0.3s;
}

.theme-toggle:hover { transform: scale(1.08); }
.theme-toggle:active { transform: scale(0.92); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.theme-toggle svg {
    width: 22px;
    height: 22px;
    overflow: visible;
    transition: transform 0.6s cubic-bezier(.34,1.56,.64,1);
}

.theme-toggle .sun-core {
    fill: currentColor;
    transform-origin: center;
    transition: transform 0.5s cubic-bezier(.34,1.56,.64,1);
}

.theme-toggle .sun-rays {
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    transform-origin: center;
    transition: transform 0.5s cubic-bezier(.34,1.56,.64,1), opacity 0.3s;
}

.theme-toggle .moon-mask {
    fill: var(--surface);
    transform-origin: center;
    transition: transform 0.5s cubic-bezier(.34,1.56,.64,1), fill 0.3s;
}

/* dark (default): show moon = big core with mask bite, rays hidden */
.theme-toggle .sun-core { transform: scale(1.35); }
.theme-toggle .sun-rays { transform: scale(0.4) rotate(-90deg); opacity: 0; }
.theme-toggle .moon-mask { transform: translate(0, 0); }
.theme-toggle svg { transform: rotate(-30deg); }

/* light: sun = small core, rays out, mask moved away */
:root[data-theme="light"] .theme-toggle .sun-core { transform: scale(1); }
:root[data-theme="light"] .theme-toggle .sun-rays { transform: scale(1) rotate(0deg); opacity: 1; }
:root[data-theme="light"] .theme-toggle .moon-mask { transform: translate(12px, -12px); }
:root[data-theme="light"] .theme-toggle svg { transform: rotate(0deg); }

/* circular reveal between themes (View Transitions API) */
::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}

::view-transition-new(root) {
    animation: theme-reveal 0.7s cubic-bezier(.4,0,.2,1);
}

@keyframes theme-reveal {
    from { clip-path: circle(0 at var(--reveal-x, 50%) var(--reveal-y, 50%)); }
    to   { clip-path: circle(150vmax at var(--reveal-x, 50%) var(--reveal-y, 50%)); }
}

html.theme-fading * { transition: background-color 0.4s, color 0.4s, border-color 0.4s !important; }

/* ── Coming-soon pill ── */

.coming-soon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    border-radius: 999px;
    background: var(--text);
    color: var(--bg);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    box-shadow: 0 10px 24px -12px rgba(15, 23, 42, 0.5);
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(48, 197, 106, 0.55); }
    70%  { box-shadow: 0 0 0 9px rgba(48, 197, 106, 0); }
    100% { box-shadow: 0 0 0 0 rgba(48, 197, 106, 0); }
}

/* ── Phone frames ── */

.phone {
    position: relative;
    width: 100%;
    padding: 10px;
    border-radius: 48px;
    background: var(--phone-frame);
    box-shadow: var(--phone-shadow);
}

.phone img {
    width: 100%;
    border-radius: 38px;
}

.phone-hero { max-width: 300px; }

.phone-card {
    max-width: 230px;
    padding: 8px;
    border-radius: 38px;
}

.phone-card img { border-radius: 30px; }

/* ── Hero ── */

.hero {
    position: relative;
    overflow: clip;
    padding-top: clamp(48px, 8vw, 96px);
}

.hero-glow {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(42rem 28rem at 78% 22%, var(--glow-a), transparent 65%),
        radial-gradient(30rem 22rem at 12% 90%, var(--glow-b), transparent 65%);
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: clamp(32px, 6vw, 80px);
}

.hero-copy { min-width: 0; }

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin-top: 30px;
    color: var(--text-2);
    font-size: 0.92rem;
    font-weight: 500;
}

.hero-proof li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-proof li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    min-width: 0;
}


/* ── How it works ── */

.how { background: var(--bg-alt); }

.how h2 { margin-bottom: clamp(36px, 5vw, 64px); }

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 32px);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(24px, 3vw, 36px) clamp(20px, 2.5vw, 28px) clamp(28px, 3vw, 40px);
    border-radius: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--card-shadow);
}

.step .phone-card {
    order: 2;
    max-width: 200px;
    margin-top: 28px;
}

.step-body {
    order: 1;
    text-align: center;
}

.step-num {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.step-body h3 { margin-bottom: 8px; font-size: 1.35rem; }
.step-body p { color: var(--text-2); font-size: 0.97rem; }

/* ── Accuracy ── */

.accuracy-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    align-items: center;
    gap: clamp(32px, 6vw, 80px);
}

.accuracy-copy p {
    color: var(--text-2);
    font-size: 1.08rem;
    margin-top: 16px;
}

.accuracy-copy strong { color: var(--text); font-weight: 600; }

.chat-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    border-radius: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--card-shadow);
    font-family: var(--font-system);
}

.chat-card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 4px 6px 12px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 4px;
}

.chat-card-title { font-weight: 700; }
.chat-card-meta { font-size: 0.85rem; color: var(--text-3); font-variant-numeric: tabular-nums; }

.bubble {
    max-width: 86%;
    padding: 10px 14px;
    border-radius: 20px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.bubble.user {
    align-self: flex-end;
    background: var(--bubble-user);
    color: var(--bubble-user-text);
    border-bottom-right-radius: 6px;
}

.bubble.app {
    align-self: flex-start;
    background: var(--bubble-app);
    color: var(--bubble-app-text);
    border-bottom-left-radius: 6px;
}

/* ── Features ── */

.features { background: var(--bg-alt); }

.features h2 { margin-bottom: clamp(36px, 5vw, 64px); }

.features-grid {
    display: grid;
    grid-template-columns: minmax(0, 230px) minmax(0, 1fr) minmax(0, 230px);
    align-items: center;
    gap: clamp(28px, 4vw, 56px);
}

.feature-phone { justify-self: center; }

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 28px;
    min-width: 0;
}

.feature-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.feature-icon {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--card-shadow);
    color: var(--accent-ink);
}

.feature-icon svg { width: 20px; height: 20px; }

.feature-list h3 { font-size: 1.02rem; margin-bottom: 3px; }
.feature-list p { color: var(--text-2); font-size: 0.93rem; }

/* ── Launch ── */

.launch { position: relative; overflow: hidden; }

.launch::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(34rem 24rem at 85% 50%, var(--glow-a), transparent 65%),
        radial-gradient(26rem 20rem at 10% 20%, var(--glow-b), transparent 65%);
}

.launch-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 6vw, 80px);
}

.launch-copy p:not(.eyebrow) {
    color: var(--text-2);
    font-size: 1.08rem;
    margin: 0 0 28px;
    max-width: 30rem;
}

.launch-visuals {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: clamp(12px, 2vw, 24px);
}

.launch-visuals .phone-card { max-width: 200px; }
.launch-visuals .phone-card:first-child { transform: translateY(-24px) rotate(-3deg); }
.launch-visuals .phone-card:last-child { transform: translateY(12px) rotate(3deg); }

/* ── Footer ── */

footer {
    border-top: 1px solid var(--line);
    padding: 36px 0;
    font-size: 0.9rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-brand { font-family: var(--font-display); font-weight: 800; }
.footer-links a { color: var(--text-2); }
.footer-links a:hover { color: var(--accent-ink); }
.footer-copy { color: var(--text-3); }

/* ── Motion preferences ── */

@media (prefers-reduced-motion: reduce) {
    .dot { animation: none; }
    ::view-transition-new(root) { animation: none; }
    html { scroll-behavior: auto; }
}

/* ── Responsive ── */

@media (max-width: 960px) {
    .features-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .feature-phone:last-of-type { display: none; }
    .steps { gap: 20px; }
}

@media (max-width: 760px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
        text-align: center;
    }
    .lead { margin-left: auto; margin-right: auto; }
    .hero-proof { justify-content: center; }
    .hero-visual { margin-top: 12px; }
    .phone-hero { max-width: 260px; }

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

    .accuracy-inner,
    .launch-inner {
        grid-template-columns: minmax(0, 1fr);
    }
    .accuracy-copy, .launch-copy { text-align: center; }
    .accuracy-copy p, .launch-copy p:not(.eyebrow) { margin-left: auto; margin-right: auto; }
    .chat-card { max-width: 440px; margin: 0 auto; width: 100%; }

    .feature-list { grid-template-columns: minmax(0, 1fr); }

    .launch-visuals .phone-card { max-width: 160px; }

    .footer-inner { flex-direction: column; text-align: center; }
}

