/* ================================================================
   Legion Website — style.css
   Dark theme · JetBrains Mono · Green accent #2db865
   ================================================================ */

:root {
  --bg:          #0a0a0a;
  --bg-s:        #111111;
  --bg-card:     #141414;
  --border:      #1e1e1e;
  --accent:      #2db865;
  --accent-dim:  rgba(45, 184, 101, 0.12);
  --accent-glow: rgba(45, 184, 101, 0.25);
  --text:        #e0e0e0;
  --text-dim:    #555;
  --text-mid:    #888;
  --font:        'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Courier New', monospace;
  --radius:      6px;
  --transition:  0.25s ease;
}

/* ----------------------------------------------------------------
   Reset & base
   ---------------------------------------------------------------- */

*, *::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);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.75; }

code {
  background: rgba(45,184,101,0.08);
  border: 1px solid rgba(45,184,101,0.2);
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 0.88em;
  font-family: var(--font);
  color: var(--accent);
}

.accent { color: var(--accent); }

/* ----------------------------------------------------------------
   Navbar
   ---------------------------------------------------------------- */

#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 60px;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}
.nav-logo:hover { opacity: 1; color: var(--accent); }
.nav-logo-img { width: 28px; height: 28px; object-fit: contain; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.nav-links a { color: var(--text-mid); }
.nav-links a:hover { color: var(--accent); opacity: 1; }
.nav-github {
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: var(--radius);
  color: var(--text) !important;
  transition: border-color var(--transition), color var(--transition);
}
.nav-github:hover { border-color: var(--accent); color: var(--accent) !important; opacity: 1; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 0.5rem;
}
.lang-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active {
  color: var(--accent);
  border-color: rgba(45,184,101,0.35);
  background: rgba(45,184,101,0.06);
}
.lang-sep { color: var(--border); font-size: 0.9rem; user-select: none; }

/* ----------------------------------------------------------------
   Hero
   ---------------------------------------------------------------- */

#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 80px 2rem 4rem;
}

#matrix-canvas {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.hero-badge {
  display: block;
  width: fit-content;
  margin: 0 auto 1.5rem;
  border: 1px solid rgba(45,184,101,0.35);
  background: rgba(45,184,101,0.06);
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  padding: 4px 14px;
  border-radius: 20px;
}

/* Glitch title */
h1.glitch {
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 900;
  letter-spacing: 0.2em;
  color: var(--text);
  position: relative;
  display: inline-block;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 40px rgba(45,184,101,0.3);
}

h1.glitch::before,
h1.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
h1.glitch::before {
  color: #00f5a0;
  animation: glitch-a 4s infinite steps(1);
  clip-path: polygon(0 15%, 100% 15%, 100% 40%, 0 40%);
}
h1.glitch::after {
  color: #ff4d6d;
  animation: glitch-b 4s infinite steps(1);
  clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%);
}

@keyframes glitch-a {
  0%,89%,91%,100% { transform: translate(0); opacity: 0; }
  90%             { transform: translate(-3px, 1px); opacity: 0.7; }
}
@keyframes glitch-b {
  0%,85%,87%,100% { transform: translate(0); opacity: 0; }
  86%             { transform: translate(3px, -1px); opacity: 0.7; }
}

.hero-tagline {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--text-mid);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 0.95rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
  line-height: 1.9;
}

/* CTA buttons */
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 12px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  display: inline-block;
}
.btn-primary:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45,184,101,0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  padding: 12px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
  display: inline-block;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }

/* Terminal widget in hero */
.terminal-widget {
  background: #0e0e0e;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
  max-width: 560px;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.terminal-bar {
  background: #1a1a1a;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border);
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green  { background: #28c840; }

.terminal-title {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-left: -36px;
}

.terminal-body {
  padding: 16px 18px;
  font-size: 0.82rem;
  color: var(--accent);
  min-height: 130px;
  white-space: pre;
  overflow-x: auto;
  line-height: 1.6;
}

.prompt { color: var(--text-mid); }

.cursor {
  display: inline-block;
  animation: blink 1s step-start infinite;
  color: var(--accent);
}
@keyframes blink { 50% { opacity: 0; } }

/* ----------------------------------------------------------------
   Stats bar
   ---------------------------------------------------------------- */

.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  padding: 1.2rem 2rem;
  background: var(--bg-s);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 2.5rem;
}
.stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.stat-label { font-size: 0.72rem; color: var(--text-dim); letter-spacing: 0.08em; }
.stat-sep { color: var(--border); font-size: 1.5rem; }

/* ----------------------------------------------------------------
   Sections
   ---------------------------------------------------------------- */

.section { padding: 6rem 2rem; }
.section-dark { background: var(--bg-s); }

.container { max-width: 1100px; margin: 0 auto; }
.container-narrow { max-width: 720px; margin: 0 auto; }

.section-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 1.2rem;
}

.section-lead {
  font-size: 0.95rem;
  color: var(--text-mid);
  max-width: 600px;
  margin-bottom: 3rem;
  line-height: 1.8;
}

/* ----------------------------------------------------------------
   About cards
   ---------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: border-color var(--transition), transform var(--transition);
}
.about-card:hover {
  border-color: rgba(45,184,101,0.4);
  transform: translateY(-3px);
}
.about-icon { font-size: 1.8rem; display: block; margin-bottom: 1rem; }
.about-card h3 { font-size: 1rem; color: var(--text); margin-bottom: 0.5rem; }
.about-card p { font-size: 0.85rem; color: var(--text-mid); line-height: 1.7; }

.about-quote {
  margin: 3rem auto 0;
  max-width: 680px;
  text-align: center;
  font-size: 0.97rem;
  line-height: 1.9;
  color: var(--text-mid);
  border: none;
  padding: 0;
  position: relative;
}
.about-quote::before {
  content: '"';
  display: block;
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: -0.5rem;
}
.about-quote::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent);
  opacity: 0.3;
  margin: 1.5rem auto 0;
}

/* ----------------------------------------------------------------
   Features grid
   ---------------------------------------------------------------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  cursor: default;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.feature-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow), inset 0 0 30px rgba(45,184,101,0.03);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
  filter: drop-shadow(0 0 6px var(--accent-glow));
}
.feature-card h3 {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
}
.feature-card p { font-size: 0.83rem; color: var(--text-mid); line-height: 1.75; }

/* ----------------------------------------------------------------
   How it works
   ---------------------------------------------------------------- */

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  margin-top: 3.5rem;
}

.step {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  text-align: center;
  padding: 1.5rem 1rem;
}

.step-num {
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}
.step-icon { font-size: 2.2rem; display: block; margin-bottom: 0.8rem; }
.step h3 { font-size: 0.95rem; color: var(--text); margin-bottom: 0.6rem; }
.step p { font-size: 0.82rem; color: var(--text-mid); line-height: 1.75; }

.step-arrow {
  font-size: 1.5rem;
  color: var(--accent);
  opacity: 0.4;
  align-self: center;
  padding: 0 0.5rem;
  flex-shrink: 0;
}

/* ----------------------------------------------------------------
   Security
   ---------------------------------------------------------------- */

.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .security-grid { grid-template-columns: 1fr; }
}

.audit-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--accent-dim);
  border: 1px solid rgba(45,184,101,0.3);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: 1.2rem;
}
.audit-icon { font-size: 1.8rem; }
.audit-title { font-size: 0.9rem; font-weight: 700; color: var(--accent); }
.audit-sub { font-size: 0.75rem; color: var(--text-mid); margin-top: 2px; }
.security-main p { font-size: 0.85rem; color: var(--text-mid); margin-bottom: 0.8rem; line-height: 1.8; }

.crypto-table h3 {
  font-size: 0.85rem;
  color: var(--text-mid);
  margin-bottom: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}
table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
td { padding: 8px 10px; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }
td:first-child { color: var(--text-mid); white-space: nowrap; padding-right: 1.5rem; }
td:last-child { color: var(--text); }
.crypto-note { margin-top: 1rem; font-size: 0.78rem; color: var(--text-dim); }

.security-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2.5rem;
}
.badge {
  border: 1px solid rgba(45,184,101,0.3);
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(45,184,101,0.05);
}

/* ----------------------------------------------------------------
   Hero disclaimer
   ---------------------------------------------------------------- */

.hero-disclaimer {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
}

/* ----------------------------------------------------------------
   Screenshots
   ---------------------------------------------------------------- */

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.screenshot-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.screenshot-wrap {
  position: relative;
  background: #0e0e0e;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/10;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.screenshot-wrap:hover {
  border-color: rgba(45,184,101,0.35);
  box-shadow: 0 0 24px rgba(45,184,101,0.1);
}

.screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

/* Show placeholder when image is missing or not yet added */
.screenshot-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.8rem;
  z-index: 0;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  margin: 8px;
}
.screenshot-placeholder span:first-child { font-size: 1.8rem; opacity: 0.4; }

/* Hide placeholder once image loads */
.screenshot-img:not([src=""]) + .screenshot-placeholder { display: none; }
/* Show placeholder when onerror fires (class added by JS) */
.screenshot-missing .screenshot-img { display: none; }
.screenshot-missing .screenshot-placeholder { display: flex; }

.screenshot-caption {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.6;
  padding: 0 0.25rem;
}

/* ----------------------------------------------------------------
   Password warning
   ---------------------------------------------------------------- */

.pwd-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(244,67,54,0.05);
  border: 1px solid rgba(244,67,54,0.25);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.2rem;
}
.pwd-icon { color: #f44336; font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
.pwd-warning p {
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin: 0;
}

/* ----------------------------------------------------------------
   Vision section
   ---------------------------------------------------------------- */

.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .vision-grid { grid-template-columns: 1fr; }
}

.vision-text p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.9;
  margin-bottom: 1rem;
}
.vision-text strong { color: var(--text); }
.vision-text em { color: var(--accent); font-style: normal; }

.ai-card {
  background: var(--bg-card);
  border: 1px solid rgba(45,184,101,0.25);
  border-radius: var(--radius);
  padding: 1.8rem;
  position: relative;
  overflow: hidden;
}
.ai-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(45,184,101,0.06) 0%, transparent 65%);
  pointer-events: none;
}

.ai-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.ai-icon { font-size: 1.8rem; }
.ai-title { font-size: 0.9rem; font-weight: 700; color: var(--accent); }
.ai-sub { font-size: 0.72rem; color: var(--text-dim); margin-top: 2px; }

.ai-card p {
  font-size: 0.83rem;
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: 0.9rem;
}
.ai-note {
  font-size: 0.75rem !important;
  color: var(--text-dim) !important;
  border-top: 1px solid var(--border);
  padding-top: 0.8rem;
  margin-top: 0.5rem;
  margin-bottom: 0 !important;
}

/* ----------------------------------------------------------------
   Install
   ---------------------------------------------------------------- */

.install-box {
  background: #0b0b0b;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.install-bar {
  background: #161616;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border);
}
.install-bar .terminal-title { margin-left: -36px; }

.copy-btn {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-mid);
  font-family: var(--font);
  font-size: 0.72rem;
  padding: 2px 10px;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }

.install-body {
  padding: 1.4rem 1.6rem;
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.9;
  overflow-x: auto;
}
.cmd-prompt { color: var(--accent); user-select: none; margin-right: 8px; }

.install-steps {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}
.install-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-mid);
}
.install-step-num {
  background: var(--accent-dim);
  border: 1px solid rgba(45,184,101,0.3);
  color: var(--accent);
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}
.install-note { font-size: 0.78rem; color: var(--text-dim); text-align: center; margin-top: 1rem; }

/* FAQ accordion (inside install section) */
.install-faq {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-toggle {
  width: 100%;
  background: var(--bg-card);
  border: none;
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.87rem;
  font-weight: 600;
  text-align: left;
  border-bottom: 1px solid transparent;
  transition: background var(--transition);
}
.faq-toggle:hover { background: rgba(45,184,101,0.05); }
.faq-toggle.open  { border-bottom-color: var(--border); background: rgba(45,184,101,0.04); }

.faq-icon  { font-size: 1rem; flex-shrink: 0; }
.faq-title { flex: 1; }
.faq-arrow {
  color: var(--accent);
  font-size: 0.8rem;
  user-select: none;
  transition: transform 0.2s ease;
}
.faq-toggle.open .faq-arrow { transform: rotate(180deg); }

.faq-body {
  display: none;
  padding: 1.2rem 1.4rem;
  background: var(--bg);
  font-size: 0.84rem;
  color: var(--text-mid);
  line-height: 1.85;
}
.faq-body.open { display: block; }
.faq-body p { margin-bottom: 0.65rem; }
.faq-body p:last-child { margin-bottom: 0; }
.faq-body strong { color: var(--text); }

.faq-steps {
  margin: 0.75rem 0 0.75rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.faq-steps li { line-height: 1.75; }
.faq-steps strong { color: var(--text); }

.faq-note {
  font-size: 0.78rem !important;
  color: var(--text-dim) !important;
  border-top: 1px solid var(--border);
  padding-top: 0.7rem;
  margin-top: 0.5rem;
  margin-bottom: 0 !important;
}
.faq-note strong { color: var(--accent) !important; }

/* ----------------------------------------------------------------
   Roadmap
   ---------------------------------------------------------------- */

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.roadmap-col {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.roadmap-col-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}
.roadmap-col-header.done { color: var(--accent); }
.roadmap-col-header.wip  { color: #ff9800; }
.roadmap-col-header.plan { color: var(--text-dim); }
.road-col-icon { font-size: 0.9rem; }

.roadmap-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.road-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.83rem;
  color: var(--text-mid);
  line-height: 1.5;
}
.road-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.road-item.done .road-dot { background: var(--accent); }
.road-item.wip  .road-dot { background: #ff9800; }
.road-item.plan .road-dot { background: var(--border); border: 1px solid var(--text-dim); }

.road-item.done span:last-child { color: var(--text-mid); }
.road-item.wip  span:last-child { color: var(--text-mid); }
.road-item.plan span:last-child { color: var(--text-dim); }

.roadmap-note {
  margin-top: 2rem;
  font-size: 0.83rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.7;
}
.roadmap-note strong { color: var(--text-mid); }

/* ----------------------------------------------------------------
   Docs CTA
   ---------------------------------------------------------------- */

.docs-cta { text-align: center; }
.docs-icon { font-size: 3rem; margin-bottom: 1rem; }
.docs-cta h2 { font-size: 1.8rem; margin-bottom: 1rem; }
.docs-cta p { font-size: 0.9rem; color: var(--text-mid); margin-bottom: 2rem; }
.docs-links { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ----------------------------------------------------------------
   Footer
   ---------------------------------------------------------------- */

footer {
  background: #070707;
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
}
.footer-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text);
}
.footer-logo-img { width: 24px; height: 24px; }
.footer-tagline { font-size: 0.8rem; color: var(--text-dim); }
.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.78rem;
  color: var(--text-dim);
}
.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: var(--accent); opacity: 1; }
.footer-version { font-size: 0.7rem; color: #333; }

/* ----------------------------------------------------------------
   Scroll reveal
   ---------------------------------------------------------------- */

.reveal, .reveal-child {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible, .reveal-child.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-child:nth-child(2) { transition-delay: 0.1s; }
.reveal-child:nth-child(3) { transition-delay: 0.2s; }
.reveal-child:nth-child(4) { transition-delay: 0.3s; }
.reveal-child:nth-child(5) { transition-delay: 0.4s; }
.reveal-child:nth-child(6) { transition-delay: 0.5s; }

/* ----------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------- */

@media (max-width: 768px) {
  #navbar { padding: 0 1rem; }
  .nav-links { gap: 1rem; font-size: 0.78rem; }
  .step-arrow { display: none; }
  .steps { gap: 2rem; }
  .stat { padding: 0.5rem 1.2rem; }
  .stat-sep { display: none; }
  h1.glitch { letter-spacing: 0.1em; }
}

@media (max-width: 480px) {
  .nav-links a:not(.nav-github) { display: none; }
  .section { padding: 4rem 1rem; }
  .hero-cta { flex-direction: column; align-items: center; }
}
