/* ============================================================
   Zombie Deluge — site styles
   Palette: void-green background, toxic-green primary, blood accent
   Self-hosted fonts: Anton (display), Inter variable (body)
   ============================================================ */

@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/anton-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-var.woff2") format("woff2");
}

:root {
  --bg: #0a0d0a;
  --bg-alt: #0d120c;
  --panel: #121810;
  --line: #22301e;
  --ink: #e8f0e2;
  --ink-dim: #9fae96;
  --green: #8fff3f;
  --green-deep: #5cb824;
  --red: #ff4136;
  --red-deep: #b31d14;
  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--green); color: #06110a; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- type ---------- */

.kicker {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--green);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

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

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 28px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--green);
  color: #07120a;
  box-shadow: 0 0 0 rgba(143, 255, 63, 0);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(143, 255, 63, 0.28);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

.btn-small { padding: 9px 18px; font-size: 13px; }

/* ---------- topbar ---------- */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(8, 11, 8, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark { width: 30px; height: 30px; color: var(--green); }
.brand-name {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.05em;
}
.brand-name b { color: var(--green); font-weight: 400; }

.topnav { display: flex; align-items: center; gap: 26px; }
.topnav a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 0.15s;
}
.topnav a:hover { color: var(--green); }
.topnav .btn { color: #07120a; }
.topnav .btn:hover { color: #07120a; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 24px 0;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(92, 184, 36, 0.14), transparent 60%),
    radial-gradient(900px 500px at 15% 110%, rgba(179, 29, 20, 0.12), transparent 60%),
    var(--bg);
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-hazard {
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  height: 8px;
  background: repeating-linear-gradient(-45deg, var(--green) 0 14px, #0a0d0a 14px 28px);
  opacity: 0.35;
}

.hero-skyline {
  position: absolute;
  bottom: 118px;
  left: 0;
  width: 100%;
  height: 34vh;
  min-height: 180px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--green);
  border: 1px solid rgba(143, 255, 63, 0.35);
  background: rgba(143, 255, 63, 0.06);
  padding: 7px 16px;
  margin-bottom: 26px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(143, 255, 63, 0.55); }
  55% { box-shadow: 0 0 0 7px rgba(143, 255, 63, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(56px, 11vw, 148px);
  line-height: 0.98;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  position: relative;
  margin-bottom: 18px;
  text-shadow: 0 0 60px rgba(143, 255, 63, 0.22);
}

/* glitch layers */
.hero-title::before,
.hero-title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.hero-title::before {
  color: var(--red);
  animation: glitch-a 5s infinite steps(1);
}
.hero-title::after {
  color: var(--green);
  animation: glitch-b 5s infinite steps(1);
}
@keyframes glitch-a {
  0%, 93%, 100% { opacity: 0; transform: none; clip-path: none; }
  94% { opacity: 0.8; transform: translate(-5px, 2px); clip-path: inset(12% 0 58% 0); }
  96% { opacity: 0.8; transform: translate(4px, -2px); clip-path: inset(62% 0 8% 0); }
  98% { opacity: 0; }
}
@keyframes glitch-b {
  0%, 93.5%, 100% { opacity: 0; transform: none; clip-path: none; }
  95% { opacity: 0.7; transform: translate(5px, 1px); clip-path: inset(40% 0 32% 0); }
  97% { opacity: 0.7; transform: translate(-4px, -1px); clip-path: inset(4% 0 78% 0); }
  99% { opacity: 0; }
}

.tagline {
  font-size: clamp(19px, 2.6vw, 26px);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
}
.tagline em { color: var(--green); font-style: normal; }

.hero-sub {
  max-width: 640px;
  margin: 0 auto 34px;
  color: var(--ink-dim);
  font-size: 17px;
}

.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 72px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.hero-stats > div {
  padding: 22px 12px 30px;
  border-right: 1px solid var(--line);
  text-align: center;
}
.hero-stats > div:last-child { border-right: none; }
.hero-stats b {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 40px);
  color: var(--green);
}
.hero-stats span {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ---------- sections ---------- */

.section { padding: 110px 0; position: relative; }
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.modes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-top: 34px;
}

.mode-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 38px 34px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px);
}
.mode-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(143, 255, 63, 0.014) 3px 4px);
  pointer-events: none;
}
.mode-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.mode-card:first-child:hover { border-color: rgba(143, 255, 63, 0.55); }
.mode-card:last-child:hover { border-color: rgba(255, 65, 54, 0.55); }

.mode-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 5px 12px;
  margin-bottom: 18px;
}
.mode-tag-green { color: var(--green); border: 1px solid rgba(143, 255, 63, 0.4); }
.mode-tag-red { color: var(--red); border: 1px solid rgba(255, 65, 54, 0.4); }

.mode-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 34px;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.mode-lede { color: var(--ink-dim); margin-bottom: 20px; }

.mode-card ul { list-style: none; }
.mode-card li {
  padding: 9px 0 9px 26px;
  position: relative;
  border-bottom: 1px dashed rgba(34, 48, 30, 0.9);
  font-size: 15px;
  color: var(--ink);
}
.mode-card li:last-child { border-bottom: none; }
.mode-card li::before {
  content: "»";
  position: absolute;
  left: 2px;
  color: var(--green);
  font-weight: 700;
}
.mode-card:last-child li::before { color: var(--red); }

/* ---------- features ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 36px;
}

.feature {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 28px 26px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature:hover { border-color: rgba(143, 255, 63, 0.45); transform: translateY(-3px); }

.feature-icon {
  width: 44px;
  height: 44px;
  color: var(--green);
  margin-bottom: 16px;
}
.feature-icon svg { width: 100%; height: 100%; }

.feature h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.feature p { color: var(--ink-dim); font-size: 14.5px; }

/* ---------- roadmap ---------- */

.roadmap {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 38px;
  counter-reset: phase;
}

.roadmap li {
  position: relative;
  padding: 30px 28px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.roadmap li::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -27px;
  width: 26px;
  height: 2px;
  background: var(--line);
}
.roadmap li:last-child::after { display: none; }

.roadmap-phase {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.16em;
  padding: 4px 14px;
  margin-bottom: 16px;
}
.phase-now { background: var(--green); color: #07120a; }
.phase-next { border: 1px solid var(--green); color: var(--green); }
.phase-later { border: 1px solid var(--line); color: var(--ink-dim); }

.roadmap h4 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.roadmap p { color: var(--ink-dim); font-size: 14.5px; }

/* ---------- playtest cta ---------- */

.section-cta {
  background:
    radial-gradient(700px 340px at 50% 120%, rgba(92, 184, 36, 0.16), transparent 65%),
    var(--bg-alt);
  border-top: 1px solid var(--line);
  text-align: center;
}

.cta-copy { color: var(--ink-dim); margin-bottom: 30px; }

.playtest-form {
  display: flex;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
}
.playtest-form input {
  flex: 1;
  min-width: 0;
  background: #0a0f09;
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 14px 18px;
  outline: none;
  transition: border-color 0.15s;
}
.playtest-form input:focus { border-color: var(--green); }
.playtest-form input::placeholder { color: #5a6852; }

.form-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-dim);
}
.form-note.success { color: var(--green); font-weight: 600; }

/* ---------- faq ---------- */

.faq-list { margin-top: 30px; }

.faq-list details {
  border: 1px solid var(--line);
  background: var(--panel);
  margin-bottom: 12px;
}
.faq-list summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  position: relative;
  padding-right: 52px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--green);
  transition: transform 0.2s;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p {
  padding: 0 22px 20px;
  color: var(--ink-dim);
  font-size: 15px;
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 52px;
  background: #070a07;
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 18px;
}
.footer-brand .brand-mark { width: 26px; height: 26px; color: var(--green); }
.footer-brand b { color: var(--green); font-weight: 400; }

.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 14px;
}
.footer-nav a:hover { color: var(--green); }

.footer-legal {
  width: 100%;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #5a6852;
  font-size: 12.5px;
}

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- legal / privacy page ---------- */

.legal-page { padding-top: 150px; }

.legal-updated {
  color: var(--ink-dim);
  font-size: 14px;
  margin-bottom: 34px;
}
.legal-updated b { color: var(--ink); }

.legal-body h2 {
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 700;
  color: var(--green);
  margin: 38px 0 10px;
  letter-spacing: 0.01em;
}
.legal-body h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  margin: 24px 0 8px;
}
.legal-body p {
  color: var(--ink-dim);
  font-size: 15px;
  margin-bottom: 12px;
}
.legal-body p b { color: var(--ink); }
.legal-body ul {
  list-style: none;
  margin: 6px 0 14px;
}
.legal-body li {
  color: var(--ink-dim);
  font-size: 15px;
  padding: 6px 0 6px 24px;
  position: relative;
}
.legal-body li::before {
  content: "»";
  position: absolute;
  left: 2px;
  color: var(--green);
  font-weight: 700;
}
.legal-body a {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid rgba(143, 255, 63, 0.35);
}
.legal-body a:hover { border-bottom-color: var(--green); }

.legal-back { margin-top: 46px; }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .roadmap { grid-template-columns: 1fr; }
  .roadmap li::after { display: none; }
}

@media (max-width: 760px) {
  .topnav a:not(.btn) { display: none; }
  .hero { padding-top: 120px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats > div:nth-child(2) { border-right: none; }
  .hero-stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .modes-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .playtest-form { flex-direction: column; }
  .section { padding: 80px 0; }
  .topbar { padding: 12px 18px; }
}
