/* ============================================================
   Skryx — landing page styles
   Dark, Linear/Vercel-flavoured. Hand-written for performance.
   ============================================================ */

:root {
    --bg: #0a0a0f;
    --bg-soft: #101018;
    --card: rgba(255, 255, 255, 0.025);
    --card-hover: rgba(255, 255, 255, 0.045);
    --border: rgba(255, 255, 255, 0.07);
    --border-bright: rgba(59, 130, 246, 0.55);
    --text: #ffffff;
    --muted: #a1a1aa;
    --muted-dim: #71717a;
    --blue: #3b82f6;
    --purple: #8b5cf6;
    --green: #22c55e;
    --red: #f87171;
    --radius: 16px;
    --maxw: 1140px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

* { 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(59, 130, 246, 0.35); color: #fff; }

.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; }

section { position: relative; padding: 96px 0; }
.section-soft { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.012), transparent); }

.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;
}
.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 {
    background: linear-gradient(110deg, #fff 0%, #93c5fd 38%, #8b5cf6 72%, #fff 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: linear-gradient(180deg, #4f8df9, var(--blue));
    color: #fff; box-shadow: 0 8px 30px -8px rgba(59,130,246,0.7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px rgba(59,130,246,0.9); }
.btn-ghost { background: rgba(255,255,255,0.04); border-color: var(--border); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.09); transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ---------- Navbar ---------- */
.nav {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(14px); background: rgba(10,10,15,0.72);
    border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
/* Logo — the brand PNG is dark-on-white, so it sits on a light chip. */
.logo { display: inline-flex; align-items: center; background: #fff; border-radius: 8px; padding: 5px 9px; }
.logo img { height: 18px; width: auto; display: block; }
.logo-lg { padding: 6px 11px; border-radius: 9px; }
.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: #fff; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 110px 0 90px; overflow: hidden; }
#particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-glow {
    position: absolute; z-index: 0; border-radius: 50%; filter: blur(120px); opacity: 0.5;
    pointer-events: none;
}
.hero-glow.g1 { width: 540px; height: 540px; background: #2563eb; top: -180px; left: 25%; transform: translateX(-50%); }
.hero-glow.g2 { width: 420px; height: 420px; background: #7c3aed; top: 80px; right: -120px; opacity: 0.35; }

/* 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: rgba(255,255,255,0.04); border: 1px solid var(--border);
    padding: 6px 14px; border-radius: 999px; margin-bottom: 24px;
}
.hero-badge .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.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;
}
.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(59,130,246,0.45), rgba(99,102,241,0.20) 45%, transparent 70%);
    filter: blur(40px); z-index: 0; pointer-events: none;
    transition: opacity .35s ease; opacity: 0.85;
}
.hero-image picture { position: relative; z-index: 1; display: block; }
.hero-image img {
    width: 100%; height: auto; display: block; border-radius: 20px;
    box-shadow: 0 28px 80px -28px rgba(59,130,246,0.5), 0 0 0 1px rgba(255,255,255,0.04);
}
.hero-image:hover { transform: scale(1.02); }
.hero-image:hover .hero-image-glow { opacity: 1.1; }
@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) { .hero-image { animation: none; } }

/* ---------- Generic card ---------- */
.card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    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: #93c5fd;
    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: 0 20px 50px -20px rgba(59,130,246,0.45);
}

/* ---------- 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: #14141d; border: 1px solid var(--border); border-radius: 14px;
    padding: 4px 4px 4px 18px;
}
.demo-bar:focus-within { border-color: var(--border-bright); box-shadow: 0 0 0 4px rgba(59,130,246,0.12); }
.demo-bar svg { flex: none; color: var(--muted); }
.demo-input {
    flex: 1; background: none; border: 0; color: #fff; 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: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.3);
    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: rgba(59,130,246,0.07); border: 1px solid rgba(59,130,246,0.22);
    border-radius: 10px; color: var(--muted); 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: #fff; 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(59,130,246,0.4); border-radius: 999px;
}
.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: var(--card); border: 1px solid var(--border); border-radius: 12px;
    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; }
.product .p-title { font-size: 14px; font-weight: 600; line-height: 1.3; }
.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; }
.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(59,130,246,0.32); color: #fff; border-radius: 3px; padding: 0 2px; }

/* ---------- Speed comparison ---------- */
.bignum {
    font-size: clamp(72px, 13vw, 150px); font-weight: 700;
    letter-spacing: -0.05em; line-height: 1;
    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; }
.speed-track { height: 12px; background: rgba(255,255,255,0.05); 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, #22c55e, #4ade80); }
.speed-fill.them { background: linear-gradient(90deg, #475569, #64748b); }
.speed-fill.bad { background: linear-gradient(90deg, #7f1d1d, #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);
    user-select: none; touch-action: none;
}
.cmp-side { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 40px; }
.cmp-rival { background: linear-gradient(135deg, #1c1015, #2a0e14); }
.cmp-skryx { background: linear-gradient(135deg, #0c1830, #101a3a); clip-path: inset(0 0 0 50%); }
.cmp-card { text-align: center; }
.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: #60a5fa; }
.cmp-card .price { font-size: clamp(34px, 5vw, 52px); font-weight: 700; letter-spacing: -0.03em; margin: 8px 0; }
.cmp-card .note { font-size: 14px; color: var(--muted); }
.cmp-handle {
    position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: rgba(255,255,255,0.6);
    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: #0a0a0f;
    display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700;
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}
.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: rgba(59,130,246,0.12); border: 1px solid rgba(59,130,246,0.25); margin-bottom: 16px;
}
.feat-icon svg { color: #60a5fa; }
.card h3 { font-size: 17px; font-weight: 650; letter-spacing: -0.02em; }
.card p { color: var(--muted); font-size: 14px; margin-top: 7px; }

/* ---------- Code block ---------- */
.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: #12121a; border-color: var(--border); color: #fff; }
.code-panel {
    position: relative; background: #12121a; border: 1px solid var(--border);
    border-radius: 0 12px 12px 12px; padding: 20px 22px; overflow: auto;
}
.code-panel pre { margin: 0; }
.code-panel code { font-family: var(--mono); font-size: 13px; line-height: 1.7; color: #e4e4e7; }
.copy-btn {
    position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,0.06);
    border: 1px solid var(--border); color: var(--muted); font-size: 12px;
    padding: 6px 12px; border-radius: 8px;
}
.copy-btn:hover { color: #fff; background: rgba(255,255,255,0.12); }
.tok-key { color: #60a5fa; } .tok-str { color: #86efac; } .tok-fn { color: #c4b5fd; } .tok-cmt { color: #52525b; }

/* ---------- 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: #fff; font-size: 16px; font-family: var(--mono); }
input[type=range] {
    width: 100%; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 999px;
    background: rgba(255,255,255,0.1); 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 0 14px rgba(59,130,246,0.8);
}
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; }
.calc-row.them .pval { color: var(--red); text-decoration: line-through; }
.calc-row.us { padding: 14px 16px; background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.25); border-radius: 12px; }
.calc-row.us .pname { color: #fff; 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;
}
.arch-node .t { font-weight: 650; font-size: 14px; }
.arch-node .d { color: var(--muted-dim); font-size: 12px; margin-top: 3px; }
.arch-node.hot { border-color: var(--border-bright); box-shadow: 0 0 30px -8px rgba(59,130,246,0.5); }
.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: #fff;
    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(59,130,246,0.16), 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; }

/* ---------- 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: #14141d; border: 1px solid var(--border); border-radius: 10px;
    color: #fff; font-size: 15px; padding: 13px 16px; outline: none;
}
.wait-form input:focus { border-color: var(--border-bright); }
.wait-msg { margin-top: 14px; font-size: 14px; min-height: 20px; }
.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: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.4);
    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; }
.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: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 999px;
    padding: 7px 16px; font-size: 13px; color: var(--muted);
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 60px 0 36px; }
.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: #fff; }
.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: 70px 0; }
    .nav-links { display: none; }
    .nav-links.open {
        display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column;
        background: #101018; border-bottom: 1px solid var(--border); padding: 18px 24px; gap: 16px;
    }
    .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: 56px 0; }
    .hero { padding: 70px 0 60px; }
    .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; }
}

/* ---------- 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: rgba(255,255,255,0.025); border: 1px solid var(--border);
    border-radius: 14px; padding: 22px;
    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: 0 20px 50px -20px rgba(99,102,241,0.35); }
.coach-card-pri {
    background: linear-gradient(160deg, rgba(59,130,246,0.10), rgba(139,92,246,0.06));
    border-color: rgba(59,130,246,0.32);
}
.coach-eyebrow { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.coach-title { font-size: 16px; font-weight: 600; color: #fff; 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); border-radius: 8px; color: var(--muted);
    background: rgba(255,255,255,0.03);
}
.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: #fff; }
@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: rgba(255,255,255,0.05); 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: #fff; border-color: var(--border-bright); background: rgba(59,130,246,0.10); }

.aiqu-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center;
    margin-top: 40px;
}
.aiqu-flow {
    background: rgba(255,255,255,0.025); border: 1px solid var(--border);
    border-radius: 16px; padding: 28px; text-align: left;
}
.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, #3b82f6, #8b5cf6);
    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: #fff; font-size: 15px; line-height: 1.45; }
.aiqu-body code { background: rgba(59,130,246,0.12); padding: 2px 6px; border-radius: 5px; color: #93c5fd; font-size: 14px; }
.aiqu-bullets {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 14px;
    color: var(--muted); font-size: 15px;
}
.aiqu-bullets strong { color: #fff; }
.aiqu-bullets li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.aiqu-bullets li::before {
    content: '✓'; color: var(--green); font-weight: 700; flex: none; margin-top: 1px;
}
.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: rgba(255,255,255,0.025);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: inherit; text-decoration: none;
    transition: transform .2s, border-color .2s, background .2s;
}
.dev-card:hover { transform: translateY(-3px); border-color: var(--border-bright); background: rgba(255,255,255,0.04); }
.dev-emoji { font-size: 22px; margin-bottom: 12px; }
.dev-card h3 { font-size: 16px; font-weight: 700; color: #fff; 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: rgba(59,130,246,0.12); color: #93c5fd; 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(139,92,246,0.07), rgba(59,130,246,0.04));
    border: 1px solid rgba(139,92,246,0.25);
    border-radius: 14px;
    padding: 22px;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.sem-card:hover { transform: translateY(-3px); border-color: rgba(139,92,246,0.55); box-shadow: 0 20px 50px -20px rgba(139,92,246,0.4); }
.sem-card-q {
    font-family: var(--mono); font-size: 13px; color: #c4b5fd;
    background: rgba(0,0,0,0.25); border: 1px solid rgba(139,92,246,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: #fff; font-weight: 600; }
.sem-bullets {
    list-style: none; padding: 0; margin: 32px auto 0;
    display: flex; flex-direction: column; gap: 10px;
    max-width: 580px; text-align: left; color: var(--muted); font-size: 14.5px;
}
.sem-bullets strong { color: #fff; }
.sem-bullets li::before { content: '✓ '; color: var(--green); font-weight: 700; }
@media (max-width: 900px) { .sem-cards { grid-template-columns: 1fr; } }
