/* ============================================================
   Cobra Systems — shared theme
   ============================================================ */
:root {
  --bg: #09090b;
  --surface: #111113;
  --surface-2: #17171a;
  --border: #27272a;
  --border-hover: #3f3f46;
  --text: #fafafa;
  --muted: #a1a1aa;
  --dim: #52525b;
  --accent: #22c55e;
  --accent-dim: #16a34a;
  --accent-glow: rgba(34, 197, 94, 0.15);
  --danger: #f87171;
  --amber: #f59e0b;
  --blue: #7dd3fc;
  --radius: 12px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }

/* layered background: grid + accent glow */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  top: -280px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 560px;
  background: radial-gradient(circle, var(--accent-glow), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.wrap {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.wrap.narrow { max-width: 860px; }

/* ---------- header / nav ---------- */
header.site {
  padding: 1.4rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: contain;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 auto;
}
.nav-links a {
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.gh-btn, .discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  transition: all 0.15s ease;
  text-decoration: none;
}
.discord-btn:hover { color: var(--text); border-color: #5865F2; background: rgba(88,101,242,0.1); }
.gh-btn:hover { color: var(--text); border-color: var(--border-hover); background: var(--surface-2); }
.gh-btn svg, .discord-btn svg { width: 16px; height: 16px; fill: currentColor; }

/* mobile nav toggle */
.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text);
}
.nav-toggle svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ---------- hero ---------- */
main { flex: 1; padding: 2.5rem 0 3rem; }
.hero { text-align: center; display: flex; flex-direction: column; align-items: center; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.22);
  border-radius: 999px;
  margin-bottom: 1.75rem;
  text-decoration: none;
}
.badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  70% { box-shadow: 0 0 0 7px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
h1 {
  font-size: clamp(2.4rem, 6.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 1.15rem;
  max-width: 680px;
}
h1 .grad {
  background: linear-gradient(120deg, var(--accent), #4ade80);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.65;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.3rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: #052e16; }
.btn-primary:hover:not(:disabled) { background: var(--accent-dim); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.7; cursor: not-allowed; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--border-hover); background: var(--surface-2); }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }

/* ---------- section shell ---------- */
.section { margin-top: 5rem; }
.section-head { text-align: center; margin-bottom: 2rem; }
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.section-sub { color: var(--muted); margin-top: 0.6rem; font-size: 0.95rem; max-width: 520px; margin-left: auto; margin-right: auto; }

/* ---------- code / terminal ---------- */
.terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.6);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.dots { display: flex; gap: 0.4rem; }
.dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--border-hover); }
.dots span:nth-child(1) { background: #ff5f57; }
.dots span:nth-child(2) { background: #febc2e; }
.dots span:nth-child(3) { background: #28c840; }
.terminal-title { font-family: var(--mono); font-size: 0.78rem; color: var(--dim); }
.terminal-body {
  padding: 1.25rem 1.35rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.75;
  overflow-x: auto;
  position: relative;
}
.terminal-body pre { margin: 0; white-space: pre; }
.c-prompt { color: var(--accent); }
.c-comment { color: var(--dim); }
.c-key { color: #7dd3fc; }
.c-str { color: #86efac; }
.c-punc { color: var(--muted); }

.code-tabs { display: flex; gap: 0.25rem; margin-left: auto; }
.code-tab {
  padding: 0.3rem 0.7rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--dim);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s;
}
.code-tab:hover { color: var(--muted); }
.code-tab.active { color: var(--accent); background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.2); }
.copy-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  position: absolute; top: 0.85rem; right: 0.9rem;
  padding: 0.35rem 0.6rem;
  font-family: var(--font);
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s;
  z-index: 2;
}
.copy-btn:hover { color: var(--text); border-color: var(--border-hover); }
.copy-btn svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }
.code-pane { display: none; }
.code-pane.active { display: block; }

/* ---------- api explorer ---------- */
.explorer {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0.85rem;
  max-width: 760px;
  margin: 0 auto;
}
.endpoint-list { display: flex; flex-direction: column; gap: 0.4rem; }
.endpoint {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: all 0.15s;
}
.endpoint:hover { border-color: var(--border-hover); }
.endpoint.active { border-color: var(--accent); background: var(--surface-2); }
.method {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 5px;
  background: rgba(34,197,94,0.12);
  color: var(--accent);
  letter-spacing: 0.03em;
}
.method.post { background: rgba(125,211,252,0.12); color: var(--blue); }
.endpoint .ep-path { font-family: var(--mono); font-size: 0.78rem; color: var(--text); }
.explorer-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.explorer-req {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.explorer-req code { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); flex: 1; overflow-x: auto; white-space: nowrap; }
.send-btn {
  padding: 0.4rem 0.9rem;
  font-size: 0.78rem; font-weight: 600;
  background: var(--accent); color: #052e16;
  border: none; border-radius: 8px; cursor: pointer;
  transition: all 0.15s;
}
.send-btn:hover:not(:disabled) { background: var(--accent-dim); }
.send-btn:disabled { opacity: 0.6; cursor: wait; }
.explorer-res {
  padding: 1rem 1.15rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.7;
  min-height: 150px;
  white-space: pre;
  overflow-x: auto;
  color: var(--text);
}
.res-status { font-size: 0.72rem; color: var(--dim); margin-bottom: 0.6rem; font-family: var(--font); }
.res-status .ok { color: var(--accent); font-weight: 600; }

/* ---------- features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
}
.feature:hover { border-color: var(--border-hover); transform: translateY(-2px); background: var(--surface-2); }
.feature-icon {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.2);
  margin-bottom: 0.9rem;
}
.feature-icon svg { width: 19px; height: 19px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 0.98rem; font-weight: 600; margin-bottom: 0.35rem; letter-spacing: -0.01em; }
.feature p { font-size: 0.85rem; color: var(--muted); line-height: 1.55; }
.feature .ep-tag { font-family: var(--mono); font-size: 0.72rem; color: var(--dim); margin-top: 0.6rem; display: block; }

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}
.stat {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stat-num {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, var(--accent), #4ade80);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 0.82rem; color: var(--muted); margin-top: 0.35rem; }

/* ---------- roadmap ---------- */
.roadmap {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.step {
  display: flex;
  gap: 1rem;
  padding-bottom: 1.75rem;
  position: relative;
}
.step:last-child { padding-bottom: 0; }
.step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 13px; top: 30px; bottom: 0;
  width: 2px;
  background: var(--border);
}
.step-dot {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.7rem;
  z-index: 1;
}
.step.done .step-dot { background: var(--accent); border-color: var(--accent); }
.step.done .step-dot svg { width: 14px; height: 14px; stroke: #052e16; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.step.active .step-dot { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.step.active .step-dot span { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
.step-content h4 { font-size: 0.95rem; font-weight: 600; display: flex; align-items: center; gap: 0.6rem; }
.step-content .tag {
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(34,197,94,0.1);
  color: var(--accent);
  border: 1px solid rgba(34,197,94,0.2);
}
.step-content p { font-size: 0.85rem; color: var(--muted); margin-top: 0.3rem; line-height: 1.55; }

/* ---------- cta ---------- */
.cta {
  margin-top: 5rem;
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  top: -120px; left: 50%; transform: translateX(-50%);
  width: 400px; height: 300px;
  background: radial-gradient(circle, var(--accent-glow), transparent 65%);
  filter: blur(30px);
}
.cta h2 { font-size: clamp(1.4rem, 4vw, 1.9rem); font-weight: 700; letter-spacing: -0.03em; position: relative; }
.cta p { color: var(--muted); margin: 0.65rem 0 1.5rem; position: relative; }
.cta-actions { display: flex; gap: 0.75rem; justify-content: center; position: relative; flex-wrap: wrap; }
.cta .discord-btn {
  position: relative;
  font-size: 0.9rem;
  padding: 0.7rem 1.3rem;
  color: var(--text);
  background: #5865F2;
  border-color: #5865F2;
}
.cta .discord-btn:hover { background: #4752c4; border-color: #4752c4; }

/* ---------- comparison table ---------- */
.compare {
  max-width: 640px; margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 0.9rem 1.1rem; text-align: left; font-size: 0.88rem; border-bottom: 1px solid var(--border); }
.compare thead th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--dim); font-weight: 600; }
.compare th.cobra-col, .compare td.cobra-col { color: var(--accent); font-weight: 600; background: rgba(34,197,94,0.05); }
.compare tbody tr:last-child td { border-bottom: none; }
.compare td:first-child { color: var(--muted); }
.compare .yes { color: var(--accent); }
.compare .no { color: var(--danger); }

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem; }
.quote {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  display: flex; flex-direction: column;
}
.quote p { font-size: 0.88rem; color: var(--text); line-height: 1.6; margin-bottom: 1rem; flex: 1; }
.quote-author { display: flex; align-items: center; gap: 0.65rem; }
.quote-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-dim), #4ade80); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; color: #052e16; }
.quote-meta .name { font-size: 0.82rem; font-weight: 600; }
.quote-meta .role { font-size: 0.74rem; color: var(--dim); }

/* ---------- faq ---------- */
.faq { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.6rem; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: transparent; border: none; cursor: pointer;
  font-family: inherit; font-size: 0.95rem; font-weight: 500; color: var(--text);
  text-align: left;
}
.faq-q .chev { flex-shrink: 0; width: 18px; height: 18px; stroke: var(--dim); fill: none; stroke-width: 2; transition: transform 0.2s; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); stroke: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-a p { padding: 0 1.25rem 1.15rem; font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

/* ---------- page header (interior pages) ---------- */
.page-head { padding: 2.5rem 0 1rem; max-width: 720px; }
.page-head.center { text-align: center; margin: 0 auto; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1rem; }
.page-head p { font-size: 1.05rem; color: var(--muted); line-height: 1.65; }

/* ---------- docs layout ---------- */
.docs { display: grid; grid-template-columns: 220px 1fr; gap: 2.5rem; align-items: start; }
.docs-nav {
  position: sticky; top: 1.5rem;
  display: flex; flex-direction: column; gap: 0.2rem;
}
.docs-nav .grp { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); font-weight: 600; margin: 1.1rem 0 0.4rem; }
.docs-nav .grp:first-child { margin-top: 0; }
.docs-nav a { padding: 0.4rem 0.7rem; font-size: 0.85rem; color: var(--muted); text-decoration: none; border-radius: 8px; border-left: 2px solid transparent; transition: all 0.15s; }
.docs-nav a:hover { color: var(--text); background: var(--surface); }
.docs-content { min-width: 0; }
.docs-content section { margin-bottom: 3rem; scroll-margin-top: 1.5rem; }
.docs-content h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.docs-content h3 { font-size: 1.05rem; font-weight: 600; margin: 1.75rem 0 0.6rem; }
.docs-content p { color: var(--muted); line-height: 1.7; margin-bottom: 1rem; font-size: 0.95rem; }
.docs-content ul { color: var(--muted); line-height: 1.7; margin: 0 0 1rem 1.2rem; font-size: 0.95rem; }
.docs-content li { margin-bottom: 0.35rem; }
.docs-content code.inline { font-family: var(--mono); font-size: 0.85em; background: var(--surface-2); border: 1px solid var(--border); padding: 0.1rem 0.4rem; border-radius: 5px; color: var(--accent); }
.docs-content .terminal { margin: 0 0 1rem; max-width: none; }
.endpoint-badge { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--mono); font-size: 0.85rem; margin-bottom: 0.75rem; }
.endpoint-badge .path { color: var(--text); }

/* params table */
.params { width: 100%; border-collapse: collapse; margin-bottom: 1rem; font-size: 0.85rem; }
.params th, .params td { text-align: left; padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--border); }
.params th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--dim); }
.params td:first-child { font-family: var(--mono); color: var(--accent); }
.params td:nth-child(2) { font-family: var(--mono); color: var(--dim); font-size: 0.8rem; }
.params td { color: var(--muted); }

/* ---------- pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: stretch; max-width: 940px; margin: 0 auto; }
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  display: flex; flex-direction: column;
}
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 50px -25px var(--accent-glow); position: relative; }
.plan.featured::after { content: 'Most popular'; position: absolute; top: -0.7rem; left: 50%; transform: translateX(-50%); font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.25rem 0.7rem; background: var(--accent); color: #052e16; border-radius: 999px; }
.plan-name { font-size: 1.05rem; font-weight: 700; }
.plan-desc { font-size: 0.85rem; color: var(--muted); margin-top: 0.35rem; min-height: 2.6em; }
.plan-price { display: flex; align-items: baseline; gap: 0.3rem; margin: 1.25rem 0 0.25rem; }
.plan-price .amt { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; }
.plan-price .per { font-size: 0.85rem; color: var(--dim); }
.plan .btn { width: 100%; margin: 1.25rem 0; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.plan-features li { display: flex; align-items: flex-start; gap: 0.55rem; font-size: 0.86rem; color: var(--muted); line-height: 1.5; }
.plan-features li svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; stroke-width: 2.5; flex-shrink: 0; margin-top: 0.15rem; }
.plan-features li.off { color: var(--dim); }
.plan-features li.off svg { stroke: var(--dim); }

/* ---------- changelog ---------- */
.changelog { max-width: 720px; margin: 0 auto; }
.release { display: grid; grid-template-columns: 160px 1fr; gap: 1.5rem; padding: 2rem 0; border-top: 1px solid var(--border); }
.release:first-child { border-top: none; }
.release-meta .version { font-family: var(--mono); font-size: 0.9rem; font-weight: 600; color: var(--accent); }
.release-meta .date { font-size: 0.8rem; color: var(--dim); margin-top: 0.25rem; }
.release-meta .rtag { display: inline-block; margin-top: 0.6rem; font-size: 0.66rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.15rem 0.5rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
.release-meta .rtag.major { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.25); color: var(--accent); }
.release-body h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.75rem; letter-spacing: -0.02em; }
.release-body ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.release-body li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.9rem; color: var(--muted); line-height: 1.55; }
.chip { font-family: var(--mono); font-size: 0.62rem; font-weight: 600; text-transform: uppercase; padding: 0.15rem 0.4rem; border-radius: 5px; flex-shrink: 0; margin-top: 0.15rem; }
.chip.new { background: rgba(34,197,94,0.12); color: var(--accent); }
.chip.fix { background: rgba(125,211,252,0.12); color: var(--blue); }
.chip.imp { background: rgba(245,158,11,0.12); color: var(--amber); }

/* ---------- status ---------- */
.status-banner {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 1.15rem 1.35rem;
  background: rgba(34,197,94,0.06);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}
.status-banner .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2s infinite; flex-shrink: 0; }
.status-banner strong { font-size: 1rem; }
.status-banner span { color: var(--muted); font-size: 0.88rem; }
.status-list { display: flex; flex-direction: column; gap: 0.6rem; max-width: 720px; margin: 0 auto; }
.status-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.95rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.status-row .svc { font-weight: 500; font-size: 0.92rem; }
.status-row .svc small { display: block; font-family: var(--mono); font-size: 0.72rem; color: var(--dim); font-weight: 400; margin-top: 0.15rem; }
.status-pill { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.8rem; font-weight: 500; color: var(--accent); }
.status-pill .d { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.status-pill.degraded { color: var(--amber); }
.status-pill.degraded .d { background: var(--amber); }
.uptime { font-family: var(--mono); font-size: 0.8rem; color: var(--dim); }

/* ---------- team ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem; max-width: 760px; margin: 0 auto; }
.member { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.member .avatar { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 0.85rem; background: linear-gradient(135deg, var(--accent-dim), #4ade80); display: flex; align-items: center; justify-content: center; font-weight: 700; color: #052e16; font-size: 1.1rem; }
.member .name { font-weight: 600; font-size: 0.95rem; }
.member .role { font-size: 0.8rem; color: var(--dim); margin-top: 0.2rem; }

/* prose (about) */
.prose { max-width: 680px; margin: 0 auto; }
.prose p { color: var(--muted); line-height: 1.75; margin-bottom: 1.25rem; font-size: 1rem; }
.prose h2 { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; margin: 2.5rem 0 1rem; }

/* ---------- form ---------- */
form.waitlist { width: 100%; max-width: 460px; margin: 0 auto; }
.form-row { display: flex; gap: 0.6rem; }
.form-row input {
  flex: 1;
  padding: 0.8rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-row input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-row input::placeholder { color: var(--dim); }
.form-msg { font-size: 0.85rem; margin-top: 0.75rem; min-height: 1.2em; text-align: center; }
.form-msg.success { color: var(--accent); }
.form-msg.error { color: var(--danger); }

/* ---------- footer ---------- */
footer.site {
  margin-top: 5rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand .logo { margin-bottom: 0.85rem; }
.footer-brand p { font-size: 0.85rem; color: var(--dim); max-width: 260px; line-height: 1.6; }
.footer-col h5 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin-bottom: 0.85rem; }
.footer-col a { display: block; font-size: 0.85rem; color: var(--dim); text-decoration: none; padding: 0.25rem 0; transition: color 0.15s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 1.75rem; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--dim); }
.footer-bottom .socials { display: flex; gap: 0.9rem; }
.footer-bottom .socials a { color: var(--dim); transition: color 0.15s; }
.footer-bottom .socials svg { width: 17px; height: 17px; fill: currentColor; }
.footer-bottom .socials a:hover { color: var(--text); }

/* ---------- scroll progress + back to top ---------- */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #4ade80);
  z-index: 50;
  transition: width 0.1s linear;
}
.to-top {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #052e16;
  border: none; border-radius: 50%;
  cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 40;
  box-shadow: 0 8px 24px -6px rgba(34,197,94,0.5);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav-links {
    position: absolute; top: 4.5rem; left: 1.5rem; right: 1.5rem;
    flex-direction: column; align-items: stretch; gap: 0.15rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 0.6rem; margin: 0;
    z-index: 30; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.7rem 0.85rem; }
  .nav-toggle { display: inline-flex; }
  .docs { grid-template-columns: 1fr; }
  .docs-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 1.5rem; }
  .docs-nav .grp { display: none; }
  .docs-nav a { border-left: none; background: var(--surface); border: 1px solid var(--border); }
  .pricing { grid-template-columns: 1fr; max-width: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .features { grid-template-columns: 1fr 1fr; }
  .explorer { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr 1fr; }
  .release { grid-template-columns: 1fr; gap: 0.75rem; }
}
@media (max-width: 560px) {
  .features, .stats, .team { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .form-row .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.85rem; text-align: center; }
  .hero-actions .btn { width: 100%; }
}
