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

:root {
  --bg:        #0A0A0A;
  --surface:   #111827;
  --surface2:  #1A2030;
  --border:    #2A2A2A;
  --border2:   #333;
  --accent:    #E8FF00;
  --accent2:   #B8CC00;
  --text:      #F0F0F0;
  --muted:     #888;
  --muted2:    #555;
  --green:     #22C55E;
  --orange:    #F97316;
  --red:       #EF4444;
  --blue:      #3B82F6;
  --font-head: 'Rajdhani', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── STRIPE ── */
.stripe {
  height: 3px;
  background: var(--accent);
  width: 100%;
}

/* ── NAV ── */
nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 0;
  height: 56px;
}
.nav-logo {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.05em;
  margin-right: 40px;
  white-space: nowrap;
}
.nav-logo span { color: var(--text); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex: 1;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--accent); }
.nav-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted2);
  margin-left: auto;
  letter-spacing: 0.04em;
}

/* ── LAYOUT ── */
.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ── PAGE HERO ── */
.hero {
  padding: 60px 0 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  color: var(--text);
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-sub {
  color: var(--muted);
  font-size: 15px;
  max-width: 560px;
  line-height: 1.7;
}

/* ── SECTION LABELS ── */
.section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-block {
  margin-bottom: 56px;
}

/* ── CARDS GRID ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 0;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.15s;
}
.card:hover { border-color: var(--border2); background: var(--surface2); }
.card:hover::before { opacity: 1; }
.card-icon {
  font-size: 22px;
  margin-bottom: 4px;
}
.card-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.card-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}
.card-cta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 6px;
}
.card.coming-soon { opacity: 0.45; pointer-events: none; cursor: default; }
.card.coming-soon .card-cta { color: var(--muted2); }

/* ── DATA TABLE ── */
.data-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table th {
  background: var(--surface2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }
.data-table .section-row td {
  background: var(--surface2);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-top: 1px solid var(--border);
}

/* ── ID BADGE ── */
.id-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(232,255,0,0.08);
  border: 1px solid rgba(232,255,0,0.2);
  border-radius: 3px;
  padding: 1px 7px;
  white-space: nowrap;
}

/* ── PARAM NAME ── */
.param-name {
  font-weight: 600;
  color: var(--text);
  font-size: 13px;
}
.param-desc {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
  margin-top: 3px;
}

/* ── RANGE ── */
.range-val {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #aaa;
  line-height: 1.5;
}

/* ── TIPS ── */
.tip {
  font-size: 12px;
  line-height: 1.5;
  padding: 5px 9px;
  border-radius: 4px;
  display: inline-block;
}
.tip-green { background: rgba(34,197,94,0.1); color: #4ade80; border-left: 2px solid #22C55E; padding-left: 8px; border-radius: 0 4px 4px 0; }
.tip-orange { background: rgba(249,115,22,0.1); color: #fb923c; border-left: 2px solid #F97316; padding-left: 8px; border-radius: 0 4px 4px 0; }

/* ── TABS ── */
.tab-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.tab-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}
.tab-btn:hover { color: var(--text); border-color: var(--border2); }
.tab-btn.active { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 500; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── BASELINE TABLE ── */
.baseline-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.baseline-table th {
  background: var(--surface2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.baseline-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
}
.baseline-table tr:last-child td { border-bottom: none; }
.baseline-table tr:hover td { background: rgba(255,255,255,0.02); }
.baseline-table .section-row td {
  background: var(--surface2);
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
}
.baseline-table .id-col { color: var(--accent); }
.baseline-table .name-col { color: var(--text); font-family: var(--font-body); font-size: 13px; }
.baseline-table .note-col { color: var(--muted); font-family: var(--font-body); font-size: 12px; font-family: var(--font-body); }
.val-blinky { color: #60a5fa; }
.val-entry  { color: #4ade80; }
.val-agg    { color: #fb923c; }
.val-warn   { color: var(--red); }

/* ── SPEC GRID ── */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}
.spec-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px 18px;
}
.spec-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.spec-value {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.spec-sub {
  font-size: 11px;
  color: var(--muted2);
  margin-top: 2px;
}

/* ── SETUP TABLE ── */
.setup-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.setup-table th {
  background: var(--surface2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.setup-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.setup-table tr:last-child td { border-bottom: none; }
.setup-table tr:hover td { background: rgba(255,255,255,0.02); }
.setup-table .section-row td {
  background: var(--surface2);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 14px;
}
.setup-val {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}
.setup-note { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  margin-top: 80px;
  padding: 32px 24px;
  text-align: center;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-logo {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}
.footer-text {
  font-size: 12px;
  color: var(--muted2);
}

/* ── NOTICE BANNER ── */
.notice {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  padding: 14px 18px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.6;
}
.notice strong { color: var(--text); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-tag { display: none; }
  .nav-links a { padding: 6px 10px; font-size: 12px; }
  .hero { padding: 40px 0 32px; }
  .hero h1 { font-size: 28px; }
  .cards { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .data-table td, .data-table th { padding: 8px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
