/* =====================================================================
   MindSpark Ninja — global.css
   Design tokens + base + shared chrome (cred bar, nav, ticker, footer)
   Source of truth: _brain/02-design-system.md  — do not invent values.
   Style: B+C Light — Neo-Brutalist structure × Manga/Comic energy.
   ===================================================================== */

/* ---- Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Nunito:wght@400;600;700&display=swap');

/* ---- Design tokens ---- */
:root {
  /* Backgrounds */
  --paper:        #fdf6e3;   /* warm cream — main bg */
  --paper-light:  #fff8dc;   /* Sparky panel bg */
  --paper-blue:   #ddeeff;   /* Mindy panel bg */
  --white:        #ffffff;   /* credibility bar bg */

  /* Ink */
  --ink:          #0f0f0f;   /* all borders, text */
  --ink-soft:     #1a1a1a;   /* body text */

  /* Brand colors */
  --amber:        #f5a623;   /* footer bg, highlights */
  --amber-dark:   #c07d10;   /* eyebrow borders, text */
  --hot-pink:     #ff2d6b;   /* primary CTA, h1 accent, strip bg */
  --yellow:       #ffe600;   /* comic tags, Sparky badge */

  /* Character colors */
  --mindy-blue:   #1a4fa0;
  --sparky-brown: #9a5800;
  --mindy-tag:    #7eb8ff;
  --sparky-tag:   #ffe600;

  /* Track accent colors */
  --track-ai:      #1a4fa0;
  --track-eco:     #1a6b4a;
  --track-wealth:  #9a5800;
  --track-steady:  #cc1a46;
  --track-truth:   #5a1a9a;
  --track-bounce:  #1a6b8a;
  --track-shield:  #8a1a5a;
  --track-empathy: #6b4a1a;

  /* Track bg tints */
  --track-ai-bg:      #ddeeff;
  --track-eco-bg:     #ddffee;
  --track-wealth-bg:  #fff3cc;
  --track-steady-bg:  #ffe0ec;
  --track-truth-bg:   #ede8ff;
  --track-bounce-bg:  #e0f4ff;
  --track-shield-bg:  #ffe0f4;
  --track-empathy-bg: #fff0dd;

  /* Fonts */
  --font-display: 'Bangers', cursive;
  --font-body:    'Nunito', sans-serif;

  /* Layout */
  --bp-mobile: 768px;
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.02;
  margin: 0;
  color: var(--ink);
}

p { margin: 0 0 1em; }

.accent { color: var(--hot-pink); }

/* ---- Eyebrow label ---- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 2px solid var(--amber-dark);
  color: var(--amber-dark);
  padding: 3px 10px;
  display: inline-block;
}

/* ---- Section scaffolding ---- */
.section {
  padding: 70px 60px;
  border-bottom: 3px solid var(--ink);
}
.section-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--amber-dark);
  margin-bottom: 10px;
}
.section h2 {
  font-size: 36px;
  margin-bottom: 14px;
}
.section-intro {
  max-width: 640px;
  font-size: 15px;
}

/* =====================================================================
   Credibility bar
   ===================================================================== */
.cred-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 8px 20px;
  background: var(--white);
  border-bottom: 3px solid var(--ink);
  flex-wrap: wrap;
}
.cred-item {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #555;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* =====================================================================
   Navigation
   ===================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 60px;
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.05em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.12s;
}
.nav-links a:hover { color: var(--hot-pink); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lang-switch {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.05em;
  display: flex;
  gap: 4px;
}
.lang-switch a { text-decoration: none; color: #888; }
.lang-switch a.active { color: var(--ink); }
.lang-switch span { color: #bbb; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  font-family: var(--font-display);
  font-size: 22px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  cursor: pointer;
  padding: 2px 12px;
  line-height: 1.3;
}

/* =====================================================================
   Ticker strip
   ===================================================================== */
.ticker-strip {
  background: var(--ink);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  padding: 8px 0;
  overflow: hidden;
}
.ticker-inner {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: ticker 24s linear infinite;
}
.ticker-item {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--yellow);
  padding: 0 16px;
}
.ticker-item::after { content: '⚡'; opacity: 0.6; margin-left: 14px; }

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-inner { animation: none; }
}

/* =====================================================================
   Footer
   ===================================================================== */
.footer {
  background: var(--amber);
  border-top: 3px solid var(--ink);
  padding: 48px 60px 32px;
  color: var(--ink);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.05em;
}
.footer-tagline {
  font-weight: 700;
  font-size: 13px;
  margin-top: 4px;
}
.footer-contact a { color: var(--ink); font-weight: 700; }
.footer-cols {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.05em;
  margin: 0 0 8px;
}
.footer-col a {
  display: block;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 2px 0;
}
.footer-col a:hover { text-decoration: underline; }
.footer-bottom {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 3px solid var(--ink);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
}
.footer-bottom .sep { opacity: 0.5; padding: 0 6px; }

/* =====================================================================
   Responsive — stack everything at mobile breakpoint
   ===================================================================== */
@media (max-width: 768px) {
  .section { padding: 48px 22px; }
  .section h2 { font-size: 30px; }

  .nav { padding: 12px 22px; flex-wrap: wrap; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 10px;
    margin-top: 10px;
  }
  .nav.open .nav-links { display: flex; }

  .footer { padding: 40px 22px 28px; }
  .footer-top { flex-direction: column; }
  .cred-bar { gap: 12px; }
}
