/* ============================================================
   ZOMS — marketing site shared styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Creepster&family=Oswald:wght@300;400;500;600;700&display=swap');

:root {
  --blood: #8b0000;
  --blood-bright: #c81e1e;
  --toxic: #7cb518;
  --toxic-bright: #9ee034;
  --bone: #d8d2c2;
  --bone-dim: rgba(216, 210, 194, 0.62);
  --ink: #0a0c0a;
  --ink-2: #11140f;
  --panel: rgba(18, 22, 16, 0.72);
  --panel-edge: rgba(124, 181, 24, 0.16);
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 86px; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-weight: 600; line-height: 1.1; letter-spacing: 0.01em; }

::selection { background: var(--blood); color: var(--bone); }

/* scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #2a0a0a; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--blood); }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

.section { position: relative; padding: clamp(3.5rem, 9vw, 7rem) 0; z-index: 2; }
.section--alt { background:
    linear-gradient(180deg, rgba(0,0,0,0.4), transparent 12%, transparent 88%, rgba(0,0,0,0.4)),
    radial-gradient(ellipse at 50% 0%, rgba(124,181,24,0.04), transparent 55%);
  border-top: 1px solid rgba(124,181,24,0.06);
  border-bottom: 1px solid rgba(124,181,24,0.06);
}

.eyebrow {
  font-size: 0.72rem; letter-spacing: 0.42em; text-indent: 0.42em;
  text-transform: uppercase; color: var(--toxic);
  font-weight: 600; margin-bottom: 0.9rem;
  display: inline-block;
}

.section-title {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  text-transform: uppercase; letter-spacing: 0.02em;
  margin-bottom: 1rem;
  text-shadow: 0 0 30px rgba(139,0,0,0.4);
}

.section-lead {
  max-width: 60ch; color: var(--bone-dim);
  font-size: clamp(1rem, 2.2vw, 1.18rem);
}
.section-head { margin-bottom: clamp(2rem, 5vw, 3.4rem); }
.center { text-align: center; }
.center .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- atmosphere (shared bg fx) ---------- */
.bg-fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bg-fx .fog {
  position: absolute; inset: -20% -50%;
  background: radial-gradient(circle at 30% 40%, rgba(124,181,24,0.05), transparent 42%),
              radial-gradient(circle at 72% 60%, rgba(139,0,0,0.07), transparent 46%);
  filter: blur(50px);
  animation: drift 30s ease-in-out infinite alternate;
}
.bg-fx .fog.two { animation-duration: 44s; animation-direction: alternate-reverse; opacity: 0.65; }
@keyframes drift {
  0%   { transform: translate(-4%, -2%) scale(1.05); }
  100% { transform: translate(5%, 3%) scale(1.18); }
}
.bg-fx .grain {
  position: absolute; inset: 0; opacity: 0.22; mix-blend-mode: multiply;
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0,0,0,0.4) 3px);
}
.bg-fx .vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 52%, rgba(0,0,0,0.82) 100%);
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 2.4rem);
  background: linear-gradient(180deg, rgba(5,6,5,0.92), rgba(5,6,5,0.55) 70%, transparent);
  backdrop-filter: blur(6px);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav.scrolled {
  background: rgba(6,8,6,0.95);
  box-shadow: 0 1px 0 rgba(124,181,24,0.12), 0 10px 30px rgba(0,0,0,0.6);
}
.brand {
  font-family: 'Creepster', cursive;
  font-size: 1.8rem; letter-spacing: 0.05em;
  color: var(--bone);
  text-shadow: 0 0 10px rgba(200,30,30,0.6);
  line-height: 1;
}
.brand:hover { color: var(--blood-bright); }
.nav-links { display: flex; align-items: center; gap: 1.7rem; list-style: none; }
.nav-links a {
  font-size: 0.86rem; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 500; color: var(--bone-dim);
  position: relative; padding: 0.3rem 0;
  transition: color 0.2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--toxic); transition: width 0.25s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--bone); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 8px; right: 8px; height: 2px;
  background: var(--bone); transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle span { top: 50%; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'Oswald', sans-serif; font-weight: 600;
  font-size: 0.92rem; letter-spacing: 0.18em; text-indent: 0.18em;
  text-transform: uppercase; cursor: pointer;
  padding: 0.85rem 1.7rem; border-radius: 2px;
  border: 1px solid transparent;
  transition: transform 0.18s var(--ease), box-shadow 0.25s, background 0.25s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--blood); color: var(--bone);
  border-color: var(--blood-bright);
  box-shadow: 0 0 0 rgba(200,30,30,0);
}
.btn--primary:hover { background: var(--blood-bright); box-shadow: 0 8px 30px rgba(200,30,30,0.35); }
.btn--ghost {
  background: rgba(124,181,24,0.06); color: var(--toxic-bright);
  border-color: rgba(124,181,24,0.45);
}
.btn--ghost:hover { background: rgba(124,181,24,0.14); box-shadow: 0 8px 30px rgba(124,181,24,0.18); }
.btn--lg { padding: 1.05rem 2.4rem; font-size: 1rem; }

/* ---------- hero ---------- */
.hero {
  position: relative; z-index: 2;
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 7rem 1.5rem 6rem;
}
.hero .splat {
  position: absolute; top: 46%; left: 50%;
  width: min(80vw, 720px); height: min(80vw, 720px);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 50% 45%, rgba(139,0,0,0.5) 0%, rgba(139,0,0,0.16) 32%, transparent 62%);
  filter: blur(8px); z-index: -1;
}
.hero-title {
  font-family: 'Creepster', cursive;
  font-size: clamp(5rem, 24vw, 17rem); line-height: 0.85;
  letter-spacing: 0.03em; color: var(--bone);
  text-shadow: 0 0 8px rgba(200,30,30,0.7), 0 0 28px rgba(139,0,0,0.6),
               4px 6px 0 #2a0000, 0 0 70px rgba(124,181,24,0.15);
  animation: flicker 5s infinite;
}
@keyframes flicker {
  0%,18%,22%,25%,53%,57%,100% { opacity: 1; }
  20%,24%,55% { opacity: 0.78; }
}
.hero-tagline {
  margin-top: 0.6rem; font-weight: 300;
  letter-spacing: 0.5em; text-indent: 0.5em;
  font-size: clamp(0.72rem, 2.4vw, 1.1rem);
  color: var(--bone-dim); text-transform: uppercase;
}
.hero-sub {
  margin: 1.6rem auto 0; max-width: 52ch;
  font-size: clamp(1rem, 2.4vw, 1.25rem); color: var(--bone-dim);
}
.hero-cta { margin-top: 2.4rem; display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.hero-scroll {
  position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%);
  font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--bone-dim); animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%,0);} 50% { transform: translate(-50%,8px);} }

.badge {
  display: inline-block; margin-bottom: 1.6rem;
  font-size: 0.7rem; letter-spacing: 0.3em; text-indent: 0.3em; text-transform: uppercase;
  color: var(--toxic-bright);
  border: 1px solid rgba(124,181,24,0.4); border-radius: 100px;
  padding: 0.4rem 1.1rem; background: rgba(124,181,24,0.05);
}

/* ---------- page header (sub-pages) ---------- */
.page-head {
  position: relative; z-index: 2;
  padding: 9rem 1.5rem clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}
.page-head h1 {
  font-size: clamp(2.4rem, 8vw, 5rem); text-transform: uppercase;
  text-shadow: 0 0 30px rgba(139,0,0,0.45);
}
.page-head p { margin: 1rem auto 0; max-width: 56ch; color: var(--bone-dim); font-size: 1.1rem; }

/* ---------- feature grid ---------- */
.grid { display: grid; gap: 1.2rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative; background: var(--panel);
  border: 1px solid var(--panel-edge); border-radius: 4px;
  padding: 1.8rem 1.6rem;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s, background 0.3s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--blood); opacity: 0.5; transition: opacity 0.3s, background 0.3s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(124,181,24,0.4);
  box-shadow: 0 18px 40px rgba(0,0,0,0.5);
  background: rgba(22,28,18,0.85);
}
.card:hover::before { background: var(--toxic); opacity: 1; }
.card .ico { font-size: 2rem; line-height: 1; margin-bottom: 0.9rem; display: block; filter: drop-shadow(0 0 8px rgba(124,181,24,0.3)); }
.card h3 { font-size: 1.22rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.5rem; }
.card p { color: var(--bone-dim); font-size: 0.98rem; }

/* ---------- alternating feature rows ---------- */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 3.5rem);
  align-items: center; margin-bottom: clamp(2.5rem, 7vw, 5rem);
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse .media { order: 2; }
.feature-row h3 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); text-transform: uppercase; margin-bottom: 0.8rem; }
.feature-row p { color: var(--bone-dim); margin-bottom: 1rem; }
.feature-row ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.feature-row li { position: relative; padding-left: 1.5rem; color: var(--bone-dim); font-size: 0.98rem; }
.feature-row li::before {
  content: "▸"; position: absolute; left: 0; color: var(--toxic); font-size: 0.9rem;
}

/* ---------- "screenshot" placeholder frame ---------- */
.shot {
  position: relative; aspect-ratio: 16 / 10; border-radius: 5px; overflow: hidden;
  border: 1px solid rgba(124,181,24,0.18);
  box-shadow: inset 0 0 60px rgba(0,0,0,0.6), 0 16px 40px rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.shot::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.7));
  pointer-events: none;
}
.shot .label {
  position: relative; z-index: 1; font-family: 'Creepster', cursive;
  font-size: clamp(1.6rem, 4vw, 2.6rem); color: rgba(216,210,194,0.5);
  letter-spacing: 0.03em; text-shadow: 0 0 20px rgba(0,0,0,0.8);
}
.shot .tag {
  position: absolute; left: 0.8rem; bottom: 0.7rem; z-index: 2;
  font-size: 0.62rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--bone-dim); background: rgba(0,0,0,0.5); padding: 0.25rem 0.6rem; border-radius: 2px;
}
.shot-forest  { background: linear-gradient(160deg, #1c2a12, #0a1206 70%); }
.shot-coastal { background: linear-gradient(160deg, #2a2410, #0e0a04 70%); }
.shot-dungeon { background: linear-gradient(160deg, #1a1320, #060409 70%); }
.shot-night   { background: linear-gradient(160deg, #0c1322, #04060c 70%); }
.shot-base    { background: linear-gradient(160deg, #241a0e, #0a0703 70%); }
.shot-combat  { background: linear-gradient(160deg, #2a0e0e, #0c0303 70%); }

/* ---------- classes ---------- */
.class-card {
  position: relative; background: var(--panel);
  border: 1px solid var(--panel-edge); border-radius: 5px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.class-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.55); border-color: var(--accent, var(--toxic)); }
.class-banner {
  height: 130px; display: flex; align-items: center; justify-content: center;
  font-size: 3.2rem; position: relative;
  background: linear-gradient(160deg, var(--accent-dim, rgba(124,181,24,0.18)), rgba(0,0,0,0.4));
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.class-banner::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 40%, transparent 40%, rgba(0,0,0,0.5));
}
.class-body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.class-name { font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.03em; }
.class-role { font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--accent, var(--toxic)); margin: 0.3rem 0 0.9rem; font-weight: 600; }
.class-desc { color: var(--bone-dim); font-size: 0.96rem; margin-bottom: 1.1rem; }
.class-abilities { list-style: none; margin-top: auto; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.class-abilities li {
  font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.28rem 0.6rem; border-radius: 100px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  color: var(--bone-dim);
}

/* ---------- stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stat .num {
  font-family: 'Creepster', cursive; font-size: clamp(2.4rem, 6vw, 3.6rem);
  color: var(--toxic); line-height: 1; text-shadow: 0 0 22px rgba(124,181,24,0.4);
}
.stat .lbl { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bone-dim); margin-top: 0.5rem; }

/* ---------- timeline / roadmap ---------- */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--toxic), var(--blood)); opacity: 0.5; }
.tl-item { position: relative; padding: 0 0 1.8rem 1.6rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -2rem; top: 4px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--ink); border: 3px solid var(--blood);
}
.tl-item.done::before { border-color: var(--toxic); background: var(--toxic); }
.tl-item.now::before { border-color: var(--toxic); box-shadow: 0 0 0 4px rgba(124,181,24,0.18); animation: throb 2s infinite; }
@keyframes throb { 50% { box-shadow: 0 0 0 9px rgba(124,181,24,0.05); } }
.tl-phase { font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--toxic); font-weight: 600; }
.tl-item h4 { font-size: 1.2rem; text-transform: uppercase; margin: 0.2rem 0 0.4rem; }
.tl-item p { color: var(--bone-dim); font-size: 0.96rem; }
.tl-item ul { list-style: none; margin: 0.6rem 0 0; display: flex; flex-direction: column; gap: 0.4rem; }
.tl-item ul li { position: relative; padding-left: 1.3rem; color: var(--bone-dim); font-size: 0.95rem; }
.tl-item ul li::before { content: "▸"; position: absolute; left: 0; color: var(--toxic); font-size: 0.85rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--panel-edge); border-radius: 4px; margin-bottom: 0.8rem; background: var(--panel); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; cursor: pointer; background: none; border: 0; color: var(--bone);
  font-family: 'Oswald', sans-serif; font-size: 1.08rem; font-weight: 500;
  padding: 1.15rem 1.3rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-q:hover { color: var(--toxic-bright); }
.faq-q .plus { color: var(--toxic); font-size: 1.4rem; transition: transform 0.3s var(--ease); flex: none; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.faq-a-inner { padding: 0 1.3rem 1.2rem; color: var(--bone-dim); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; position: relative; z-index: 2; }
.cta-band .section-title { margin-bottom: 0.6rem; }
.signup {
  display: flex; gap: 0.6rem; max-width: 460px; margin: 1.8rem auto 0; flex-wrap: wrap; justify-content: center;
}
.signup input {
  flex: 1; min-width: 220px;
  background: rgba(0,0,0,0.4); border: 1px solid rgba(124,181,24,0.3); border-radius: 2px;
  color: var(--bone); padding: 0.85rem 1rem; font-family: 'Oswald', sans-serif; font-size: 0.95rem;
}
.signup input:focus { outline: none; border-color: var(--toxic); box-shadow: 0 0 0 3px rgba(124,181,24,0.12); }
.signup-note { margin-top: 0.9rem; font-size: 0.78rem; color: var(--bone-dim); letter-spacing: 0.05em; }

/* ---------- footer ---------- */
.footer {
  position: relative; z-index: 2;
  border-top: 1px solid rgba(124,181,24,0.12);
  background: rgba(4,5,4,0.85);
  padding: 3rem 1.5rem 2.2rem;
}
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; max-width: var(--max); margin: 0 auto; }
.footer .brand { font-size: 2.2rem; }
.footer-tag { color: var(--blood-bright); letter-spacing: 0.35em; text-transform: uppercase; font-size: 0.78rem; margin-top: 0.5rem; }
.footer-cols { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-col h5 { font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bone); margin-bottom: 0.8rem; }
.footer-col a { display: block; color: var(--bone-dim); font-size: 0.9rem; padding: 0.22rem 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--toxic-bright); }
.footer-bottom { max-width: var(--max); margin: 2.2rem auto 0; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.78rem; color: var(--bone-dim); letter-spacing: 0.04em; }

/* ---------- horde + ash (shared) ---------- */
.horde { position: fixed; bottom: 0; left: 0; right: 0; height: 18vh; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent); }
.walker { position: absolute; bottom: 2vh; opacity: 0.32; filter: grayscale(1) brightness(0.4) sepia(1) hue-rotate(40deg);
  animation: shamble linear infinite; will-change: transform; }
@keyframes shamble {
  from { transform: translateX(-12vw) rotate(-3deg); }
  25%  { transform: translateX(20vw) translateY(-0.5vh) rotate(2deg); }
  50%  { transform: translateX(45vw) rotate(-2deg); }
  75%  { transform: translateX(75vw) translateY(-0.5vh) rotate(3deg); }
  to   { transform: translateX(115vw) rotate(-3deg); }
}
.ash { position: fixed; top: -10px; background: rgba(216,210,194,0.5); border-radius: 50%; z-index: 1; pointer-events: none; animation: fall linear infinite; }
@keyframes fall { to { transform: translateY(110vh) translateX(4vw); opacity: 0; } }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* ---------- video embed ---------- */
.video-wrap {
  position: relative; display: block;
  width: 100%; max-width: 960px; margin-left: auto; margin-right: auto;
  aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden;
  border: 1px solid rgba(124,181,24,0.22);
  box-shadow: 0 22px 55px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(0,0,0,0.4);
  background: #000;
}
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- long-form document pages (legal / guide) ---------- */
.doc { max-width: 840px; margin: 0 auto; }
.doc .updated { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bone-dim); margin-bottom: 2.4rem; }
.doc h2 { font-size: clamp(1.4rem, 3.6vw, 2rem); text-transform: uppercase; letter-spacing: 0.02em; margin: 2.6rem 0 0.9rem; scroll-margin-top: 96px; }
.doc h2:first-of-type { margin-top: 0; }
.doc h3 { font-size: 1.12rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--toxic-bright); margin: 1.7rem 0 0.5rem; }
.doc p { color: var(--bone-dim); margin-bottom: 1rem; }
.doc strong { color: var(--bone); font-weight: 500; }
.doc a { color: var(--toxic-bright); text-decoration: underline; text-underline-offset: 3px; }
.doc a:hover { color: var(--bone); }
.doc ul, .doc ol { color: var(--bone-dim); margin: 0 0 1.1rem 1.4rem; display: flex; flex-direction: column; gap: 0.45rem; }
.doc li { padding-left: 0.2rem; }
.doc li::marker { color: var(--toxic); }

/* in-page table of contents */
.toc {
  background: var(--panel); border: 1px solid var(--panel-edge); border-radius: 4px;
  padding: 1.2rem 1.4rem; margin-bottom: 2.4rem;
}
.toc h4 { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bone); margin-bottom: 0.7rem; }
.toc ol { margin: 0 0 0 1.2rem; gap: 0.3rem; }
.toc a { color: var(--bone-dim); text-decoration: none; }
.toc a:hover { color: var(--toxic-bright); }

/* callout / warning box */
.callout {
  border: 1px solid rgba(200,30,30,0.4); background: rgba(139,0,0,0.08);
  border-radius: 4px; padding: 1.2rem 1.4rem; margin: 1.4rem 0;
}
.callout.toxic { border-color: rgba(124,181,24,0.4); background: rgba(124,181,24,0.06); }
.callout > :last-child { margin-bottom: 0; }
.callout h3 { margin-top: 0; color: var(--blood-bright); }
.callout.toxic h3 { color: var(--toxic-bright); }

/* simple key/controls table */
.ktable { width: 100%; border-collapse: collapse; margin: 0.5rem 0 1.4rem; }
.ktable th, .ktable td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid rgba(255,255,255,0.07); font-size: 0.95rem; }
.ktable th { color: var(--bone); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; font-weight: 600; }
.ktable td:first-child { color: var(--toxic-bright); font-weight: 500; white-space: nowrap; }
.ktable td { color: var(--bone-dim); }
.kbd {
  display: inline-block; min-width: 1.6em; text-align: center;
  background: rgba(0,0,0,0.5); border: 1px solid rgba(124,181,24,0.3);
  border-radius: 3px; padding: 0.1em 0.45em; font-size: 0.85em; color: var(--bone);
}

.disclaimer { margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.82rem; color: var(--bone-dim); font-style: italic; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.reverse .media { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }

  /* collapse the nav to the mobile menu here so the full link set never overflows */
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 64px; right: 0; left: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: rgba(6,8,6,0.98); border-top: 1px solid rgba(124,181,24,0.12);
    max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease);
  }
  .nav-links.open { max-height: 85vh; }
  .nav-links li { border-bottom: 1px solid rgba(255,255,255,0.05); }
  .nav-links a { display: block; padding: 1rem 1.6rem; }
  .nav-links a::after { display: none; }
  .nav .btn { display: none; }
}
@media (max-width: 680px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
