/* OpenAgent marketing site — hand-rolled, no build step. */

/* ---------- tokens ---------- */
:root {
  --bg: #0a0c10;
  --bg-elev: #0e1117;
  --bg-card: rgba(255, 255, 255, 0.024);
  --text: #edf1f7;
  --muted: #9aa4b2;
  --dim: #667083;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --accent: #5bf1cd;
  --accent-2: #6e9bff;
  --warn: #ffc46b;
  --grad: linear-gradient(92deg, var(--accent) 0%, var(--accent-2) 100%);
  --radius: 16px;
  --font-ui: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --nav-h: 64px;
}

/* ---------- reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.022em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.1em 0.36em;
}
::selection { background: rgba(91, 241, 205, 0.25); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 720px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #06231c;
  box-shadow: 0 0 0 1px rgba(91, 241, 205, 0.4), 0 8px 28px -10px rgba(91, 241, 205, 0.45);
}
.btn-primary:hover { background: #7cf5d9; transform: translateY(-1px); }
.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.05); }
.btn-sm { padding: 8px 14px; font-size: 13.5px; border-radius: 8px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 12, 16, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 26px; height: 26px; flex: none; }
.brand-name { font-size: 16.5px; font-weight: 700; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 26px; margin-left: 12px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--muted); transition: color 0.15s ease; }
.nav-links a:hover { color: var(--text); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: none; border: 1px solid var(--border-strong); border-radius: 8px;
  cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; width: 16px; height: 1.5px; background: var(--text); transition: transform 0.2s ease; }
.nav.open .nav-toggle span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav.open .nav-toggle span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 92px 0 104px; }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(52% 44% at 18% 8%, rgba(91, 241, 205, 0.09), transparent 68%),
    radial-gradient(46% 42% at 86% 32%, rgba(110, 155, 255, 0.1), transparent 70%);
}
.hero-glow::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(60% 55% at 50% 8%, black, transparent 78%);
  -webkit-mask-image: radial-gradient(60% 55% at 50% 8%, black, transparent 78%);
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 10fr) minmax(0, 9fr);
  gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(91, 241, 205, 0.28);
  background: rgba(91, 241, 205, 0.06);
  border-radius: 999px; padding: 7px 14px;
  margin: 0 0 26px;
}
.pulse-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex: none;
  box-shadow: 0 0 0 0 rgba(91, 241, 205, 0.5);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(91, 241, 205, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(91, 241, 205, 0); }
  100% { box-shadow: 0 0 0 0 rgba(91, 241, 205, 0); }
}
.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 3.9rem);
  font-weight: 800; letter-spacing: -0.035em;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.lede {
  margin: 22px 0 0; max-width: 34em;
  font-size: 17.5px; line-height: 1.65; color: var(--muted);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-fineprint { margin-top: 20px; font-size: 13px; color: var(--dim); }

/* terminal */
.hero-visual { position: relative; min-width: 0; }
.terminal {
  background: #0c0f14;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.terminal-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.tdot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.terminal-title {
  margin-left: 8px;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--dim);
}
.terminal-latency {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; color: var(--accent);
}
.terminal-body { padding: 18px 18px 14px; font-family: var(--font-mono); font-size: 12.75px; line-height: 1.55; }
.tl { margin: 0 0 12px; overflow-wrap: break-word; }
.tl-tag {
  display: inline-block; margin-right: 9px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 5px;
  vertical-align: 1px;
}
.tl-user { color: var(--text); }
.tl-user .tl-tag { color: var(--accent); background: rgba(91, 241, 205, 0.1); border: 1px solid rgba(91, 241, 205, 0.25); }
.tl-agent { color: var(--muted); }
.tl-agent .tl-tag { color: var(--accent-2); background: rgba(110, 155, 255, 0.1); border: 1px solid rgba(110, 155, 255, 0.25); }
.tl-agent code, .tl-perm code { background: rgba(255, 255, 255, 0.05); font-size: 0.95em; }
.tl-sys { color: var(--dim); text-align: center; font-size: 11.5px; margin-top: 14px; }
.tl-perm {
  border: 1px solid rgba(255, 196, 107, 0.3);
  background: rgba(255, 196, 107, 0.05);
  border-radius: 10px; padding: 11px 13px; margin: 14px 0;
}
.perm-head { color: #ffd699; font-size: 12px; }
.perm-actions { display: flex; gap: 7px; margin-top: 9px; }
.chip {
  font-size: 10.5px; font-weight: 500;
  padding: 3.5px 10px; border-radius: 6px;
  border: 1px solid var(--border-strong); color: var(--muted);
}
.chip-allow { background: rgba(91, 241, 205, 0.12); border-color: rgba(91, 241, 205, 0.4); color: var(--accent); }
.chip-deny { border-color: rgba(255, 120, 120, 0.3); color: #ff9d9d; }
.perm-meta { margin-top: 9px; font-size: 10.5px; color: var(--accent); }
.tl-cursor { margin: 0; }
.cursor {
  display: inline-block; width: 8px; height: 15px;
  background: var(--accent); vertical-align: text-bottom;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

@media (prefers-reduced-motion: no-preference) {
  .terminal-body > * { opacity: 0; animation: rise 0.5s ease forwards; }
  .terminal-body > *:nth-child(1) { animation-delay: 0.15s; }
  .terminal-body > *:nth-child(2) { animation-delay: 0.55s; }
  .terminal-body > *:nth-child(3) { animation-delay: 0.95s; }
  .terminal-body > *:nth-child(4) { animation-delay: 1.35s; }
  .terminal-body > *:nth-child(5) { animation-delay: 1.9s; }
  .terminal-body > *:nth-child(6) { animation-delay: 2.3s; }
  .terminal-body > *:nth-child(7) { animation-delay: 2.6s; }
  @keyframes rise { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
  .pulse-dot { animation-duration: 2.4s; }
}

/* ---------- agent strip ---------- */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 30px 0; background: var(--bg-elev); }
.strip .container { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.strip-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); flex: none; }
.agent-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.agent-chips li {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 14px; background: rgba(255, 255, 255, 0.015);
}
.agent-chips .chip-more { color: var(--accent); border-color: rgba(91, 241, 205, 0.3); }
.agent-chips .chip-live { color: var(--text); border-color: var(--border-strong); background: rgba(91, 241, 205, 0.07); }
.strip-note { width: 100%; margin-top: 4px; font-size: 13px; color: var(--dim); max-width: 62em; }

/* ---------- sections ---------- */
.section { padding: 104px 0; }
.section-head { max-width: 640px; margin: 0 0 56px; }
.kicker {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 14px;
}
.kicker-alt { color: var(--accent-2); }
.section h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
.section-sub { margin-top: 16px; color: var(--muted); font-size: 16.5px; max-width: 38em; }
section { scroll-margin-top: calc(var(--nav-h) + 12px); }

/* ---------- steps (spine) ---------- */
.steps { display: grid; gap: 0; max-width: 760px; }
.step {
  position: relative;
  display: grid; grid-template-columns: 52px 1fr; gap: 24px;
  padding: 0 0 44px;
}
.step::before {
  content: "";
  position: absolute; left: 25.5px; top: 52px; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--border-strong), var(--border));
}
.step:last-child { padding-bottom: 0; }
.step:last-child::before { display: none; }
.step-node {
  width: 52px; height: 52px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--accent);
  border: 1px solid rgba(91, 241, 205, 0.3);
  background: radial-gradient(circle at 35% 30%, rgba(91, 241, 205, 0.12), rgba(91, 241, 205, 0.03));
  border-radius: 50%;
}
.step h3 { font-size: 19px; font-weight: 600; padding-top: 12px; }
.step p { margin-top: 10px; color: var(--muted); font-size: 15.5px; max-width: 44em; }

.callout {
  margin-top: 64px;
  border: 1px solid rgba(110, 155, 255, 0.25);
  background:
    radial-gradient(80% 120% at 12% 0%, rgba(110, 155, 255, 0.09), transparent 60%),
    var(--bg-card);
  border-radius: var(--radius);
  padding: 34px 36px;
  max-width: 820px;
}
.callout-badge {
  display: inline-block;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-2);
  border: 1px solid rgba(110, 155, 255, 0.35);
  border-radius: 999px; padding: 4px 11px; margin-bottom: 16px;
}
.callout h3 { font-size: 20px; }
.callout p { margin-top: 12px; color: var(--muted); font-size: 15.5px; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 18px; }
.features-grid { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 26px 28px;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); background: rgba(255, 255, 255, 0.035); }
.card h3 { font-size: 16.5px; font-weight: 600; }
.card p { margin-top: 10px; color: var(--muted); font-size: 14.5px; line-height: 1.62; }

/* ---------- platform ---------- */
.section-platform {
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(110, 155, 255, 0.07), transparent 70%),
    var(--bg-elev);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.platform-grid { grid-template-columns: repeat(3, 1fr); }
.card-platform { padding-top: 24px; }
.card-badge {
  display: inline-block;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-2);
  border: 1px solid rgba(110, 155, 255, 0.35);
  background: rgba(110, 155, 255, 0.08);
  border-radius: 999px; padding: 3.5px 10px;
  margin-bottom: 16px;
}
.card-badge-live {
  color: var(--accent);
  border-color: rgba(91, 241, 205, 0.4);
  background: rgba(91, 241, 205, 0.09);
}
.platform-later {
  margin: 28px auto 0; max-width: 780px; text-align: center;
  font-size: 14px; color: var(--dim);
}
.pull-quote {
  margin: 48px auto 0; max-width: 780px;
  font-size: clamp(1.25rem, 2.6vw, 1.65rem);
  font-weight: 600; line-height: 1.4; letter-spacing: -0.02em;
  text-align: center; text-wrap: balance;
}
.pull-quote strong { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.honesty {
  margin: 28px auto 0; max-width: 680px;
  text-align: center;
  color: var(--muted); font-size: 15px;
}
.honesty strong { color: var(--text); }

/* ---------- standards / wire ---------- */
.section-standards .standards-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.standards-copy h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
.standards-copy h2 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.standards-copy p { margin-top: 16px; color: var(--muted); font-size: 16px; }
.wire {
  margin: 0;
  background: #0c0f14;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 26px 28px;
  font-family: var(--font-mono); font-size: 13px; line-height: 2.05;
  color: var(--text);
  overflow-x: auto;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.8);
}
.w-dir { color: var(--accent); }
.w-dim { color: var(--dim); }
.w-hl { color: var(--accent); }

/* ---------- faq ---------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-of-type { border-top: 1px solid var(--border); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px;
  font-size: 16.5px; font-weight: 600; letter-spacing: -0.015em;
  cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-mono); font-size: 18px; color: var(--dim);
  transition: transform 0.2s ease, color 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq-item p { padding: 0 4px 24px; color: var(--muted); font-size: 15px; max-width: 60em; }

/* ---------- cta band ---------- */
.cta-band { position: relative; overflow: hidden; padding: 128px 0; }
.cta-band::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(46% 58% at 50% 108%, rgba(91, 241, 205, 0.13), transparent 72%);
}
.cta-inner { position: relative; text-align: center; }
.cta-inner .section-sub { margin-left: auto; margin-right: auto; }
.cta-inner h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); font-weight: 800; letter-spacing: -0.03em; }
.cta-form {
  display: flex; gap: 10px; justify-content: center;
  max-width: 460px; margin: 34px auto 0;
}
.cta-form input {
  flex: 1; min-width: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 12px 16px;
  font: inherit; font-size: 15px; color: var(--text);
  transition: border-color 0.15s ease;
}
.cta-form input::placeholder { color: var(--dim); }
.cta-form input:focus { outline: none; border-color: rgba(91, 241, 205, 0.6); }
.cta-note { margin-top: 16px; font-size: 13px; color: var(--dim); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-elev); padding: 56px 0 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding-bottom: 44px; }
.footer-brand p { margin-top: 16px; color: var(--dim); font-size: 14px; line-height: 1.6; }
.footer-links { display: flex; gap: 72px; }
.footer-links h4 {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 16px;
}
.footer-links a { display: block; font-size: 14px; color: var(--muted); margin-bottom: 11px; transition: color 0.15s ease; }
.footer-links a:hover { color: var(--text); }
.footer-legal { border-top: 1px solid var(--border); padding-top: 22px; padding-bottom: 26px; }
.footer-legal p { font-size: 13px; color: var(--dim); }

/* ---------- pricing ---------- */
.pricing-hero { padding-top: 88px; padding-bottom: 40px; text-align: center; }
.pricing-hero-inner .kicker { margin-left: auto; margin-right: auto; display: table; }
.pricing-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); font-weight: 800; letter-spacing: -0.03em; }
.pricing-hero .section-sub { margin: 20px auto 0; }
.pricing-packs { padding-top: 24px; }
.packs-grid { grid-template-columns: repeat(3, 1fr); }
.pack-card { display: flex; flex-direction: column; text-align: center; padding: 34px 26px 30px; }
.pack-card-featured { border-color: rgba(91, 241, 205, 0.4); background: rgba(91, 241, 205, 0.04); }
.pack-card .card-badge { align-self: center; margin-bottom: 14px; }
.pack-name {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.pack-price { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; margin-top: 6px; }
.pack-sub { margin-top: 6px; color: var(--accent); font-size: 14px; font-family: var(--font-mono); }
.pack-note { margin-top: 14px; color: var(--muted); font-size: 14px; }
.packs-foot { margin-top: 28px; text-align: center; color: var(--muted); font-size: 14.5px; }
.packs-foot strong { color: var(--text); }
.pricing-rates { padding: 88px 0; }
.rate-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.rate-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.rate-table th, .rate-table td { padding: 16px 20px; text-align: left; }
.rate-table thead th {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim);
  border-bottom: 1px solid var(--border);
}
.rate-table tbody tr + tr td { border-top: 1px solid var(--border); }
.rate-tier { display: block; font-weight: 600; }
.rate-tier-sub { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--dim); margin-top: 2px; }
.rate-cents { color: var(--dim); }
.rate-table td:nth-child(2), .rate-table td:nth-child(3) { font-variant-numeric: tabular-nums; color: var(--muted); }
.rate-foot { margin-top: 18px; font-size: 13px; color: var(--dim); }

/* ---------- 404 ---------- */
.notfound { min-height: 58vh; display: flex; align-items: center; }
.notfound-inner { text-align: center; }
.notfound-code {
  font-family: var(--font-mono); font-size: 15px; font-weight: 700;
  letter-spacing: 0.24em; color: var(--accent); margin-bottom: 18px;
}
.notfound h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; }
.notfound .section-sub { margin: 18px auto 30px; }
.notfound .cta-row { justify-content: center; }

/* ---------- docs + legal (prose pages) ---------- */
.docs-page { padding: 56px 0 96px; }
.docs-layout {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start;
}
.docs-side { position: sticky; top: calc(var(--nav-h) + 24px); }
.docs-side-label {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin: 0 0 14px;
}
.docs-side-nav a {
  display: block; padding: 8px 12px; margin-bottom: 2px;
  border-radius: 8px; font-size: 14.5px; color: var(--muted);
  border-left: 2px solid transparent;
  transition: color 0.15s ease, background 0.15s ease;
}
.docs-side-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.03); }
.docs-side-nav a.current {
  color: var(--text); background: rgba(91, 241, 205, 0.06); border-left-color: var(--accent);
}

/* prose — shared by docs pages and legal pages */
.prose { max-width: 46rem; }
.prose > * + * { margin-top: 18px; }
.prose h1 { font-size: clamp(1.9rem, 3.6vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; }
.prose h2 { font-size: 1.35rem; font-weight: 700; margin-top: 44px; letter-spacing: -0.02em; }
.prose h3 { font-size: 1.05rem; font-weight: 600; margin-top: 28px; }
.prose p { color: var(--muted); font-size: 16px; line-height: 1.7; }
.prose p.doc-lead { color: var(--text); font-size: 18px; margin-top: 10px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose em { color: var(--text); font-style: italic; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.prose a:hover { color: #7cf5d9; }
.prose ul, .prose ol { padding-left: 22px; margin-top: 14px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { color: var(--muted); font-size: 16px; line-height: 1.65; margin-top: 8px; }
.prose li::marker { color: var(--dim); }
.prose li strong { color: var(--text); }
.prose code { color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 14.5px; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.prose td { color: var(--muted); }

.doc-eyebrow {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px;
}
.doc-meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--dim); margin-top: 6px; }
.doc-note {
  border: 1px solid var(--border-strong); background: var(--bg-card);
  border-radius: 12px; padding: 4px 20px; margin-top: 22px;
}
.doc-note-warn { border-color: rgba(255, 196, 107, 0.3); background: rgba(255, 196, 107, 0.05); }
.doc-draft {
  border: 1px solid rgba(255, 196, 107, 0.4); background: rgba(255, 196, 107, 0.06);
  color: #ffd699; border-radius: 10px; padding: 12px 16px; font-size: 14px; margin-top: 18px;
}
.doc-next {
  margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 12px;
}

@media (max-width: 860px) {
  .docs-layout { grid-template-columns: 1fr; gap: 28px; }
  .docs-side { position: static; }
  .docs-side-nav { display: flex; flex-wrap: wrap; gap: 6px; }
  .docs-side-nav a { border-left: none; border: 1px solid var(--border); margin-bottom: 0; }
  .docs-side-nav a.current { border-color: rgba(91, 241, 205, 0.4); }
}

/* ---------- reveal on scroll (JS adds .reveal, then .in) ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .pulse-dot, .cursor { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero { padding: 64px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .lede { max-width: none; }
  .features-grid, .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .packs-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .section-standards .standards-inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(10, 12, 16, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 12px 0; font-size: 15px; }
  .nav-toggle { display: flex; }
  .nav .btn-ghost { display: none; }
  .section { padding: 76px 0; }
  .features-grid, .platform-grid, .packs-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 42px 1fr; gap: 16px; }
  .step-node { width: 42px; height: 42px; font-size: 12px; }
  .step::before { left: 20.5px; top: 42px; }
  .step h3 { padding-top: 8px; }
  .callout { padding: 26px 22px; }
  .cta-form { flex-direction: column; }
  .footer-links { gap: 44px; }
}
