/* ============================================================
   Caila Dev — Landing styles
   ============================================================ */

/* ---------- Background texture (subtle grid, no particles) ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--border-0) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-0) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 70%);
  opacity: .5;
}
.page { position: relative; z-index: 1; }

/* =================== HEADER =================== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8,9,14,.72);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--border-0);
}
.header-inner {
  height: 60px; display: flex; align-items: center; gap: 28px;
}
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; color: var(--text-0); font-size: 16px; letter-spacing: -0.02em; }
.logo .mark {
  width: 18px; height: 18px; border-radius: 5px;
  background: var(--jay-gradient);
  position: relative; box-shadow: 0 0 16px -4px rgba(123,140,255,.7);
}
.logo .mark::after {
  content: ""; position: absolute; inset: 5px;
  background: var(--bg-0);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.logo .dev { color: var(--text-2); font-weight: 500; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 7px 11px; font-size: 14px; color: var(--text-2); border-radius: var(--r-ctrl); transition: color var(--dur-1), background var(--dur-1); }
.nav a:hover { color: var(--text-0); background: var(--surface-1); }
.header-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* =================== HERO =================== */
.hero { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 6vw, 80px); position: relative; }
.hero-glow {
  position: absolute; top: -10%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 520px; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at center, rgba(123,140,255,.18) 0%, transparent 65%);
  filter: blur(20px);
}
.hero-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); gap: clamp(32px,4vw,64px); align-items: center; position: relative; z-index: 1; }
.hero-trustbar { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.hero-eyebrow { margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 4.2vw, 56px); letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 20px; }
.hero h1 code { font-family: var(--font-mono); font-size: .82em; background: var(--surface-1); padding: 2px 10px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--border-1); color: var(--text-0); letter-spacing: -0.02em; }
.hero h1 .nowrap { white-space: nowrap; }
.hero .lead { max-width: 32ch; margin-bottom: 26px; font-size: clamp(16px,1.4vw,18.5px); }
.hero .lead-md { max-width: 40ch; font-size: clamp(15px,1.2vw,16.5px); color: var(--text-2); }
.hero-ctas { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
/* flat mono trust chips with · separators (no bordered badges) */
.hero-trust { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 0; }
.hero-trust .tt { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.hero-trust .sep { color: var(--text-3); margin-inline: 12px; }
.hero-trust .tt.warm { color: var(--warm); }

/* hero code tabs */
.hero-tabs { display: flex; gap: 2px; padding: 6px 10px 0; border-bottom: 1px solid var(--border-0); background: var(--surface-0); overflow-x: auto; }
.hero-tabs::-webkit-scrollbar { height: 0; }
.hero-tab { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); padding: 8px 12px; border-radius: 6px 6px 0 0; white-space: nowrap; position: relative; transition: color var(--dur-1); }
.hero-tab:hover { color: var(--text-1); }
.hero-tab.active { color: var(--text-0); }
.hero-tab.active::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; background: var(--jay-gradient); border-radius: 2px; }

/* ---- Hero artifact (terminal + key + flow + sparkline) ---- */
.artifact {
  position: relative;
  background: linear-gradient(180deg, var(--surface-1), var(--surface-0));
  border-radius: var(--r-hero);
  box-shadow: var(--shadow-pop), 0 40px 120px -50px rgba(123,140,255,.4);
  overflow: hidden;
}
.artifact-bar {
  height: 38px; display: flex; align-items: center; gap: 8px; padding-inline: 14px;
  border-bottom: 1px solid var(--border-0); background: var(--surface-0);
}
.artifact-bar .dots { display: flex; gap: 6px; }
.artifact-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.artifact-bar .path { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); margin-left: 6px; }
.artifact-bar .tag { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
.artifact-bar .live { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px var(--success); animation: livepulse 2s infinite; }
@keyframes livepulse { 0%,100%{opacity:1} 50%{opacity:.35} }

.term { padding: 18px 18px 16px; font-family: var(--font-mono); font-size: 13px; line-height: 1.7; color: var(--text-1); min-height: 150px; }
.term .cmt { color: var(--text-3); }
.term .kw { color: var(--jay-from); }
.term .str { color: var(--success); }
.term .var { color: var(--text-0); }
.term .cursor { display: inline-block; width: 8px; height: 16px; background: var(--jay-from); vertical-align: -3px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.term-line { white-space: pre-wrap; }

.artifact-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border-0); border-top: 1px solid var(--border-0); }
.apanel { background: var(--surface-0); padding: 14px 16px; min-height: 132px; }
.apanel .apanel-h { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; }

/* model selector inside hero */
.hero-model-select {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text-0);
  background: var(--surface-2); border-radius: var(--r-ctrl); padding: 7px 10px;
  box-shadow: inset 0 0 0 1px var(--border-1); cursor: pointer; width: 100%;
  transition: box-shadow var(--dur-2);
}
.hero-model-select:hover { box-shadow: inset 0 0 0 1px var(--border-glow); }
.hero-model-select .prov { width: 16px; height: 16px; border-radius: 4px; display: grid; place-items: center; font-size: 9px; font-weight: 700; color: #0A0B12; }
.hero-model-select .chev { margin-left: auto; color: var(--text-3); }
.model-flyout {
  margin-top: 6px; background: var(--surface-1); border-radius: var(--r-ctrl);
  box-shadow: var(--shadow-pop); overflow: hidden; display: none;
}
.model-flyout.open { display: block; }
.model-flyout button {
  width: 100%; text-align: left; display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; font-family: var(--font-mono); font-size: 12px; color: var(--text-1);
  transition: background var(--dur-1);
}
.model-flyout button:hover, .model-flyout button.active { background: var(--surface-2); color: var(--text-0); }
.model-flyout button .price { margin-left: auto; color: var(--text-3); }

/* API key card */
.keycard { display: flex; flex-direction: column; gap: 8px; }
.keyrow {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text-0);
  background: var(--surface-2); border-radius: var(--r-ctrl); padding: 8px 10px;
  box-shadow: inset 0 0 0 1px rgba(123,140,255,.25);
}
.keyrow .k { letter-spacing: .04em; }
.icon-btn { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 5px; color: var(--text-2); transition: background var(--dur-1), color var(--dur-1); }
.icon-btn:hover { background: var(--surface-3); color: var(--text-0); }

/* flow diagram */
.flow { display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 10.5px; }
.flow-node {
  flex: 1; text-align: center; padding: 8px 4px; border-radius: 7px;
  background: var(--surface-2); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--border-0);
  position: relative; transition: all var(--dur-2);
}
.flow-node.guard { color: var(--text-0); box-shadow: inset 0 0 0 1px var(--border-glow); background: linear-gradient(180deg, rgba(123,140,255,.14), var(--surface-2)); }
.flow-node b { color: var(--text-0); font-weight: 600; display: block; }
.flow-arrow { color: var(--text-3); flex: 0 0 auto; }
.flow-pii { margin-top: 8px; font-family: var(--font-mono); font-size: 11px; display: flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: wrap; }
.pii-masked { color: var(--text-3); text-decoration: line-through; }
.pii-token { color: var(--jay-from); background: rgba(91,184,255,.12); padding: 1px 6px; border-radius: 4px; }

/* sparkline */
.spark-wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.spark-num { font-family: var(--font-mono); font-size: 22px; font-weight: 600; color: var(--text-0); font-variant-numeric: tabular-nums; }
.spark-num .warm-glow { color: var(--warm); text-shadow: 0 0 18px rgba(255,182,114,.5); }
.spark-sub { font-size: 11px; color: var(--text-3); }
.sparkline { height: 44px; flex: 1; }
.sparkline path.line { fill: none; stroke: url(#jayStroke); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sparkline path.area { fill: url(#jayArea); opacity: .35; }

/* =================== PERSONA SWITCH =================== */
.persona { position: sticky; top: 60px; z-index: 40; padding-block: 14px; background: rgba(8,9,14,.7); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-0); }
.persona-inner { display: flex; align-items: center; gap: 16px; justify-content: center; }
.seg {
  display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--r-ctrl);
  background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--border-0);
}
.seg button {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text-2);
  padding: 7px 16px; border-radius: 4px; transition: color var(--dur-1), background var(--dur-2);
  display: inline-flex; align-items: center; gap: 7px;
}
.seg button .k { width: 7px; height: 7px; border-radius: 2px; background: var(--surface-3); transition: background var(--dur-2); }
.seg button.active { color: var(--text-0); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-1); }
.seg button.active .k { background: var(--jay-from); box-shadow: 0 0 8px var(--jay-from); }
.persona-hint { font-size: 12.5px; color: var(--text-3); }
.persona-hint b { color: var(--text-1); font-weight: 500; }

/* persona-driven content */
[data-persona-show] { display: none; }
[data-persona-show].on { display: block; }

/* =================== SECTION HEAD =================== */
.sec-head { max-width: 640px; margin-bottom: 44px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head .eyebrow { margin-bottom: 14px; display: inline-block; }
.sec-head .h2 { margin-bottom: 14px; }

/* =================== MODELS =================== */
.provider-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 36px; }
.provider-cell {
  display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-radius: var(--r-card);
  background: var(--surface-0); box-shadow: inset 0 0 0 1px var(--border-0);
  transition: background var(--dur-2), box-shadow var(--dur-2);
}
.provider-cell:hover { background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--border-1); }
.prov-logo { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; font-weight: 700; font-size: 12px; color: #0A0B12; flex: 0 0 auto; }
.provider-cell .pname { font-size: 13px; color: var(--text-1); font-weight: 500; line-height: 1.2; white-space: nowrap; }
.provider-cell .pcount { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); white-space: nowrap; }

.model-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
/* "Не только для кода" — dense mono modality banner */
.modality-banner { display: flex; align-items: center; gap: 18px; padding: 14px 18px; border-radius: var(--r-card); background: var(--surface-0); box-shadow: inset 0 0 0 1px var(--border-0); margin-bottom: 36px; flex-wrap: wrap; }
.modality-banner .mb-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--text-3); text-transform: uppercase; white-space: nowrap; }
.mb-items { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.mb-item { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--text-1); white-space: nowrap; }
.mb-item svg { color: var(--text-2); }
.modality-banner .mb-link { margin-left: auto; font-family: var(--font-mono); font-size: 12.5px; color: var(--jay-from); white-space: nowrap; }
.modality-banner .mb-link:hover { text-decoration: underline; }
.model-card {
  display: grid; grid-template-columns: 36px 1fr auto; gap: 14px; align-items: center;
  padding: 16px; border-radius: var(--r-card);
  background: var(--surface-0); box-shadow: inset 0 0 0 1px var(--border-0);
  transition: background var(--dur-2), box-shadow var(--dur-2), transform var(--dur-2);
}
.model-card:hover { background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--border-1); transform: translateY(-1px); }
.model-card .prov-logo { width: 36px; height: 36px; border-radius: 9px; font-size: 13px; }
.model-id { font-family: var(--font-mono); font-size: 13.5px; color: var(--text-0); font-weight: 500; }
.model-meta { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.cap { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); padding: 1px 6px; border-radius: 4px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-0); white-space: nowrap; }
.model-ctx { text-align: right; white-space: nowrap; }
.model-ctx .mono { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-2); display: block; }
.model-price .io { display: flex; align-items: center; gap: 5px; justify-content: flex-end; font-size: 12.5px; color: var(--text-0); }
.model-price .io .arrow { color: var(--text-3); font-size: 10px; }
.model-price .io.out { color: var(--text-2); margin-top: 3px; }
.model-price .unit { font-size: 9.5px; color: var(--text-3); margin-top: 5px; }

/* =================== INTEGRATIONS =================== */
.integ-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.integ-card {
  padding: 18px; border-radius: var(--r-card);
  background: var(--surface-0); box-shadow: inset 0 0 0 1px var(--border-0);
  transition: background var(--dur-2), box-shadow var(--dur-2), transform var(--dur-2);
  display: flex; flex-direction: column; gap: 12px; cursor: pointer; min-height: 130px;
}
.integ-card:hover { background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--border-1); transform: translateY(-2px); }
.integ-top { display: flex; align-items: center; justify-content: space-between; }
.tool-logo { width: 38px; height: 38px; border-radius: 9px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-1); display: grid; place-items: center; }
.integ-name { font-weight: 600; color: var(--text-0); font-size: 15px; letter-spacing: -0.01em; }
.integ-desc { font-size: 13px; color: var(--text-2); line-height: 1.45; margin-top: -4px; }
.integ-link { margin-top: auto; font-family: var(--font-mono); font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 6px; transition: color var(--dur-1); }
.integ-card:hover .integ-link { color: var(--jay-from); }

/* =================== JAY GUARD =================== */
.jay-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px,3.5vw,56px); align-items: center; }
.jay-diagram {
  background: linear-gradient(180deg, var(--surface-1), var(--surface-0));
  border-radius: var(--r-hero); padding: 24px; box-shadow: var(--shadow-card);
  position: relative; overflow: hidden;
}
.jay-flow { display: flex; flex-direction: column; gap: 12px; }
.jf-row { display: flex; align-items: center; gap: 12px; }
.jf-box {
  flex: 1; padding: 12px 14px; border-radius: 10px; background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--border-0); font-size: 13px; color: var(--text-1);
  display: flex; align-items: center; gap: 10px;
}
.jf-box.guard { box-shadow: inset 0 0 0 1px var(--border-glow); background: linear-gradient(135deg, rgba(91,184,255,.1), rgba(139,91,255,.08)); color: var(--text-0); }
.jf-box .jf-icon { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; flex: 0 0 auto; background: var(--surface-3); }
.jf-box.guard .jf-icon { background: var(--jay-gradient); }
.jf-mono { font-family: var(--font-mono); font-size: 12px; }
.jf-arrow-v { color: var(--text-3); align-self: center; margin: -4px 0; }
.pii-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pii-chip { font-family: var(--font-mono); font-size: 11px; padding: 3px 8px; border-radius: var(--r-pill); color: var(--text-2); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-0); transition: all var(--dur-2); white-space: nowrap; }
.pii-chip.detected { color: var(--jay-from); box-shadow: inset 0 0 0 1px var(--border-glow); background: rgba(91,184,255,.1); }

.jay-bullets { display: flex; flex-direction: column; gap: 4px; }
.jay-bullet { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border-0); }
.jay-bullet:last-of-type { border-bottom: 0; }
.jb-ic { width: 34px; height: 34px; border-radius: 9px; flex: 0 0 auto; background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--border-1); display: grid; place-items: center; color: var(--jay-from); }
.jb-t { font-weight: 600; color: var(--text-0); font-size: 15px; margin-bottom: 3px; }
.jb-d { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.jay-badges { display: flex; gap: 8px; margin: 22px 0; flex-wrap: wrap; }

/* ---- Jay Guard sandbox (landing widget) ---- */
.jg-sandbox { margin-top: 28px; background: var(--surface-0); border-radius: var(--r-hero); box-shadow: inset 0 0 0 1px var(--border-0); padding: 24px; }
.jgs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.jgs-examples { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.jgs-ex-label { font-size: 12.5px; color: var(--text-3); }
.jgs-ex { font-family: var(--font-mono); font-size: 12px; color: var(--text-2); padding: 6px 12px; border-radius: var(--r-pill); background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--border-0); transition: all var(--dur-2); }
.jgs-ex:hover { color: var(--text-0); box-shadow: inset 0 0 0 1px var(--border-glow); }
.jgs-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: stretch; }
.jgs-col { display: flex; flex-direction: column; min-width: 0; }
.jgs-col-h { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.jgs-tag { text-transform: none; letter-spacing: 0; color: var(--text-3); }
.jgs-tag.ok { color: var(--jay-from); }
.jgs-input, .jgs-output { min-height: 130px; border-radius: var(--r-card); padding: 14px 16px; font-family: var(--font-mono); font-size: 13px; line-height: 1.65; }
.jgs-input { background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--border-1); color: var(--text-1); border: none; outline: none; resize: vertical; width: 100%; }
.jgs-input:focus { box-shadow: inset 0 0 0 1px var(--border-glow); }
.jgs-output { background: var(--bg-0); box-shadow: inset 0 0 0 1px var(--border-glow); color: var(--text-1); white-space: pre-wrap; word-break: break-word; }
.jgs-output .masked { color: var(--text-3); text-decoration: line-through; }
.jgs-output .tok { color: var(--jay-from); background: rgba(91,184,255,.12); padding: 1px 6px; border-radius: 5px; }
.jgs-arrow { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--jay-from); align-self: center; }
.jgs-arrow-lbl { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); }
.jgs-foot { display: flex; align-items: center; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.jgs-schema-toggle { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-2); padding: 7px 12px; border-radius: var(--r-ctrl); background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--border-0); transition: color var(--dur-1); }
.jgs-schema-toggle:hover { color: var(--text-0); }
.jgs-schema-toggle .ch { transition: transform var(--dur-2); }
.jgs-schema-toggle.open .ch { transform: rotate(180deg); color: var(--jay-from); }
.jgs-note { font-size: 12px; color: var(--text-3); }
/* instant toggle — NO transition (this env freezes transitions at frame 0,
   and transitions outrank even !important in the cascade) */
.jgs-schema { display: none; }
.jgs-schema.open { display: block; }
.jgs-schema pre { margin-top: 14px; background: var(--bg-0); border-radius: var(--r-card); box-shadow: inset 0 0 0 1px var(--border-0); padding: 16px; font-family: var(--font-mono); font-size: 12px; line-height: 1.7; color: var(--text-2); overflow-x: auto; }
.jgs-schema pre .k { color: var(--jay-from); }
.jgs-schema pre .s { color: var(--success); }
.jgs-schema pre .b { color: var(--warm); }
@media (max-width: 760px) {
  .jgs-grid { grid-template-columns: 1fr; }
  .jgs-arrow { flex-direction: row; }
  .jgs-arrow svg { transform: rotate(90deg); }
}

/* =================== QUICKSTART =================== */
.qs-tabs { display: flex; gap: 4px; margin-bottom: 18px; }
.qs-tab {
  font-family: var(--font-mono); font-size: 13px; color: var(--text-2);
  padding: 8px 14px; border-radius: var(--r-ctrl); transition: all var(--dur-2);
  box-shadow: inset 0 0 0 1px transparent;
}
.qs-tab.active { color: var(--text-0); background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--border-1); }
.qs-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.qs-step { display: flex; flex-direction: column; gap: 14px; }
.qs-step-h { display: flex; align-items: center; gap: 10px; }
.qs-num { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--text-0); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-1); }
.qs-step-t { font-size: 14px; font-weight: 500; color: var(--text-1); }

/* code block */
.code {
  background: var(--surface-0); border-radius: var(--r-card);
  box-shadow: inset 0 0 0 1px var(--border-0); overflow: hidden; flex: 1;
}
.code-bar { height: 34px; display: flex; align-items: center; padding-inline: 12px; border-bottom: 1px solid var(--border-0); }
.code-lang { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); letter-spacing: .05em; text-transform: uppercase; }
.code-copy { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--text-2); display: flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 5px; transition: all var(--dur-1); }
.code-bar { justify-content: space-between; }
.code-copy:hover { color: var(--text-0); background: var(--surface-2); }
.code-copy.done { color: var(--success); }
.code pre { padding: 14px 16px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7; color: var(--text-1); overflow-x: auto; }
.code .kw { color: var(--jay-from); }
.code .str { color: var(--success); }
.code .fn { color: var(--warm); }
.code .cmt { color: var(--text-3); }
.code .num-h { color: #B49BFF; }

/* =================== COMPARISON =================== */
.cmp-wrap { overflow-x: auto; border-radius: var(--r-card); box-shadow: inset 0 0 0 1px var(--border-0); }
.cmp { width: 100%; border-collapse: collapse; min-width: 760px; }
.cmp th, .cmp td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border-0); }
.cmp thead th { font-size: 13px; font-weight: 600; color: var(--text-1); background: var(--surface-0); position: sticky; top: 0; }
.cmp thead th.us { color: var(--text-0); }
.cmp .us-col { background: linear-gradient(180deg, rgba(123,140,255,.07), rgba(123,140,255,.02)); position: relative; }
.cmp thead th.us::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--jay-gradient); }
.cmp td.feat { color: var(--text-1); font-size: 13.5px; }
.cmp td.cell { text-align: center; font-size: 13px; color: var(--text-2); }
.cmp td.cell.yes { color: var(--success); }
.cmp td.cell.no { color: var(--text-3); }
.cmp .mono-cell { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-1); }
.cmp tbody tr:hover td { background: rgba(255,255,255,.012); }

/* =================== PRICING =================== */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: start; }
.price-col {
  padding: 22px; border-radius: var(--r-card); background: var(--surface-0);
  box-shadow: inset 0 0 0 1px var(--border-0); display: flex; flex-direction: column; gap: 16px;
  transition: box-shadow var(--dur-2), transform var(--dur-2);
}
.price-col:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--border-1); }
.price-col.best {
  background: linear-gradient(180deg, var(--surface-1), var(--surface-0));
  box-shadow: inset 0 0 0 1px rgba(255,182,114,.4), 0 24px 60px -30px rgba(255,182,114,.3);
}
.price-name { display: flex; align-items: center; justify-content: space-between; }
.price-name .pn { font-size: 15px; font-weight: 600; color: var(--text-0); }
.price-amount { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.price-amount .big { font-size: 30px; font-weight: 600; color: var(--text-0); }
.price-amount .per { font-size: 12px; color: var(--text-3); }
.price-desc { font-size: 13px; color: var(--text-2); line-height: 1.5; min-height: 38px; }
.price-feats { display: flex; flex-direction: column; gap: 9px; }
.price-feat { display: flex; gap: 9px; font-size: 13px; color: var(--text-1); align-items: flex-start; }
.price-feat svg { flex: 0 0 auto; margin-top: 2px; color: var(--text-3); }
.price-col.best .price-feat svg { color: var(--warm); }

/* =================== SOCIAL PROOF =================== */
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 28px; }
.metric { padding: 24px; border-radius: var(--r-card); background: var(--surface-0); box-shadow: inset 0 0 0 1px var(--border-0); }
.metric .mv { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 34px; font-weight: 600; color: var(--text-0); letter-spacing: -0.02em; }
.metric .ml { font-size: 13px; color: var(--text-2); margin-top: 6px; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.quote { padding: 22px; border-radius: var(--r-card); background: var(--surface-0); box-shadow: inset 0 0 0 1px var(--border-0); display: flex; flex-direction: column; gap: 16px; }
.quote p { font-size: 14.5px; color: var(--text-1); line-height: 1.55; }
.quote-who { display: flex; align-items: center; gap: 11px; }
.q-av { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-1); flex: 0 0 auto; display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; color: var(--text-2); }
.q-name { font-size: 13px; color: var(--text-0); font-weight: 500; }
.q-role { font-size: 12px; color: var(--text-3); }

/* =================== FAQ =================== */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 40px; }
.faq-item { border-bottom: 1px solid var(--border-0); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; padding: 18px 0; font-size: 15px; color: var(--text-0); font-weight: 500; }
.faq-q .pm { color: var(--text-3); flex: 0 0 auto; transition: transform var(--dur-2); }
.faq-item.open .faq-q .pm { transform: rotate(45deg); color: var(--jay-from); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--dur-3) var(--ease-out); }
.faq-a-inner { padding-bottom: 18px; font-size: 14px; color: var(--text-2); line-height: 1.6; max-width: 52ch; }
.faq-a-inner code { font-family: var(--font-mono); font-size: 12.5px; color: var(--jay-from); background: var(--surface-1); padding: 1px 5px; border-radius: 4px; }

/* =================== FINAL CTA =================== */
.final {
  text-align: center; padding-block: clamp(80px,10vw,140px);
  position: relative; overflow: hidden;
}
.final-glow { position: absolute; inset: 0; background: radial-gradient(ellipse 50% 70% at 50% 100%, rgba(123,140,255,.16), transparent 70%); pointer-events: none; }
.final h2 { font-size: clamp(32px, 4.5vw, 56px); letter-spacing: -0.035em; margin-bottom: 22px; position: relative; }
.final h2 .u { position: relative; }
.final h2 .u::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 5px; background: var(--warm); border-radius: 2px; box-shadow: 0 0 16px rgba(255,182,114,.6); }
.final-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }

/* =================== FOOTER =================== */
.footer { border-top: 1px solid var(--border-0); padding-block: 56px 40px; background: var(--surface-0); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; margin-bottom: 44px; }
.footer-brand .lead { font-size: 13px; max-width: 30ch; margin-top: 14px; }
.footer-col h5 { font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; font-family: var(--font-mono); font-weight: 500; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13.5px; color: var(--text-2); padding: 5px 0; transition: color var(--dur-1); }
.footer-col a:hover { color: var(--text-0); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--border-0); flex-wrap: wrap; }
.footer-bottom .copy { font-size: 12.5px; color: var(--text-3); }
.footer-bottom .meta { display: flex; gap: 18px; font-size: 12.5px; color: var(--text-3); align-items: center; }
.status-mini { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 12px; color: var(--success); }
.status-mini .d { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px var(--success); animation: livepulse 2s infinite; }
.hero-devswitch { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 8px; border-radius: var(--r-pill); background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--border-0); }
.hero-devswitch .hd-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-right: 2px; }
.hero-devswitch button { width: 22px; height: 22px; border-radius: var(--r-pill); font-family: var(--font-mono); font-size: 11px; color: var(--text-3); transition: all var(--dur-1); }
.hero-devswitch button:hover { color: var(--text-1); background: var(--surface-2); }
.hero-devswitch button.on { color: #0A0B12; background: var(--jay-gradient); font-weight: 600; }
.theme-toggle { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 12px; color: var(--text-3); padding: 6px 10px; border-radius: var(--r-ctrl); box-shadow: inset 0 0 0 1px var(--border-0); }

/* ---- sticky CTA bar ---- */
.sticky-cta {
  position: fixed; top: 60px; left: 0; right: 0; z-index: 45;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 10px 20px; background: rgba(19,21,30,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-1);
  transform: translateY(-130%); transition: transform var(--dur-3) var(--ease-out);
}
.sticky-cta.show { transform: none; }
.sticky-cta .sc-text { font-family: var(--font-mono); font-size: 13.5px; color: var(--text-0); display: inline-flex; align-items: center; gap: 9px; }
.sticky-cta .sc-text .diamond { width: 12px; height: 12px; }
.sticky-cta .sc-dim { color: var(--text-3); }
.sticky-cta .sc-actions { display: flex; align-items: center; gap: 10px; }
.sticky-cta .sc-close { width: 28px; height: 28px; border-radius: 6px; color: var(--text-3); display: grid; place-items: center; transition: all var(--dur-1); }
.sticky-cta .sc-close:hover { color: var(--text-0); background: var(--surface-2); }

/* ---- vs OpenRouter block ---- */
.vs-block { margin-top: 28px; display: flex; align-items: center; gap: 20px; padding: 20px 24px; border-radius: var(--r-card); background: var(--surface-0); box-shadow: inset 0 0 0 1px var(--border-0); flex-wrap: wrap; }
.vs-badge { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--text-0); padding: 6px 12px; border-radius: var(--r-pill); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-1); white-space: nowrap; flex: 0 0 auto; }
.vs-text { font-size: 14.5px; color: var(--text-2); line-height: 1.55; flex: 1; min-width: 280px; }
.vs-text b { color: var(--text-0); font-weight: 600; }
.vs-link { font-family: var(--font-mono); font-size: 12.5px; color: var(--jay-from); white-space: nowrap; flex: 0 0 auto; }
.vs-link:hover { text-decoration: underline; }

@media (max-width: 680px) {
  .sticky-cta .sc-dim { display: none; }
} (fail-safe: base state is VISIBLE) ===================
   Content defaults to opacity:1 so it can NEVER be stuck hidden if JS/IO/timers
   don't run. The entrance is a pure-CSS animation 0->1 that simply ends at the
   already-visible base state. */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: revealIn .55s var(--ease-out); }
}
/* keyframes intentionally animate ONLY transform — opacity is never touched,
   so content can never be stuck invisible if the animation is paused/throttled. */
@keyframes revealIn { from { transform: translateY(14px); } to { transform: none; } }

/* =================== RESPONSIVE =================== */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .lead { max-width: 46ch; }
  .provider-grid { grid-template-columns: repeat(3, 1fr); }
  .jay-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .qs-cols { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .metrics, .quotes { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav { display: none; }
  .model-grid, .integ-grid { grid-template-columns: 1fr; }
  .provider-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; }
  .metrics, .quotes { grid-template-columns: 1fr; }
  .header-cta .btn-ghost { display: none; }
  .persona-hint { display: none; }
}
