:root {
  --bg: #070a14; --bg2: #0b1020; --panel: #0e1426; --card: rgba(255, 255, 255, .035); --card-hi: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .08); --line-hi: rgba(255, 255, 255, .16); --text: #e8ebf4; --muted: #95a0b8; --dim: #64708a;
  --brand: #6366f1; --brand2: #06b6d4; --violet: #a78bfa;
  --gpt: #10a37f; --claude: #d97757; --gemini: #4f8cf7; --grok: #a1a1aa; --cursor: #f54e00;
  --grad: linear-gradient(135deg, #6366f1 0%, #3b82f6 50%, #06b6d4 100%);
  --mono: ui-monospace, "Cascadia Code", "JetBrains Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: Inter, "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(99, 102, 241, .45); }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.hero > *, .split > *, .bento > *, .models > *, .grid4 > *, .stats > *, .explore > *, .price-grid > *, .calc-layout > * { min-width: 0; }
img, video { max-width: 100%; height: auto; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Background: aurora glow + faint grid */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%); opacity: .5; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; animation: drift 18s ease-in-out infinite alternate; }
.blob.a { width: 620px; height: 620px; background: #4f46e5; top: -260px; left: -120px; }
.blob.b { width: 560px; height: 560px; background: #0891b2; top: -200px; right: -160px; animation-delay: -6s; }
.blob.c { width: 480px; height: 480px; background: #7c3aed; top: 520px; left: 40%; opacity: .22; animation-delay: -12s; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.08); } }

/* Nav */
nav { position: sticky; top: 0; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
nav.scrolled { background: rgba(7, 10, 20, .72); backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line); }
nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.brand svg { width: 32px; height: 32px; filter: drop-shadow(0 4px 14px rgba(79, 70, 229, .5)); }
.navlinks { display: flex; gap: 26px; font-size: 14.5px; color: var(--muted); }
.navlinks a:hover { color: var(--text); }
.navright { margin-left: auto; display: flex; gap: 10px; align-items: center; }
@media (max-width: 1180px) { .navlinks { display: none; } }

.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 12px; padding: 12px 20px; font-weight: 600; font-size: 15px; transition: transform .15s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn .ic { width: 18px; height: 18px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 30px -8px rgba(79, 70, 229, .7), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-primary:hover { box-shadow: 0 12px 40px -8px rgba(6, 182, 212, .7), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-ghost { background: var(--card); border: 1px solid var(--line-hi); color: var(--text); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: var(--card-hi); }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; }

/* Hero */
.hero { padding: 72px 0 40px; display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 1000px) { .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 48px; } }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--card); border: 1px solid var(--line-hi); font-size: 13.5px; color: var(--muted); }
.badge b { background: var(--grad); color: #fff; font-size: 11.5px; padding: 3px 9px; border-radius: 999px; letter-spacing: .03em; }
.badge:hover { border-color: rgba(99, 102, 241, .6); color: var(--text); }
@media (max-width: 600px) {
  .badge { font-size: 12.5px; max-width: 100%; } .badge > svg { display: none; }
  .navright .btn-ghost { display: none; }
  .hero p.sub, .lead { font-size: 16.5px; }
  .stat { padding: 18px; } .stat b { font-size: 28px; }
  .cmp-row { grid-template-columns: 1fr; gap: 4px; padding: 14px 18px; }
  .cmp-row.h { display: none; }
}
h1 { font-size: clamp(40px, 5.6vw, 68px); line-height: 1.04; letter-spacing: -.035em; margin: 22px 0 22px; font-weight: 750; }
.grad-text { background: linear-gradient(120deg, #a5b4fc 0%, #818cf8 25%, #38bdf8 60%, #22d3ee 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { font-size: 19px; color: var(--muted); margin: 0 0 32px; max-width: 560px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.providers { display: flex; gap: 22px; margin-top: 40px; align-items: center; flex-wrap: wrap; color: var(--dim); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
.prov { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.dot { width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 12px currentColor; background: currentColor; }

/* Chat mock */
.mock { position: relative; border-radius: 20px; background: linear-gradient(180deg, rgba(20, 27, 48, .9), rgba(12, 17, 32, .92)); border: 1px solid var(--line-hi); box-shadow: 0 40px 120px -30px rgba(79, 70, 229, .55), 0 0 0 1px rgba(255, 255, 255, .02) inset; overflow: hidden; backdrop-filter: blur(12px); }
.mock::before { content: ""; position: absolute; inset: -1px; border-radius: 20px; padding: 1px; background: linear-gradient(140deg, rgba(129, 140, 248, .7), transparent 35%, transparent 65%, rgba(34, 211, 238, .6)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3350; }
.mock-bar .url { margin-left: 12px; flex: 1; background: rgba(255, 255, 255, .04); border-radius: 8px; padding: 5px 12px; font-size: 12.5px; color: var(--dim); display: flex; gap: 6px; align-items: center; }
.mock-bar .url .ic { width: 13px; height: 13px; color: #34d399; }
.mock-body { display: grid; grid-template-columns: 170px 1fr; min-height: 400px; }
@media (max-width: 560px) { .mock-body { grid-template-columns: 1fr; } .mock-side { display: none; } }
.mock-side { border-right: 1px solid var(--line); padding: 14px 10px; font-size: 12.5px; color: var(--muted); }
.mock-side .new { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; background: rgba(255, 255, 255, .05); color: var(--text); font-weight: 600; margin-bottom: 14px; }
.mock-side .new svg { width: 20px; height: 20px; }
.mock-side .lbl { font-size: 11px; color: var(--dim); padding: 0 10px 6px; }
.mock-side .item { padding: 7px 10px; border-radius: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-side .item.on { background: rgba(99, 102, 241, .14); color: var(--text); }
.mock-main { display: flex; flex-direction: column; padding: 14px 18px 16px; min-width: 0; }
.mock-head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.picker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 9px; background: rgba(255, 255, 255, .05); font-weight: 600; }
.picker .dot { width: 8px; height: 8px; transition: color .4s; }
.mock-msgs { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 18px 0 14px; font-size: 14px; }
.msg-user { align-self: flex-end; background: rgba(99, 102, 241, .18); border: 1px solid rgba(99, 102, 241, .28); padding: 9px 14px; border-radius: 16px 16px 4px 16px; max-width: 85%; }
.msg-ai { display: flex; gap: 10px; align-items: flex-start; }
.msg-ai svg.av { width: 26px; height: 26px; flex: none; margin-top: 2px; }
.msg-ai .txt { color: #cfd5e4; white-space: pre-line; min-height: 120px; }
.msg-ai .txt b { color: #fff; }
.think { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--violet); margin-bottom: 6px; }
.think i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.caret { display: inline-block; width: 7px; height: 15px; background: #818cf8; vertical-align: -2px; margin-left: 2px; animation: pulse .8s infinite; }
.composer { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-hi); border-radius: 14px; padding: 10px 12px; color: var(--dim); font-size: 13.5px; background: rgba(0, 0, 0, .2); }
.composer .send { margin-left: auto; width: 30px; height: 30px; border-radius: 9px; background: var(--grad); display: grid; place-items: center; color: #fff; }
.composer .send .ic { width: 16px; height: 16px; }
.float { position: absolute; padding: 9px 13px; border-radius: 12px; font-size: 12.5px; background: rgba(14, 20, 38, .92); border: 1px solid var(--line-hi); box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .6); display: flex; align-items: center; gap: 8px; backdrop-filter: blur(10px); animation: bob 6s ease-in-out infinite; }
.float .ic { width: 16px; height: 16px; }
.float.f1 { right: -18px; top: 70px; color: #67e8f9; }
.float.f2 { left: -24px; bottom: 64px; color: #a5b4fc; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (max-width: 1000px) { .float { display: none; } }
.hero-visual { position: relative; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin: 56px 0 0; }
.stat { background: rgba(9, 13, 26, .85); padding: 24px 26px; }
.stat b { display: block; font-size: 34px; letter-spacing: -.03em; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Sections */
section { padding: 110px 0 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #7dd3fc; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--grad); border-radius: 2px; }
h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.1; letter-spacing: -.03em; margin: 14px 0 16px; font-weight: 720; }
.lead { color: var(--muted); font-size: 18px; max-width: 680px; margin: 0 0 48px; }
.center { text-align: center; } .center .lead { margin-left: auto; margin-right: auto; }

.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; transition: border-color .25s, background .25s, transform .25s; overflow: hidden; }
.card:hover { border-color: var(--line-hi); background: var(--card-hi); }
.card h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.ibox { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; color: #c7d2fe; background: linear-gradient(135deg, rgba(99, 102, 241, .22), rgba(6, 182, 212, .14)); border: 1px solid rgba(129, 140, 248, .25); }
.spot::after { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--x, 50%) var(--y, 0%), rgba(99, 102, 241, .14), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.spot:hover::after { opacity: 1; }

/* Flow diagram */
.flow { position: relative; height: 420px; border-radius: 24px; border: 1px solid var(--line); background: radial-gradient(ellipse at center, rgba(79, 70, 229, .12), transparent 60%), rgba(255, 255, 255, .015); }
.flow svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.flow .ln { fill: none; stroke: url(#lg); stroke-width: 1.6; opacity: .55; }
.flow .pk { fill: none; stroke: #e0f2fe; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 10 400; animation: flowdash 3.2s linear infinite; filter: drop-shadow(0 0 4px #22d3ee); }
@keyframes flowdash { from { stroke-dashoffset: 410; } to { stroke-dashoffset: 0; } }
.node { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 14px; background: rgba(13, 19, 36, .95); border: 1px solid var(--line-hi); font-size: 14px; font-weight: 600; white-space: nowrap; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .7); }
.node small { display: block; font-weight: 500; color: var(--dim); font-size: 12px; }
.node .ic { width: 18px; height: 18px; color: #a5b4fc; }
.core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 170px; height: 170px; border-radius: 40px; display: grid; place-items: center; text-align: center; background: linear-gradient(160deg, rgba(30, 38, 72, .95), rgba(12, 18, 36, .95)); border: 1px solid rgba(129, 140, 248, .45); box-shadow: 0 0 80px -10px rgba(79, 70, 229, .65), inset 0 1px 0 rgba(255, 255, 255, .08); }
.core svg { width: 64px; height: 64px; }
.core b { display: block; margin-top: 8px; font-size: 16px; }
.core small { color: var(--muted); font-size: 12px; }
.core::before { content: ""; position: absolute; inset: -14px; border-radius: 50px; border: 1px dashed rgba(129, 140, 248, .35); animation: spin 30s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.flow-mobile { display: none; }
@media (max-width: 860px) {
  .flow { display: none; }
  .flow-mobile { display: grid; gap: 12px; }
  .flow-mobile .card { padding: 18px 20px; }
}

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento .card { grid-column: span 2; }
.bento .wide { grid-column: span 3; }
.bento .tall { grid-row: span 2; }
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, 1fr); } .bento .card, .bento .wide { grid-column: span 1; } .bento .tall { grid-row: auto; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } }
.mini { margin-top: 20px; border-radius: 12px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); padding: 14px 16px; font: 13px/1.7 var(--mono); color: #cbd5e1; overflow-x: auto; white-space: pre; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { font-size: 12.5px; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--muted); }
.chip.c-gpt { color: #6ee7b7; border-color: rgba(16, 163, 127, .4); }
.chip.c-cl { color: #fdba74; border-color: rgba(217, 119, 87, .45); }
.chip.c-gm { color: #93c5fd; border-color: rgba(79, 140, 247, .45); }
.chip.c-gk { color: #e4e4e7; border-color: rgba(161, 161, 170, .45); }

/* Models */
.models { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 700px) { .models { grid-template-columns: 1fr; } }
.model { padding: 0; display: flex; flex-direction: column; height: 100%; min-width: 0; }
.model-auto { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
.model-auto .model-top { border-bottom: 0; border-right: 1px solid var(--line); min-width: 220px; }
.model-auto .tiers { display: flex; align-items: center; flex: 1; padding: 12px 16px; }
@media (max-width: 700px) {
  .model-auto { flex-direction: column; }
  .model-auto .model-top { border-right: 0; border-bottom: 1px solid var(--line); min-width: 0; }
}
.model-top { padding: 20px 20px 16px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); position: relative; }
.model-top::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c); }
.model-top::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 90px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 18%, transparent), transparent); pointer-events: none; }
.model-logo { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 22%, transparent); color: var(--c); font-weight: 800; font-size: 18px; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); flex: none; }
.model-top h3 { margin: 0; }
.model-top small { color: var(--muted); font-size: 13px; }
.tiers { list-style: none; margin: 0; padding: 8px 10px 12px; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.tiers li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; font-size: 14.5px; min-height: 42px; box-sizing: border-box; }
.tiers li:hover { background: rgba(255, 255, 255, .04); }
.tier-name { color: var(--text); font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tier-name i { font-style: normal; color: var(--dim); font-weight: 500; font-size: 13px; }
.tiers code { font: 12px var(--mono); color: var(--muted); background: rgba(255, 255, 255, .05); padding: 3px 8px; border-radius: 6px; cursor: pointer; border: 1px solid transparent; transition: .2s; flex: none; white-space: nowrap; }
.tiers code:hover { color: var(--text); border-color: var(--line-hi); }
.tiers code.ok { color: #6ee7b7; border-color: rgba(16, 185, 129, .5); }
.note { margin-top: 22px; color: var(--muted); font-size: 15px; display: flex; gap: 10px; align-items: flex-start; }
.note .ic { color: #7dd3fc; margin-top: 2px; width: 18px; height: 18px; }

/* Split + code window */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.split.rev > :first-child { order: 2; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 36px; } .split.rev > :first-child { order: 0; } }
.checks { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: #cfd5e4; }
.checks li .ic { width: 20px; height: 20px; color: #22d3ee; margin-top: 2px; }
.window { border-radius: 18px; background: #0a0f1d; border: 1px solid var(--line-hi); box-shadow: 0 30px 90px -30px rgba(6, 182, 212, .35); overflow: hidden; }
.tabs { display: flex; gap: 4px; padding: 10px 12px 0; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.tabs button { background: none; border: 0; color: var(--dim); font-family: inherit; font-size: 13px; font-weight: 600; padding: 9px 14px; cursor: pointer; border-bottom: 2px solid transparent; }
.tabs button.on { color: var(--text); border-bottom-color: #818cf8; }
.tabs .copy { margin-left: auto; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.tabs .copy .ic { width: 15px; height: 15px; }
pre.code { margin: 0; padding: 22px 24px; font: 13.5px/1.75 var(--mono); color: #cbd5e1; overflow-x: auto; display: none; }
pre.code.on { display: block; }
.k { color: #c4b5fd; } .s { color: #86efac; } .c { color: #5b6784; } .f { color: #7dd3fc; } .n { color: #fda4af; }

/* Work timeline */
.steps { display: grid; gap: 10px; }
.step { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); font-size: 14.5px; }
.step .num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: rgba(34, 211, 238, .12); color: #67e8f9; border: 1px solid rgba(34, 211, 238, .35); flex: none; }
.step.done .num { background: rgba(16, 185, 129, .15); color: #6ee7b7; border-color: rgba(16, 185, 129, .4); }
.step small { color: var(--dim); margin-left: auto; font-family: var(--mono); font-size: 12px; }
.files { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.file { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-hi); font-size: 13.5px; }
.file i { width: 30px; height: 34px; border-radius: 6px; display: grid; place-items: center; font: 700 10px var(--mono); font-style: normal; color: #fff; }

/* Relayz Code mock */
.vsc { border-radius: 16px; overflow: hidden; border: 1px solid var(--line-hi); background: #181818; box-shadow: 0 30px 90px -30px rgba(99, 102, 241, .45); font-size: 13px; }
.vsc-top { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #1f1f1f; border-bottom: 1px solid #2b2b2b; color: #cccccc; font-weight: 600; }
.vsc-top svg { width: 18px; height: 18px; }
.vsc-top .mode { margin-left: auto; font-weight: 500; font-size: 12px; color: #9da5b4; border: 1px solid #333; padding: 2px 8px; border-radius: 6px; }
.vsc-body { padding: 16px; display: grid; gap: 12px; color: #cccccc; }
.vsc .you { background: #2a2d3e; padding: 9px 12px; border-radius: 10px; justify-self: end; max-width: 85%; }
.explored { color: #8b93a7; font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.explored .ic { width: 14px; height: 14px; }
.diff { border: 1px solid #333; border-radius: 10px; overflow: hidden; }
.diff-h { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: #222; font: 12.5px var(--mono); color: #9cdcfe; }
.diff-h span { color: #8b93a7; font-family: inherit; }
.diff pre { margin: 0; font: 12.5px/1.65 var(--mono); padding: 8px 0; }
.diff pre div { padding: 0 12px; }
.del { background: rgba(248, 81, 73, .14); color: #ffa198; }
.add { background: rgba(46, 160, 67, .16); color: #7ee787; }
.diff-a { display: flex; gap: 8px; padding: 8px 12px; border-top: 1px solid #2b2b2b; background: #1c1c1c; }
.diff-a span { padding: 4px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.diff-a .ap { background: #0e639c; color: #fff; }
.diff-a .rj { background: #313131; color: #ccc; }
.dl-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.ver { color: var(--muted); font-size: 14px; }
.install { margin-top: 30px; display: grid; gap: 10px; counter-reset: s; }
.install div { display: flex; gap: 14px; color: var(--muted); font-size: 14.5px; }
.install div::before { counter-increment: s; content: counter(s); width: 24px; height: 24px; flex: none; border-radius: 7px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #c7d2fe; background: rgba(99, 102, 241, .18); margin-top: 1px; }
.install b { color: var(--text); font-weight: 600; }
code.inl { font: 13px var(--mono); background: rgba(255, 255, 255, .06); padding: 1px 6px; border-radius: 5px; color: #e2e8f0; }

/* Security */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .grid4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid4 { grid-template-columns: 1fr; } }

/* Compare */
.cmp { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--card); }
.cmp-row { display: grid; grid-template-columns: 1.4fr 1fr; padding: 15px 24px; border-bottom: 1px solid var(--line); font-size: 15px; align-items: center; gap: 16px; }
.cmp-row:last-child { border-bottom: 0; }
.cmp-row.h { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); background: rgba(255, 255, 255, .02); }
.yes { color: #6ee7b7; display: flex; align-items: center; gap: 8px; }
.yes .ic { width: 18px; height: 18px; }
.soon { color: var(--muted); display: flex; align-items: center; gap: 8px; }
.soon .ic { width: 18px; height: 18px; color: var(--dim); }

/* FAQ */
.faq-shell { max-width: 880px; margin: 0 auto; display: grid; gap: 28px; }
.faq-toolbar { display: grid; gap: 14px; position: sticky; top: 72px; z-index: 20; padding: 14px; border-radius: 18px; border: 1px solid var(--line); background: rgba(10, 14, 28, .92); backdrop-filter: blur(12px); }
.faq-search { position: relative; display: flex; align-items: center; }
.faq-search .ic { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--dim); pointer-events: none; }
.faq-search input {
  width: 100%; box-sizing: border-box; padding: 13px 42px 13px 44px; border-radius: 12px;
  border: 1px solid var(--line-hi); background: rgba(0,0,0,.35); color: var(--text);
  font: 500 15px inherit; outline: none; color-scheme: dark;
}
.faq-search input:focus { border-color: #818cf8; }
.faq-search input::placeholder { color: var(--dim); }
.faq-clear {
  position: absolute; right: 10px; width: 28px; height: 28px; border: 0; border-radius: 8px;
  background: rgba(255,255,255,.06); color: var(--muted); font-size: 18px; cursor: pointer; line-height: 1;
}
.faq-clear:hover { color: var(--text); background: rgba(255,255,255,.1); }
.faq-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.faq-tab {
  appearance: none; border: 1px solid var(--line-hi); background: rgba(0,0,0,.25); color: var(--muted);
  font: 600 13px inherit; padding: 8px 12px; border-radius: 999px; cursor: pointer; transition: .15s;
}
.faq-tab:hover { color: var(--text); border-color: #818cf8; }
.faq-tab.on { color: #fff; background: rgba(99,102,241,.3); border-color: rgba(129,140,248,.65); }
.faq-group { display: grid; gap: 12px; }
.faq-group[hidden] { display: none !important; }
.faq-h {
  margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--dim);
}
.faq { display: grid; gap: 10px; }
.faq-empty { margin: 0; text-align: center; color: var(--muted); padding: 28px 16px; border: 1px dashed var(--line); border-radius: 16px; }
.faq-empty[hidden] { display: none !important; }
.faq details, details[data-faq] {
  border: 1px solid var(--line); border-radius: 16px; background: var(--card);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.faq details[hidden] { display: none !important; }
.faq details[open], details[data-faq][open] {
  border-color: rgba(129, 140, 248, .45); background: var(--card-hi);
  box-shadow: 0 18px 40px -28px rgba(79, 70, 229, .55);
}
.faq summary, details[data-faq] summary {
  list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 600; font-size: 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; line-height: 1.35;
}
.faq summary::-webkit-details-marker, details[data-faq] summary::-webkit-details-marker { display: none; }
.faq summary::after, details[data-faq] summary::after {
  content: "+"; flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  font-size: 20px; font-weight: 400; color: var(--muted); background: rgba(255,255,255,.04);
  transition: transform .25s, background .2s, color .2s;
}
.faq details[open] summary::after, details[data-faq][open] summary::after {
  transform: rotate(45deg); color: #c7d2fe; background: rgba(99,102,241,.2);
}
.faq details p, details[data-faq] p {
  margin: 0; padding: 0 20px 20px; color: var(--muted); font-size: 15px; line-height: 1.6;
}
.faq details p code, details[data-faq] p code {
  font: 12.5px var(--mono); padding: 2px 6px; border-radius: 6px;
  background: rgba(255,255,255,.06); color: #e2e8f0;
}
.faq details a, details[data-faq] a { color: #93c5fd; }
.faq details a:hover, details[data-faq] a:hover { text-decoration: underline; }
.faq-more {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
  padding: 22px 24px; border-radius: 18px; border: 1px solid rgba(129,140,248,.35);
  background: linear-gradient(135deg, rgba(99,102,241,.16), rgba(6,182,212,.08));
}
.faq-more h3 { margin: 0 0 6px; font-size: 18px; }
.faq-more p { margin: 0; color: var(--muted); font-size: 14.5px; }
@media (max-width: 640px) {
  .faq-toolbar { top: 64px; padding: 12px; }
  .faq summary, details[data-faq] summary { font-size: 15px; padding: 16px; }
}

/* Final CTA + footer */
.final { margin-top: 120px; position: relative; border-radius: 28px; padding: 72px 32px; text-align: center; overflow: hidden; border: 1px solid rgba(129, 140, 248, .35); background: radial-gradient(ellipse at top, rgba(99, 102, 241, .35), transparent 60%), radial-gradient(ellipse at bottom right, rgba(6, 182, 212, .3), transparent 55%), #0b1022; }
.final h2 { margin-top: 0; }
.final p { color: #c3cbe0; font-size: 18px; margin: 0 auto 30px; max-width: 560px; }
.final .cta-row { justify-content: center; }
footer { margin-top: 80px; border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
footer .links { display: flex; gap: 24px; flex-wrap: wrap; }
footer .links a { color: var(--muted); }
footer .links a:hover { color: var(--text); }

/* Reveal on scroll */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}

/* ---- Multi-page additions ---- */
.navlinks a[aria-current] { color: var(--text); position: relative; }
.navlinks a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; border-radius: 2px; background: var(--grad); }
.menu-btn { display: none; background: var(--card); border: 1px solid var(--line-hi); color: var(--text); width: 40px; height: 40px; border-radius: 10px; cursor: pointer; place-items: center; }
.menu-btn .ic { width: 20px; height: 20px; }
.mobile-menu { display: none; }
@media (max-width: 1180px) {
  .menu-btn { display: grid; }
  .mobile-menu.open { display: grid; gap: 4px; padding: 10px clamp(12px, 4vw, 18px) 18px; border-top: 1px solid var(--line); background: rgba(7, 10, 20, .96); backdrop-filter: blur(14px); max-height: min(70vh, 520px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .mobile-menu a { padding: 12px 14px; border-radius: 10px; color: var(--muted); font-weight: 500; }
  .mobile-menu a[aria-current] { color: var(--text); background: var(--card-hi); }
  nav:has(.mobile-menu.open) { background: rgba(7, 10, 20, .96); }
}

.page-hero { padding: 84px 0 8px; text-align: center; }
.page-hero h1 { font-size: clamp(38px, 5vw, 60px); margin: 16px 0 18px; }
.page-hero .lead { margin: 0 auto 30px; max-width: 720px; }
.page-hero .cta-row { justify-content: center; }
.crumbs { font-size: 13.5px; color: var(--dim); }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--text); }
section.tight { padding-top: 72px; }

.explore { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .explore { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .explore { grid-template-columns: 1fr; } }
.explore > * { min-width: 0; }
.explore .card { display: flex; flex-direction: column; }
.explore .card p { flex: 1; }
.more { margin-top: 18px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; color: #93c5fd; }
.more .ic { width: 16px; height: 16px; transition: transform .2s; }
.card:hover .more .ic { transform: translateX(4px); }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 960px) { .grid3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid3, .grid2 { grid-template-columns: 1fr; } }
.grid3 > *, .grid2 > * { min-width: 0; }

.tbl { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--card); }
.tbl table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); background: rgba(255, 255, 255, .02); padding: 14px 20px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: top; color: #cfd5e4; }
.tbl td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl-scroll { overflow-x: auto; }
@media (max-width: 640px) { .tbl td:first-child { white-space: normal; } }

.logos { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.logos span { padding: 10px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: #cfd5e4; font-weight: 600; font-size: 14.5px; }
.kbd { font: 12px var(--mono); padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line-hi); border-bottom-width: 2px; color: #e2e8f0; }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* ---- Pricing & compare ---- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 960px) { .price-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; } }
.price-grid > * { min-width: 0; }
.price {
  position: relative; display: flex; flex-direction: column;
  padding: 28px 26px; border-radius: 20px; background: var(--card);
  border: 1px solid var(--line); transition: border-color .25s, transform .25s, background .25s;
}
.price:hover { border-color: var(--line-hi); background: var(--card-hi); }
.price.featured {
  border-color: rgba(129, 140, 248, .55);
  background: linear-gradient(180deg, rgba(99, 102, 241, .16), rgba(14, 20, 38, .5));
  box-shadow: 0 30px 80px -40px rgba(79, 70, 229, .7);
}
.price .badge-top {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px; color: #fff; background: var(--grad);
  white-space: nowrap;
}
.price h3 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.02em; }
.price .who { color: var(--muted); font-size: 14.5px; margin: 0 0 20px; min-height: 44px; }
.price .amount { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.price .amount b { font-size: 40px; letter-spacing: -.04em; line-height: 1; font-weight: 750; }
.price .amount span { color: var(--muted); font-size: 14px; }
.price .amount .was { color: var(--dim); font-size: 18px; font-weight: 500; text-decoration: line-through; margin-left: 4px; }
.price .subprice { color: var(--dim); font-size: 13.5px; margin: 0 0 22px; }
.price .offer {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 6px; color: #6ee7b7; background: rgba(52, 211, 153, .15); margin-right: 4px;
}
.price ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 11px; flex: 1; }
.price li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: #cfd5e4; }
.price li .ic { width: 18px; height: 18px; color: #22d3ee; margin-top: 2px; flex: none; }
.price .btn { width: 100%; justify-content: center; margin-top: auto; }

.stack { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 800px) { .stack { grid-template-columns: 1fr; } }
.stack .card h3 { display: flex; align-items: center; gap: 10px; }
.stack .card .tag {
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: 3px 8px; border-radius: 6px;
}
.stack .tag.ok { background: rgba(52, 211, 153, .15); color: #6ee7b7; }
.stack .tag.bad { background: rgba(248, 113, 113, .12); color: #fca5a5; }

.cmp-wide {
  overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  border: 1px solid var(--line); border-radius: 18px; background: var(--card);
  position: relative;
}
.cmp-wide::after {
  content: "Swipe to see all columns →"; position: sticky; left: 0; display: none;
  font-size: 12px; color: var(--dim); padding: 8px 14px 0; letter-spacing: .02em;
}
.cmp-wide table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 860px; }
.cmp-wide th, .cmp-wide td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.cmp-wide th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); background: rgba(255,255,255,.03); font-weight: 600; }
.cmp-wide th.hl { color: #c7d2fe; background: rgba(99, 102, 241, .12); }
.cmp-wide td.hl { background: rgba(99, 102, 241, .06); }
.cmp-wide tr:last-child td { border-bottom: 0; }
.cmp-wide td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
.cmp-wide .y { color: #6ee7b7; font-weight: 600; }
.cmp-wide .n { color: var(--dim); }
.cmp-wide .p { color: #fbbf24; }
.fine { color: var(--dim); font-size: 13px; margin-top: 14px; }

/* ---- Cost calculator ---- */
.calc { display: grid; gap: 20px; padding: 24px; border-radius: 22px; border: 1px solid var(--line); background: var(--card); overflow: visible; }
.calc .fine a { color: #93c5fd; }
.calc-controls { display: grid; gap: 20px; overflow: visible; }
.calc-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.calc-field { display: grid; gap: 6px; min-width: 120px; }
.calc-field.grow { flex: 1; min-width: 200px; }
.calc-field[hidden], .calc-relayz-wrap[hidden] { display: none !important; }
.calc-field > span:first-child { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--dim); }
.calc-field input {
  width: 100%; box-sizing: border-box; padding: 11px 14px; border-radius: 12px;
  border: 1px solid var(--line-hi); background: rgba(0,0,0,.35); color: var(--text);
  font: 600 15px inherit; outline: none; transition: border-color .2s;
  color-scheme: dark;
}
.calc-field input:focus { border-color: #818cf8; }
.calc-dd { position: relative; z-index: 1; }
.calc-dd.open { z-index: 80; }
.calc-dd-btn {
  width: 100%; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line-hi);
  background: rgba(0,0,0,.35); color: var(--text); font: 600 15px inherit; cursor: pointer; text-align: left;
}
.calc-dd-btn:hover, .calc-dd.open .calc-dd-btn { border-color: #818cf8; background: rgba(99,102,241,.12); }
.calc-dd-btn .ic { width: 16px; height: 16px; color: var(--dim); transform: rotate(90deg); flex: none; transition: transform .2s; }
.calc-dd.open .calc-dd-btn .ic { transform: rotate(-90deg); color: #a5b4fc; }
.calc-dd.open.drop-up .calc-dd-btn .ic { transform: rotate(90deg); }
.calc-dd-menu {
  position: absolute; z-index: 90; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 8px;
  list-style: none; border-radius: 14px; border: 1px solid rgba(148, 163, 184, .35);
  background: #0b1020; box-shadow: 0 28px 70px rgba(0,0,0,.85), 0 0 0 1px rgba(129,140,248,.18);
  max-height: min(280px, 50vh); overflow: auto; scrollbar-width: thin; scrollbar-color: #334155 transparent;
}
.calc-dd.drop-up .calc-dd-menu { top: auto; bottom: calc(100% + 6px); box-shadow: 0 -20px 60px rgba(0,0,0,.85), 0 0 0 1px rgba(129,140,248,.18); }
.calc-dd-menu[hidden] { display: none !important; }
.calc-dd-menu li {
  display: grid; gap: 3px; padding: 11px 12px; border-radius: 10px; cursor: pointer;
  color: #f1f5f9; transition: background .15s;
}
.calc-dd-menu li:hover, .calc-dd-menu li:focus { background: rgba(99,102,241,.22); outline: none; }
.calc-dd-menu li[aria-selected="true"] { background: rgba(99,102,241,.32); }
.calc-dd-menu li b { font-size: 14.5px; font-weight: 700; color: #f8fafc; }
.calc-dd-menu li span { font-size: 12.5px; color: #94a3b8; font-weight: 500; text-transform: none; letter-spacing: 0; }
.calc-notice {
  padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(251, 191, 36, .28);
  background: rgba(251, 191, 36, .08); color: #e7e2d4; font-size: 13.5px; line-height: 1.55;
}
.calc-notice strong { color: #fde68a; }
.calc-notice em { font-style: normal; color: #fef3c7; }
.calc-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: start; overflow: visible; }
@media (max-width: 980px) { .calc-layout { grid-template-columns: 1fr; } }
.calc-subhead { margin: 4px 0 0; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.calc-subhead span { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted); }
.calc-seats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 720px) { .calc-seats { grid-template-columns: 1fr; } }
.calc-seat {
  display: grid; gap: 10px; padding: 14px; border-radius: 16px;
  border: 1px solid var(--line); background: rgba(255,255,255,.02);
  transition: opacity .2s, border-color .2s; overflow: visible; position: relative;
}
.calc-seat:has(.calc-dd.open) { z-index: 70; }
.calc-seat.off { opacity: .45; }
.calc-seat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.calc-check { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; cursor: pointer; }
.calc-check input { width: 16px; height: 16px; accent-color: #818cf8; }
.calc-seat-price { font: 700 16px inherit; letter-spacing: -.02em; white-space: nowrap; }
.calc-seat-price small { display: block; font-size: 11px; font-weight: 600; color: var(--dim); letter-spacing: .04em; text-transform: uppercase; }
.calc-seat-meta { margin: 0; font-size: 12.5px; color: var(--dim); line-height: 1.4; }
.calc-seat-meta a { color: #93c5fd; }
.calc-seat .calc-custom { display: none; }
.calc-seat.custom-on .calc-custom { display: grid; }
.calc-results {
  display: grid; gap: 16px; position: sticky; top: 88px;
  padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: rgba(0,0,0,.22);
}
.calc-bars { display: grid; gap: 12px; }
.calc-bar { display: grid; grid-template-columns: 7.5rem 1fr auto; gap: 10px; align-items: center; }
.calc-bar em { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.calc-bar i {
  display: block; height: 10px; border-radius: 999px; width: 0%;
  background: var(--grad); transition: width .35s ease;
  box-shadow: 0 0 20px -6px rgba(99,102,241,.6);
}
.calc-bar[data-bar=apps] i { background: linear-gradient(90deg, #10a37f, #4f8cf7); }
.calc-bar[data-bar=api] i { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.calc-bar[data-bar=router] i { background: linear-gradient(90deg, #a78bfa, #ec4899); }
.calc-bar span { font: 600 12.5px var(--mono, monospace); color: var(--muted); min-width: 5rem; text-align: right; }
.calc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .calc-cards { grid-template-columns: 1fr; } .calc-bar { grid-template-columns: 1fr; gap: 6px; } }
.calc-card {
  padding: 18px 16px; border-radius: 16px; border: 1px solid var(--line);
  background: rgba(0,0,0,.2); min-width: 0;
}
.calc-card.hl { border-color: rgba(129,140,248,.55); background: rgba(99,102,241,.12); }
.calc-card.win { box-shadow: inset 0 0 0 1px rgba(52,211,153,.45); }
.calc-card h3 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); font-weight: 600; }
.calc-total { margin: 0; font-size: 28px; font-weight: 750; letter-spacing: -.03em; }
.calc-break { margin: 8px 0 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.calc-verdict { margin: 0; font-size: 15.5px; color: #cfd5e4; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }

/* ---- Responsive polish (phone → tablet → desktop) ---- */
@media (max-width: 1180px) {
  nav .wrap { gap: 12px; }
  .navlinks { display: none; }
}
@media (max-width: 980px) {
  .calc-results { position: static; }
  section { padding-top: 80px; }
  section.tight { padding-top: 56px; }
  .page-hero { padding-top: 56px; }
  .final { margin-top: 72px; padding: 48px 22px; border-radius: 22px; }
  .final p { font-size: 16px; }
  footer { margin-top: 48px; padding: 28px 0 40px; }
  footer .wrap { flex-direction: column; align-items: flex-start; gap: 18px; }
  footer .links { gap: 12px 18px; }
}
@media (max-width: 760px) {
  .cmp-wide::after { display: block; }
  .tbl-scroll, .cmp-wide { scrollbar-width: thin; }
  .price { padding: 22px 18px; }
  .price .amount b { font-size: 34px; }
  .price .who { min-height: 0; }
  .calc { padding: 16px; border-radius: 18px; }
  .calc-field, .calc-field.grow { min-width: 0; width: 100%; }
  .calc-row { flex-direction: column; align-items: stretch; }
  .calc-row .btn { width: 100%; justify-content: center; }
  .calc-total { font-size: 24px; }
  .calc-verdict { font-size: 14px; }
  .faq-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; scrollbar-width: none; }
  .faq-tabs::-webkit-scrollbar { display: none; }
  .faq-tab { flex: none; }
  .faq-more { flex-direction: column; align-items: stretch; text-align: center; }
  .faq-more .cta-row { justify-content: center; }
  .providers { gap: 12px 16px; margin-top: 28px; }
  h2 { font-size: clamp(26px, 7vw, 36px); }
  .dl-row .btn { width: 100%; justify-content: center; }
  footer .brand span { display: block; margin-left: 0 !important; margin-top: 4px; }
}
@media (max-width: 520px) {
  html { scroll-padding-top: 64px; }
  nav .wrap { height: 60px; }
  h1 { font-size: clamp(32px, 9vw, 44px); margin: 16px 0 16px; }
  .page-hero h1 { font-size: clamp(30px, 8.5vw, 42px); }
  .btn { padding: 11px 16px; font-size: 14.5px; }
  .cta-row .btn { flex: 1 1 auto; justify-content: center; }
  .final .cta-row .btn { width: 100%; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero { padding: 36px 0 24px; gap: 32px; }
  .mock-body { min-height: 320px; }
  .calc-seat-top { flex-wrap: wrap; }
  .calc-bar { grid-template-columns: 1fr; }
  .calc-bar em { order: -1; }
  .cmp-wide table { font-size: 12.5px; min-width: 720px; }
  .cmp-wide th, .cmp-wide td { padding: 10px 12px; }
  .tbl th, .tbl td { padding: 12px 14px; }
}
@media (max-width: 380px) {
  .stats { grid-template-columns: 1fr; }
  .navright .btn-primary { padding: 8px 10px; font-size: 13px; }
}

/* Pricing checkout (Razorpay) */
.checkout-dialog {
  border: 0; padding: 0; border-radius: 20px; background: transparent;
  max-width: min(440px, calc(100vw - 32px)); width: 100%;
  color: inherit;
}
.checkout-dialog::backdrop { background: rgba(4, 8, 18, .72); backdrop-filter: blur(6px); }
.checkout-card {
  display: grid; gap: 14px; padding: 28px 24px; border-radius: 20px;
  background: linear-gradient(165deg, #121a2e 0%, #0b1220 55%, #0a101c 100%);
  border: 1px solid rgba(148, 163, 184, .18); box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.checkout-card header h3 { margin: 0 0 6px; font-size: 1.35rem; }
.checkout-card label { display: grid; gap: 6px; font-size: 13px; color: var(--muted, #94a3b8); }
.checkout-card input {
  border: 1px solid rgba(148, 163, 184, .22); border-radius: 10px; padding: 11px 12px;
  background: rgba(15, 23, 42, .65); color: #e2e8f0; font: inherit;
}
.checkout-card input:focus { outline: 2px solid rgba(99, 102, 241, .45); outline-offset: 1px; }
.checkout-card .error { color: #f87171; font-size: 13px; margin: 0; }
.checkout-card .cta-row { margin-top: 4px; }
.price .btn { width: 100%; justify-content: center; }

/* Public sign-up links: only when html has .signup-on (Razorpay live keys). */
html:not(.signup-on) .signup-link { display: none !important; }
html.signup-on .signup-fallback { display: none !important; }

/* Sign up */
.signup-layout {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 28px; align-items: start;
}
@media (max-width: 900px) { .signup-layout { grid-template-columns: 1fr; } }
.signup-card {
  padding: 28px 26px; border-radius: 20px; background: var(--card);
  border: 1px solid var(--line-hi); box-shadow: 0 24px 60px -40px rgba(79, 70, 229, .55);
}
/* display:grid must not override the hidden attribute (both steps were showing) */
.signup-form { display: grid; gap: 14px; }
.signup-form[hidden],
#signup-done[hidden],
#signup-unavailable[hidden],
.signup-steps[hidden],
.signup-err[hidden],
.signup-hint[hidden] { display: none !important; }
.signup-form.signup-loading { opacity: .55; pointer-events: none; }
.signup-steps {
  list-style: none; margin: 0 0 22px; padding: 0; display: flex; gap: 10px; flex-wrap: wrap;
}
.signup-steps li {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  color: var(--dim); padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
}
.signup-steps li span {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; background: rgba(255, 255, 255, .06); color: var(--muted);
}
.signup-steps li.on { color: var(--text); border-color: rgba(129, 140, 248, .45); background: rgba(99, 102, 241, .12); }
.signup-steps li.on span { background: var(--grad); color: #fff; }
.signup-steps li.done { color: #86efac; border-color: rgba(52, 211, 153, .35); }
.signup-steps li.done span { background: rgba(16, 185, 129, .25); color: #86efac; }
.signup-field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.signup-field input {
  border: 1px solid var(--line-hi); border-radius: 12px; padding: 12px 14px;
  background: rgba(15, 23, 42, .55); color: var(--text); font: inherit; font-weight: 500;
}
.signup-field input:focus { outline: 2px solid rgba(99, 102, 241, .45); outline-offset: 1px; }
#su-otp { letter-spacing: .35em; font-weight: 700; font-size: 1.15rem; }
.signup-hint { margin: 0; font-size: 13.5px; color: var(--dim); line-height: 1.5; }
.signup-hint a { color: #a5b4fc; font-weight: 600; }
.signup-err { margin: 0; color: #f87171; font-size: 14px; }
.signup-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.signup-aside { display: grid; gap: 14px; }
.signup-note {
  padding: 14px 16px; border-radius: 12px; background: rgba(248, 113, 113, .08);
  border: 1px solid rgba(248, 113, 113, .25); color: var(--muted); margin-bottom: 12px;
}
.signup-note a { color: #a5b4fc; font-weight: 600; }
.signup-card .btn-primary { width: 100%; justify-content: center; }
