/* =============================================================
   CATLST — style_new.css
   Design direction: Field.io Systematic Brutalism
   No aurora blobs. No glassmorphism. No decorative glows.
   ============================================================= */

/* ── 1. CUSTOM PROPERTIES ─────────────────────────────────── */
:root {
  /* Colors — Biopunk Dark palette, sharpened */
  --color-bg:             #0C1410;
  --color-bg-ink:         #080E0A;
  --color-surface:        #152018;
  --color-surface-raised: #1A2820;
  --color-border:         #1E3028;
  --color-border-hover:   #2E4838;
  --color-lime:           #AAFF45;
  --color-lime-dim:       rgba(170, 255, 69, 0.10);
  --color-teal:           #00D4AA;
  --color-green:          #1db87e;
  --color-red:            #e2533a;
  --color-gold:           #e6a817;
  --color-text:           #E8F5EC;
  --color-muted:          #7AB890;
  --color-faint:          rgba(232, 245, 236, 0.4);

  /* Typography */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Instrument Sans', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  /* Layout */
  --container: min(90vw, 1200px);
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-pill: 100px;

  /* Easing — exponential only, no bounce */
  --ease-out-expo:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-expo: cubic-bezier(0.87, 0, 0.13, 1);
  --transition-base:  0.22s var(--ease-out-expo);
}

/* ── 2. RESET ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { scroll-behavior: smooth; }
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ── 3. PROGRESS BAR ──────────────────────────────────────── */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--color-lime);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ── 4. CONTAINER ─────────────────────────────────────────── */
.container {
  width: var(--container);
  margin-inline: auto;
}

/* ── 5. SECTION LABEL ─────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-sm);
}
.section-label__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-lime);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* ── 5b. SECTION LABEL / TITLE (BEM variant) ─────────────── */
.section__label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-lime);
  margin-bottom: var(--space-sm);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  color: var(--color-text);
}

/* ── 6. BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  min-height: 44px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}
.btn--primary {
  background: var(--color-lime);
  color: #080E0A;
}
.btn--primary:hover  { background: #BFFF65; transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0) scale(0.98); }

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border-hover);
}
.btn--ghost:hover { border-color: var(--color-lime); color: var(--color-lime); }

/* btn--outline used on "Work with us" in nav */
.btn--outline {
  background: transparent;
  color: var(--color-teal);
  border: 1px solid var(--color-teal);
}
.btn--outline:hover { background: var(--color-teal); color: #080E0A; }

.btn--lg { padding: 1rem 2rem; font-size: 1rem; }

/* Loader spinner inside button */
.btn__loader {
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  display: none;
}
.btn.loading .btn__loader { display: block; animation: spin 0.6s linear infinite; }
.btn.loading .btn__text   { opacity: 0.6; }

/* ── 7. NAVIGATION ────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(12, 20, 16, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: transform 0.3s var(--ease-out-expo);
}
.nav--hidden { transform: translateY(-100%); }

/* Nav inner: logo left, links right */
.nav__inner-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  width: var(--container);
  margin-inline: auto;
}

/* The nav element itself acts as the row — match HTML structure */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: max(5vw, calc((100vw - 1200px) / 2));
  height: 64px;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-lime);
  letter-spacing: 0.06em;
}

.nav__links {
  display: none;
  align-items: center;
  gap: var(--space-lg);
}
.nav__link {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-muted);
  transition: color var(--transition-base);
}
.nav__link:hover { color: var(--color-text); }

/* Buttons inside nav__links (btn--outline and btn--primary already handled above) */
.nav__links .btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

/* Mobile burger */
.nav__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition-base);
}

/* Mobile open state */
.nav__links.mobile-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg-ink);
  padding: var(--space-lg);
  gap: var(--space-md);
  align-items: flex-start;
  z-index: 99;
}
.nav__links.mobile-open .btn {
  width: 100%;
  justify-content: center;
}

@media (min-width: 768px) {
  .nav__links  { display: flex; }
  .nav__burger { display: none; }
}

/* ── 8. HERO ──────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  background: var(--color-bg);
  padding-top: 64px;
  display: flex;
  align-items: center;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  padding-block: var(--space-2xl) var(--space-xl);
  align-items: center;
}

/* Text block — always left-aligned */
.hero__text { text-align: left; }

.hero__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-lime);
  border: 1px solid var(--color-lime-dim);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-md);
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}
.hero__title-line         { display: block; }
.hero__title-line--accent { color: var(--color-lime); }

.hero__subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}
.hero__sub {
  font-size: 1.05rem;
  color: var(--color-muted);
  margin-bottom: var(--space-lg);
  max-width: 50ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

/* Hero stat highlight panel */
.hero__visual { display: block; }

.hero__stat-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  height: 280px;
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  text-align: center;
}
.hero__counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.hero__counter-big {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 9vw, 8rem);
  font-weight: 700;
  color: var(--color-lime);
  line-height: 1;
}
.hero__counter-suffix {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-lime);
}
.hero__stat-unit {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-top: 4px;
}
.hero__stat-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--color-muted);
}

@media (min-width: 768px) {
  .hero__grid   { grid-template-columns: 3fr 2fr; }
  .hero__visual { display: block; }
}
@media (min-width: 1280px) {
  .hero__grid { grid-template-columns: 55fr 45fr; gap: var(--space-2xl); }
  .hero__stat-highlight { height: 360px; }
}

/* ── 9. STATS ─────────────────────────────────────────────── */
.stats {
  padding-block: var(--space-2xl);
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}
.stats__header { margin-bottom: var(--space-lg); }

.stats__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--space-sm);
}
.stats__sub { color: var(--color-muted); max-width: 60ch; }

.stats__grid {
  display: grid;
  gap: 16px;
  margin-bottom: var(--space-lg);
}
.stats__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}
.stats__card:hover {
  border-color: var(--color-border-hover);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.stats__number {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stats__label {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}
.stats__note { font-size: 0.8rem; color: var(--color-muted); }

@media (min-width: 768px) {
  .stats__grid { grid-template-columns: 1.5fr 1fr; }
  .stats__card--hero { grid-row: span 2; }
  .stats__card--hero .stats__number { font-size: clamp(2.5rem, 5vw, 4.5rem); }
}
@media (min-width: 1280px) {
  .stats__grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .stats__card--hero { grid-row: 1; }
}

/* Progress bars in stats */
.stats__bars {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}
.stats__bar-row  { display: flex; flex-direction: column; gap: 6px; }
.stats__bar-label { font-size: 0.875rem; color: var(--color-muted); }
.stats__bar-label strong { color: var(--color-text); }
.stats__bar-track {
  height: 6px;
  background: var(--color-border);
  border-radius: 3px;
  overflow: hidden;
}
.stats__bar-fill {
  height: 100%;
  border-radius: 3px;
  width: 0%;
  transition: width 1.2s var(--ease-out-expo);
}
.stats__bar-fill--green { background: var(--color-green); }
.stats__bar-fill--red   { background: var(--color-red); }
.stats__bar-note { font-size: 0.75rem; color: var(--color-faint); }
.stats__source   { font-size: 0.75rem; color: var(--color-faint); margin-top: var(--space-sm); }

/* ── 10. HOW IT WORKS — CARDS ─────────────────────────────── */
.glass-card {
  background: rgba(21, 32, 24, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(170,255,69,0.08);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}
.glass-card:hover {
  border-color: rgba(170,255,69,0.22);
  box-shadow: 0 0 32px rgba(170,255,69,0.07), 0 8px 32px rgba(0,0,0,0.3);
  transform: translateY(-4px);
}

.how {
  padding-block: var(--space-2xl);
  background: linear-gradient(180deg, var(--color-bg) 0%, rgba(13,43,31,0.6) 50%, var(--color-bg) 100%);
}

.how__steps {
  display: grid;
  gap: 16px;
}

.how__step {
  padding: var(--space-lg) var(--space-md);
  position: relative;
}

.how__step-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}

.how__num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-border);
  line-height: 1;
  letter-spacing: -0.02em;
  user-select: none;
}

.how__icon {
  font-size: 2rem;
}

.how__step-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-lime);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.how__step-desc {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.6;
  hyphens: none;
  text-wrap: pretty;
}

.how__badge {
  display: inline-block;
  margin-top: var(--space-sm);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-teal);
  background: rgba(0,212,170,0.12);
  border: 1px solid rgba(0,212,170,0.25);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
}

@media (min-width: 768px) {
  .how__steps { grid-template-columns: 1fr 1fr; }
}

/* ── WHY IT MATTERS ─────────────────────────────────────────── */
.why {
  padding-block: var(--space-2xl);
  position: relative;
  overflow: hidden;
}

.why__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(170,255,69,0.03) 0%, transparent 70%);
  pointer-events: none;
}

.why__inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
}

.why__quote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 4vw, 2.2rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text);
  border: none;
  margin-bottom: var(--space-xl);
  position: relative;
}

.why__quote-mark {
  color: var(--color-lime);
  font-size: 1.2em;
  line-height: 0;
  vertical-align: -0.1em;
}

.why__columns {
  display: grid;
  gap: var(--space-md);
  text-align: left;
  margin-bottom: var(--space-lg);
}

.why__col p {
  font-size: 1.05rem;
  color: var(--color-muted);
  line-height: 1.7;
}

.why__cta-btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #0C1410;
  background: var(--color-lime);
  padding: 0.75rem 2rem;
  border-radius: 2rem;
  text-decoration: none;
  transition: opacity 0.2s;
}
.why__cta-btn:hover { opacity: 0.85; }

@media (min-width: 768px) {
  .why__columns { grid-template-columns: 1fr 1fr; }
  .why__inner { margin-inline: auto; }
}

/* ── 12. GAMIFICATION — ASYMMETRIC BENTO ─────────────────── */
.gamification {
  padding-block: var(--space-2xl);
  border-top: 1px solid var(--color-border);
}
.gamification__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: var(--space-xl);
}

.game__bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.game__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base);
  position: relative;
}
.game__card:hover {
  border-color: var(--color-border-hover);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.game__card-icon  { font-size: 1.5rem; margin-bottom: 0.75rem; }
.game__card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.game__card-desc  { font-size: 0.9rem; color: var(--color-muted); line-height: 1.5; }
.game__card-badge {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-teal);
  border: 1px solid rgba(0, 212, 170, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
}

/* Leaderboard inside game card */
.leaderboard { margin-top: var(--space-sm); }
.leaderboard__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.875rem;
}
.leaderboard__row:last-child { border-bottom: none; }
.leaderboard__medal {
  font-size: 1rem;
  min-width: 28px;
}
.leaderboard__pos {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-muted);
  min-width: 28px;
}
.leaderboard__city  { flex: 1; font-family: var(--font-display); font-weight: 500; }
.leaderboard__score { font-family: var(--font-mono); font-size: 0.8rem; color: var(--color-lime); }

/* Impact map dots */
.map-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--space-sm);
}
.map-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-teal);
  opacity: 0.7;
  animation: map-pulse 2s ease-in-out infinite;
}
.map-dot:nth-child(2) { animation-delay: 0.3s; }
.map-dot:nth-child(3) { animation-delay: 0.6s; }
.map-dot:nth-child(4) { animation-delay: 0.9s; }
.map-dot:nth-child(5) { animation-delay: 1.2s; }
.map-dot:nth-child(6) { animation-delay: 1.5s; }
.map-dot:nth-child(7) { animation-delay: 1.8s; }

@media (min-width: 768px) {
  .game__bento {
    grid-template-columns: 1fr 1fr 1.4fr;
    grid-template-rows: 1fr 1fr;
  }
  .game__card--xp          { grid-column: 1; grid-row: 1; }
  .game__card--streak      { grid-column: 2; grid-row: 1; }
  .game__card--leaderboard { grid-column: 3; grid-row: 1 / span 2; }
  .game__card--agent       { grid-column: 1; grid-row: 2; }
  .game__card--map         { grid-column: 2; grid-row: 2; }
}

/* ── 13. JOIN US / WAITLIST FORM ──────────────────────────── */
.join {
  padding-block: var(--space-2xl);
  border-top: 1px solid var(--color-border);
  text-align: center;
}
.join .section-label { justify-content: center; }

.join__inner { /* uses .container already; extra specificity not needed */ }

.join__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}
.join__sub {
  color: var(--color-muted);
  font-size: 1rem;
  max-width: 50ch;
  margin-inline: auto;
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.join__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 480px;
  margin-inline: auto;
}
.join__form-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.join__input {
  width: 100%;
  padding: 0.875rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition-base);
}
.join__input:focus        { border-color: var(--color-lime); }
.join__input::placeholder { color: var(--color-faint); }

.join__submit {
  width: 100%;
  padding: 1rem;
  min-height: 44px;
  background: var(--color-lime);
  color: #080E0A;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.join__submit:hover  { background: #BFFF65; transform: translateY(-1px); }
.join__submit:active { transform: translateY(0); }
.join__submit .btn__loader {
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: #080E0A;
  border-radius: 50%;
  display: none;
  animation: spin 0.6s linear infinite;
}
.join__submit.loading .btn__loader { display: block; }

.join__disclaimer {
  font-size: 0.8rem;
  color: var(--color-faint);
  margin-top: var(--space-xs);
}
.join__msg {
  font-size: 0.875rem;
  margin-top: var(--space-xs);
  min-height: 20px;
}
.join__msg.success { color: var(--color-green); }
.join__msg.error   { color: var(--color-red); }

@media (min-width: 768px) {
  .join__form-row {
    flex-direction: row;
  }
  .join__input   { border-radius: var(--radius-pill); }
  .join__submit  { width: auto; white-space: nowrap; }
}

.investors__radio-group {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xs);
}

.investors__radio {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-text);
  font-size: 0.95rem;
  cursor: pointer;
}

.investors__radio input[type="radio"] { accent-color: var(--color-lime); }

.investors__msg { font-size: 0.9rem; }
.investors__msg.success { color: var(--color-teal); }
.investors__msg.error { color: var(--color-red); }

/* ── 14. FOOTER ───────────────────────────────────────────── */
.footer {
  padding-block: var(--space-lg);
  border-top: 1px solid var(--color-border);
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.footer__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}
.footer__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-lime);
}
.footer__nav {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}
.footer__link {
  color: var(--color-muted);
  font-size: 0.875rem;
  transition: color var(--transition-base);
}
.footer__link:hover { color: var(--color-text); }

.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  text-align: center;
}
.footer__investor { font-size: 0.875rem; color: var(--color-muted); }
.footer__email    { color: var(--color-teal); font-size: 0.875rem; }
.footer__email:hover { text-decoration: underline; }
.footer__copy     { font-size: 0.8rem; color: var(--color-faint); }

@media (min-width: 768px) {
  .footer__top {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .footer__nav { justify-content: flex-end; }
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ── 15. MODAL ────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}
.modal[hidden] { display: none; }

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 14, 10, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal__card {
  position: relative;
  z-index: 1;
  background: var(--color-surface);
  border: 1px solid var(--color-border-hover);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
}
.modal__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  color: var(--color-muted);
  font-size: 1.5rem;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: color var(--transition-base);
  line-height: 1;
}
.modal__close:hover { color: var(--color-text); }

.modal__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}
.modal__subtitle {
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-top: calc(-1 * var(--space-xs));
  margin-bottom: var(--space-md);
}
.modal__sub {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

/* Modal form fields */
.modal__form { display: flex; flex-direction: column; gap: var(--space-sm); }

.form__group  { display: flex; flex-direction: column; gap: 6px; }
.form__label  {
  font-size: 0.875rem;
  color: var(--color-muted);
  font-family: var(--font-display);
  font-weight: 500;
}
.form__optional {
  font-size: 0.8em;
  color: var(--color-faint);
  font-weight: 400;
  margin-left: 4px;
}
.form__input {
  padding: 0.75rem 1rem;
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-base);
  width: 100%;
}
.form__input:focus     { border-color: var(--color-lime); }
.form__textarea        { resize: vertical; min-height: 120px; }
select.form__input     { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237AB890' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; cursor: pointer; }
select.form__input option { background: var(--color-card); color: var(--color-text); }
select.form__input option:disabled { color: var(--color-muted); }
.form__error {
  font-size: 0.8rem;
  color: var(--color-red);
  min-height: 1rem;
}

.modal__submit {
  padding: 0.875rem;
  min-height: 44px;
  background: var(--color-lime);
  color: #080E0A;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-base);
  width: 100%;
}
.modal__submit:hover { background: #BFFF65; }
.modal__msg {
  font-size: 0.875rem;
  min-height: 20px;
}
.modal__msg.success { color: var(--color-green); }
.modal__msg.error   { color: var(--color-red); }

/* ── 16. TOAST ────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border-hover);
  color: var(--color-text);
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  z-index: 300;
  transition:
    transform 0.4s var(--ease-out-expo),
    opacity  0.4s var(--ease-out-expo);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}
.toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ── 17. ACCESSIBILITY — REDUCE MOTION ────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── 18. GLOBE ─────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
}
.hero__grid {
  position: relative;
  z-index: 1;
}
#globe-bg {
  position: absolute;
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  width: 58vw;
  max-width: 720px;
  aspect-ratio: 1;
  pointer-events: none;
  z-index: 0;
  opacity: 0.8;
}
@media (max-width: 767px) {
  #globe-bg { display: none; }
  .hero { align-items: flex-start; overflow: visible; }
  .hero__stat-highlight { height: auto; }
}

/* ── 19. GRAIN / NOISE OVERLAY ─────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.045;
  pointer-events: none;
  z-index: 9999;
}

/* ── 20. SPLIT HERO ─────────────────────────────────────────── */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 65% at 72% 52%, rgba(170,255,69,0.07) 0%, transparent 70%),
    linear-gradient(to right, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0.1) 38%, transparent 62%);
  z-index: 0;
  pointer-events: none;
}

/* ── 21. HEX GRID (Gamification section) ────────────────────── */
.gamification {
  position: relative;
}
.gamification::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(60deg, rgba(170,255,69,.05) 25%, transparent 25%, transparent 75%, rgba(170,255,69,.05) 75%),
    linear-gradient(60deg, rgba(170,255,69,.05) 25%, transparent 25%, transparent 75%, rgba(170,255,69,.05) 75%),
    linear-gradient(-60deg, rgba(170,255,69,.05) 25%, transparent 25%, transparent 75%, rgba(170,255,69,.05) 75%),
    linear-gradient(-60deg, rgba(170,255,69,.05) 25%, transparent 25%, transparent 75%, rgba(170,255,69,.05) 75%);
  background-position: 0 0, 20px 35px, 0 0, 20px 35px;
  background-size: 40px 70px;
  pointer-events: none;
  z-index: 0;
}
.gamification > .container {
  position: relative;
  z-index: 1;
}
