/* ZombieMage marketing site
   Brand: bright, vibrant, poppy anime-cyberpunk. Neon cyan / hot magenta /
   electric purple / acid green accents on mid-tone bases. Never horror. */

:root {
  --bg: #140a24;
  --bg-soft: #1b0f30;
  --surface: #22133c;
  --surface-2: #2b1a4a;
  --fg: #f6f0fd;
  --muted: #c6b6e3;
  --border: rgba(255, 255, 255, 0.12);

  --cyan: #1ce8ff;
  --magenta: #ff3ec9;
  --purple: #b56bff;
  --green: #c6ff4d;
  --gold: #ffd23f;

  --focus-ring: #1ce8ff;

  --font-display: "Arial Black", "Segoe UI Black", "Helvetica Neue", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1160px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, p, figure, blockquote { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
button, input { font: inherit; }

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  background: var(--surface);
  color: var(--cyan);
  border: 2px solid var(--cyan);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  z-index: 100;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
.mage-chip:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Layout helpers */
.wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
section {
  padding-block: 4rem;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}
.eyebrow.magenta { color: var(--magenta); }
.eyebrow.green { color: var(--green); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.08;
}
h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  margin-bottom: 0.6em;
}
.lede {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 62ch;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 10, 36, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
  gap: 1rem;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.logo .a { color: var(--cyan); text-shadow: 0 0 18px rgba(28, 232, 255, 0.55); }
.logo .b { color: var(--magenta); text-shadow: 0 0 18px rgba(255, 62, 201, 0.55); }

.site-nav ul {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.site-nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--fg);
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  border-bottom-color: var(--cyan);
}

/* Buttons / pills */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95rem 1.75rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--cyan);
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg);
  box-shadow: 0 0 0 rgba(28, 232, 255, 0);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  min-height: 44px;
}
.btn:hover, .btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(28, 232, 255, 0.45);
  background: rgba(255, 255, 255, 0.1);
}
.btn.magenta {
  border-color: var(--magenta);
}
.btn.magenta:hover, .btn.magenta:focus-visible {
  box-shadow: 0 0 28px rgba(255, 62, 201, 0.5);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid var(--green);
  color: var(--green);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pill .dot {
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

/* Hero */
.hero {
  padding-block: 3rem 4rem;
}
.hero .wrap {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  margin-block: 0.5rem 1rem;
}
.hero h1 .glow-cyan { color: var(--cyan); text-shadow: 0 0 24px rgba(28, 232, 255, 0.5); }
.hero h1 .glow-magenta { color: var(--magenta); text-shadow: 0 0 24px rgba(255, 62, 201, 0.5); }
.hero p.lede { font-size: 1.15rem; margin-bottom: 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero-art {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), 0 0 60px rgba(255, 62, 201, 0.12);
}
.hero-art img { width: 100%; }

/* Chapters */
.chapters-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.chapter-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.chapter-card .art {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.chapter-card .art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.chapter-card .art .chnum {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(20, 10, 36, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
}
.chapter-card .body {
  padding: 1.35rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex: 1;
}
.chapter-card h3 {
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.chapter-card .subtitle {
  font-style: italic;
  color: var(--muted);
  font-weight: 600;
  font-family: var(--font-body);
  text-transform: none;
  font-size: 0.95rem;
}
.chapter-card .boss-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}
.chapter-card .boss-row img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
}
.chapter-card .boss-row .boss-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  display: block;
}
.chapter-card .boss-row .boss-name {
  font-weight: 800;
  font-size: 0.95rem;
}

.chapter-card:nth-child(1) .chnum { color: var(--cyan); }
.chapter-card:nth-child(2) .chnum { color: var(--magenta); }
.chapter-card:nth-child(3) .chnum { color: var(--green); }
.chapter-card:nth-child(4) .chnum { color: var(--purple); }

/* Endless mode banner */
.endless-banner {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.endless-banner .art { aspect-ratio: 16 / 9; overflow: hidden; }
.endless-banner .art img { width: 100%; height: 100%; object-fit: cover; }
.endless-banner .body { padding: 1.75rem 1.75rem 2rem; }
.endless-banner h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }
.endless-banner p { color: var(--muted); }

/* Mages */
.mages-row {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  padding-block: 0.5rem 0.75rem;
  margin-top: 2.25rem;
  scroll-snap-type: x proximity;
}
.mage-chip {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 148px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.9rem 0.9rem 1.1rem;
  text-align: center;
}
.mage-chip .portrait {
  height: 128px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 0.6rem;
}
.mage-chip img { max-height: 128px; width: auto; margin-inline: auto; }
.mage-chip .name {
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, #2a0f4c, #4a1450 60%, #59123f);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-band .wrap {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.cta-band h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.cta-band p.lede { max-width: 46ch; }

/* Footer */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding-block: 3rem 2rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}
.footer-brand .logo { display: inline-block; margin-bottom: 0.75rem; }
.footer-brand p { color: var(--muted); max-width: 42ch; font-size: 0.95rem; }
.footer-links h3 {
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 0.9rem;
}
.footer-links ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { text-decoration: none; font-weight: 700; font-size: 0.95rem; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

/* Privacy page */
.legal {
  padding-block: 3rem 4rem;
}
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(2rem, 6vw, 2.8rem); margin-bottom: 0.5rem; }
.legal .updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2.25rem;
  display: inline-block;
}
.legal h2 {
  font-size: 1.3rem;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  color: var(--cyan);
}
.legal p, .legal li {
  color: var(--fg);
  margin-bottom: 0.9rem;
}
.legal ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 1rem; }
.legal ul li { margin-bottom: 0.5rem; }
.legal a { color: var(--cyan); font-weight: 700; text-decoration-thickness: 2px; }
.legal strong { color: var(--fg); }
.legal .intro-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Breakpoints */
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}
@media (min-width: 780px) {
  .chapters-grid {
    grid-template-columns: repeat(12, 1fr);
  }
  .chapter-card:nth-child(1) { grid-column: span 7; }
  .chapter-card:nth-child(2) { grid-column: span 5; }
  .chapter-card:nth-child(3) { grid-column: span 5; }
  .chapter-card:nth-child(4) { grid-column: span 7; }
  .chapter-card .art { aspect-ratio: 16 / 10; }
  .endless-banner { grid-template-columns: 1.1fr 1fr; }
  .endless-banner .art { aspect-ratio: auto; height: 100%; }
  .endless-banner .body { display: flex; flex-direction: column; justify-content: center; }
}
@media (min-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1.05fr 0.95fr;
  }
  .hero-art { max-width: 420px; margin-left: auto; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
