:root {
  --bg-deep: #0A0E17;
  --bg-panel: #11151F;
  --ink: #E8EAF0;
  --ink-soft: #9BA3B4;
  --glow-cyan: #00E5C7;
  --glow-violet: #7C4DFF;
  --warn: #F2B705;
  --good: #00A88C;
  --paper: #F4F1EA;
  --sans: 'Inter', sans-serif;
  --display: 'Space Grotesk', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
}

h1, h2, h3 { font-family: var(--display); margin: 0; }

a { color: inherit; text-decoration: none; }

/* ---------- Icons (shared sprite, see index.html's inline <symbol>s) ---------- */

.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.15em;
  flex-shrink: 0;
}

.icon-md { width: 22px; height: 22px; }

/* ---------- Nav ---------- */

.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: rgba(10,14,23,0.7);
  backdrop-filter: blur(10px);
}

.topnav-brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
}

.topnav-links { display: flex; gap: 28px; font-size: 14px; color: var(--ink-soft); }
.topnav-links a:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (the one bold moment) ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 100px 24px 60px;
}

.hero-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 900px; height: 900px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0,229,199,0.16) 0%, rgba(124,77,255,0.10) 35%, transparent 70%);
  pointer-events: none;
}

#hero-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

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

.hero h1 {
  font-size: clamp(34px, 5.5vw, 58px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero-sub {
  margin: 24px auto 0;
  max-width: 560px;
  color: var(--ink-soft);
  font-size: 17px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 36px;
}

.btn-glow {
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  background: linear-gradient(135deg, var(--glow-cyan), var(--glow-violet));
  color: #0A0E17;
  box-shadow: 0 0 32px rgba(0,229,199,0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-glow:hover { transform: translateY(-1px); box-shadow: 0 0 44px rgba(0,229,199,0.5); }

.btn-ghost {
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.04); }

.hero-trust {
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- Section shared ---------- */

.section-intro {
  max-width: 640px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-intro h2 {
  font-size: 32px;
  font-weight: 600;
}

.section-intro p {
  color: var(--ink-soft);
  margin-top: 8px;
}

/* ---------- Comic strip ---------- */

.comic {
  background: #14100A;
  color: #1B1C22;
  padding: 64px 24px;
}

.comic .section-intro h2, .comic .section-intro p { color: var(--ink); }
.comic .section-intro p { color: var(--ink-soft); }

.comic-strip {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  perspective: 1200px;
}

.panel {
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  opacity: 0;
  transform: translateY(24px);
}

.panel.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.panel:hover {
  transform: translateY(-6px) rotateX(2deg) rotateY(-2deg) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.45);
  z-index: 2;
}

.panel-art { display: block; width: 100%; height: auto; }

.bubble {
  padding: 16px 18px;
  font-size: 14px;
  font-style: italic;
  flex: 1;
  background: #1A1E28;
  color: var(--ink);
}

.panel-calm .bubble { background: #1E2A26; }
.bubble-warn { background: #2E230B; color: #FFC93C; font-weight: 500; }
.bubble-danger { background: #3A0F16; color: #FF9B9B; font-weight: 600; }
.bubble-hero { background: #071019; color: var(--glow-cyan); font-style: normal; font-weight: 700; }
.bubble-good { background: #0D2A20; color: #7FE0BC; font-style: normal; font-weight: 600; }

/* Panel-specific idle animations */
.pulse-warn { animation: pulseWarn 1.8s ease-in-out infinite; }
@keyframes pulseWarn { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.pulse-ring { animation: pulseRing 1.6s ease-out infinite; transform-origin: center; }
@keyframes pulseRing { 0% { transform: scale(0.9); opacity: 0.5; } 100% { transform: scale(1.5); opacity: 0; } }

.dash-flow { stroke-dasharray: 8 6; animation: dashFlow 0.6s linear infinite; }
@keyframes dashFlow { to { stroke-dashoffset: -14; } }

.ring-spin { animation: ringSpin 6s linear infinite; transform-origin: center; }
@keyframes ringSpin { to { transform: rotate(360deg); } }

.pulse-glow { animation: pulseGlow 2.2s ease-in-out infinite; transform-origin: center; }
.pulse-glow-strong { animation: pulseGlowStrong 2.2s ease-in-out infinite; transform-origin: center; }
@keyframes pulseGlow { 0%,100% { opacity: 0.15; } 50% { opacity: 0.35; } }
@keyframes pulseGlowStrong { 0%,100% { filter: drop-shadow(0 0 4px rgba(0,229,199,0.6)); } 50% { filter: drop-shadow(0 0 16px rgba(0,229,199,0.9)); } }

.reveal-mask { animation: revealMask 2.4s ease-in-out infinite; }
@keyframes revealMask { 0%,85%,100% { opacity: 1; } 92% { opacity: 0.6; } }

.bounce-happy { animation: bounceHappy 1.4s ease-in-out infinite; transform-origin: center bottom; }
@keyframes bounceHappy { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.confetti { animation: confettiFloat 1.8s ease-in-out infinite; display: inline-block; }
.confetti-delay { animation: confettiFloat 1.8s ease-in-out infinite 0.4s; display: inline-block; }
@keyframes confettiFloat { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-8px) rotate(12deg); } }

.thought-bubble { animation: thoughtDrift 3s ease-in-out infinite; }
@keyframes thoughtDrift { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

@media (prefers-reduced-motion: reduce) {
  .pulse-warn, .pulse-ring, .dash-flow, .ring-spin, .pulse-glow, .pulse-glow-strong,
  .reveal-mask, .bounce-happy, .confetti, .confetti-delay, .thought-bubble {
    animation: none !important;
  }
}

/* ---------- Why this matters (stakes) ---------- */

.stakes {
  padding: 70px 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.stakes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stakes-card {
  border-radius: 14px;
  padding: 28px 30px;
}

.stakes-card h3 {
  font-size: 19px;
  margin-bottom: 16px;
}

.stakes-card ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14.5px;
}

.stakes-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.stakes-li-icon {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin-top: 0.15em;
}

.stakes-bad .stakes-li-icon { color: #FF9B9B; }
.stakes-good .stakes-li-icon { color: var(--glow-cyan); }

.stakes-bad {
  background: linear-gradient(160deg, rgba(242,84,91,0.12), rgba(242,84,91,0.03));
  border: 1px solid rgba(242,84,91,0.3);
}
.stakes-bad h3 { color: #FF9B9B; }
.stakes-bad ul { color: #D9B4B4; }

.stakes-good {
  background: linear-gradient(160deg, rgba(0,229,199,0.12), rgba(0,229,199,0.03));
  border: 1px solid rgba(0,229,199,0.3);
}
.stakes-good h3 { color: var(--glow-cyan); }
.stakes-good ul { color: #B8DED6; }

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

.how {
  padding: 64px 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.how-card {
  background: var(--bg-panel);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 32px;
}

.how-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  margin-bottom: 12px;
}

.how-card-icon { color: var(--glow-cyan); }

.how-card p {
  color: var(--ink-soft);
  font-size: 15px;
}

.link-arrow {
  display: inline-block;
  margin-top: 16px;
  color: var(--glow-cyan);
  font-weight: 600;
  font-size: 14px;
}

/* ---------- Research ---------- */

.research {
  padding: 64px 24px;
  max-width: 900px;
  margin: 0 auto;
}

.research-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0 auto 48px;
}

.stat-card {
  background: var(--bg-panel);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 22px 10px;
  text-align: center;
}

.stat-number {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 700;
  color: var(--glow-cyan);
}

.stat-label {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-soft);
}

.research-block {
  max-width: 720px;
  margin: 0 auto 28px;
}

.research-block h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.research-block p {
  color: var(--ink-soft);
  font-size: 15px;
}

.research-cta {
  text-align: center;
  margin-top: 8px;
}

/* ---------- Safety ---------- */

.safety {
  padding: 64px 24px;
  max-width: 760px;
  margin: 0 auto;
}

.safety-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.safety-list li {
  padding-left: 24px;
  border-left: 2px solid var(--glow-cyan);
  color: var(--ink-soft);
  font-size: 15px;
}

.safety-list strong { color: var(--ink); }

/* ---------- Get it ---------- */

.get-it {
  text-align: center;
  padding: 70px 24px 90px;
}

.get-it h2 {
  font-size: 32px;
  margin-bottom: 32px;
}

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

.site-footer {
  text-align: center;
  padding: 32px 24px 48px;
  color: var(--ink-soft);
  font-size: 13px;
}

.site-footer .footer-links {
  margin-top: 10px;
}

.site-footer .footer-links a {
  color: var(--glow-cyan);
  font-weight: 600;
}

.site-footer .footer-links a:hover {
  text-decoration: underline;
}

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

@media (max-width: 820px) {
  .comic-strip { grid-template-columns: 1fr 1fr; }
  .how-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .comic-strip { grid-template-columns: 1fr; }

  .research-stats { grid-template-columns: repeat(2, 1fr); }

  .nav-toggle { display: flex; }

  .topnav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    background: rgba(10,14,23,0.98);
    backdrop-filter: blur(10px);
    transition: max-height 0.25s ease;
  }

  .topnav-links.open { max-height: 260px; }

  .topnav-links a {
    padding: 16px 24px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  /* The universal selector alone doesn't match ::before/::after - without
     listing them explicitly, a pseudo-element transition/animation (like
     the FAQ page's chevron rotation) is invisible to this override. */
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
