/* ============================================================================
   PAGEBOLT — FULL MARKETING PAGE  ·  Direction A "Signal" (electric lime)
   Austere / monochrome / near-black. One whisper of accent. Loads after base.css.
   Container philosophy: ONE browser frame (hero only). Everywhere else uses
   clean chrome-less panels, custom players, PR-comment cards, and composers.
   ============================================================================ */

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; position: relative; }
.wrap-narrow { max-width: 900px; margin: 0 auto; padding: 0 32px; }

/* ── Section rhythm ─────────────────────────────────────────────────────── */
section { position: relative; }
.sec { padding: 132px 0; }
.sec-head { max-width: 700px; margin: 0 auto 64px; }
.sec-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.sec-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 9px; margin-bottom: 20px; }
.sec-label::before { content: ''; width: 22px; height: 1px; background: var(--accent-line); }
.sec-head.center .sec-label::after { content: ''; width: 22px; height: 1px; background: var(--accent-line); }
.sec-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(32px, 4.4vw, 50px); line-height: 1.04; letter-spacing: -0.035em; margin: 0; color: var(--ink); }
.sec-title em { font-style: normal; color: var(--accent); }
.sec-sub { margin: 20px 0 0; font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 540px; }
.sec-head.center .sec-sub { margin-left: auto; margin-right: auto; }
.divider { height: 1px; background: var(--line); max-width: 1120px; margin: 0 auto; }

/* ── Nav ────────────────────────────────────────────────────────────────── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 68px; transition: background 0.3s var(--ease), border-color 0.3s, backdrop-filter 0.3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(8,8,10,0.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 100%; max-width: 1240px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.brand img { height: 21px; filter: brightness(0) invert(1); }
.brand span { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; color: var(--ink); }
.nav-links { display: flex; gap: 2px; }
.nav-links a { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-2); text-decoration: none; padding: 8px 14px; border-radius: 7px; transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-cta .login { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-2); text-decoration: none; transition: color 0.2s; }
.nav-cta .login:hover { color: var(--ink); }
.menu-btn { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; }

/* ── Buttons (page-scoped sizes) ────────────────────────────────────────── */
.btn-sm { padding: 8px 15px; font-size: 13px; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 150px 0 0; text-align: center; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 64% 44% at 50% -6%, var(--accent-glow) 0%, transparent 56%); opacity: 0.55; }
.hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(46px, 8.2vw, 88px); line-height: 0.98; letter-spacing: -0.045em; margin: 0; color: var(--ink); position: relative; z-index: 2; }
.hero h1 .am { position: relative; white-space: nowrap; }
.hero h1 .am::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0.1em; height: 0.07em; border-radius: 4px; background: var(--accent); transform: scaleX(0); transform-origin: left; box-shadow: 0 0 26px var(--accent-glow); transition: transform 0.45s var(--ease); }
/* Draw once on load, hold, then erase — then it reappears on hover (see :hover below) */
.hero h1 .am.drawn::after { animation: drawUnderline 2.4s var(--ease); }
.hero h1 .am:hover::after { transform: scaleX(1); }
@keyframes drawUnderline {
  0%   { transform: scaleX(0); }
  28%  { transform: scaleX(1); }
  62%  { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}
@media (prefers-reduced-motion: reduce) { .hero h1 .am.drawn::after { animation: none; } }
.hero-sub { max-width: 560px; margin: 30px auto 0; font-size: clamp(17px, 2vw, 20px); line-height: 1.5; color: var(--ink-2); position: relative; z-index: 2; }
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-top: 38px; position: relative; z-index: 2; }
.hero-meta { margin-top: 28px; display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); position: relative; z-index: 2; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }

/* cinematic frame — full narration player, glow behind */
.hero-frame { position: relative; margin: 66px auto 0; max-width: 1000px; padding: 0 32px; z-index: 2; }
.hero-frame::before { content: ''; position: absolute; left: 50%; top: 26px; transform: translateX(-50%); width: 70%; height: 60%; background: var(--accent-glow); filter: blur(80px); opacity: 0.5; z-index: 0; border-radius: 50%; }

/* THE browser frame — hero only */
.frame { position: relative; z-index: 1; border: 1px solid var(--line-3); border-radius: 14px; overflow: hidden; background: var(--bg-2); box-shadow: 0 40px 110px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.02); }
.frame-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.015); }
.tl { width: 11px; height: 11px; border-radius: 50%; background: #2c2c32; }
.urlpill { margin-left: 12px; flex: 1; max-width: 340px; background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 5px 12px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.rec { margin-left: auto; display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 10.5px; color: var(--accent); }
.rec .rdot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: recblink 1.4s infinite; }
@keyframes recblink { 50% { opacity: 0.25; } }

/* demo app interior (used inside hero frame + narration stage) */
.demo { position: relative; height: 348px; background: linear-gradient(180deg, #0a0a0d, #0d0d11); overflow: hidden; }
.demo-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px); background-size: 38px 38px; mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 45%, transparent 100%); }
.demo-app { position: absolute; inset: 28px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-1); display: flex; flex-direction: column; }
.demo-head { padding: 13px 16px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; gap: 10px; }
.demo-title { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; color: var(--ink); }
.demo-pill { margin-left: auto; font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); border: 1px solid var(--line); padding: 4px 9px; border-radius: 6px; }
.demo-body { flex: 1; padding: 15px 16px; display: flex; gap: 12px; }
.demo-card { flex: 1; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg-2); padding: 12px; }
.demo-card .ic { width: 22px; height: 22px; border-radius: 6px; background: var(--accent-soft); border: 1px solid var(--accent-line); margin-bottom: 9px; }
.demo-card .ln { height: 6px; border-radius: 4px; background: var(--bg-3); margin-bottom: 7px; }
.demo-card .ln.s { width: 56%; }
.demo-btn { align-self: flex-start; margin: 0 16px 16px; background: var(--accent); color: var(--accent-ink); font-family: var(--font-display); font-weight: 600; font-size: 12px; padding: 8px 14px; border-radius: 7px; }
.cursor { position: absolute; z-index: 6; left: 60%; top: 40%; animation: heroCursor 6.5s var(--ease) infinite; }
.cursor svg { filter: drop-shadow(0 2px 5px rgba(0,0,0,0.6)); }
@keyframes heroCursor { 0% { left: 64%; top: 28%; } 30% { left: 22%; top: 70%; } 42%, 50% { left: 21%; top: 72%; } 72% { left: 50%; top: 46%; } 100% { left: 64%; top: 28%; } }

/* ── Narration bar (the differentiator — appears under product media) ────── */
.nbar { display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-top: 1px solid var(--line); background: var(--bg-1); }
.nbar .voice { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-2); flex-shrink: 0; }
.wave { display: flex; align-items: center; gap: 3px; flex: 1; height: 18px; min-width: 0; }
.wave i { width: 3px; border-radius: 3px; background: var(--accent); opacity: 0.5; animation: waveBar 1s ease-in-out infinite alternate; }
@keyframes waveBar { to { transform: scaleY(2.1); } }
.nbar .ntime { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); flex-shrink: 0; }
.ncap { font-family: var(--font-body); font-size: 12.5px; color: var(--ink); white-space: nowrap; overflow: hidden; flex-shrink: 1; }
.ncap b { color: var(--accent); font-weight: 500; }

/* ── Marquee ────────────────────────────────────────────────────────────── */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; background: rgba(255,255,255,0.01); position: relative; }
.marquee::before, .marquee::after { content: ''; position: absolute; top: 0; bottom: 0; width: 160px; z-index: 2; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.marquee-track { display: flex; width: max-content; animation: scroll 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.mq-item { display: inline-flex; align-items: center; gap: 11px; padding: 0 32px; font-family: var(--font-display); font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.mq-item .accent-dot { opacity: 0.8; }

/* ── NARRATION SPOTLIGHT ────────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 56px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; transition: all 0.2s; }
.chip.on { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.spec-row { display: flex; gap: 26px; margin-top: 30px; }
.spec .n { font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.spec .l { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); margin-top: 3px; }

/* narration player — chrome-less */
.player { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--bg-2); box-shadow: 0 30px 80px rgba(0,0,0,0.5); position: relative; }
.player::before { content: ''; position: absolute; left: -10%; right: -10%; top: -30%; height: 60%; background: var(--accent-glow); filter: blur(70px); opacity: 0.35; pointer-events: none; }
.player-stage { position: relative; height: 240px; background: linear-gradient(180deg, #0a0a0d, #0d0d11); overflow: hidden; }
.player-badge { position: absolute; top: 14px; right: 16px; z-index: 4; display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 10px; color: var(--accent); background: rgba(8,8,10,0.6); border: 1px solid var(--accent-line); border-radius: 999px; padding: 4px 10px; }
.player-badge .rdot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: recblink 1.4s infinite; }
/* transcript */
.transcript { padding: 20px 24px; border-top: 1px solid var(--line); background: var(--bg-1); }
.transcript .tr-voice { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); margin-bottom: 10px; }
.transcript-line { font-family: var(--font-body); font-size: 17px; line-height: 1.6; color: #54545f; letter-spacing: -0.01em; }
.transcript-line .w { transition: color 0.2s; }
.transcript-line .w.spoken { color: var(--ink); }
.transcript-line .w.now { color: var(--accent); }
.scrubber { display: flex; align-items: center; gap: 12px; padding: 14px 24px; border-top: 1px solid var(--line); }
.scrub-play { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); border: 0; display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; }
.scrub-play svg { fill: var(--accent-ink); margin-left: 2px; }
.scrub-track { flex: 1; height: 4px; border-radius: 3px; background: var(--bg-3); position: relative; overflow: hidden; }
.scrub-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 32%; background: var(--accent); border-radius: 3px; }
.scrub-time { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); flex-shrink: 0; }
.hero-eq { width: 64px; height: 16px; flex: 0 0 auto; }

/* ── Voice picker (narration section) ───────────────────────────────────── */
.vpick { border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.5); position: relative; }
.vpick::before { content: ''; position: absolute; left: -10%; right: -10%; top: -30%; height: 60%; background: var(--accent-glow); filter: blur(70px); opacity: 0.3; pointer-events: none; }
.vpick-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid var(--line); position: relative; }
.vpick-head .vh-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }
.vpick-lang { display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 11px; cursor: pointer; transition: border-color 0.2s; }
.vpick-lang:hover { border-color: var(--line-3); }
.vrow { display: flex; align-items: center; gap: 13px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); cursor: pointer; transition: background 0.2s; position: relative; }
.vrow:hover { background: rgba(255,255,255,0.02); }
.vrow.active { background: var(--accent-soft); }
.vrow .vav { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; background: var(--bg-3); border: 1px solid var(--line-3); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--ink-2); }
.vrow.active .vav { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.vrow .vmeta { min-width: 0; flex-shrink: 0; width: 132px; }
.vrow .vname { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--ink); }
.vrow .vtag { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vrow .vwave { flex: 1; height: 18px; justify-content: flex-end; }
.vrow .vwave i { opacity: 0.22; animation: none; }
.vrow.active .vwave i { opacity: 0.6; animation: waveBar 1s ease-in-out infinite alternate; }
.vrow .vplay { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-3); background: var(--bg-3); display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; }
.vrow .vplay svg { fill: var(--ink-3); margin-left: 1px; }
.vrow.active .vplay { background: var(--accent); border-color: var(--accent); }
.vrow.active .vplay svg { fill: var(--accent-ink); }
.vpick-foot { display: flex; align-items: center; gap: 8px; padding: 14px 18px; flex-wrap: wrap; }
.vpick-foot .vf-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-right: 4px; }
.vstyle { font-family: var(--font-mono); font-size: 11px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; cursor: pointer; transition: all 0.2s; }
.vstyle:hover { border-color: var(--line-3); }
.vstyle.on { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }

/* ── API BENTO ──────────────────────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 168px; gap: 14px; }
.tile { border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); padding: 20px; position: relative; overflow: hidden; transition: border-color 0.3s var(--ease), transform 0.3s var(--ease); display: flex; flex-direction: column; }
.tile:hover { border-color: var(--line-3); transform: translateY(-2px); }
.tile .ic { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line-3); background: var(--bg-3); color: var(--ink-2); display: flex; align-items: center; justify-content: center; margin-bottom: auto; }
.tile h4 { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--ink); margin: 14px 0 0; }
.tile p { font-size: 12.5px; line-height: 1.45; color: var(--ink-3); margin: 5px 0 0; }
.tile.wide { grid-column: span 2; }
.tile.tall { grid-row: span 2; }
.tile.feat-tile { grid-column: span 2; background: linear-gradient(150deg, var(--accent-soft), transparent 55%), var(--bg-2); border-color: var(--accent-line); }
.tile.feat-tile .ic { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.tile.feat-tile h4 { font-size: 18px; }
.tile.feat-tile p { color: var(--ink-2); font-size: 13.5px; }
/* agent perception tile — accent-highlighted but single cell */
.tile.agent-tile { border-color: var(--accent-line); background: linear-gradient(160deg, var(--accent-soft), transparent 60%), var(--bg-2); }
.tile.agent-tile .ic { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.tile.agent-tile p { color: var(--ink-2); }
.tile-badge { position: absolute; top: 18px; right: 18px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent-line); border-radius: 999px; padding: 3px 9px; }
/* code tile */
.tile.code-tile { grid-column: span 2; grid-row: span 2; padding: 0; background: var(--bg-1); }
.code-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.code-head .fname { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); }
.code-head .copy { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; cursor: pointer; }
.code-body { padding: 16px 18px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.8; overflow-x: auto; white-space: pre; }
.t-prop { color: #9aa3b2; } .t-flag { color: #e8a88f; } .t-key { color: var(--accent); } .t-str { color: #a8d8a8; } .t-comm { color: #4a5568; font-style: italic; } .t-num { color: #d6c98f; }
.caret { display: inline-block; width: 7px; height: 13px; background: var(--accent); vertical-align: -2px; animation: recblink 1s step-end infinite; }
.tile-visual { margin-top: 14px; flex: 1; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg-1); position: relative; overflow: hidden; min-height: 0; }

/* ── CI/CD — GitHub PR comment card ─────────────────────────────────────── */
.pr { max-width: 720px; margin: 0 auto; }
.pr-card { border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); overflow: hidden; }
.pr-top { display: flex; align-items: center; gap: 11px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.012); }
.pr-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); border: 1px solid var(--accent-line); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pr-meta { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); }
.pr-meta b { color: var(--ink); font-weight: 500; }
.pr-meta .bot { color: var(--accent); }
.pr-time { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--ink-4); }
.pr-body { padding: 18px; }
.pr-text { font-size: 14px; color: var(--ink-2); line-height: 1.55; margin: 0 0 14px; }
.pr-text b { color: var(--ink); font-weight: 600; }
.pr-video { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg-1); }
.pr-stage { position: relative; height: 230px; background: #000; display: flex; align-items: center; justify-content: center; }
.pr-stage .glow { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 42%, var(--accent-glow), transparent 60%); opacity: 0.5; }
.pr-stage .grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line-2) 1px,transparent 1px),linear-gradient(90deg,var(--line-2) 1px,transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(ellipse 80% 80% at 50% 50%,#000 40%,transparent); }
.pr-play { position: relative; width: 58px; height: 58px; border-radius: 50%; background: var(--accent); border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 0 30px var(--accent-glow); }
.pr-play svg { fill: var(--accent-ink); margin-left: 3px; }
.pr-react { display: flex; gap: 8px; margin-top: 14px; }
.pr-react span { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; }
.pipeline { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 28px; flex-wrap: wrap; }
.pl-step { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; }
.pl-step .accent-dot { flex-shrink: 0; }
.pl-arrow { color: var(--ink-4); }

/* ── Automate — switcher + chat + CI ────────────────────────────────────── */
.switch { display: flex; gap: 10px; max-width: 720px; margin: 0 auto 32px; }
.switch-btn { flex: 1; display: flex; align-items: center; gap: 12px; text-align: left; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; transition: all 0.25s var(--ease); }
.switch-btn:hover { border-color: var(--line-3); }
.switch-btn.active { border-color: var(--accent-line); background: linear-gradient(150deg, var(--accent-soft), transparent 70%), var(--bg-2); }
.switch-btn .sw-ic { width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-3); background: var(--bg-3); color: var(--ink-3); transition: all 0.25s; }
.switch-btn.active .sw-ic { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); }
.switch-btn .sw-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.switch-btn .sw-txt b { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--ink); }
.switch-btn .sw-txt i { font-family: var(--font-mono); font-style: normal; font-size: 10.5px; color: var(--ink-3); }
.auto-stage { max-width: 940px; margin: 0 auto; }
.auto-panel { animation: fadePanel 0.45s var(--ease); }
@keyframes fadePanel { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* chat window — input pinned at the bottom */
.chatwin { border: 1px solid var(--line); border-radius: 14px; background: var(--bg-1); overflow: hidden; box-shadow: 0 28px 70px rgba(0,0,0,0.45); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.015); }
.bdot-ai { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }
.chat-title { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--ink); }
.chat-conn { margin-left: auto; display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); }
.chat-log { min-height: 232px; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding: 20px; }
.msg { max-width: 82%; opacity: 0; transform: translateY(8px); animation: msgIn 0.4s var(--ease) forwards; }
@keyframes msgIn { to { opacity: 1; transform: none; } }
.msg.user { align-self: flex-end; background: var(--bg-3); border: 1px solid var(--line); border-radius: 14px; border-top-right-radius: 3px; padding: 10px 14px; font-size: 13.5px; color: var(--ink); }
.msg.tool { align-self: flex-start; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 9px; background: var(--bg); padding: 9px 12px; display: flex; align-items: center; gap: 9px; }
.msg.tool .accent-dot { animation: recblink 1.3s infinite; }
.msg.tool .run { color: var(--ink-4); margin-left: auto; }
.msg.result { align-self: flex-start; width: 86%; max-width: 86%; border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: 14px; border-top-left-radius: 3px; padding: 12px; display: flex; align-items: center; gap: 12px; }
.msg.result .thumb { width: 76px; height: 48px; border-radius: 7px; border: 1px solid var(--line); background: var(--bg); position: relative; overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.msg.result .thumb svg { fill: var(--accent); }
.msg.result .thumb .tg { position: absolute; inset: 0; background-image: linear-gradient(var(--line-2) 1px,transparent 1px),linear-gradient(90deg,var(--line-2) 1px,transparent 1px); background-size: 12px 12px; }
.msg.result .rt { font-family: var(--font-mono); font-size: 12px; color: var(--ink); }
.msg.result .rd { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); margin-top: 3px; }
.msg.result .ok { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--accent); display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.chat-input { display: flex; align-items: center; gap: 10px; margin: 0 16px 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px 11px 14px; }
.chat-input .ai { color: var(--accent); flex-shrink: 0; }
.chat-typed { flex: 1; font-size: 13.5px; color: var(--ink); min-height: 18px; }
.chat-typed::after { content: '|'; color: var(--accent); animation: recblink 1s step-end infinite; margin-left: 1px; }
.chat-send { width: 34px; height: 34px; border-radius: 9px; background: var(--accent); border: 0; display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; }
.chat-send svg { stroke: var(--accent-ink); }
.auto-note { text-align: center; margin: 22px auto 0; max-width: 540px; font-size: 13.5px; color: var(--ink-3); line-height: 1.5; }
.auto-note code { font-family: var(--font-mono); font-size: 12px; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 5px; padding: 1px 6px; }

/* CI panel */
.ci-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 18px; align-items: start; }
.ci-result .pr-card { box-shadow: 0 24px 60px rgba(0,0,0,0.4); }
.code-file { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }

/* ── Pricing ────────────────────────────────────────────────────────────── */
.pricing-wrap { max-width: 1260px; margin: 0 auto; padding: 0 32px; }
.price-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; align-items: stretch; }
.price { border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); padding: 24px 20px 20px; position: relative; transition: border-color 0.3s var(--ease); display: flex; flex-direction: column; }
.price:hover { border-color: var(--line-3); }
.price.feat-plan { border-color: var(--accent-line); background: linear-gradient(180deg, var(--accent-soft), transparent 32%), var(--bg-2); }
.price .tag { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.09em; text-transform: uppercase; background: var(--accent); color: var(--accent-ink); padding: 3px 10px; border-radius: 999px; font-weight: 700; }
.price .tag.new { background: transparent; color: var(--accent); border: 1px solid var(--accent-line); }
.price .pname { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--ink); }
.price .ptag { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; min-height: 28px; line-height: 1.3; }
.price .pprice { font-family: var(--font-display); font-size: 34px; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); margin: 14px 0 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line-2); }
.price .pprice small { font-size: 13px; color: var(--ink-3); font-weight: 400; }
/* feature list — differentiator lines are lime */
.price ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.price li { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
.price li svg { color: var(--ink-3); flex-shrink: 0; margin-top: 1px; }
.price li.on { color: var(--accent); font-weight: 500; }
.price li.on svg { color: var(--accent); }
.price li.dim { color: var(--ink-4); }
.price li.dim svg { color: var(--ink-4); }
/* expandable extra features (caret-only) */
.price-more { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; overflow: hidden; max-height: 0; opacity: 0; transition: max-height 0.4s var(--ease), opacity 0.3s, margin 0.4s; }
.price.open .price-more { max-height: 360px; opacity: 1; margin-top: 11px; }
.price-toggle { background: none; border: 0; cursor: pointer; width: 100%; display: flex; align-items: center; justify-content: center; padding: 12px 0 0; color: var(--ink-3); transition: color 0.2s; }
.price-toggle:hover { color: var(--ink); }
.price-toggle svg { transition: transform 0.3s var(--ease); }
.price.open .price-toggle svg { transform: rotate(180deg); }
.price .pcta { margin-top: auto; padding-top: 22px; }
.btn-block { width: 100%; }
/* Pay-as-you-go bar */
.payg { margin-top: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-1); padding: 22px 26px; display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.payg .pl { display: flex; align-items: center; gap: 12px; }
.payg .pname2 { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--ink); }
.payg .flex { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); border: 1px solid var(--line-3); border-radius: 999px; padding: 3px 9px; }
.payg .pdesc { font-size: 12.5px; color: var(--ink-3); }
.payg .pcost { display: flex; align-items: baseline; gap: 6px; }
.payg .pcost .big { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.payg .pcost small { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.payg .pbreak { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.payg .pbreak b { color: var(--ink-2); font-weight: 500; }
.payg .pcta { margin-left: auto; }

@media (max-width: 1100px) {
  .payg { flex-direction: column; align-items: flex-start; gap: 16px; }
  .payg .pcta { margin-left: 0; }
}

/* ── Closing CTA ────────────────────────────────────────────────────────── */
#pricing.sec { padding-bottom: 76px; }
.closing { text-align: center; padding: 92px 0 132px; position: relative; overflow: hidden; }
.closing::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 60% at 50% 100%, var(--accent-glow) 0%, transparent 60%); opacity: 0.6; pointer-events: none; }
.closing h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(36px, 5.5vw, 64px); line-height: 1.0; letter-spacing: -0.04em; margin: 0; position: relative; }
.closing p { margin: 22px auto 0; font-size: 18px; color: var(--ink-2); max-width: 480px; position: relative; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 70px 0 50px; }
.footer .grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer .brand { margin-bottom: 14px; }
.footer .tagline { font-size: 13px; color: var(--ink-3); max-width: 260px; line-height: 1.6; }
.footer h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer ul a { font-size: 13.5px; color: var(--ink-3); text-decoration: none; transition: color 0.2s; }
.footer ul a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line-2); font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-4); }

/* ── Scroll reveal ──────────────────────────────────────────────────────── */
.r { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.r.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .r { opacity: 1; transform: none; transition: none; } }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .sec { padding: 90px 0; }
  .nav-links, .nav-cta .login { display: none; }
  .menu-btn { display: block; }
  .split, .mcp-grid { grid-template-columns: 1fr; gap: 36px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile.feat-tile, .tile.code-tile, .tile.wide { grid-column: span 2; }
  .tile.code-tile { grid-row: span 1; }
  .price-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .payg { flex-direction: column; align-items: flex-start; gap: 16px; }
  .payg .pcta { margin-left: 0; }
  .footer .grid { grid-template-columns: 1fr 1fr; }
  .ncap { display: none; }
  .switch { flex-direction: column; }
  .ci-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .tile.feat-tile, .tile.code-tile, .tile.wide { grid-column: span 1; }
  .price-grid { grid-template-columns: 1fr; }
  .footer .grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 12px; }
  .spec-row { gap: 18px; }
}

/* ── Mobile menu (injected by page.js) ──────────────────────────────────── */
.mobile-menu {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  flex-direction: column; gap: 2px; padding: 14px 24px 22px;
  background: rgba(8,8,10,0.96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: var(--font-mono); font-size: 14px; color: var(--ink-2); text-decoration: none; padding: 11px 4px; border-radius: 7px; }
.mobile-menu a:hover { color: var(--ink); }
.mobile-menu a.btn { margin-top: 10px; justify-content: center; }
@media (min-width: 901px) { .mobile-menu { display: none !important; } }

/* ── Sub-page header (pricing/docs) ─────────────────────────────────────── */
.subhead { padding: 150px 0 0; text-align: center; }
.subhead .sec-label { justify-content: center; }
.subhead h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(34px, 5vw, 58px); line-height: 1.04; letter-spacing: -0.04em; margin: 14px 0 0; color: var(--ink); }
.subhead h1 em { font-style: normal; color: var(--accent); }
.subhead .subhead-sub { margin: 18px auto 0; font-size: 18px; color: var(--ink-2); max-width: 540px; }

/* ── Feature matrix ─────────────────────────────────────────────────────── */
.ftable-wrap { max-width: 1120px; margin: 0 auto; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ftable { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.ftable th, .ftable td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.ftable th:first-child, .ftable td:first-child { text-align: left; color: var(--ink); font-weight: 500; white-space: normal; }
.ftable thead th { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink-2); font-weight: 500; }
.ftable thead th.pop { color: var(--accent); }
.ftable tbody tr:hover { background: rgba(255,255,255,0.02); }
.ftable .mono { font-family: var(--font-mono); color: var(--ink-2); }
.ftable .yes { color: var(--accent); }
.ftable .no { color: var(--ink-4); }

/* ── FAQ accordion ──────────────────────────────────────────────────────── */
.faq { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); transition: border-color 0.25s var(--ease); }
.faq details[open] { border-color: var(--line-3); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; font-weight: 500; color: var(--ink); font-size: 15px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q-ic { color: var(--ink-3); font-size: 22px; line-height: 1; transition: transform 0.2s var(--ease); flex-shrink: 0; }
.faq details[open] summary .q-ic { transform: rotate(45deg); color: var(--accent); }
.faq .faq-body { padding: 0 20px 20px; color: var(--ink-2); font-size: 14.5px; line-height: 1.62; }
.faq .faq-body code { font-family: var(--font-mono); font-size: 0.9em; background: var(--bg-3); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; color: var(--ink); }
