/* ============================================================
   ZCode — Simple, Fast, Vibe-Ready
   Design system: near-black canvas, electric blue accent,
   Geist Sans / Geist Mono. Dark-only, frontier dev-tool feel.
   ============================================================ */

@font-face {
  font-family: 'Geist Sans';
  src: url('../fonts/geist-sans-vf.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('../fonts/geist-mono-vf.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg0: #04060a;
  --bg1: #070a10;
  --panel: #0b0f16;
  --panel2: #0e131c;
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);
  --text: #eef2f8;
  --muted: #9ba8ba;
  --faint: #5d6b7e;
  --blue: #2f8cff;
  --blue-deep: #0071e3;
  --cyan: #00bcfe;
  --violet: #ac4bff;
  --green: #00d294;
  --amber: #f99c00;
  --red: #ff5f57;
  --radius: 14px;
  --font-sans: 'Geist Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --nav-h: 64px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }

body {
  background: var(--bg0);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(47, 140, 255, 0.35); color: #fff; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.mono { font-family: var(--font-mono); }

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg0); }
::-webkit-scrollbar-thumb { background: #1c2531; border-radius: 5px; border: 2px solid var(--bg0); }
::-webkit-scrollbar-thumb:hover { background: #2a3646; }

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 300;
  background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

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

#downloads, #capabilities, #pricing { scroll-margin-top: 76px; }

/* Reveal system */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ============ Typography helpers ============ */
.eyebrow {
  font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 18px; font-weight: 500;
}
.section-head { max-width: 720px; margin: 0 auto; text-align: center; padding: 0 24px; }
.section-title {
  font-size: clamp(34px, 5vw, 56px); font-weight: 700; letter-spacing: -0.035em;
  line-height: 1.05; margin-bottom: 18px;
}
.section-sub { color: var(--muted); font-size: clamp(15px, 1.6vw, 18px); }
.grad-text {
  background: linear-gradient(100deg, var(--cyan) 0%, var(--blue) 45%, var(--violet) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hl { color: var(--cyan); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 550; font-size: 14.5px; border-radius: 12px;
  padding: 12px 22px; position: relative; white-space: nowrap;
  transition: transform 0.25s var(--ease-spring), background 0.25s, border-color 0.25s, box-shadow 0.25s, color 0.25s;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(180deg, #ffffff, #e6ecf4);
  color: #05080d; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 8px 28px -8px rgba(47,140,255,0.55);
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(255,255,255,0.2), 0 12px 36px -8px rgba(47,140,255,0.8); transform: translateY(-2px); }
.btn-primary-shine {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(47,140,255,0.35) 50%, transparent 65%);
  transform: translateX(-120%);
}
.btn-primary:hover .btn-primary-shine { animation: shine 0.9s var(--ease-out); }
@keyframes shine { to { transform: translateX(120%); } }

.btn-ghost {
  border: 1px solid var(--line); color: var(--muted); background: rgba(255,255,255,0.02);
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.05); transform: translateY(-2px); }

/* ============ NAV ============ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(4, 6, 10, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line-soft);
}
.nav-progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--violet));
  transform-origin: 0 50%; transform: scaleX(0);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; gap: 34px; padding: 0 28px;
}
.nav-brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo { border-radius: 7px; }
.nav-word { font-weight: 800; letter-spacing: 0.04em; font-size: 15.5px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  padding: 8px 13px; border-radius: 9px; font-size: 14px; color: var(--muted);
  display: inline-flex; align-items: center; gap: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-link-btn { font-size: 14px; }
.chev { transition: transform 0.25s; opacity: 0.6; }
.nav-dropdown { position: relative; }
.nav-dropdown.is-open .chev { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 190px;
  background: rgba(14, 18, 26, 0.92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid var(--line); border-radius: 13px; padding: 7px;
  opacity: 0; transform: translateY(-6px) scale(0.98); pointer-events: none;
  transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out);
  box-shadow: 0 18px 50px -12px rgba(0,0,0,0.7);
  z-index: 50;
}
.dropdown-menu-right { left: auto; right: 0; }
.nav-dropdown.is-open .dropdown-menu { opacity: 1; transform: none; pointer-events: auto; }
.dropdown-menu a, .dropdown-current {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  font-size: 13.5px; color: var(--muted); border-radius: 8px; transition: color 0.15s, background 0.15s;
}
.dropdown-menu a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.dropdown-current { color: var(--text); }
.dropdown-current::after { content: '●'; color: var(--green); font-size: 8px; margin-left: auto; }

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px;
  color: var(--muted); padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line);
  transition: color 0.2s, border-color 0.2s;
}
.lang-btn:hover { color: var(--text); border-color: rgba(255,255,255,0.25); }
.btn-login {
  background: #fff; color: #05080d; padding: 9px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
}
.btn-login:hover { transform: translateY(-1px); box-shadow: 0 6px 20px -6px rgba(255,255,255,0.4); }
.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 10px; }
.nav-burger span { width: 20px; height: 1.8px; background: var(--text); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.4px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.4px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: rgba(4,6,10,0.96);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; text-align: center; }
.mobile-link {
  font-size: 26px; font-weight: 600; letter-spacing: -0.02em; padding: 10px 28px;
  color: var(--muted); border-radius: 12px; transition: color 0.2s, transform 0.3s var(--ease-out);
  transform: translateY(12px); opacity: 0;
}
.mobile-menu.is-open .mobile-link { transform: none; opacity: 1; }
.mobile-link:hover { color: var(--text); }
.mobile-link-cta { color: var(--cyan); }
.mobile-menu.is-open .mobile-link:nth-child(1) { transition-delay: 0.04s; }
.mobile-menu.is-open .mobile-link:nth-child(2) { transition-delay: 0.08s; }
.mobile-menu.is-open .mobile-link:nth-child(3) { transition-delay: 0.12s; }
.mobile-menu.is-open .mobile-link:nth-child(4) { transition-delay: 0.16s; }
.mobile-menu.is-open .mobile-link:nth-child(5) { transition-delay: 0.2s; }
.mobile-menu.is-open .mobile-link:nth-child(6) { transition-delay: 0.24s; }
.mobile-menu.is-open .mobile-link:nth-child(7) { transition-delay: 0.28s; }

/* ============ HERO ============ */
.hero {
  position: relative; padding: calc(var(--nav-h) + 84px) 24px 0;
  overflow: hidden; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(52% 38% at 50% 0%, rgba(47, 140, 255, 0.16), transparent 70%),
    radial-gradient(34% 26% at 82% 12%, rgba(172, 75, 255, 0.1), transparent 70%),
    radial-gradient(30% 24% at 14% 18%, rgba(0, 188, 254, 0.08), transparent 70%);
}
.hero-fade {
  position: absolute; inset: auto 0 0 0; height: 140px; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--bg0));
}
.hero-inner { position: relative; z-index: 2; text-align: center; max-width: 900px; }

.announce {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px 8px 12px;
  background: rgba(255,255,255,0.03);
  transition: border-color 0.25s, color 0.25s, transform 0.25s;
  margin-bottom: 34px;
}
.announce:hover { border-color: rgba(47,140,255,0.5); color: var(--text); transform: translateY(-1px); }
.announce-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(0, 210, 148, 0.5); animation: pulse-dot 2.4s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(0, 210, 148, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(0, 210, 148, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 210, 148, 0); }
}

.hero-title {
  font-size: clamp(46px, 8.4vw, 104px); font-weight: 800; letter-spacing: -0.045em;
  line-height: 0.98; margin-bottom: 26px;
}
.ht-line { display: block; }
.ht-grad {
  background: linear-gradient(95deg, #fff 0%, var(--cyan) 38%, var(--blue) 62%, var(--violet) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: grad-drift 9s ease-in-out infinite alternate;
}
@keyframes grad-drift { from { background-position: 0% 0; } to { background-position: 100% 0; } }
.ht-dot { color: var(--cyan); -webkit-text-fill-color: var(--cyan); }

.hero-sub {
  color: var(--muted); font-size: clamp(16px, 1.9vw, 19.5px); max-width: 620px;
  margin: 0 auto 40px; line-height: 1.65;
}
.hero-sub em { font-style: normal; color: var(--text); }
.hero-sub strong { color: var(--cyan); font-weight: 600; }

.hero-ctas { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; }
.btn-hero { padding: 13px 26px; border-radius: 14px; }
.btn-hero-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.btn-hero-text strong { font-size: 15px; }
.btn-hero-text small { font-size: 12px; opacity: 0.6; font-weight: 500; }

.hero-meta { margin-top: 22px; font-size: 13px; color: var(--faint); display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; }
.hero-meta .mono { color: var(--muted); font-size: 12.5px; }
.hero-meta-sep { opacity: 0.4; }
.beta-chip {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--amber); border: 1px solid rgba(249, 156, 0, 0.35); border-radius: 6px; padding: 1.5px 7px;
  background: rgba(249, 156, 0, 0.08);
}

/* ============ STAGE / APP SIM ============ */
.stage {
  position: relative; z-index: 2; width: min(1240px, 100%);
  margin-top: 74px; perspective: 1600px;
}
.stage-tilt { transition: transform 0.35s var(--ease-out); transform-style: preserve-3d; will-change: transform; }
.stage-shadow {
  position: absolute; inset: auto 4% -38px 4%; height: 70px; border-radius: 50%;
  background: radial-gradient(50% 100% at 50% 0%, rgba(47,140,255,0.28), transparent 75%);
  filter: blur(18px); transform: translateZ(-80px);
}
.app {
  background: linear-gradient(180deg, #0d1119, #090d14);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -1px 0 rgba(255,255,255,0.06) inset, 0 40px 120px -30px rgba(0,0,0,0.9);
  overflow: hidden; text-align: left;
  border-bottom: 0;
}
.app-chrome {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border-bottom: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.02);
}
.tl { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.tl-r { background: #ff5f57; } .tl-y { background: #febc2e; margin-left: -7px; } .tl-g { background: #28c840; margin-left: -7px; }
.app-title { display: flex; align-items: center; gap: 9px; min-width: 0; margin-left: 6px; }
.app-title-text {
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 340px;
}
.chip {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 500;
  color: var(--muted); background: rgba(255,255,255,0.05); border: 1px solid var(--line-soft);
  border-radius: 7px; padding: 3px 8px; white-space: nowrap;
}
.app-status {
  margin-left: auto; display: flex; align-items: center; gap: 7px;
  font-size: 11.5px; color: var(--green); font-weight: 550; font-family: var(--font-mono);
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: blink 1.1s infinite; }
.app-status.is-done { color: var(--cyan); }
.app-status.is-done .status-dot { background: var(--cyan); animation: none; }
@keyframes blink { 50% { opacity: 0.25; } }

.app-body { display: grid; grid-template-columns: 218px 1fr 268px; grid-template-rows: minmax(0, 1fr); height: 560px; }

/* Sidebar */
.app-side {
  border-right: 1px solid var(--line-soft); padding: 14px 12px; display: flex; flex-direction: column;
  background: rgba(255,255,255,0.012); min-width: 0;
}
.side-actions { display: flex; flex-direction: column; gap: 2px; margin-bottom: 18px; }
.side-action {
  display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--muted);
  padding: 7px 9px; border-radius: 8px;
}
.side-action kbd {
  margin-left: auto; font-family: var(--font-mono); font-size: 10px; color: var(--faint);
  border: 1px solid var(--line-soft); border-radius: 5px; padding: 1px 5px;
}
.side-label { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); padding: 0 9px 8px; }
.side-tasks { list-style: none; display: flex; flex-direction: column; gap: 5px; overflow: hidden; }
.side-task { border-radius: 9px; padding: 8px 10px; display: flex; flex-direction: column; gap: 3px; }
.side-task.is-active { background: rgba(47, 140, 255, 0.09); box-shadow: 0 0 0 1px rgba(47,140,255,0.22) inset; }
.st-head { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; }
.st-avatar { border-radius: 50%; }
.st-dot { width: 8px; height: 8px; border-radius: 3px; flex-shrink: 0; }
.st-dot-b { background: var(--blue); } .st-dot-v { background: var(--violet); } .st-dot-g { background: var(--green); }
.st-time { margin-left: auto; font-size: 10.5px; color: var(--green); }
.st-sub { font-size: 10.8px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user {
  margin-top: auto; display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 550;
  padding: 9px; border-top: 1px solid var(--line-soft); color: var(--muted);
}
.side-user img { border-radius: 50%; }

/* Transcript */
.app-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.transcript {
  flex: 1; overflow: hidden; padding: 20px 24px; display: flex; flex-direction: column; gap: 14px;
  font-size: 13px; line-height: 1.6; position: relative;
  mask-image: linear-gradient(180deg, transparent 0, #000 26px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 26px);
}
.transcript > * { flex-shrink: 0; }
.msg-user {
  align-self: flex-end; max-width: 88%;
  background: rgba(47, 140, 255, 0.13); border: 1px solid rgba(47, 140, 255, 0.28);
  border-radius: 13px 13px 4px 13px; padding: 10px 14px; color: #d6e6ff; font-size: 12.6px;
}
.msg-agent { color: #c4cfdd; max-width: 96%; }
.msg-agent code, .diff-card code {
  font-family: var(--font-mono); font-size: 11.4px; background: rgba(255,255,255,0.07);
  border: 1px solid var(--line-soft); border-radius: 5px; padding: 1px 6px; color: #dfe7f2; white-space: nowrap;
}
.cursor {
  display: inline-block; width: 7px; height: 14px; background: var(--cyan);
  vertical-align: -2px; margin-left: 2px; animation: blink 0.85s infinite; border-radius: 1.5px;
}
.tool {
  border: 1px solid var(--line-soft); border-radius: 11px; overflow: hidden;
  background: rgba(255,255,255,0.018); max-width: 96%;
}
.tool-head {
  display: flex; align-items: center; gap: 9px; padding: 8px 13px; font-size: 12px; color: var(--muted);
}
.tool-head .t-verb { color: var(--text); font-weight: 600; }
.tool-head .t-icon { color: var(--cyan); display: inline-flex; }
.tool-extra { margin-left: auto; display: flex; gap: 8px; align-items: center; font-family: var(--font-mono); font-size: 11px; }
.add { color: var(--green); } .del { color: #ff6d67; }
.tool-body {
  border-top: 1px solid var(--line-soft); padding: 10px 14px;
  font-family: var(--font-mono); font-size: 11px; color: var(--faint);
  white-space: pre-wrap; word-break: break-word; line-height: 1.7;
  max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; border-top-width: 0;
  transition: max-height 0.5s var(--ease-out), opacity 0.4s, padding 0.4s;
  overflow: hidden;
}
.tool.is-open .tool-body { max-height: 130px; opacity: 1; padding: 10px 14px; border-top-width: 1px; }
.tool-body .ok { color: var(--green); }
.tool-body .err { color: #ff6d67; }
.tool-files { display: flex; gap: 6px; padding: 0 13px 10px; flex-wrap: wrap; }
.tool-file {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10.8px; color: var(--muted);
  background: rgba(255,255,255,0.04); border-radius: 6px; padding: 3px 8px;
}
.tool-file img { width: 12px; height: 12px; }

.diff-card {
  border: 1px solid var(--line-soft); border-radius: 12px; background: rgba(255,255,255,0.02);
  overflow: hidden; max-width: 96%;
}
.diff-head {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 12.4px; font-weight: 600;
  border-bottom: 1px solid var(--line-soft);
}
.diff-head .diffstat { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; }
.diff-row { display: flex; align-items: center; gap: 10px; padding: 8px 14px; font-size: 12px; }
.diff-row + .diff-row { border-top: 1px solid var(--line-soft); }
.diff-row img { width: 14px; height: 14px; }
.diff-row .f-name { font-family: var(--font-mono); font-size: 11.6px; color: #cfd9e6; }
.diff-row .f-bar { flex: 1; height: 4px; border-radius: 3px; background: rgba(255,255,255,0.05); overflow: hidden; display: flex; }
.diff-row .f-bar i { display: block; height: 100%; transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.9s var(--ease-out) 0.15s; }
.diff-row .f-bar .b-add { background: var(--green); }
.diff-row .f-bar .b-del { background: #ff6d67; }
.diff-card.is-in .f-bar i { transform: scaleX(1); }
.diff-row .f-stat { font-family: var(--font-mono); font-size: 10.8px; }

/* Composer */
.composer {
  display: flex; align-items: center; gap: 12px; margin: 0 24px 16px;
  border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px;
  background: rgba(255,255,255,0.025);
}
.composer-hint { font-size: 12.5px; color: var(--faint); }
.composer-right { margin-left: auto; display: flex; align-items: center; gap: 7px; }
.chip-model { color: var(--cyan); border-color: rgba(0,188,254,0.3); background: rgba(0,188,254,0.07); }
.chip-max { color: var(--amber); border-color: rgba(249,156,0,0.3); background: rgba(249,156,0,0.07); }
.composer-send {
  width: 24px; height: 24px; border-radius: 7px; background: var(--blue); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Context panel */
.app-ctx {
  border-left: 1px solid var(--line-soft); padding: 14px; display: flex; flex-direction: column; gap: 12px;
  background: rgba(255,255,255,0.012); overflow: hidden;
}
.ctx-block { border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px 13px; }
.ctx-head {
  font-size: 11px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 10px; display: flex; align-items: center;
}
.ctx-changes { display: flex; justify-content: space-between; font-size: 12.4px; color: var(--muted); margin-bottom: 8px; }
.diffstat b { font-weight: 600; }
.ctx-branch { display: flex; align-items: center; gap: 7px; font-size: 11.6px; color: var(--faint); font-family: var(--font-mono); }
.goal-state {
  margin-left: auto; font-size: 10px; letter-spacing: 0.04em; padding: 2px 8px; border-radius: 6px;
  color: var(--green); background: rgba(0, 210, 148, 0.1); border: 1px solid rgba(0, 210, 148, 0.25);
  text-transform: none; transition: all 0.4s;
}
.goal-state.is-done { color: var(--cyan); background: rgba(0, 188, 254, 0.1); border-color: rgba(0, 188, 254, 0.3); }
.goal-title { font-size: 12.2px; font-weight: 600; line-height: 1.45; margin-bottom: 8px; }
.goal-meta { font-size: 10.6px; color: var(--faint); margin-bottom: 9px; }
.goal-bar { height: 4px; border-radius: 3px; background: rgba(255,255,255,0.06); overflow: hidden; margin-bottom: 11px; }
.goal-bar-fill {
  height: 100%; width: 0%; border-radius: 3px;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  transition: width 0.7s var(--ease-out);
}
.goal-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.goal-list li {
  font-size: 10.9px; color: var(--faint); line-height: 1.45; padding-left: 20px; position: relative;
  transition: color 0.4s;
}
.goal-list li::before {
  content: ''; position: absolute; left: 0; top: 2px; width: 12px; height: 12px;
  border-radius: 50%; border: 1.4px solid rgba(255,255,255,0.18); transition: all 0.35s;
}
.goal-list li.is-done { color: var(--muted); }
.goal-list li.is-done::before {
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23042' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/8px no-repeat;
  border-color: var(--green);
}

.replay-btn {
  position: absolute; right: 18px; bottom: 18px; z-index: 5;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 550; color: var(--muted);
  background: rgba(10, 14, 20, 0.85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px;
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity 0.4s, transform 0.4s, color 0.2s, border-color 0.2s;
}
.stage.is-ended .replay-btn { opacity: 1; transform: none; pointer-events: auto; }
.replay-btn:hover { color: var(--text); border-color: rgba(47,140,255,0.5); }
.replay-btn svg { transition: transform 0.5s var(--ease-out); }
.replay-btn:hover svg { transform: rotate(-180deg); }

/* ============ MARQUEE ============ */
.marquee {
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  overflow: hidden; padding: 18px 0; position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  background: var(--bg1);
}
.marquee-track {
  display: flex; gap: 34px; width: max-content; align-items: center;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-size: 13.5px; font-weight: 550; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--faint); white-space: nowrap;
}
.marquee-track i { color: var(--blue); font-style: normal; font-size: 12px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ CAPABILITIES ============ */
.caps { padding: 150px 24px 130px; max-width: 1280px; margin: 0 auto; }
.caps .section-head { margin-bottom: 90px; }
.caps-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; }
.caps-texts { display: flex; flex-direction: column; }
.cap-text { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; }
.cap-index { font-size: 12px; color: var(--blue); letter-spacing: 0.2em; margin-bottom: 16px; }
.cap-text h3 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; letter-spacing: -0.025em; margin-bottom: 16px; }
.cap-text p { color: var(--muted); font-size: 15.5px; line-height: 1.7; margin-bottom: 22px; max-width: 480px; }
.cap-text strong { color: var(--text); font-weight: 600; }
.cap-points { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.cap-points li {
  font-size: 13.8px; color: var(--muted); padding-left: 26px; position: relative;
}
.cap-points li::before {
  content: ''; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%;
  background: rgba(0, 210, 148, 0.12); border: 1px solid rgba(0, 210, 148, 0.4);
}
.cap-points li::after {
  content: ''; position: absolute; left: 4.5px; top: 8px; width: 5px; height: 3px;
  border-left: 1.6px solid var(--green); border-bottom: 1.6px solid var(--green); transform: rotate(-45deg);
}

.caps-visual-sticky { position: sticky; top: calc(var(--nav-h) + 7vh); padding: 20px 0; }
.cap-frame {
  position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.85), 0 0 80px -30px rgba(47, 140, 255, 0.3);
  aspect-ratio: 758 / 568; background: var(--panel);
}
.cap-shot {
  position: absolute; inset: 0; opacity: 0; transform: scale(1.04) translateY(10px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.cap-shot img { width: 100%; height: 100%; object-fit: cover; }
.cap-shot.is-on { opacity: 1; transform: none; }
.cap-frame-ring {
  position: absolute; inset: 0; pointer-events: none; border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset;
}
.cap-dots { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }
.cap-dot {
  width: 34px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
}
.cap-dot span {
  width: 22px; height: 3px; border-radius: 3px; background: rgba(255,255,255,0.16);
  transition: background 0.3s, width 0.3s;
}
.cap-dot.is-on span { background: var(--blue); width: 34px; }

/* ============ PRICING ============ */
.pricing { position: relative; padding: 140px 24px 120px; overflow: hidden; background: var(--bg1); border-top: 1px solid var(--line-soft); }
.pricing-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(44% 34% at 50% 22%, rgba(47, 140, 255, 0.09), transparent 70%),
    radial-gradient(26% 22% at 84% 60%, rgba(249, 156, 0, 0.05), transparent 70%);
}
.pricing .section-head { position: relative; margin-bottom: 70px; }
.plans {
  position: relative; max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch;
}
.plan {
  position: relative; border: 1px solid var(--line); border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.028), rgba(255,255,255,0.008));
  padding: 30px 28px; display: flex; flex-direction: column; overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.3s, box-shadow 0.4s;
}
.plan::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,0.055), transparent 65%);
  transition: opacity 0.35s;
}
.plan:hover::before { opacity: 1; }
.plan:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.2); box-shadow: 0 30px 70px -24px rgba(0,0,0,0.8); }
.plan-flag {
  position: absolute; top: -12px; right: 22px; font-size: 11px; font-weight: 650; letter-spacing: 0.05em;
  padding: 4px 12px; border-radius: 999px; background: var(--blue); color: #fff;
  box-shadow: 0 6px 18px -4px rgba(47, 140, 255, 0.6);
}
.flag-max { background: linear-gradient(90deg, #b26a00, var(--amber)); box-shadow: 0 6px 18px -4px rgba(249,156,0,0.5); }
.plan-popular {
  border-color: rgba(47, 140, 255, 0.45);
  background: linear-gradient(180deg, rgba(47, 140, 255, 0.09), rgba(47, 140, 255, 0.015));
  box-shadow: 0 0 60px -18px rgba(47, 140, 255, 0.45);
}
.plan-popular:hover { border-color: rgba(47, 140, 255, 0.75); box-shadow: 0 0 80px -14px rgba(47,140,255,0.6); }
.plan-max { border-color: rgba(249, 156, 0, 0.3); }
.plan-max:hover { border-color: rgba(249, 156, 0, 0.55); }
.plan-brand { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; font-family: var(--font-mono); }
.plan-name { font-size: 27px; font-weight: 750; letter-spacing: -0.02em; margin-bottom: 8px; }
.plan-desc { font-size: 13.2px; color: var(--muted); min-height: 40px; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin: 22px 0 20px; flex-wrap: wrap; }
.price { font-size: 42px; font-weight: 800; letter-spacing: -0.04em; font-family: var(--font-mono); }
.plan-max .price { color: var(--amber); }
.plan-popular .price { color: #7db9ff; }
.per { color: var(--faint); font-size: 13.5px; }
.was { color: var(--faint); font-size: 14.5px; margin-left: 4px; }
.save {
  margin-left: auto; font-size: 11px; color: var(--green);
  border: 1px solid rgba(0, 210, 148, 0.3); background: rgba(0, 210, 148, 0.07);
  padding: 2px 8px; border-radius: 6px;
}
.plan-usage { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 14px 0; margin-bottom: 18px; }
.usage-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 9px; }
.usage-head b { color: var(--text); }
.usage-head .mono { color: var(--faint); font-size: 11.5px; }
.usage-bar { height: 5px; border-radius: 4px; background: rgba(255,255,255,0.06); overflow: hidden; }
.usage-fill {
  height: 100%; width: 100%; border-radius: 4px; transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transition: transform 1.2s var(--ease-out) 0.25s;
}
.plan-max .usage-fill { background: linear-gradient(90deg, #b26a00, var(--amber)); }
.plans.is-in .usage-fill { transform: scaleX(var(--u)); }
.plan-feats { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 28px; }
.plan-feats li { font-size: 13.4px; color: var(--muted); padding-left: 26px; position: relative; line-height: 1.5; }
.plan-feats li::before {
  content: ''; position: absolute; left: 1px; top: 4px; width: 13px; height: 13px; border-radius: 50%;
  background: rgba(47, 140, 255, 0.12); border: 1px solid rgba(47, 140, 255, 0.4);
}
.plan-feats li::after {
  content: ''; position: absolute; left: 5px; top: 8px; width: 5px; height: 3px;
  border-left: 1.6px solid var(--blue); border-bottom: 1.6px solid var(--blue); transform: rotate(-45deg);
}
.btn-plan { margin-top: auto; justify-content: center; border: 1px solid var(--line); color: var(--text); background: rgba(255,255,255,0.03); }
.btn-plan:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.07); }
.btn-plan-primary { background: var(--blue); border-color: transparent; color: #fff; }
.btn-plan-primary:hover { background: #4a9dff; box-shadow: 0 10px 30px -8px rgba(47, 140, 255, 0.7); }
.btn-plan-max { border-color: rgba(249, 156, 0, 0.4); color: var(--amber); }
.btn-plan-max:hover { background: rgba(249, 156, 0, 0.1); border-color: rgba(249, 156, 0, 0.65); }
.pricing-note { position: relative; text-align: center; margin-top: 44px; font-size: 13px; color: var(--faint); }
.pricing-note a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.pricing-note a:hover { color: var(--text); }

/* ============ DOWNLOADS ============ */
.downloads { padding: 140px 24px 130px; max-width: 1160px; margin: 0 auto; }
.downloads .section-head { margin-bottom: 64px; }
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.dl-group {
  border: 1px solid var(--line); border-radius: 18px; padding: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  display: flex; flex-direction: column; gap: 9px; position: relative; overflow: hidden;
  transition: border-color 0.3s;
}
.dl-group::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(47,140,255,0.07), transparent 65%);
  transition: opacity 0.35s;
}
.dl-group:hover::before { opacity: 1; }
.dl-group:hover { border-color: rgba(255,255,255,0.16); }
.dl-group-head { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; }
.dl-group-head h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.linux-ic { opacity: 0.95; }
.invert-ic { filter: brightness(0) invert(1); }
.dl-row {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border: 1px solid var(--line-soft); border-radius: 12px; background: rgba(255,255,255,0.015);
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease-out);
  position: relative;
}
.dl-row:hover { border-color: rgba(47, 140, 255, 0.5); background: rgba(47, 140, 255, 0.06); transform: translateX(3px); }
.dl-name { font-size: 13.6px; font-weight: 550; flex: 1; min-width: 0; }
.dl-fmt { font-size: 10.6px; color: var(--cyan); background: rgba(0, 188, 254, 0.08); border: 1px solid rgba(0, 188, 254, 0.22); padding: 2px 7px; border-radius: 6px; flex-shrink: 0; }
.dl-ver { font-size: 11px; color: var(--faint); flex-shrink: 0; }
.dl-go { color: var(--faint); display: inline-flex; transition: color 0.2s, transform 0.25s var(--ease-out); }
.dl-row:hover .dl-go { color: var(--cyan); transform: translateY(2px); }
.dl-row.is-recommended { border-color: rgba(0, 210, 148, 0.45); }
.dl-row.is-recommended::after {
  content: 'Recommended'; position: absolute; top: -9px; right: 12px;
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--green); background: var(--bg0); padding: 1px 8px; border-radius: 6px;
  border: 1px solid rgba(0, 210, 148, 0.4);
}

/* ============ FINAL CTA ============ */
.final-cta { padding: 60px 24px 150px; }
.final-cta-inner {
  max-width: 900px; margin: 0 auto; text-align: center;
  border: 1px solid var(--line); border-radius: 28px; padding: 84px 40px;
  background:
    radial-gradient(60% 90% at 50% 0%, rgba(47, 140, 255, 0.14), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,0.025), transparent);
  position: relative; overflow: hidden;
}
.final-logo { margin: 0 auto 26px; border-radius: 14px; box-shadow: 0 12px 40px -8px rgba(47,140,255,0.5); border: 1px solid rgba(255,255,255,0.14); background: #14181f; }
.final-cta h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 750; letter-spacing: -0.03em; margin-bottom: 14px; }
.final-cta p { color: var(--muted); margin-bottom: 36px; font-size: 16.5px; }

/* ============ FOOTER ============ */
.footer { position: relative; border-top: 1px solid var(--line-soft); overflow: hidden; background: var(--bg1); }
.footer-word {
  position: absolute; left: 50%; bottom: -4vw; transform: translateX(-50%);
  font-size: 24vw; font-weight: 850; letter-spacing: -0.04em; line-height: 0.8;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.045);
  pointer-events: none; user-select: none; white-space: nowrap;
}
.footer-inner {
  position: relative; max-width: 1160px; margin: 0 auto; padding: 80px 24px 60px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 44px;
}
.footer-brand p { color: var(--faint); font-size: 13.6px; margin-top: 18px; line-height: 1.7; }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; color: var(--muted);
  transition: color 0.2s, border-color 0.2s, transform 0.25s var(--ease-out);
}
.footer-social a:hover { color: var(--text); border-color: rgba(255,255,255,0.28); transform: translateY(-2px); }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 {
  font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint);
  margin-bottom: 6px; font-weight: 650;
}
.footer-col a { font-size: 14px; color: var(--muted); width: fit-content; transition: color 0.2s, transform 0.2s; }
.footer-col a:hover { color: var(--text); transform: translateX(3px); }
.footer-base {
  position: relative; max-width: 1160px; margin: 0 auto; padding: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 12.8px; color: var(--faint);
}
.footer-base .mono { font-size: 11.8px; }

/* ============ MODAL ============ */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute; inset: 0; background: rgba(2, 4, 8, 0.7);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  animation: fade-in 0.3s;
}
.modal-card {
  position: relative; width: min(430px, 100%); text-align: center;
  background: linear-gradient(180deg, #10151f, #0a0e16);
  border: 1px solid var(--line); border-radius: 22px; padding: 44px 36px 36px;
  box-shadow: 0 50px 120px -20px rgba(0, 0, 0, 0.9);
  animation: modal-in 0.4s var(--ease-spring);
}
@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(22px) scale(0.96); } }
.modal-logo { margin: 0 auto 20px; border-radius: 13px; border: 1px solid rgba(255,255,255,0.14); background: #14181f; }
.modal-card h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; }
.modal-card p { font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 28px; }
.modal-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.modal-x {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center; color: var(--faint);
  transition: color 0.2s, background 0.2s;
}
.modal-x:hover { color: var(--text); background: rgba(255,255,255,0.06); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .app-body { grid-template-columns: 200px 1fr 240px; }
  .caps-grid { gap: 44px; }
}
@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .btn-login { display: none; }
  .app-body { grid-template-columns: 1fr; height: 520px; }
  .app-side, .app-ctx { display: none; }
  .app-title-text { max-width: 200px; }
  .caps-grid { grid-template-columns: 1fr; }
  .caps-visual { order: -1; }
  .caps-visual-sticky { position: static; }
  .cap-text { min-height: 0; padding: 28px 0; }
  .cap-text p { max-width: none; }
  .plans { grid-template-columns: 1fr; max-width: 480px; }
  .plan-desc { min-height: 0; }
  .dl-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .hero { padding-top: calc(var(--nav-h) + 54px); }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .btn-hero-text { align-items: center; }
  .announce-text { max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .footer-inner { grid-template-columns: 1fr; gap: 34px; }
  .footer-base { justify-content: center; text-align: center; }
  .modal-actions .btn { width: 100%; justify-content: center; }
  .lang-btn span { display: none; }
  .stage { margin-top: 52px; }
  .caps { padding: 100px 20px 90px; }
  .pricing, .downloads { padding: 100px 20px 90px; }
  .chip-branch { display: none; }
  .app-title-text { max-width: 110px; }
  .app-status { font-size: 0; gap: 0; }
  .app-status .status-dot { width: 8px; height: 8px; }
  .composer { margin: 0 12px 12px; padding: 9px 12px; }
  .composer-hint { font-size: 11.5px; }
  .transcript { padding: 14px 14px; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .hero-canvas { display: none; }
}
