/* ============================================================
   HERMES MAX — DESIGN SYSTEM
   Tone: Brutally minimal / technical / terminal-inspired
   Palette: Near-black + off-white + electric blue accent
   Fonts: Geist Mono (headings) + Geist (body)
   ============================================================ */

:root {
  --bg:        #0A0A0A;
  --bg-alt:    #111111;
  --bg-card:   #141414;
  --bg-hover:  #1A1A1A;
  --border:    #222222;
  --border-hi: #333333;
  --text:      #E8E6E1;
  --text-muted:#888888;
  --text-dim:  #555555;
  --accent:    #0066FF;
  --accent-hi: #3385FF;
  --accent-dim:#003399;
  --green:     #00CC66;
  --amber:     #FFAA00;
  --red:       #FF3333;

  --font-mono: 'Geist Mono', 'Courier New', monospace;
  --font-sans: 'Geist', 'Helvetica Neue', sans-serif;

  --radius:    2px;
  --nav-h:     56px;
  --max-w:     1120px;
  --col-gap:   1px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: #1A1A1A;
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: var(--radius);
  color: var(--accent-hi);
}

/* ── CONTAINER ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-mark {
  width: 28px; height: 28px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  letter-spacing: -0.5px;
}
.logo-text {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}
.logo-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 1px 5px;
  border-radius: var(--radius);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin-left: auto;
}
.nav-link {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--text); background: var(--bg-hover); }
.nav-link.active { color: var(--accent-hi); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 1.5px;
  background: var(--text-muted);
  transition: all 0.2s;
}

/* ── HERO ── */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 80px) 0 80px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.35;
  pointer-events: none;
}
.hero-grid-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 0%, transparent 40%, var(--bg) 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: var(--radius);
}
.tag-status {
  color: var(--amber);
  border-color: rgba(255,170,0,0.3);
  background: rgba(255,170,0,0.05);
}
.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 28px;
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
}
.hero-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 40px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hi);
  border-color: var(--accent-hi);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border-hi);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text-dim);
  background: var(--bg-hover);
}

/* ── STATS BAR ── */
.stats-bar {
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  border-right: 1px solid var(--border);
  text-align: center;
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ── SECTIONS ── */
.section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.section-alt {
  background: var(--bg-alt);
}
.section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 48px;
}
.section-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  opacity: 0.7;
}
.section-title {
  font-family: var(--font-mono);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* ── FEATURE GRID ── */
.two-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
}
.feature-block {
  padding: 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.feature-block:hover { background: var(--bg-hover); }
.feature-block:nth-child(3n) { border-right: none; }
.feature-block:nth-child(n+4) { border-bottom: none; }
.feature-icon {
  font-size: 20px;
  margin-bottom: 16px;
  line-height: 1;
}
.feature-block h3 {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 10px;
}
.feature-block p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── COMPARE TABLE ── */
.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.compare-table th {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 12px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.compare-table th.highlight-col {
  color: var(--accent-hi);
  background: rgba(0,102,255,0.06);
}
.compare-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td.row-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
  width: 140px;
}
.compare-table td.highlight-col {
  color: var(--text);
  background: rgba(0,102,255,0.04);
}
.compare-table tr:hover td { background: var(--bg-hover); }
.compare-table tr:hover td.highlight-col { background: rgba(0,102,255,0.08); }
.note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  padding: 10px 14px;
  border-left: 2px solid var(--border-hi);
}

/* ── ROUTES LIST ── */
.routes-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}
.route-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}
.route-item:last-child { border-bottom: none; }
.route-item:hover { background: var(--bg-hover); }
.route-path {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-hi);
  background: rgba(0,102,255,0.08);
  border-color: rgba(0,102,255,0.2);
  min-width: 260px;
  flex-shrink: 0;
}
.route-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── CRITERIA GRID ── */
.criteria-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
}
.criterion {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}
.criterion:hover { background: var(--bg-hover); }
.criterion:nth-child(4n) { border-right: none; }
.criterion:nth-child(n+5) { border-bottom: none; }
.criterion-val {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-hi);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}
.criterion-label {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── PAGE NAV SECTION ── */
.page-nav-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.page-nav-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 32px;
}
.page-nav-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--border);
}
.page-nav-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border-right: 1px solid var(--border);
  transition: background 0.15s;
  position: relative;
}
.page-nav-card:last-child { border-right: none; }
.page-nav-card:hover { background: var(--bg-hover); }
.page-nav-card:hover .pnc-arrow { color: var(--accent-hi); transform: translateX(4px); }
.pnc-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  opacity: 0.6;
  margin-bottom: 12px;
}
.page-nav-card h3 {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}
.page-nav-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}
.pnc-arrow {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--text-dim);
  margin-top: 16px;
  transition: color 0.15s, transform 0.15s;
  display: inline-block;
}

/* ── FOOTER ── */
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.footer-meta {
  display: flex;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

/* ── INNER PAGE HERO ── */
.inner-hero {
  padding: calc(var(--nav-h) + 56px) 0 48px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.inner-hero .breadcrumb {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.inner-hero .breadcrumb a { color: var(--text-dim); }
.inner-hero .breadcrumb a:hover { color: var(--accent-hi); }
.inner-hero .breadcrumb span { color: var(--text-dim); }
.inner-hero h1 {
  font-family: var(--font-mono);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 16px;
}
.inner-hero p {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.65;
}

/* ── PLAN CARDS ── */
.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
}
.plan-card {
  padding: 40px;
  border-right: 1px solid var(--border);
}
.plan-card:last-child { border-right: none; }
.plan-card.featured {
  background: rgba(0,102,255,0.04);
  border-right-color: rgba(0,102,255,0.2);
}
.plan-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  display: inline-block;
}
.plan-badge.light { color: var(--text-dim); border: 1px solid var(--border); }
.plan-badge.heavy { color: var(--accent-hi); border: 1px solid rgba(0,102,255,0.4); background: rgba(0,102,255,0.08); }
.plan-name {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 4px;
}
.plan-price {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}
.plan-price sup {
  font-size: 20px;
  vertical-align: super;
  font-weight: 400;
  color: var(--text-muted);
}
.plan-price-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 32px;
}
.plan-specs {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  margin-bottom: 32px;
}
.plan-spec {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.plan-spec:last-child { border-bottom: none; }
.plan-spec-key {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.plan-spec-val {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.plan-spec-val.accent { color: var(--accent-hi); }

/* ── COST TABLE ── */
.cost-table-wrap {
  border: 1px solid var(--border);
  overflow-x: auto;
}
.cost-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.cost-table th {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 12px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.cost-table td {
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
}
.cost-table tr:last-child td { border-bottom: none; }
.cost-table tr:hover td { background: var(--bg-hover); }
.cost-table td:first-child { color: var(--text); }
.cost-table .total-row td {
  border-top: 1px solid var(--border-hi);
  color: var(--text);
  font-weight: 600;
}
.cost-table .margin-row td { color: var(--green); font-weight: 600; }

/* ── ARCH DIAGRAM ── */
.arch-block {
  border: 1px solid var(--border);
  margin-bottom: 0;
}
.arch-layer {
  border-bottom: 1px solid var(--border);
}
.arch-layer:last-child { border-bottom: none; }
.arch-layer-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
}
.arch-layer-header:hover { background: var(--bg-hover); }
.arch-layer-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.arch-layer-title {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.arch-layer-toggle {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--text-dim);
  transition: transform 0.2s;
}
.arch-layer-body {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.arch-item {
  padding: 20px 24px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.arch-item:nth-child(4n) { border-right: none; }
.arch-item-name {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.arch-item-detail {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ── INTEGRATION CARDS ── */
.integration-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
}
.integration-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}
.integration-card:hover { background: var(--bg-hover); }
.integration-card:nth-child(4n) { border-right: none; }
.integration-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  background: var(--bg-hover);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  margin-bottom: 12px;
}
.integration-name {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.integration-desc {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.45;
}
.integration-status {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--radius);
}
.status-ready { color: var(--green); border: 1px solid rgba(0,204,102,0.3); background: rgba(0,204,102,0.06); }
.status-planned { color: var(--amber); border: 1px solid rgba(255,170,0,0.3); background: rgba(255,170,0,0.06); }

/* ── PLATFORM CARDS ── */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--border);
}
.platform-card {
  padding: 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}
.platform-card:hover { background: var(--bg-hover); }
.platform-card:nth-child(2n) { border-right: none; }
.platform-card:nth-child(n+3) { border-bottom: none; }
.platform-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.platform-icon {
  font-size: 24px;
  line-height: 1;
}
.platform-name {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.platform-detail {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── COMMANDS TABLE ── */
.cmd-section-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 12px 20px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
}
.cmd-section-title:first-child { border-top: none; }
.cmd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.cmd-table th {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 10px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.cmd-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
}
.cmd-table tr:last-child td { border-bottom: none; }
.cmd-table tr:hover td { background: var(--bg-hover); }
.cmd-name {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-hi);
  white-space: nowrap;
}
.cmd-alias {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}
.ui-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: var(--radius);
  white-space: nowrap;
}
.ui-show { color: var(--green); border: 1px solid rgba(0,204,102,0.3); background: rgba(0,204,102,0.06); }
.ui-settings { color: var(--amber); border: 1px solid rgba(255,170,0,0.3); background: rgba(255,170,0,0.06); }
.ui-hide { color: var(--text-dim); border: 1px solid var(--border); }
.ui-chat { color: var(--accent-hi); border: 1px solid rgba(0,102,255,0.3); background: rgba(0,102,255,0.06); }

/* ── IMPLEMENTATION TIMELINE ── */
.timeline {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}
.timeline-phase {
  display: grid;
  grid-template-columns: 160px 1fr;
  border-bottom: 1px solid var(--border);
}
.timeline-phase:last-child { border-bottom: none; }
.timeline-left {
  padding: 28px 24px;
  border-right: 1px solid var(--border);
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.timeline-week {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.7;
}
.timeline-phase-name {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.timeline-right {
  padding: 28px 32px;
}
.timeline-right h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.timeline-tasks {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.timeline-task {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}
.timeline-task::before {
  content: '—';
  font-family: var(--font-mono);
  color: var(--text-dim);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── SCHEMA TABLE ── */
.schema-block {
  border: 1px solid var(--border);
  margin-bottom: 24px;
}
.schema-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.schema-table-name {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-hi);
}
.schema-table-desc {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}
.schema-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.schema-table th {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 9px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.schema-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
}
.schema-table tr:last-child td { border-bottom: none; }
.schema-table td:first-child { color: var(--text); font-weight: 500; }
.schema-table td:nth-child(2) { color: var(--accent-hi); }
.pk { color: var(--amber) !important; }
.fk { color: var(--green) !important; }

/* ── CALLOUT ── */
.callout {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  background: rgba(0,102,255,0.04);
  margin-bottom: 24px;
}
.callout p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
.callout strong { color: var(--text); font-weight: 600; }
.callout.warn { border-left-color: var(--amber); background: rgba(255,170,0,0.04); }
.callout.success { border-left-color: var(--green); background: rgba(0,204,102,0.04); }

/* ── SCROLL ANIMATIONS ── */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3) { border-right: none; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--border); }
  .two-col { grid-template-columns: repeat(2, 1fr); }
  .feature-block:nth-child(3n) { border-right: 1px solid var(--border); }
  .feature-block:nth-child(2n) { border-right: none; }
  .feature-block:nth-child(n+4) { border-bottom: 1px solid var(--border); }
  .feature-block:nth-child(n+5) { border-bottom: none; }
  .criteria-grid { grid-template-columns: repeat(2, 1fr); }
  .criterion:nth-child(4n) { border-right: 1px solid var(--border); }
  .criterion:nth-child(2n) { border-right: none; }
  .criterion:nth-child(n+3) { border-bottom: 1px solid var(--border); }
  .criterion:nth-child(n+5) { border-bottom: none; }
  .page-nav-grid { grid-template-columns: repeat(3, 1fr); }
  .page-nav-card:nth-child(3n) { border-right: none; }
  .page-nav-card:nth-child(n+4) { border-top: 1px solid var(--border); }
  .arch-layer-body { grid-template-columns: repeat(2, 1fr); }
  .arch-item:nth-child(2n) { border-right: none; }
  .integration-grid { grid-template-columns: repeat(2, 1fr); }
  .integration-card:nth-child(2n) { border-right: none; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero-title { font-size: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-child(3) { border-right: 1px solid var(--border); }
  .two-col { grid-template-columns: 1fr; }
  .feature-block { border-right: none !important; }
  .feature-block:not(:last-child) { border-bottom: 1px solid var(--border) !important; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan-card { border-right: none; border-bottom: 1px solid var(--border); }
  .criteria-grid { grid-template-columns: repeat(2, 1fr); }
  .page-nav-grid { grid-template-columns: 1fr; }
  .page-nav-card { border-right: none; border-bottom: 1px solid var(--border); }
  .page-nav-card:last-child { border-bottom: none; }
  .arch-layer-body { grid-template-columns: 1fr; }
  .arch-item { border-right: none; }
  .integration-grid { grid-template-columns: 1fr; }
  .integration-card { border-right: none; }
  .platform-grid { grid-template-columns: 1fr; }
  .platform-card { border-right: none; }
  .timeline-phase { grid-template-columns: 1fr; }
  .timeline-left { border-right: none; border-bottom: 1px solid var(--border); }
  .route-path { min-width: 180px; }
  .footer-meta { flex-direction: column; gap: 4px; }
}