/* ============================================================
   Skryx — landing page styles (LIGHT theme).
   ------------------------------------------------------------
   All colours flow through CSS variables on :root so a future
   dark mode is a single [data-theme="dark"] override away — no
   need to touch the rules below. Selector + layout structure
   is unchanged from the original dark theme; this is purely a
   palette + shadow / glow swap with WCAG AA contrast on body.
   ============================================================ */

:root {
    /* ── Surfaces ────────────────────────────────────────────
       --bg          base page background (kept as the legacy
                     name so existing rules still resolve)
       --bg-soft     alternating section tint (very-light slate)
       --card        white card on tinted sections
       --card-hover  card hover surface (slate-50)
    */
    --bg: #ffffff;
    --bg-soft: #f8fafc;          /* slate-50 */
    --card: #ffffff;
    --card-hover: #f8fafc;       /* slate-50 */

    /* ── Borders & rings ──────────────────────────────────── */
    --border: #e2e8f0;           /* slate-200, default hair-line */
    --border-strong: #cbd5e1;    /* slate-300, more defined */
    --border-bright: rgba(37, 99, 235, 0.45);  /* brand-tinted focus / hover ring */

    /* ── Text ──────────────────────────────────────────────
       --text       primary text, near-black on white (4.5:1+)
       --muted      body copy (slate-600, ~7:1 on white)
       --muted-dim  meta / captions (slate-500, ~5.7:1)
    */
    --text: #0f172a;             /* slate-900 */
    --muted: #475569;            /* slate-600 */
    --muted-dim: #64748b;        /* slate-500 */

    /* ── Brand + accents ──────────────────────────────────
       Bumped one shade darker from the dark-theme values so
       the brand reads cleanly on white (the original blue-500
       at 3.8:1 was too low on white text).
    */
    --blue: #2563eb;             /* blue-600 (AA on white) */
    --blue-hover: #1d4ed8;       /* blue-700 */
    --blue-tint: rgba(37,99,235,0.10);
    --purple: #7c3aed;           /* violet-600 */
    --green: #16a34a;            /* green-600 */
    --green-tint: rgba(22,163,74,0.10);
    --red: #dc2626;              /* red-600 */
    --amber: #d97706;            /* amber-600 */

    /* ── Shadows ──────────────────────────────────────────
       Soft, layered shadows do the work that border-glows did
       on the dark theme. Three tiers + a brand-tinted shadow
       for primary CTAs.
    */
    --shadow-sm: 0 1px 2px rgba(15,23,42,0.05), 0 1px 3px rgba(15,23,42,0.06);
    --shadow-md: 0 4px 8px -2px rgba(15,23,42,0.06), 0 10px 20px -8px rgba(15,23,42,0.10);
    --shadow-lg: 0 12px 24px -8px rgba(15,23,42,0.10), 0 24px 48px -16px rgba(15,23,42,0.14);
    --shadow-brand: 0 6px 16px -4px rgba(37,99,235,0.30), 0 16px 32px -12px rgba(37,99,235,0.22);

    /* ── Code blocks ──────────────────────────────────────
       Code panels stay dark on the otherwise-light page — that\'s
       the universal pattern (GitHub, Stripe, Linear). Easier to
       read, signals "machine output", and avoids syntax-theme
       redesign work.
    */
    --code-bg: #0f172a;          /* slate-900 */
    --code-bg-soft: #1e293b;     /* slate-800 */
    --code-text: #e2e8f0;        /* slate-200 */
    --code-border: rgba(255,255,255,0.06);

    /* ── Semantic aliases (forward-friendly names) ──────── */
    --color-bg: var(--bg);
    --color-surface: var(--card);
    --color-surface-alt: var(--bg-soft);
    --color-text: var(--text);
    --color-text-muted: var(--muted);
    --color-text-subtle: var(--muted-dim);
    --color-border: var(--border);
    --color-primary: var(--blue);
    --color-primary-hover: var(--blue-hover);

    /* ── Layout primitives ──────────────────────────────── */
    --radius: 16px;
    --maxw: 1140px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

    color-scheme: light;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

::selection { background: rgba(37, 99, 235, 0.18); color: var(--text); }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 100;
    background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 16px; top: 16px; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Default section rhythm tightened from 96 → 72 (still breathes, no
   longer "long and empty"). Hero + final CTA carry their own overrides
   below. Per-section escape hatches (`.section-tight`, `.section-airy`)
   let individual blocks tweak without rewriting the rest. */
section { position: relative; padding: 72px 0; }
section.section-tight { padding: 48px 0; }
section.section-airy  { padding: 96px 0; }
/* Alternating background tint so adjacent sections aren\'t flat-white.
   Subtle enough to read as one design system, not zebra stripes. */
.section-soft { background: var(--bg-soft); }

.eyebrow {
    display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--blue); margin-bottom: 16px;
}
.section-title {
    font-size: clamp(30px, 4.5vw, 46px); font-weight: 700; letter-spacing: -0.035em;
    line-height: 1.12; color: var(--text);
}
.section-sub { color: var(--muted); font-size: 18px; margin-top: 14px; max-width: 620px; }
.center { text-align: center; }
.center .section-sub { margin-left: auto; margin-right: auto; }

.grad {
    /* Gradient text on light: stays inside the brand spectrum, lands
       on a saturated indigo end so the start of the gradient still
       reads on white (a pure-white start would invisibilise the text). */
    background: linear-gradient(110deg, var(--blue) 0%, var(--purple) 55%, #db2777 100%);
    background-size: 220% auto;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    animation: gradshift 9s linear infinite;
}
@keyframes gradshift { to { background-position: 220% center; } }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px; justify-content: center;
    font-size: 15px; font-weight: 600; padding: 13px 24px; border-radius: 10px;
    border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary {
    background: var(--blue);
    color: #fff;
    box-shadow: var(--shadow-brand);
}
.btn-primary:hover {
    background: var(--blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -6px rgba(37,99,235,0.40), 0 20px 36px -12px rgba(37,99,235,0.30);
}
.btn-ghost {
    background: #fff; border-color: var(--border-strong); color: var(--text);
    box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { background: var(--bg-soft); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ---------- Navbar ---------- */
.nav {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    background: rgba(255,255,255,0.82);
    border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
/* Logo PNG is dark-on-transparent — sits flush on the white nav. */
.logo { display: inline-flex; align-items: center; padding: 5px 0; }
.logo img { height: 18px; width: auto; display: block; }
.logo-lg { padding: 6px 0; }
.logo-lg img { height: 22px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 88px 0 64px; overflow: hidden; }
#particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.5; }
/* Soft, low-saturation aurora behind the hero — replaces the saturated
   blue/purple glows that worked on a dark canvas. Same shapes, lighter
   tints so they read as ambient colour, not a UI feature. */
.hero-glow {
    position: absolute; z-index: 0; border-radius: 50%; filter: blur(140px); opacity: 0.55;
    pointer-events: none;
}
.hero-glow.g1 { width: 540px; height: 540px; background: rgba(37,99,235,0.20); top: -180px; left: 25%; transform: translateX(-50%); }
.hero-glow.g2 { width: 420px; height: 420px; background: rgba(124,58,237,0.18); top: 80px; right: -120px; }

/* Two-column hero: text on the left, product image on the right. */
.hero-inner {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 56px; align-items: center;
}
.hero-text { text-align: left; max-width: 580px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted);
    background: #fff; border: 1px solid var(--border);
    padding: 6px 14px; border-radius: 999px; margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.hero-badge .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(22,163,74,0.6); }
.hero h1 {
    font-size: clamp(40px, 5.4vw, 76px); font-weight: 700; letter-spacing: -0.04em;
    line-height: 1.04; margin: 0; max-width: 14ch; color: var(--text);
}
.hero-sub { color: var(--muted); font-size: clamp(16px, 1.4vw, 20px); margin-top: 22px; max-width: 52ch; }
.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-foot { margin-top: 26px; font-size: 13px; color: var(--muted-dim); }

/* Hero image — gentle float + faint blue glow, scales up slightly on hover. */
.hero-image {
    position: relative;
    animation: heroFloat 4s ease-in-out infinite;
    transition: transform .35s ease;
    will-change: transform;
}
.hero-image-glow {
    position: absolute; inset: 6% -2% 6% -2%;
    background: radial-gradient(circle at center, rgba(37,99,235,0.22), rgba(124,58,237,0.10) 45%, transparent 70%);
    filter: blur(40px); z-index: 0; pointer-events: none;
    transition: opacity .35s ease; opacity: 0.7;
}
.hero-image picture { position: relative; z-index: 1; display: block; }
.hero-image img {
    width: 100%; height: auto; display: block; border-radius: 20px;
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--border);
}
.hero-image:hover { transform: scale(1.02); }
.hero-image:hover .hero-image-glow { opacity: 1; }
@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) { .hero-image { animation: none; } }

/* ---------- Hero HTML/CSS widget mockup ----------
   Replaces the previous stock-photo hero with a real-product mockup of
   the Skryx autocomplete dropdown. Reuses the live widget\'s visual
   language so the hero is "here\'s what you get" — not "stock person
   looking at a phone". Pure HTML/CSS, no JS dependency, sized through
   clamp() so it scales cleanly from 320px to 1440px. */
.hero-mockup { position: relative; animation: heroFloat 5s ease-in-out infinite; }
.hero-mockup-glow {
    position: absolute; inset: 4% -4% 4% -4%;
    background: radial-gradient(circle at 55% 45%, rgba(37,99,235,0.22), rgba(124,58,237,0.10) 50%, transparent 70%);
    filter: blur(48px); z-index: 0; pointer-events: none;
}
.hero-mockup-frame {
    position: relative; z-index: 1;
    background: #fff; border: 1px solid var(--border); border-radius: 18px;
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--border);
    padding: 14px; max-width: 560px; margin-left: auto;
}
.hero-mockup-bar {
    display: flex; align-items: center; gap: 10px;
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    padding: 10px 14px; box-shadow: var(--shadow-sm);
}
.hero-mockup-bar svg { color: var(--muted); flex: none; }
.hero-mockup-typed {
    flex: 1; min-width: 0; font-size: 15px; color: var(--text); font-weight: 500;
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.hero-mockup-typed .caret {
    display: inline-block; color: var(--blue); font-weight: 500;
    animation: heroCaret 1s steps(2,end) infinite;
}
@keyframes heroCaret { 50% { opacity: 0; } }
.hero-mockup-lat {
    flex: none; font-family: var(--mono); font-size: 11px; font-weight: 700;
    color: var(--green); background: var(--green-tint);
    border: 1px solid rgba(22,163,74,0.30); padding: 5px 10px; border-radius: 8px;
}
.hero-mockup-meta {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 6px 8px; font-size: 12px; color: var(--muted-dim);
}
.hero-mockup-meta strong { color: var(--text); font-weight: 600; }
.hero-mockup-chip {
    font-size: 11px; font-weight: 600; color: var(--blue);
    background: var(--blue-tint); border: 1px solid rgba(37,99,235,0.20);
    padding: 4px 10px; border-radius: 999px;
}
.hero-mockup-results { list-style: none; margin: 0; padding: 0; }
.hero-mockup-results li {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 8px; border-radius: 10px;
    transition: background .15s ease;
}
.hero-mockup-results li + li { border-top: 1px solid var(--border); }
.hero-mockup-results li:not(.hmr-more):hover { background: var(--bg-soft); }
.hmr-thumb {
    flex: none; width: 44px; height: 44px; border-radius: 9px;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 18px;
    border: 1px solid var(--border);
}
.hmr-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hmr-title {
    font-size: 13.5px; font-weight: 600; color: var(--text); line-height: 1.3;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hmr-title mark { background: rgba(37,99,235,0.16); color: var(--blue); padding: 0 3px; border-radius: 3px; font-weight: 700; }
.hmr-meta { font-size: 11.5px; color: var(--muted-dim); line-height: 1.4; }
.hmr-price { flex: none; font-size: 14px; font-weight: 700; color: var(--text); }
.hmr-more {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 12px !important; margin-top: 4px;
    font-size: 12px; color: var(--blue); font-weight: 600;
}
.hero-mockup-brand { color: var(--muted-dim); font-size: 11px; font-weight: 500; }
@media (max-width: 900px) {
    .hero-mockup-frame { max-width: 100%; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-mockup { animation: none; }
    .hero-mockup-typed .caret { animation: none; }
}

/* ---------- Generic card ---------- */
.card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
/* When .card is used as an anchor (clickable bento), strip the link chrome. */
a.card { display: block; text-decoration: none; color: inherit; position: relative; }
a.card .card-more {
    margin-top: 12px; font-size: 12.5px; font-weight: 600; color: var(--blue);
    display: inline-flex; align-items: center; gap: 4px; opacity: 0;
    transition: opacity .2s, transform .2s;
}
a.card:hover .card-more { opacity: 1; }
.card.lift:hover {
    transform: translateY(-4px); border-color: var(--border-bright);
    background: var(--card-hover);
    box-shadow: var(--shadow-md);
}

/* ---------- Search demo ---------- */
.demo-box {
    max-width: 760px; margin: 36px auto 0;
    /* Hard-lock the whole demo block so the rest of the landing page
       cannot move while the search auto-cycles. Tall enough to fit
       a populated demo (bar + meta + hint slot + 4 rows of results). */
    height: 540px; display: flex; flex-direction: column;
}
.demo-bar {
    display: flex; align-items: center; gap: 12px;
    background: #fff; border: 1px solid var(--border); border-radius: 14px;
    padding: 4px 4px 4px 18px;
    box-shadow: var(--shadow-sm);
}
.demo-bar:focus-within { border-color: var(--border-bright); box-shadow: 0 0 0 4px rgba(37,99,235,0.10); }
.demo-bar svg { flex: none; color: var(--muted); }
.demo-input {
    flex: 1; background: none; border: 0; color: var(--text); font-size: 17px; padding: 14px 0; outline: none;
}
.demo-input::placeholder { color: var(--muted-dim); }
.lat-badge {
    font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--green);
    background: var(--green-tint); border: 1px solid rgba(22,163,74,0.30);
    padding: 9px 13px; border-radius: 9px; white-space: nowrap;
}
.demo-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted-dim); margin: 12px 4px 0; }
.demo-hint {
    display: flex; align-items: center; gap: 8px;
    margin: 10px 4px 0; padding: 9px 12px;
    background: var(--blue-tint); border: 1px solid rgba(37,99,235,0.22);
    border-radius: 10px; color: var(--text); font-size: 13px;
    /* Always-reserve slot so the AI hint appearing/disappearing
       never pushes the rest of the demo (or the page) down. */
    min-height: 42px; box-sizing: border-box;
    transition: opacity .15s ease;
}
.demo-hint:empty { visibility: hidden; opacity: 0; border-color: transparent; background: transparent; }
.demo-hint strong { color: var(--text); font-weight: 600; }
.demo-hint-ico { font-size: 14px; line-height: 1; }
.demo-hint-tag {
    margin-left: auto; font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
    text-transform: uppercase; color: var(--blue);
    padding: 3px 8px; border: 1px solid rgba(37,99,235,0.30); border-radius: 999px;
    background: #fff;
}
.demo-results {
    margin-top: 14px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
    /* Fixed footprint inside the locked .demo-box — never resizes,
       never pushes the rest of the page. Flex:1 lets it absorb the
       remaining height of the box; overflow:auto so larger result
       sets scroll inside instead of pushing other elements. */
    flex: 1; min-height: 0; align-content: start; overflow-y: auto;
}
.demo-empty { padding: 36px 16px; text-align: center; color: var(--muted); font-size: 14px; }
.product {
    display: flex; gap: 12px; align-items: center; padding: 12px;
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    box-shadow: var(--shadow-sm);
    animation: pop .28s ease both;
}
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.product .thumb {
    width: 46px; height: 46px; border-radius: 9px; flex: none;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 18px; color: #fff;
    overflow: hidden;
}
/* Real product photo — Wikipedia thumbnails. Fill the frame. */
.product .thumb-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Brand favicon (gstatic). Smaller, kept centered with breathing room. */
.product .thumb-photo.thumb-fav { object-fit: contain; padding: 5px; background: #fff; }
.product .p-title { font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--text); }
.product .p-meta { font-size: 12px; color: var(--muted-dim); margin-top: 2px; }
.product .p-price { margin-left: auto; font-weight: 700; font-size: 14px; white-space: nowrap; color: var(--text); }
.demo-empty { grid-column: 1/-1; text-align: center; color: var(--muted-dim); padding: 30px; font-size: 14px; }
.demo-note { text-align: center; color: var(--muted-dim); font-size: 13px; margin-top: 18px; }
mark { background: rgba(37,99,235,0.18); color: var(--text); border-radius: 3px; padding: 0 2px; font-weight: 600; }

/* ---------- Speed comparison ---------- */
.bignum {
    font-size: clamp(72px, 13vw, 150px); font-weight: 700;
    letter-spacing: -0.05em; line-height: 1; color: var(--text);
    display: inline-flex; align-items: baseline; gap: 0.12em;
}
.bignum span:first-child { font-size: 1em; }
.bignum span:nth-child(2) { font-size: 0.3em; color: var(--muted); font-weight: 600; }
.speed-rows { max-width: 720px; margin: 44px auto 0; display: flex; flex-direction: column; gap: 14px; }
.speed-row { display: grid; grid-template-columns: 150px 1fr 90px; align-items: center; gap: 16px; }
.speed-row .name { font-weight: 600; font-size: 14px; color: var(--text); }
.speed-track { height: 12px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.speed-fill { height: 100%; width: 0; border-radius: 999px; transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
.speed-fill.us { background: linear-gradient(90deg, #16a34a, #22c55e); }
.speed-fill.them { background: linear-gradient(90deg, #94a3b8, #cbd5e1); }
.speed-fill.bad { background: linear-gradient(90deg, #b91c1c, #ef4444); }
.speed-row .val { font-family: var(--mono); font-size: 14px; text-align: right; color: var(--muted); }
.speed-row.win .name, .speed-row.win .val { color: var(--green); }

/* ---------- Comparison slider ---------- */
.cmp {
    position: relative; max-width: 880px; margin: 40px auto 0; height: 290px;
    border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    user-select: none; touch-action: none;
}
.cmp-side { position: absolute; inset: 0; display: flex; align-items: center; padding: 40px; }
.cmp-rival { background: linear-gradient(135deg, #fef2f2, #fee2e2); justify-content: flex-start; }
.cmp-skryx { background: linear-gradient(135deg, #eff6ff, #dbeafe); clip-path: inset(0 0 0 50%); justify-content: flex-end; }
/* Push each card off-center toward its own half so the centred handle
   never overlaps the price text. */
.cmp-card { text-align: center; max-width: 38%; }
.cmp-rival .cmp-card { margin-left: 4%; }
.cmp-skryx .cmp-card { margin-right: 4%; }
.cmp-card .label { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.cmp-rival .label { color: var(--red); }
.cmp-skryx .label { color: var(--blue); }
.cmp-card .price { font-size: clamp(34px, 5vw, 52px); font-weight: 700; letter-spacing: -0.03em; margin: 8px 0; color: var(--text); }
.cmp-card .note { font-size: 14px; color: var(--muted); }
.cmp-handle {
    position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: rgba(15,23,42,0.35);
    transform: translateX(-50%); cursor: ew-resize;
}
.cmp-handle::after {
    content: '⇄'; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--text);
    display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700;
    box-shadow: var(--shadow-md);
}
.cmp-foot { text-align: center; color: var(--muted); margin-top: 20px; font-size: 15px; }

/* ---------- Bento grid ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.bento .card { padding: 26px; }
.bento .b-wide { grid-column: span 2; }
.feat-icon {
    width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
    background: var(--blue-tint); border: 1px solid rgba(37,99,235,0.20); margin-bottom: 16px;
}
.feat-icon svg { color: var(--blue); }
.card h3 { font-size: 17px; font-weight: 650; letter-spacing: -0.02em; color: var(--text); }
.card p { color: var(--muted); font-size: 14px; margin-top: 7px; }

/* ---------- Code block ----------
   Intentionally kept dark on the light page — universal IDE-style
   convention (GitHub, Stripe, Linear, Vercel docs all do it). */
.code-wrap { max-width: 820px; margin: 36px auto 0; }
.code-tabs { display: flex; gap: 4px; margin-bottom: -1px; }
.code-tab {
    background: none; border: 1px solid transparent; border-bottom: 0; color: var(--muted);
    padding: 9px 16px; font-size: 13px; font-weight: 600; border-radius: 9px 9px 0 0;
}
.code-tab.active { background: var(--code-bg); border-color: var(--code-bg); color: var(--code-text); }
.code-panel {
    position: relative; background: var(--code-bg); border: 1px solid var(--code-bg);
    border-radius: 0 12px 12px 12px; padding: 20px 22px; overflow: auto;
    box-shadow: var(--shadow-md);
}
.code-panel pre { margin: 0; }
.code-panel code { font-family: var(--mono); font-size: 13px; line-height: 1.7; color: var(--code-text); }
.copy-btn {
    position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,0.08);
    border: 1px solid var(--code-border); color: #cbd5e1; font-size: 12px;
    padding: 6px 12px; border-radius: 8px;
}
.copy-btn:hover { color: #fff; background: rgba(255,255,255,0.14); }
.tok-key { color: #60a5fa; } .tok-str { color: #86efac; } .tok-fn { color: #c4b5fd; } .tok-cmt { color: #64748b; }

/* ---------- Use cases ---------- */
.usecases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.usecases .card { padding: 24px; }
.uc-emoji { font-size: 26px; }

/* ---------- Pricing calculator ---------- */
.calc { max-width: 720px; margin: 40px auto 0; }
.calc .card { padding: 32px; }
.calc-label { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.calc-label b { color: var(--text); font-size: 16px; font-family: var(--mono); }
input[type=range] {
    width: 100%; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 999px;
    background: var(--bg-soft); border: 1px solid var(--border); outline: none;
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
    background: var(--blue); border: 3px solid #fff; cursor: pointer;
    box-shadow: 0 2px 8px rgba(37,99,235,0.40);
}
input[type=range]::-moz-range-thumb {
    width: 20px; height: 20px; border-radius: 50%; background: var(--blue); border: 3px solid #fff; cursor: pointer;
}
.calc-rows { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.calc-row { display: flex; align-items: baseline; justify-content: space-between; }
.calc-row .pname { color: var(--muted); font-size: 14px; }
.calc-row .pval { font-family: var(--mono); font-size: 17px; color: var(--text); }
.calc-row.them .pval { color: var(--red); text-decoration: line-through; }
.calc-row.us { padding: 14px 16px; background: var(--green-tint); border: 1px solid rgba(22,163,74,0.25); border-radius: 12px; }
.calc-row.us .pname { color: var(--text); font-weight: 600; }
.calc-row.us .pval { color: var(--green); font-size: 22px; font-weight: 700; }
.calc-save { text-align: center; margin-top: 22px; }
.calc-save .amt { font-size: clamp(32px, 5vw, 46px); font-weight: 700; color: var(--green); letter-spacing: -0.03em; }
.calc-save .cap { color: var(--muted); font-size: 14px; }

/* ---------- Architecture ---------- */
.arch { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 44px; }
.arch-node {
    background: var(--card); border: 1px solid var(--border); border-radius: 12px;
    padding: 18px 20px; text-align: center; min-width: 150px;
    box-shadow: var(--shadow-sm);
}
.arch-node .t { font-weight: 650; font-size: 14px; color: var(--text); }
.arch-node .d { color: var(--muted-dim); font-size: 12px; margin-top: 3px; }
.arch-node.hot { border-color: var(--border-bright); box-shadow: var(--shadow-brand); }
.arch-arrow { color: var(--blue); font-size: 20px; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 40px auto 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
    width: 100%; text-align: left; background: none; border: 0; color: var(--text);
    font-size: 17px; font-weight: 600; padding: 22px 0; display: flex; justify-content: space-between; gap: 20px;
}
.faq-q .pm { color: var(--blue); font-size: 22px; transition: transform .2s; flex: none; }
.faq-item.open .faq-q .pm { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { color: var(--muted); font-size: 15px; padding-bottom: 22px; }

/* ---------- Final CTA ---------- */
.final { text-align: center; }
.final::before {
    content: ''; position: absolute; inset: 0; z-index: 0;
    background: radial-gradient(ellipse 60% 70% at 50% 40%, rgba(37,99,235,0.10), transparent 70%);
}
.final-inner { position: relative; z-index: 1; }
.final h2 { font-size: clamp(34px, 6vw, 62px); font-weight: 700; letter-spacing: -0.045em; line-height: 1.05; color: var(--text); }

/* ---------- Waitlist form ---------- */
.wait-form { display: flex; gap: 10px; max-width: 460px; margin: 28px auto 0; flex-wrap: wrap; }
.wait-form input {
    flex: 1; min-width: 200px; background: #fff; border: 1px solid var(--border-strong); border-radius: 10px;
    color: var(--text); font-size: 15px; padding: 13px 16px; outline: none;
    box-shadow: var(--shadow-sm);
}
.wait-form input::placeholder { color: var(--muted-dim); }
.wait-form input:focus { border-color: var(--border-bright); box-shadow: 0 0 0 4px rgba(37,99,235,0.10); }
.wait-msg { margin-top: 14px; font-size: 14px; min-height: 20px; color: var(--muted); }
.wait-msg.err { color: var(--red); }
.wait-success { display: none; }
.wait-success .check {
    width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px;
    background: var(--green-tint); border: 1px solid rgba(22,163,74,0.30);
    display: flex; align-items: center; justify-content: center; color: var(--green); font-size: 30px;
    animation: pop .4s ease both;
}
.wait-success .pos { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; color: var(--text); }
.share { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }
.fineprint { color: var(--muted-dim); font-size: 13px; margin-top: 16px; }
.counter-chip {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
    background: #fff; border: 1px solid var(--border); border-radius: 999px;
    padding: 7px 16px; font-size: 13px; color: var(--muted);
    box-shadow: var(--shadow-sm);
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 60px 0 36px; background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 36px; }
.footer-tag { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 28ch; }
.footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-dim); margin-bottom: 14px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer ul a { color: var(--muted); font-size: 14px; }
.footer ul a:hover { color: var(--text); }
.footer-bottom {
    margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; color: var(--muted-dim); font-size: 13px; flex-wrap: wrap; gap: 10px;
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
/* Tablet: keep 2-col hero, shrink gap and image. */
@media (max-width: 1024px) {
    .hero-inner { gap: 36px; }
    .hero h1 { font-size: clamp(36px, 6vw, 56px); }
    .hero-sub { font-size: 16px; }
}
@media (max-width: 900px) {
    section { padding: 56px 0; }
    section.section-tight { padding: 40px 0; }
    section.section-airy  { padding: 72px 0; }
    .nav-links { display: none; }
    .nav-links.open {
        display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column;
        background: #fff; border-bottom: 1px solid var(--border); padding: 18px 24px; gap: 16px;
        box-shadow: var(--shadow-md);
    }
    .nav-links.open a { padding: 8px 0; font-size: 16px; }   /* bigger tap targets */
    .nav-toggle { display: block; }
    .bento, .usecases { grid-template-columns: repeat(2, 1fr); }
    .bento .b-wide { grid-column: span 2; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .demo-box { height: 720px; }
    .demo-results { grid-template-columns: 1fr; }
    .speed-row { grid-template-columns: 96px 1fr 64px; gap: 10px; }
    .arch-arrow { transform: rotate(90deg); }
    .hero { padding: 90px 0 70px; }
}
/* Mobile: stack — text first, image below. */
@media (max-width: 768px) {
    .hero-inner { grid-template-columns: 1fr; gap: 36px; }
    .hero-text { text-align: center; max-width: 560px; margin: 0 auto; }
    .hero h1 { margin: 0 auto; max-width: 18ch; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
    .hero-image { max-width: 520px; margin: 0 auto; }
}
@media (max-width: 560px) {
    .wrap { padding: 0 18px; }
    section { padding: 48px 0; }
    section.section-tight { padding: 32px 0; }
    section.section-airy  { padding: 64px 0; }
    .hero { padding: 56px 0 48px; }
    .hero-cta { gap: 10px; }
    .hero-cta .btn { width: 100%; justify-content: center; }
    .bento, .usecases, .footer-grid { grid-template-columns: 1fr; }
    .bento .b-wide { grid-column: span 1; }
    .bento .card { padding: 20px; }
    .cmp { height: 260px; }
    /* Prevent iOS auto-zoom on focus; bump the demo input + chunkier tap target. */
    .demo-bar { padding: 4px 4px 4px 14px; gap: 8px; }
    .demo-input { font-size: 16px; padding: 12px 0; }
    .lat-badge { padding: 7px 10px; font-size: 11px; }
    .product { padding: 10px; gap: 10px; }
    .product .thumb { width: 38px; height: 38px; }
    .demo-box { height: 680px; }
    /* Speed bars: drop the label column on tiny screens, stack name above. */
    .speed-row { grid-template-columns: 1fr 56px; gap: 6px 10px; }
    .speed-row .name { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
    .speed-row .speed-track { grid-column: 1; }
    .speed-row .val { grid-column: 2; text-align: right; }
    /* Comparison cards smaller. */
    .cmp-card .price { font-size: clamp(36px, 11vw, 60px); }
    .cmp-card .label { font-size: 12px; }
    .cmp-card .note { font-size: 11px; }
    /* FAQ + waitlist tighter. */
    .faq-q { font-size: 15px; padding: 16px 0; }
    .wait-form { flex-direction: column; gap: 8px; }
    .wait-form input, .wait-form button { width: 100%; }
    /* Make the comparison footnote stay legible. */
    .cmp-foot { font-size: 14px; }
    /* Code block: prevent horizontal overflow. */
    .code-panel pre { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
    #particles { display: none; }
}

/* ---------- Auto-Pilot 5-minute flow ----------
   4-step connect → tune → widget → coach narrative. Cards are equal
   width with arrow separators that flow horizontally on desktop and
   stack vertically (arrows rotate 90°) on mobile so the order still
   reads correctly. */
.ap-flow {
    display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: 16px; align-items: stretch;
    max-width: 1100px; margin: 44px auto 0;
}
.ap-step {
    background: #fff; border: 1px solid var(--border); border-radius: 14px;
    padding: 22px 20px; text-align: left;
    box-shadow: var(--shadow-sm);
    transition: transform .15s, border-color .15s, box-shadow .15s;
}
.ap-step:hover { transform: translateY(-2px); border-color: var(--border-bright); box-shadow: var(--shadow-md); }
.ap-num {
    width: 30px; height: 30px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--blue), var(--purple)); color: #fff;
    font-weight: 700; font-size: 13px; margin-bottom: 12px;
    box-shadow: 0 4px 10px -2px rgba(37,99,235,0.30);
}
.ap-step h3 { font-size: 15.5px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; margin: 0 0 6px; }
.ap-step p  { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin: 0; }
.ap-arrow { color: var(--blue); font-size: 22px; align-self: center; user-select: none; }
@media (max-width: 900px) {
    .ap-flow { grid-template-columns: 1fr; gap: 12px; }
    .ap-arrow { transform: rotate(90deg); text-align: center; }
}

/* ---------- AI Search Coach landing section ---------- */
.coach-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
    margin: 40px auto 0; max-width: 1080px; text-align: left;
}
.coach-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: 14px; padding: 22px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.coach-card:hover { transform: translateY(-3px); border-color: var(--border-bright); box-shadow: var(--shadow-md); }
.coach-card-pri {
    background: linear-gradient(160deg, rgba(37,99,235,0.06), rgba(124,58,237,0.04));
    border-color: rgba(37,99,235,0.25);
}
.coach-eyebrow { font-size: 12px; font-weight: 600; color: var(--muted-dim); margin-bottom: 8px; }
.coach-title { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 8px; line-height: 1.3; }
.coach-meta { font-size: 13px; color: var(--muted); line-height: 1.5; }
.coach-actions { display: flex; gap: 8px; margin-top: 14px; }
.coach-btn {
    display: inline-block; font-size: 12px; font-weight: 600; padding: 7px 12px;
    border: 1px solid var(--border-strong); border-radius: 8px; color: var(--muted);
    background: #fff;
}
.coach-btn-pri { background: var(--blue); border-color: var(--blue); color: #fff; }
.coach-bullets {
    list-style: none; padding: 0; margin: 36px auto 0;
    display: flex; flex-direction: column; gap: 8px;
    max-width: 580px; text-align: left; color: var(--muted); font-size: 14px;
}
.coach-bullets li strong { color: var(--text); }
@media (max-width: 900px) { .coach-grid { grid-template-columns: 1fr; } }

/* ---------- AI Query Understanding ---------- */
.demo-hint { position: relative; flex-wrap: wrap; }
.demo-hint-alts {
    flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px;
}
.demo-alt-btn {
    background: #fff; border: 1px solid var(--border);
    color: var(--muted); font: inherit; font-size: 11px; cursor: pointer;
    padding: 3px 8px; border-radius: 999px;
}
.demo-alt-btn:hover { color: var(--text); border-color: var(--border-bright); background: var(--blue-tint); }

.aiqu-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center;
    margin-top: 40px;
}
.aiqu-flow {
    background: #fff; border: 1px solid var(--border);
    border-radius: 16px; padding: 28px; text-align: left;
    box-shadow: var(--shadow-sm);
}
.aiqu-step { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; }
.aiqu-step + .aiqu-step { border-top: 1px solid var(--border); }
.aiqu-num {
    width: 26px; height: 26px; border-radius: 8px; flex: none;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: #fff;
}
.aiqu-label { font-size: 12px; color: var(--muted-dim); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.08em; }
.aiqu-body { color: var(--text); font-size: 15px; line-height: 1.45; }
.aiqu-body code { background: var(--blue-tint); padding: 2px 6px; border-radius: 5px; color: var(--blue); font-size: 14px; font-family: var(--mono); }
.aiqu-bullets-wrap { text-align: left; }
.aiqu-bullets {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 14px;
    color: var(--muted); font-size: 15px; line-height: 1.6;
    /* Prevent quoted phrases from fragmenting weirdly across a narrow
       column. orphans/widows keep paragraphs visually balanced and
       overflow-wrap keeps long phrases intact instead of mid-word
       breaks. The bullet sits left of the wrapping text body. */
    overflow-wrap: normal; word-break: normal;
    orphans: 2; widows: 2;
}
.aiqu-bullets strong { color: var(--text); white-space: normal; }
.aiqu-bullets em { font-style: italic; color: var(--text); }
.aiqu-bullets li {
    display: grid; grid-template-columns: 18px 1fr;
    column-gap: 12px; align-items: start;
    line-height: 1.6;
}
.aiqu-bullets li::before {
    content: '✓'; color: var(--green); font-weight: 700; line-height: 1.6;
    grid-column: 1;
}
.aiqu-try {
    margin-top: 28px; text-align: left; font-size: 13px; color: var(--muted-dim);
}
@media (max-width: 900px) { .aiqu-grid { grid-template-columns: 1fr; gap: 22px; } }

/* ---------- Built-for-developers landing section ---------- */
.dev-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
    margin: 40px auto 0; max-width: 1080px; text-align: left;
}
.dev-card {
    display: block; padding: 26px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    color: inherit; text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform .2s, border-color .2s, background .2s, box-shadow .2s;
}
.dev-card:hover { transform: translateY(-3px); border-color: var(--border-bright); background: var(--bg-soft); box-shadow: var(--shadow-md); }
.dev-emoji { font-size: 22px; margin-bottom: 12px; }
.dev-card h3 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px; letter-spacing: -0.01em; }
.dev-card p { color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.dev-card p code { font-family: var(--mono); font-size: 12.5px; background: var(--blue-tint); color: var(--blue); padding: 1px 5px; border-radius: 4px; }
.dev-link { display: inline-block; margin-top: 14px; color: var(--blue); font-size: 13px; font-weight: 600; }
@media (max-width: 900px) { .dev-grid { grid-template-columns: 1fr; } }

/* ---------- Semantic search landing section ---------- */
.sem-cards {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
    margin: 40px auto 0; max-width: 1080px; text-align: left;
}
.sem-card {
    background: linear-gradient(160deg, rgba(124,58,237,0.05), rgba(37,99,235,0.03));
    border: 1px solid rgba(124,58,237,0.20);
    border-radius: 14px;
    padding: 22px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.sem-card:hover { transform: translateY(-3px); border-color: rgba(124,58,237,0.45); box-shadow: var(--shadow-md); }
.sem-card-q {
    font-family: var(--mono); font-size: 13px; color: var(--purple);
    background: #fff; border: 1px solid rgba(124,58,237,0.20);
    padding: 8px 11px; border-radius: 7px;
}
.sem-card-arrow { text-align: center; color: var(--muted-dim); font-size: 18px; margin: 8px 0; }
.sem-card-result { font-size: 14px; color: var(--muted); line-height: 1.5; }
.sem-card-result strong { color: var(--text); font-weight: 600; }
.sem-bullets {
    list-style: none; padding: 0; margin: 32px auto 0;
    display: flex; flex-direction: column; gap: 10px;
    max-width: 620px; text-align: left; color: var(--muted); font-size: 14.5px; line-height: 1.6;
}
.sem-bullets strong { color: var(--text); }
.sem-bullets li {
    display: grid; grid-template-columns: 18px 1fr; column-gap: 12px; align-items: start;
}
.sem-bullets li::before { content: '✓'; color: var(--green); font-weight: 700; grid-column: 1; }
@media (max-width: 900px) { .sem-cards { grid-template-columns: 1fr; } }
