/* =========================================
   WARPZONE DIRECTORY — Premium Dark Theme
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --bg-dark:     #080810;
  --bg-surface:  #0f0f1a;
  --bg-elevated: #161626;
  --bg-card:     #1a1a2e;
  --bg-hover:    #1e1e35;
  --text-primary:   #f0f0ff;
  --text-secondary: #9494b8;
  --text-muted:     #5a5a7a;
  --accent:       #7c3aed;
  --accent-light: #a78bfa;
  --accent-glow:  #7c3aed55;
  --accent-dark:  #5b21b6;
  --cyan:         #06b6d4;
  --cyan-light:   #67e8f9;
  --green:        #10b981;
  --green-light:  #6ee7b7;
  --yellow:       #f59e0b;
  --red:          #ef4444;
  --red-light:    #fca5a5;
  --border:       #1e1e38;
  --border-bright:#2a2a50;
  --radius:       10px;
  --radius-lg:    16px;
  --radius-sm:    6px;
  --shadow:       0 4px 24px rgba(0,0,0,.5);
  --shadow-lg:    0 8px 48px rgba(0,0,0,.7);
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;
}

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

html { scroll-behavior:smooth; }

body {
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  background:var(--bg-dark);
  color:var(--text-primary);
  line-height:1.7;
  font-size:16px;
}

a { color:var(--accent-light); text-decoration:none; transition:color .2s; }
a:hover { color:#c4b5fd; }

ul, ol { margin-left:1.5rem; margin-bottom:1rem; }
li { margin-bottom:.4rem; }

p { margin-bottom:1rem; color:var(--text-secondary); }
strong { color:var(--text-primary); }

/* ─── Scrollbar ──────────────────────────────── */
::-webkit-scrollbar { width:6px; height:6px; }
::-webkit-scrollbar-track { background:var(--bg-dark); }
::-webkit-scrollbar-thumb { background:var(--accent); border-radius:3px; }

/* ─── Navbar ─────────────────────────────────── */
.navbar {
  background:rgba(8,8,16,.95);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--border);
  padding:.9rem 2rem;
  display:flex;
  justify-content:space-between;
  align-items:center;
  position:sticky;
  top:0;
  z-index:200;
}

.logo {
  font-size:1.2rem;
  font-weight:900;
  letter-spacing:3px;
  text-transform:uppercase;
  background:linear-gradient(90deg,#a78bfa,#67e8f9);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}

.logo a {
  background:linear-gradient(90deg,#a78bfa,#67e8f9);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
  text-decoration:none;
}

.nav-links {
  display:flex;
  list-style:none;
  gap:.25rem;
  align-items:center;
}

.nav-links a {
  color:var(--text-secondary);
  text-decoration:none;
  font-size:.875rem;
  font-weight:500;
  padding:.45rem .85rem;
  border-radius:var(--radius-sm);
  transition:all .2s;
}

.nav-links a:hover,
.nav-links a.active {
  background:var(--bg-elevated);
  color:var(--accent-light);
}

/* Mobile hamburger */
.nav-toggle {
  display:none;
  background:none;
  border:1px solid var(--border-bright);
  color:var(--text-primary);
  padding:.4rem .7rem;
  border-radius:var(--radius-sm);
  cursor:pointer;
  font-size:1.1rem;
}

/* ─── Breadcrumb ─────────────────────────────── */
.breadcrumb {
  background:var(--bg-surface);
  border-bottom:1px solid var(--border);
  padding:.6rem 2rem;
  font-size:.8rem;
  color:var(--text-muted);
}

.breadcrumb a { color:var(--text-muted); }
.breadcrumb a:hover { color:var(--accent-light); }
.breadcrumb span { color:var(--text-secondary); }
.breadcrumb .sep { margin:0 .4rem; color:var(--text-muted); }

/* ─── Hero ───────────────────────────────────── */
.hero {
  text-align:center;
  padding:4.5rem 2rem 3rem;
  background:radial-gradient(ellipse 80% 60% at 50% -10%,#3b0764 0%,transparent 65%),
             linear-gradient(180deg,var(--bg-surface) 0%,var(--bg-dark) 100%);
  border-bottom:1px solid var(--border);
  position:relative;
  overflow:hidden;
}

.hero::before {
  content:'';
  position:absolute;
  inset:0;
  background:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events:none;
}

.hero-badge {
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  background:rgba(124,58,237,.15);
  border:1px solid rgba(124,58,237,.3);
  color:var(--accent-light);
  padding:.35rem .9rem;
  border-radius:99px;
  font-size:.8rem;
  font-weight:600;
  letter-spacing:.5px;
  margin-bottom:1.5rem;
}

.hero h1 {
  font-size:clamp(2rem,5vw,3.5rem);
  font-weight:900;
  letter-spacing:4px;
  margin-bottom:.75rem;
  background:linear-gradient(135deg,#f0f0ff 0%,#a78bfa 50%,#67e8f9 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}

.tagline {
  font-size:1.1rem;
  color:var(--text-secondary);
  max-width:600px;
  margin:0 auto 2rem;
}

.hero-stats {
  display:flex;
  justify-content:center;
  gap:2.5rem;
  flex-wrap:wrap;
  margin:2rem 0;
}

.hero-stat {
  text-align:center;
  background:rgba(255,255,255,.03);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:.9rem 1.5rem;
  min-width:110px;
}

.hero-stat strong {
  display:block;
  font-size:1.6rem;
  font-weight:800;
  background:linear-gradient(135deg,#a78bfa,#67e8f9);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}

.hero-stat small {
  color:var(--text-muted);
  font-size:.8rem;
  text-transform:uppercase;
  letter-spacing:.5px;
}

.hero-cta {
  margin-top:2rem;
  display:flex;
  gap:.75rem;
  justify-content:center;
  flex-wrap:wrap;
}

/* Search bar in hero */
.hero-search {
  display:flex;
  max-width:500px;
  margin:1.5rem auto 0;
  background:var(--bg-elevated);
  border:1px solid var(--border-bright);
  border-radius:var(--radius);
  overflow:hidden;
}

.hero-search input {
  flex:1;
  background:transparent;
  border:none;
  padding:.75rem 1rem;
  color:var(--text-primary);
  font-size:.9rem;
  outline:none;
}

.hero-search input::placeholder { color:var(--text-muted); }

.hero-search button {
  background:var(--accent);
  border:none;
  color:white;
  padding:.75rem 1.25rem;
  cursor:pointer;
  font-weight:600;
  font-size:.9rem;
  transition:background .2s;
}

.hero-search button:hover { background:var(--accent-dark); }

/* Tag cloud */
.tag-cloud {
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:.4rem;
  margin-top:1.5rem;
}

/* ─── Buttons ─────────────────────────────────── */
.btn {
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  padding:.7rem 1.4rem;
  border-radius:var(--radius);
  font-weight:600;
  font-size:.875rem;
  transition:all .2s;
  border:none;
  cursor:pointer;
  text-decoration:none;
  line-height:1;
}

.btn-primary {
  background:linear-gradient(135deg,var(--accent),var(--accent-dark));
  color:white;
  box-shadow:0 2px 12px var(--accent-glow);
}

.btn-primary:hover {
  background:linear-gradient(135deg,var(--accent-dark),#4c1d95);
  box-shadow:0 4px 20px var(--accent-glow);
  color:white;
  transform:translateY(-1px);
}

.btn-secondary {
  background:transparent;
  color:var(--text-secondary);
  border:1px solid var(--border-bright);
}

.btn-secondary:hover {
  background:var(--bg-elevated);
  color:var(--text-primary);
  border-color:var(--accent);
}

.btn-cyan {
  background:linear-gradient(135deg,var(--cyan),#0891b2);
  color:white;
}

.btn-cyan:hover { opacity:.85; color:white; }

.btn-ghost {
  background:rgba(255,255,255,.04);
  color:var(--text-secondary);
  border:1px solid var(--border);
}

.btn-ghost:hover {
  background:var(--bg-card);
  color:var(--text-primary);
}

.btn-sm {
  padding:.4rem .85rem;
  font-size:.8rem;
}

.btn-lg {
  padding:.9rem 2rem;
  font-size:1rem;
}

.btn-block { width:100%; justify-content:center; }

/* ─── Layout ──────────────────────────────────── */
.container {
  max-width:1100px;
  margin:0 auto;
  padding:2.5rem 2rem;
}

.page-layout {
  display:grid;
  grid-template-columns:1fr 300px;
  gap:2rem;
  max-width:1100px;
  margin:0 auto;
  padding:2.5rem 2rem;
}

.page-main { min-width:0; }

/* ─── Sidebar ─────────────────────────────────── */
.sidebar { display:flex; flex-direction:column; gap:1.5rem; }

.sidebar-widget {
  background:var(--bg-surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:1.25rem;
}

.sidebar-widget h3 {
  font-size:.85rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:1px;
  color:var(--accent-light);
  margin-bottom:1rem;
  padding-bottom:.5rem;
  border-bottom:1px solid var(--border);
}

.sidebar-links { list-style:none; margin:0; }

.sidebar-links li {
  margin-bottom:0;
  border-bottom:1px solid var(--border);
}

.sidebar-links li:last-child { border-bottom:none; }

.sidebar-links a {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:.55rem 0;
  color:var(--text-secondary);
  font-size:.875rem;
  transition:color .2s;
}

.sidebar-links a:hover { color:var(--accent-light); }

.sidebar-links .badge-sm {
  font-size:.7rem;
  padding:.15rem .45rem;
  border-radius:99px;
  background:var(--bg-elevated);
  color:var(--text-muted);
}

.sidebar-links .badge-hot {
  background:rgba(239,68,68,.15);
  color:var(--red-light);
}

.sidebar-links .badge-new {
  background:rgba(16,185,129,.15);
  color:var(--green-light);
}

/* ─── Page Header ─────────────────────────────── */
.page-header {
  margin-bottom:2rem;
}

.page-header h1 {
  font-size:clamp(1.6rem,3vw,2.4rem);
  font-weight:800;
  margin-bottom:.4rem;
  color:var(--text-primary);
}

.page-header .subtitle {
  color:var(--text-muted);
  font-size:1rem;
  margin-bottom:0;
}

/* ─── Section / Card ──────────────────────────── */
.detail-section {
  background:var(--bg-surface);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:1.75rem;
  margin-bottom:1.75rem;
}

.detail-section h2 {
  font-size:1.25rem;
  font-weight:700;
  color:var(--text-primary);
  margin-bottom:1.25rem;
  display:flex;
  align-items:center;
  gap:.5rem;
}

.detail-section h2 .section-icon {
  font-size:1.1rem;
}

.detail-section h3 {
  font-size:1.05rem;
  font-weight:600;
  color:var(--text-primary);
  margin:1.25rem 0 .6rem;
}

.detail-section h4 {
  font-size:.9rem;
  font-weight:600;
  color:var(--accent-light);
  text-transform:uppercase;
  letter-spacing:.5px;
  margin:1rem 0 .5rem;
}

.detail-section p { color:var(--text-secondary); }

.detail-section.highlight {
  background:linear-gradient(135deg,rgba(124,58,237,.12),rgba(6,182,212,.08));
  border-color:rgba(124,58,237,.3);
}

.detail-section.warning-box {
  background:rgba(239,68,68,.06);
  border-color:rgba(239,68,68,.25);
}

.detail-section.success-box {
  background:rgba(16,185,129,.06);
  border-color:rgba(16,185,129,.25);
}

/* ─── Onion Link ──────────────────────────────── */
.onion-link {
  display:block;
  background:var(--bg-dark);
  border:1px solid var(--border-bright);
  padding:1rem 1.25rem;
  border-radius:var(--radius);
  font-family:var(--font-mono);
  word-break:break-all;
  color:var(--cyan-light);
  font-size:.875rem;
  margin:1rem 0;
  line-height:1.6;
}

.link-box {
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:1.25rem;
  margin:1rem 0;
}

.link-box.primary {
  border-color:rgba(124,58,237,.35);
  background:linear-gradient(135deg,rgba(124,58,237,.1),rgba(6,182,212,.05));
}

.link-box h3 {
  margin:0 0 .5rem;
  color:var(--text-primary);
  font-size:1.1rem;
}

.link-box p { margin-bottom:.5rem; }

/* ─── Trending Items ──────────────────────────── */
.trending-item {
  display:flex;
  align-items:flex-start;
  gap:1rem;
  padding:1rem 0;
  border-bottom:1px solid var(--border);
}

.trending-item:last-child { border-bottom:none; }

.trending-item .rank {
  font-size:.8rem;
  font-weight:700;
  color:var(--text-muted);
  min-width:24px;
  text-align:center;
  padding-top:.2rem;
}

.trending-item .item-content { flex:1; min-width:0; }

.trending-item h3 {
  font-size:1rem;
  font-weight:600;
  margin:0 0 .25rem;
}

.trending-item h3 a { color:var(--text-primary); }
.trending-item h3 a:hover { color:var(--accent-light); }

.trending-item p {
  font-size:.875rem;
  color:var(--text-secondary);
  margin:0;
}

.trending-item .meta {
  display:flex;
  align-items:center;
  gap:.5rem;
  margin-top:.35rem;
  flex-wrap:wrap;
}

/* ─── Badges ──────────────────────────────────── */
.badge {
  display:inline-block;
  padding:.2rem .55rem;
  border-radius:99px;
  font-size:.7rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.3px;
}

.badge.market   { background:rgba(124,58,237,.2);  color:#c4b5fd; }
.badge.search   { background:rgba(6,182,212,.2);   color:#67e8f9; }
.badge.forum    { background:rgba(245,158,11,.2);  color:#fde68a; }
.badge.exchange { background:rgba(16,185,129,.2);  color:#6ee7b7; }
.badge.tool     { background:rgba(239,68,68,.2);   color:#fca5a5; }
.badge.directory{ background:rgba(148,163,184,.2); color:#cbd5e1; }
.badge.vpn      { background:rgba(59,130,246,.2);  color:#93c5fd; }
.badge.email    { background:rgba(236,72,153,.2);  color:#f9a8d4; }

.badge.pending   { background:rgba(245,158,11,.2);  color:#fde68a; }
.badge.accepted  { background:rgba(124,58,237,.2);  color:#c4b5fd; }
.badge.shipped   { background:rgba(16,185,129,.2);  color:#6ee7b7; }
.badge.finalized { background:rgba(16,185,129,.3);  color:#6ee7b7; }
.badge.disputed  { background:rgba(239,68,68,.2);   color:#fca5a5; }

/* ─── Quick Card Grid ─────────────────────────── */
.link-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:1rem;
}

.quick-card {
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:1.25rem;
  text-decoration:none;
  color:inherit;
  transition:all .2s;
  display:block;
}

.quick-card:hover {
  border-color:var(--accent);
  background:var(--bg-hover);
  transform:translateY(-2px);
  box-shadow:var(--shadow);
}

.quick-card .card-icon {
  font-size:1.5rem;
  margin-bottom:.6rem;
  display:block;
}

.quick-card h4 {
  color:var(--accent-light);
  font-size:.95rem;
  font-weight:600;
  margin-bottom:.3rem;
}

.quick-card p {
  color:var(--text-muted);
  font-size:.825rem;
  margin:0;
}

/* ─── Category Cards ──────────────────────────── */
.cat-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:1.25rem;
}

.cat-card {
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:1.5rem;
  transition:all .25s;
  display:flex;
  flex-direction:column;
  gap:.5rem;
}

.cat-card:hover {
  border-color:var(--accent);
  background:var(--bg-hover);
  transform:translateY(-3px);
  box-shadow:var(--shadow);
}

.cat-card .cat-icon {
  font-size:2rem;
  margin-bottom:.25rem;
}

.cat-card h3 {
  font-size:1.05rem;
  font-weight:700;
  color:var(--text-primary);
  margin:0;
}

.cat-card p {
  font-size:.85rem;
  color:var(--text-muted);
  margin:0;
  flex:1;
}

.cat-card .cat-count {
  font-size:.8rem;
  color:var(--accent-light);
  font-weight:600;
}

/* ─── Comparison Table ────────────────────────── */
.comparison-table, table {
  width:100%;
  border-collapse:collapse;
  font-size:.9rem;
}

.comparison-table th, table th {
  background:var(--bg-elevated);
  color:var(--accent-light);
  font-weight:700;
  font-size:.8rem;
  text-transform:uppercase;
  letter-spacing:.5px;
  padding:.85rem 1rem;
  text-align:left;
  border-bottom:2px solid var(--border-bright);
}

.comparison-table td, table td {
  padding:.75rem 1rem;
  border-bottom:1px solid var(--border);
  color:var(--text-secondary);
  vertical-align:top;
}

.comparison-table tr:hover td, table tr:hover td {
  background:rgba(255,255,255,.02);
}

.comparison-table td:first-child, table td:first-child {
  color:var(--text-primary);
  font-weight:500;
}

.status-good { color:var(--green); font-weight:600; }
.status-bad  { color:var(--red);   font-weight:600; }
.status { font-weight:600; }
.status.online { color:var(--green); }

/* ─── Steps ───────────────────────────────────── */
.steps { display:flex; flex-direction:column; gap:1rem; }

.step {
  display:flex;
  gap:1rem;
  align-items:flex-start;
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:1rem;
}

.step-num {
  background:linear-gradient(135deg,var(--accent),var(--accent-dark));
  color:white;
  width:32px;
  height:32px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  font-size:.85rem;
  flex-shrink:0;
  box-shadow:0 2px 8px var(--accent-glow);
}

.step h4 { margin:0 0 .25rem; color:var(--text-primary); font-size:.95rem; }
.step p  { margin:0; font-size:.875rem; }

/* ─── Feature Grid ────────────────────────────── */
.features-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:1.25rem;
}

.feature-detail {
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:1.5rem;
  transition:border-color .2s;
}

.feature-detail:hover { border-color:var(--accent); }

.feature-icon-large {
  font-size:2.2rem;
  margin-bottom:.75rem;
  display:block;
}

.feature-detail h2 {
  font-size:1.1rem;
  margin-bottom:.75rem;
  color:var(--accent-light);
}

/* ─── Notes & Warnings ────────────────────────── */
.note {
  background:rgba(124,58,237,.08);
  border-left:3px solid var(--accent);
  padding:.85rem 1rem;
  margin:.75rem 0;
  border-radius:0 var(--radius) var(--radius) 0;
  font-size:.875rem;
  color:var(--text-secondary);
}

.note strong { color:var(--accent-light); }

.warning-inline {
  color:var(--yellow);
  font-weight:600;
}

.danger-inline { color:var(--red); font-weight:600; }

/* ─── Code ────────────────────────────────────── */
code {
  background:var(--bg-elevated);
  border:1px solid var(--border);
  padding:.15rem .4rem;
  border-radius:4px;
  font-family:var(--font-mono);
  font-size:.85em;
  color:var(--cyan-light);
}

pre {
  background:var(--bg-dark);
  border:1px solid var(--border);
  padding:1.25rem;
  border-radius:var(--radius);
  overflow-x:auto;
  font-family:var(--font-mono);
  font-size:.825rem;
  margin:1rem 0;
  line-height:1.6;
  color:var(--green-light);
}

/* ─── Checklist ───────────────────────────────── */
.checklist {
  list-style:none;
  margin-left:0;
}

.checklist li {
  display:flex;
  align-items:flex-start;
  gap:.6rem;
  padding:.5rem 0;
  border-bottom:1px solid var(--border);
  color:var(--text-secondary);
  font-size:.9rem;
}

.checklist li:last-child { border-bottom:none; }

.checklist li::before {
  content:'✓';
  color:var(--green);
  font-weight:700;
  flex-shrink:0;
  margin-top:.1rem;
}

.checklist li.danger::before { content:'✗'; color:var(--red); }
.checklist li.warn::before   { content:'⚠'; color:var(--yellow); }

/* ─── Layer / OPSEC ───────────────────────────── */
.layer {
  background:var(--bg-card);
  border:1px solid var(--border);
  border-left:3px solid var(--accent);
  padding:1.25rem;
  border-radius:0 var(--radius) var(--radius) 0;
  margin-bottom:1rem;
}

.layer h3 {
  color:var(--accent-light);
  font-size:1rem;
  margin-bottom:.6rem;
}

/* ─── Vendor Level Table ──────────────────────── */
.level-badge {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  background:var(--accent);
  color:white;
  border-radius:50%;
  font-weight:800;
  font-size:.75rem;
}

.level-badge.legendary {
  background:linear-gradient(135deg,#f59e0b,#d97706);
  box-shadow:0 2px 8px rgba(245,158,11,.4);
}

/* ─── PGP Box ─────────────────────────────────── */
.pgp-box {
  background:var(--bg-dark);
  border:1px solid var(--border-bright);
  border-radius:var(--radius);
  padding:1rem;
  margin:1rem 0;
}

.pgp-box pre {
  max-height:200px;
  overflow-y:auto;
  margin:0;
  border:none;
  background:transparent;
}

.fingerprint {
  background:var(--bg-dark);
  border:1px solid var(--border-bright);
  padding:1rem;
  border-radius:var(--radius);
  display:block;
  text-align:center;
  font-family:var(--font-mono);
  font-size:1rem;
  letter-spacing:2px;
  color:var(--cyan-light);
  margin:1rem 0;
}

/* ─── TOC ─────────────────────────────────────── */
.toc {
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:1.25rem;
  margin-bottom:2rem;
}

.toc h3 {
  font-size:.8rem;
  text-transform:uppercase;
  letter-spacing:1px;
  color:var(--accent-light);
  margin-bottom:.75rem;
}

.toc ol { margin:0 0 0 1rem; }

.toc a {
  color:var(--text-secondary);
  font-size:.875rem;
  line-height:2;
}

.toc a:hover { color:var(--accent-light); }

/* ─── Stats Row ───────────────────────────────── */
.stats-row {
  display:flex;
  justify-content:center;
  gap:2rem;
  flex-wrap:wrap;
  margin:1.5rem 0;
}

.stats-row .stat { text-align:center; }

.stats-row strong {
  display:block;
  font-size:1.75rem;
  font-weight:800;
  background:linear-gradient(135deg,#a78bfa,#67e8f9);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}

.stats-row small {
  color:var(--text-muted);
  font-size:.8rem;
  text-transform:uppercase;
  letter-spacing:.5px;
}

/* ─── Page Nav ────────────────────────────────── */
.page-nav {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:2.5rem;
  padding-top:1.5rem;
  border-top:1px solid var(--border);
  gap:1rem;
  flex-wrap:wrap;
}

/* ─── Alert Boxes ─────────────────────────────── */
.alert {
  padding:1rem 1.25rem;
  border-radius:var(--radius);
  margin:.75rem 0;
  font-size:.9rem;
  display:flex;
  gap:.75rem;
  align-items:flex-start;
}

.alert-icon { flex-shrink:0; font-size:1rem; margin-top:.1rem; }

.alert-info    { background:rgba(6,182,212,.08);   border:1px solid rgba(6,182,212,.2);   color:var(--cyan-light); }
.alert-success { background:rgba(16,185,129,.08);  border:1px solid rgba(16,185,129,.2);  color:var(--green-light); }
.alert-warning { background:rgba(245,158,11,.08);  border:1px solid rgba(245,158,11,.2);  color:#fde68a; }
.alert-danger  { background:rgba(239,68,68,.08);   border:1px solid rgba(239,68,68,.2);   color:var(--red-light); }

/* ─── Footer ──────────────────────────────────── */
footer {
  background:var(--bg-surface);
  border-top:1px solid var(--border);
  margin-top:4rem;
}

.footer-inner {
  max-width:1100px;
  margin:0 auto;
  padding:3rem 2rem 1.5rem;
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1fr;
  gap:2.5rem;
}

.footer-brand .logo { font-size:1rem; margin-bottom:.75rem; display:block; }

.footer-brand p {
  color:var(--text-muted);
  font-size:.85rem;
  line-height:1.6;
  margin-bottom:1rem;
}

.footer-col h4 {
  color:var(--text-primary);
  font-size:.8rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:1px;
  margin-bottom:.75rem;
}

.footer-col ul { list-style:none; margin:0; }

.footer-col li { margin-bottom:.4rem; }

.footer-col a {
  color:var(--text-muted);
  font-size:.85rem;
  transition:color .2s;
}

.footer-col a:hover { color:var(--accent-light); }

.footer-bottom {
  max-width:1100px;
  margin:0 auto;
  padding:1.25rem 2rem;
  border-top:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:1rem;
}

.footer-bottom p {
  color:var(--text-muted);
  font-size:.8rem;
  margin:0;
}

.footer-bottom-links {
  display:flex;
  gap:1.25rem;
  flex-wrap:wrap;
}

.footer-bottom-links a {
  color:var(--text-muted);
  font-size:.8rem;
}

.footer-bottom-links a:hover { color:var(--accent-light); }

/* Canary */
.canary {
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  background:rgba(16,185,129,.1);
  border:1px solid rgba(16,185,129,.2);
  color:var(--green-light);
  padding:.25rem .65rem;
  border-radius:99px;
  font-size:.75rem;
  font-weight:600;
}

/* ─── Responsive ──────────────────────────────── */
@media(max-width:900px) {
  .page-layout { grid-template-columns:1fr; }
  .sidebar { order:2; }
  .footer-inner { grid-template-columns:1fr 1fr; }
}

@media(max-width:700px) {
  .navbar { padding:.75rem 1rem; }
  
  .nav-links {
    display:none;
    flex-direction:column;
    position:absolute;
    top:100%;
    left:0; right:0;
    background:var(--bg-surface);
    border-bottom:1px solid var(--border);
    padding:1rem;
    gap:.25rem;
  }
  
  .nav-links.open { display:flex; }
  .nav-toggle { display:block; }
  
  .hero { padding:3rem 1rem 2rem; }
  .hero h1 { font-size:1.8rem; letter-spacing:2px; }
  
  .hero-stats { gap:1rem; }
  .hero-stat { padding:.6rem 1rem; min-width:90px; }
  .hero-stat strong { font-size:1.3rem; }
  
  .hero-cta { flex-direction:column; align-items:stretch; }
  
  .container, .page-layout { padding:1.5rem 1rem; }
  
  .features-grid, .cat-grid { grid-template-columns:1fr; }
  
  .page-nav { flex-direction:column; }
  
  .footer-inner { grid-template-columns:1fr; gap:1.5rem; }
  .footer-bottom { flex-direction:column; text-align:center; }
  
  table { font-size:.8rem; }
  th, td { padding:.5rem .6rem; }
}

/* ─── Utilities ───────────────────────────────── */
.text-accent   { color:var(--accent-light); }
.text-cyan     { color:var(--cyan-light); }
.text-green    { color:var(--green-light); }
.text-yellow   { color:var(--yellow); }
.text-red      { color:var(--red-light); }
.text-muted    { color:var(--text-muted); }
.text-center   { text-align:center; }
.mt-1 { margin-top:.5rem; }
.mt-2 { margin-top:1rem; }
.mt-3 { margin-top:1.5rem; }
.mb-1 { margin-bottom:.5rem; }
.mb-2 { margin-bottom:1rem; }
.d-flex { display:flex; }
.gap-1  { gap:.5rem; }
.gap-2  { gap:1rem; }
.flex-wrap { flex-wrap:wrap; }
.align-center { align-items:center; }

/* Mobile nav JS helper */
.nav-open .nav-links { display:flex; }
