/* ============================================================
   KALI LANDING — HACKER TERMINAL AESTHETIC
   Black canvas, neon scanline, monospace everywhere.
   ============================================================ */

:root {
  --bg: #050706;
  --bg-1: #0a0d0b;
  --bg-2: #0f1411;
  --line: rgba(0, 255, 65, 0.14);
  --line-strong: rgba(0, 255, 65, 0.32);
  --neon: #00ff41;
  --neon-dim: #00b82e;
  --neon-glow: rgba(0, 255, 65, 0.55);
  --txt: #d6f5dc;
  --txt-dim: #6f9474;
  --txt-mute: #3f5a44;
  --red: #ff3b3b;
  --amber: #ffb000;
  --cyan: #00e8ff;
  --magenta: #ff2bd6;
  --mono: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: 'Space Grotesk', 'Inter', ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Scanline + grain over everything (no pointer events) */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(0, 255, 65, 0.025) 0px,
      rgba(0, 255, 65, 0.025) 1px,
      transparent 1px,
      transparent 3px
    );
  mix-blend-mode: screen;
  opacity: 0.55;
}
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 101;
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, transparent 40%, rgba(0,0,0,0.55) 100%),
    radial-gradient(ellipse 80% 60% at 50% 100%, transparent 50%, rgba(0,0,0,0.4) 100%);
}

a { color: var(--neon); text-decoration: none; }
a:hover { text-shadow: 0 0 8px var(--neon-glow); }

::selection { background: var(--neon); color: #000; }

/* Reusable text styles */
.mono { font-family: var(--mono); }
.display { font-family: var(--display); letter-spacing: -0.01em; }
.dim { color: var(--txt-dim); }
.mute { color: var(--txt-mute); }
.neon { color: var(--neon); }
.uppercase { text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; }

/* ===== Layout grid ===== */
.wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== Section chrome ===== */
.section {
  position: relative;
  border-top: 1px dashed var(--line);
  padding: 80px 0;
}
.section + .section {
  /* keep dashes consistent */
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--neon);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  background: rgba(0, 255, 65, 0.05);
  margin-bottom: 16px;
}
.section-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon-glow);
  border-radius: 50%;
  animation: blink 1.6s steps(2) infinite;
}
.section-title {
  font-family: var(--mono);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 8px;
  color: var(--txt);
  letter-spacing: -0.01em;
}
.section-title em {
  color: var(--neon);
  font-style: normal;
  text-shadow: 0 0 12px var(--neon-glow);
}
.section-sub {
  color: var(--txt-dim);
  font-size: 14px;
  max-width: 60ch;
  margin: 0;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--txt);
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}
.btn:hover {
  border-color: var(--neon);
  color: var(--neon);
  background: rgba(0, 255, 65, 0.06);
  box-shadow: 0 0 0 1px var(--neon), 0 0 20px rgba(0, 255, 65, 0.25);
}
.btn.primary {
  background: var(--neon);
  color: #000;
  border-color: var(--neon);
  font-weight: 600;
}
.btn.primary:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
  box-shadow: 0 0 0 1px #fff, 0 0 32px rgba(0, 255, 65, 0.5);
}
.btn .arrow { transition: transform 0.15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ===== Top Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px dashed var(--line);
  background: rgba(5, 7, 6, 0.75);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 32px;
  max-width: 1320px;
  margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.brand svg { width: 28px; height: 28px; }
.brand b { color: var(--neon); text-shadow: 0 0 8px var(--neon-glow); }
.brand small { color: var(--txt-mute); font-weight: 400; margin-left: 4px; }
.nav-links {
  display: flex; gap: 22px;
  margin-left: 24px;
  font-size: 13px;
}
.nav-links a { color: var(--txt-dim); }
.nav-links a:hover { color: var(--neon); }
.nav-right {
  margin-left: auto;
  display: flex; align-items: center; gap: 14px;
  font-size: 12px;
}
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 0;
}
.lang-switch button {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--txt-mute);
  font-family: var(--mono);
  font-size: 11px;
  padding: 5px 9px;
  cursor: pointer;
  letter-spacing: 0.06em;
}
.lang-switch button.on {
  background: var(--neon);
  color: #000;
  font-weight: 600;
}
.lang-switch button:not(.on):hover { color: var(--neon); }

/* Theme toggle (Dark/Light) — sits left of lang switch in nav */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--txt-dim);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.15s;
}
.theme-toggle svg {
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(.4,1.6,.4,1);
}
.theme-toggle:hover {
  color: var(--neon);
  border-color: var(--line-strong);
  background: rgba(0, 255, 65, 0.04);
}
.theme-toggle:hover svg { transform: rotate(45deg); }
.theme-toggle-label { font-weight: 500; }
body.light-mode .theme-toggle:hover {
  background: rgba(0, 80, 30, 0.05);
}
@media (max-width: 640px) {
  .theme-toggle-label { display: none; }
  .theme-toggle { padding: 6px 8px; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 64px 32px 80px;
  overflow: hidden;
  border-bottom: 1px dashed var(--line);
  max-width: 1320px;
  margin: 0 auto;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(0, 255, 65, 0.10), transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(0, 232, 255, 0.05), transparent 45%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
}
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 12px;
}
.hero-eyebrow::before {
  content: '';
  width: 24px; height: 1px; background: var(--neon);
}
.hero h1 {
  font-family: var(--mono);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}
.hero h1 .grad {
  background: linear-gradient(180deg, var(--neon) 0%, var(--neon-dim) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 28px rgba(0, 255, 65, 0.35);
}
.hero h1 .cursor {
  display: inline-block;
  width: 0.55em; height: 1em;
  background: var(--neon);
  vertical-align: -0.12em;
  margin-left: 0.06em;
  animation: blink 1s steps(2) infinite;
  box-shadow: 0 0 12px var(--neon-glow);
}
.hero-lead {
  font-size: 16px;
  color: var(--txt-dim);
  margin: 0 0 32px;
  max-width: 56ch;
  line-height: 1.6;
}
.hero-lead .vn { color: var(--txt); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 36px;
  display: flex; gap: 28px; flex-wrap: wrap;
  font-size: 12px;
  color: var(--txt-mute);
}
.hero-meta b { color: var(--neon); font-weight: 500; }

/* Dragon mark */
.dragon-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
}
.dragon-stage svg {
  width: 100%; height: 100%;
  filter: drop-shadow(0 0 24px rgba(0, 255, 65, 0.4));
}
.dragon-rings {
  position: absolute; inset: 0;
  pointer-events: none;
}
.dragon-rings circle {
  fill: none;
  stroke: var(--line-strong);
  stroke-dasharray: 2 4;
}

/* ===== Terminal Component ===== */
.terminal {
  background: linear-gradient(180deg, #060a07 0%, #03050400 100%), #050706;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.3),
    0 32px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(0, 255, 65, 0.08);
  font-family: var(--mono);
  font-size: 13px;
  position: relative;
  overflow: hidden;
}
.terminal::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(0, 255, 65, 0.04) 0px,
      rgba(0, 255, 65, 0.04) 1px,
      transparent 1px,
      transparent 3px
    );
  opacity: 0.6;
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: #0a0e0b;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: var(--txt-mute);
}
.terminal-bar .dots { display: flex; gap: 6px; }
.terminal-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.terminal-bar .dot.r { background: #ff5f56; }
.terminal-bar .dot.y { background: #ffbd2e; }
.terminal-bar .dot.g { background: #27c93f; }
.terminal-bar .title { margin-left: 8px; letter-spacing: 0.04em; }
.terminal-bar .tabs { margin-left: auto; display: flex; gap: 4px; }
.terminal-bar .tab {
  padding: 3px 9px;
  font-size: 10.5px;
  border: 1px solid var(--line);
  color: var(--txt-mute);
  cursor: pointer;
  letter-spacing: 0.04em;
  background: transparent;
  font-family: var(--mono);
}
.terminal-bar .tab.on { background: var(--neon); color: #000; border-color: var(--neon); }
.terminal-bar .tab:hover:not(.on) { color: var(--neon); border-color: var(--line-strong); }

.terminal-body {
  padding: 18px 18px 22px;
  min-height: 260px;
  font-size: 13px;
  line-height: 1.65;
  position: relative;
}
.term-line { white-space: pre-wrap; word-break: break-word; }
.term-prompt { color: var(--neon); }
.term-prompt .user { color: var(--neon); }
.term-prompt .at { color: var(--txt-mute); }
.term-prompt .host { color: var(--cyan); }
.term-prompt .sep { color: var(--txt-mute); }
.term-prompt .path { color: var(--txt); }
.term-prompt .hash { color: var(--red); margin-right: 6px; font-weight: 600; }
.term-cmd { color: #fff; }
.term-flag { color: var(--cyan); }
.term-arg { color: var(--amber); }
.term-out { color: var(--txt-dim); }
.term-ok { color: var(--neon); }
.term-warn { color: var(--amber); }
.term-err { color: var(--red); }
.term-caret {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--neon);
  vertical-align: -3px;
  animation: blink 1s steps(2) infinite;
}

/* ===== Stats Bar ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(90deg, rgba(0,255,65,0.04), transparent 30%, transparent 70%, rgba(0,255,65,0.04));
}
.stat {
  padding: 28px 24px;
  border-right: 1px dashed var(--line);
  position: relative;
}
.stat:last-child { border-right: 0; }
.stat-num {
  font-family: var(--mono);
  font-size: 40px;
  font-weight: 500;
  color: var(--neon);
  text-shadow: 0 0 16px var(--neon-glow);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-num .unit { font-size: 18px; color: var(--txt-dim); margin-left: 2px; text-shadow: none; }
.stat-label {
  margin-top: 10px;
  font-size: 11px;
  color: var(--txt-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.stat-sub { font-size: 11px; color: var(--txt-dim); margin-top: 4px; }

/* ===== Features grid ===== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  margin-top: 36px;
}
.feature {
  padding: 28px 26px;
  border-right: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  position: relative;
  transition: background 0.2s;
}
.feature:hover { background: rgba(0, 255, 65, 0.03); }
.feature:nth-child(3n) { border-right: 0; }
.feature:nth-last-child(-n+3) { border-bottom: 0; }
.feature-id {
  font-size: 11px;
  color: var(--txt-mute);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.feature-id .neon { color: var(--neon); }
.feature-icon {
  width: 36px; height: 36px;
  margin-bottom: 16px;
  color: var(--neon);
}
.feature h3 {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 500;
  color: var(--txt);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.feature h3 .vn { display: block; color: var(--txt-dim); font-size: 13px; font-weight: 400; margin-top: 2px; }
.feature p {
  font-size: 13px;
  color: var(--txt-dim);
  margin: 12px 0 0;
  line-height: 1.6;
}

/* ===== Tools Showcase ===== */
.tools-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  margin-top: 36px;
}
.tools-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  max-height: 540px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.tool-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px dashed var(--line);
  cursor: pointer;
  font-size: 12.5px;
  position: relative;
  transition: all 0.15s;
}
.tool-row:last-child { border-bottom: 0; }
.tool-row .idx { color: var(--txt-mute); font-size: 11px; min-width: 22px; }
.tool-row .name { color: var(--txt); flex: 1; font-weight: 500; }
.tool-row .cat { color: var(--txt-mute); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.tool-row:hover { background: rgba(0, 255, 65, 0.04); }
.tool-row:hover .name { color: var(--neon); }
.tool-row.active { background: rgba(0, 255, 65, 0.08); }
.tool-row.active .name { color: var(--neon); text-shadow: 0 0 6px var(--neon-glow); }
.tool-row.active::before {
  content: '▸';
  position: absolute; left: 2px;
  color: var(--neon);
}

.tool-detail {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tool-header {
  display: flex; align-items: flex-start; gap: 16px;
  border: 1px solid var(--line);
  padding: 18px 22px;
  background: rgba(0, 255, 65, 0.02);
}
.tool-header h3 {
  font-family: var(--mono);
  font-size: 24px;
  margin: 0;
  color: var(--neon);
  text-shadow: 0 0 12px var(--neon-glow);
  letter-spacing: -0.01em;
}
.tool-header .tagline {
  color: var(--txt-dim);
  font-size: 13px;
  margin-top: 4px;
}
.tool-header .meta {
  margin-left: auto;
  text-align: right;
  font-size: 11px;
  color: var(--txt-mute);
  letter-spacing: 0.04em;
}
.tool-header .meta b { color: var(--neon); display: block; font-size: 13px; font-weight: 500; }

/* ===== Use Cases ===== */
.usecases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.usecase {
  border: 1px solid var(--line);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.2s;
}
.usecase:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.usecase::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 40px; height: 1px;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon-glow);
}
.usecase-id {
  font-size: 11px;
  color: var(--txt-mute);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.usecase h3 {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 6px;
  color: var(--txt);
  letter-spacing: -0.01em;
}
.usecase h3 .vn { color: var(--neon); display: block; font-size: 13px; font-weight: 400; margin-top: 4px; letter-spacing: 0; }
.usecase p { color: var(--txt-dim); font-size: 13px; margin: 16px 0 18px; line-height: 1.6; }
.usecase-tools {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.usecase-tools span {
  font-size: 10.5px;
  padding: 2px 8px;
  border: 1px solid var(--line);
  color: var(--txt-dim);
  letter-spacing: 0.04em;
}

/* ===== Install ===== */
.install-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 36px;
  border: 1px solid var(--line);
}
.install-card {
  padding: 24px;
  border-right: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}
.install-card:nth-child(4n) { border-right: 0; }
.install-card:nth-last-child(-n+4) { border-bottom: 0; }
.install-card:hover { background: rgba(0, 255, 65, 0.04); }
.install-icon {
  width: 32px; height: 32px;
  color: var(--neon);
  margin-bottom: 14px;
}
.install-card h4 {
  font-family: var(--mono);
  font-size: 15px;
  margin: 0 0 4px;
  color: var(--txt);
}
.install-card .vn { color: var(--txt-mute); font-size: 11.5px; font-weight: 400; }
.install-card p {
  font-size: 12px;
  color: var(--txt-dim);
  margin: 12px 0 0;
  line-height: 1.55;
  flex: 1;
}
.install-card .meta {
  margin-top: 14px;
  font-size: 11px;
  color: var(--txt-mute);
  display: flex; justify-content: space-between;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}
.install-card .meta b { color: var(--neon); font-weight: 500; }

/* ===== Testimonials ===== */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.testimonial {
  border: 1px solid var(--line);
  padding: 24px;
  position: relative;
  background: rgba(0, 255, 65, 0.015);
}
.testimonial::before {
  content: '"';
  position: absolute; top: 8px; left: 14px;
  font-size: 64px;
  color: var(--line-strong);
  font-family: serif;
  line-height: 1;
}
.testimonial-quote {
  color: var(--txt);
  font-size: 13.5px;
  line-height: 1.7;
  margin: 12px 0 18px;
  font-style: italic;
  position: relative;
  z-index: 1;
}
.testimonial-author {
  display: flex; align-items: center; gap: 12px;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}
.testimonial-author .avatar {
  width: 36px; height: 36px;
  border: 1px solid var(--line-strong);
  background: var(--bg-1);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--neon);
  font-weight: 600;
}
.testimonial-author b {
  display: block;
  font-size: 13px;
  color: var(--txt);
  font-weight: 500;
}
.testimonial-author small {
  display: block;
  font-size: 11px;
  color: var(--txt-mute);
  margin-top: 2px;
}

/* ===== Community / Certifications ===== */
.community {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 36px;
}
.community-block {
  border: 1px solid var(--line);
  padding: 28px;
}
.community-block h3 {
  font-family: var(--mono);
  font-size: 18px;
  margin: 0 0 4px;
  color: var(--txt);
}
.community-block h3 .vn { display: block; color: var(--txt-mute); font-size: 12px; font-weight: 400; margin-top: 2px; }

.community-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex; flex-direction: column;
  gap: 0;
}
.community-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}
.community-list li:last-child { border-bottom: 0; }
.community-list .badge {
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 2px 8px;
  border: 1px solid var(--line-strong);
  color: var(--neon);
  letter-spacing: 0.06em;
}
.community-list .label {
  color: var(--txt);
  font-weight: 500;
}
.community-list .meta {
  margin-left: auto;
  color: var(--txt-mute);
  font-size: 11.5px;
}

/* ===== FAQ ===== */
.faq {
  margin-top: 36px;
  border: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px dashed var(--line);
  cursor: pointer;
}
.faq-item:last-child { border-bottom: 0; }
.faq-q {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 24px;
  font-size: 14px;
  color: var(--txt);
  user-select: none;
}
.faq-q .num {
  color: var(--neon);
  font-size: 11px;
  letter-spacing: 0.08em;
  min-width: 26px;
}
.faq-q .arrow {
  margin-left: auto;
  color: var(--txt-mute);
  font-family: var(--mono);
  transition: transform 0.2s;
}
.faq-item.open .faq-q .arrow { transform: rotate(90deg); color: var(--neon); }
.faq-item.open .faq-q { background: rgba(0, 255, 65, 0.04); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px 0 64px;
  color: var(--txt-dim);
  font-size: 13.5px;
  line-height: 1.7;
}
.faq-item.open .faq-a {
  max-height: 400px;
  padding: 0 24px 22px 64px;
}
.faq-a .vn {
  display: block;
  margin-top: 8px;
  color: var(--txt-mute);
  font-size: 12.5px;
  font-style: italic;
}

/* ===== CTA banner ===== */
.cta-banner {
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 80% 50%, rgba(0, 255, 65, 0.12), transparent 60%),
    rgba(0, 255, 65, 0.02);
  padding: 56px 48px;
  margin-top: 64px;
  display: flex;
  align-items: center;
  gap: 48px;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      transparent 0,
      transparent 12px,
      rgba(0, 255, 65, 0.02) 12px,
      rgba(0, 255, 65, 0.02) 13px
    );
  pointer-events: none;
}
.cta-banner h2 {
  font-family: var(--mono);
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 12px;
  color: var(--txt);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.cta-banner h2 em { color: var(--neon); font-style: normal; text-shadow: 0 0 14px var(--neon-glow); }
.cta-banner p { color: var(--txt-dim); margin: 0 0 24px; max-width: 50ch; }
.cta-banner-left { flex: 1; }
.cta-banner-right { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== Footer ===== */
.footer {
  border-top: 1px dashed var(--line);
  padding: 56px 0 32px;
  margin-top: 64px;
  font-size: 12px;
  color: var(--txt-mute);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
.footer-grid h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--neon);
  margin: 0 0 14px;
}
.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.footer-grid ul a {
  color: var(--txt-dim);
  font-size: 13px;
}
.footer-grid ul a:hover { color: var(--neon); }
.footer-tagline { color: var(--txt-dim); font-size: 13px; line-height: 1.6; margin-top: 12px; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px dashed var(--line);
  display: flex; justify-content: space-between;
  font-size: 11px;
  color: var(--txt-mute);
  flex-wrap: wrap;
  gap: 12px;
  letter-spacing: 0.04em;
}
.footer-bottom .blink::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--neon);
  box-shadow: 0 0 6px var(--neon-glow);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: 1px;
  animation: blink 1.6s steps(2) infinite;
}

/* ===== Light mode ============================================
   Cream-on-paper terminal vibe. Variables defined on body so they
   override any :root inline styles set from JS for descendants. */
body.light-mode {
  --bg: #f1ede1;
  --bg-1: #e8e3d3;
  --bg-2: #ddd6c1;
  --line: rgba(20, 50, 25, 0.16);
  --line-strong: rgba(20, 50, 25, 0.42);
  --txt: #15201a;
  --txt-dim: #4a554b;
  --txt-mute: #7d8a7e;
  --red: #b8331f;
  --amber: #a16400;
  --cyan: #007487;
  --magenta: #b62094;
  background: var(--bg);
  color: var(--txt);
}
/* Scanlines: subtler, darken-blend so they read as lines on light paper. */
body.light-mode::before {
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(20, 50, 25, 0.05) 0px,
      rgba(20, 50, 25, 0.05) 1px,
      transparent 1px,
      transparent 3px
    );
  mix-blend-mode: multiply;
  opacity: 0.55;
}
/* Vignette: subtler */
body.light-mode::after {
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, transparent 50%, rgba(120,110,80,0.08) 100%),
    radial-gradient(ellipse 80% 60% at 50% 100%, transparent 50%, rgba(120,110,80,0.06) 100%);
}
body.light-mode ::selection { background: var(--neon); color: #fafaf2; }

/* Nav: light backdrop */
body.light-mode .nav {
  background: rgba(241, 237, 225, 0.82);
}

/* Terminal — paper-ish */
body.light-mode .terminal {
  background: linear-gradient(180deg, #fbf8eb 0%, #f2eedd 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.05),
    0 28px 64px rgba(60, 50, 20, 0.18),
    0 0 32px rgba(0, 80, 30, 0.05);
}
body.light-mode .terminal-bar {
  background: #ebe6d3;
  border-bottom: 1px solid var(--line);
}
body.light-mode .terminal::after {
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(0, 80, 30, 0.04) 0px,
      rgba(0, 80, 30, 0.04) 1px,
      transparent 1px,
      transparent 3px
    );
  mix-blend-mode: multiply;
  opacity: 0.6;
}
body.light-mode .term-cmd { color: var(--txt); font-weight: 600; }
body.light-mode .term-out { color: #404a40; }
body.light-mode .term-prompt .hash { color: var(--red); }
body.light-mode .term-prompt .host { color: var(--cyan); }
body.light-mode .term-caret { background: var(--neon); box-shadow: 0 0 6px var(--neon-glow); }

/* Hero gradient text — darker on light */
body.light-mode .hero h1 .grad {
  -webkit-text-fill-color: initial;
  color: var(--neon);
  background: none;
  text-shadow: none;
}
body.light-mode .hero h1 .cursor,
body.light-mode .section-tag::before {
  box-shadow: 0 0 4px var(--neon-glow);
}
body.light-mode .stat-num { text-shadow: none; }
body.light-mode .tool-header h3 { text-shadow: none; }

/* CTA banner — soft tint */
body.light-mode .cta-banner {
  background:
    radial-gradient(circle at 80% 50%, rgba(0, 80, 30, 0.10), transparent 60%),
    rgba(0, 80, 30, 0.04);
}
body.light-mode .cta-banner::before {
  background:
    repeating-linear-gradient(
      45deg,
      transparent 0,
      transparent 12px,
      rgba(20, 50, 25, 0.04) 12px,
      rgba(20, 50, 25, 0.04) 13px
    );
}

/* Buttons — primary uses cream text on dark green */
body.light-mode .btn {
  color: var(--txt);
}
body.light-mode .btn.primary {
  color: #fafaf2;
}
body.light-mode .btn.primary:hover {
  background: var(--txt);
  color: #fafaf2;
  border-color: var(--txt);
}

/* Section tags — keep neon but no glow halo */
body.light-mode .section-tag {
  background: rgba(0, 80, 30, 0.06);
}

/* Stats: subtle gradient */
body.light-mode .stats {
  background:
    linear-gradient(90deg, rgba(0,80,30,0.06), transparent 30%, transparent 70%, rgba(0,80,30,0.06));
}

/* Feature/install hover */
body.light-mode .feature:hover,
body.light-mode .install-card:hover,
body.light-mode .tool-row:hover { background: rgba(0, 80, 30, 0.05); }
body.light-mode .tool-row.active { background: rgba(0, 80, 30, 0.10); }
body.light-mode .testimonial { background: rgba(0, 80, 30, 0.025); }
body.light-mode .usecase:hover { background: rgba(0, 80, 30, 0.025); }
body.light-mode .faq-item.open .faq-q { background: rgba(0, 80, 30, 0.06); }

/* Dragon — turn the eye-cutout from near-black to paper color */
body.light-mode .dragon-stage svg { filter: drop-shadow(0 8px 32px rgba(0, 80, 30, 0.18)); }
body.light-mode .dragon-stage svg polygon[fill="#050706"],
body.light-mode .dragon-stage svg circle[fill="#050706"] { fill: #f1ede1; }
body.light-mode .dragon-stage svg text { fill: rgba(20, 50, 25, 0.6); }

/* Testimonial big quote mark */
body.light-mode .testimonial::before { color: rgba(0, 80, 30, 0.18); }

/* Avatar */
body.light-mode .testimonial-author .avatar { background: var(--bg-1); }

/* Lang switch + tabs — light contrast */
body.light-mode .lang-switch button.on,
body.light-mode .terminal-bar .tab.on {
  color: #fafaf2;
}

   Disabled — was causing stalled CSS transitions in the preview iframe.
   `.reveal` is kept as a no-op class so the JSX selectors don't need to
   change; content always shows immediately. */
.reveal { opacity: 1; transform: none; }
.reveal.d1, .reveal.d2, .reveal.d3, .reveal.d4 { /* no delay */ }

/* ===== Keyframes ===== */
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.96; }
}
@keyframes glow-pulse {
  0%, 100% { text-shadow: 0 0 8px var(--neon-glow); }
  50% { text-shadow: 0 0 16px var(--neon-glow), 0 0 32px var(--neon-glow); }
}
@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(3n) { border-right: 1px dashed var(--line); }
  .feature:nth-child(2n) { border-right: 0; }
  .install-grid { grid-template-columns: repeat(2, 1fr); }
  .install-card:nth-child(4n) { border-right: 1px dashed var(--line); }
  .install-card:nth-child(2n) { border-right: 0; }
  .usecases { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .community { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .tools-list { max-height: 320px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner { flex-direction: column; align-items: flex-start; padding: 36px 28px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .nav-inner { padding: 12px 18px; }
  .nav-links { display: none; }
  .stats { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .feature { border-right: 0 !important; }
  .install-grid { grid-template-columns: 1fr; }
  .install-card { border-right: 0 !important; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-num { font-size: 32px; }
}
