/*
 * Beta Cell Foundation — Unified Stylesheet
 * Dark theme with blue accents
 * Fonts: Syne (display) · DM Sans (body) · DM Mono (labels/mono)
 */

/* ── DESIGN TOKENS ─────────────────────────────── */
:root {
  --bg: #0a0e14;
  --surface: #111620;
  --surface2: #181f2e;
  --border: #1e2a3a;
  --accent: #1CCDFE;
  --accent2: #0096ff;
  --accent-glow: rgba(28,205,254,0.10);
  --accent-ring: rgba(28,205,254,0.22);
  --cta: #FFD53F;
  --cta-text: #1a1a1a;
  --text: #fff;
  --text-muted: #8ca0bc;
  --text-dim: #5a6f8a;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
}

/* ── RESET & BASE ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* ── SPA PAGE VISIBILITY ───────────────────────── */
.page { display: none; min-height: calc(100vh - 60px); }
.page.active { display: block; }

/* ── NAVIGATION ────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(10,14,20,0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}
.site-logo {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  cursor: pointer;
}
.nav-items {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
  cursor: pointer;
  white-space: nowrap;
}
.nav-link:hover { color: #fff; background: var(--surface); }
.nav-link.active { color: var(--accent); background: var(--accent-glow); }
.nav-donate {
  background: var(--cta);
  color: var(--cta-text);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: var(--radius-sm);
  margin-left: 8px;
  cursor: pointer;
  transition: background .15s, transform .15s;
  white-space: nowrap;
}
.nav-donate:hover { background: #ffe066; transform: translateY(-1px); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: background .15s;
  flex-shrink: 0;
}
.hamburger:hover { background: none; }
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: all .25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 700px) {
  .nav-items { display: none; }
  .hamburger { display: flex; }
  .site-header { padding: 0 20px; }
}

/* Mobile nav */
.nav-mobile {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(17,22,32,0.98);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 199;
  display: none;
  flex-direction: column;
  padding: 24px 28px;
  gap: 4px;
  overflow-y: auto;
}
.nav-mobile.open { display: flex; }
.nav-mobile .nav-link {
  font-size: 15px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
}
.nav-mobile .nav-donate {
  margin-left: 0;
  margin-top: 12px;
  text-align: center;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
}

/* ── BREADCRUMB ───────────────────────────────── */
.breadcrumb {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  cursor: pointer;
}
.breadcrumb:hover { text-decoration: underline; }

/* ── PAGE WRAPPER ──────────────────────────────── */
.page-wrap { max-width: 860px; margin: 0 auto; padding: 48px 32px 80px; }
@media (max-width: 600px) { .page-wrap { padding: 40px 20px 64px; } }

/* ── EYEBROW ───────────────────────────────────── */
.eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .10em;
  color: var(--accent);
}

/* ── PAGE HERO ─────────────────────────────────── */
.page-hero { margin-bottom: 48px; }
.page-hero .eyebrow { display: block; margin-bottom: 14px; }
.lead { margin-bottom: 28px; }
.page-hero h1,
h1.page-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.hi { color: var(--accent); }
.lead {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 660px;
}

/* ── SECTIONS ──────────────────────────────────── */
.section { margin-bottom: 52px; }
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-title-lg {
  font-family: 'Syne', sans-serif;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
}
.section-body {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.85;
}
.section-body p { margin-bottom: 12px; }
.section-body p:last-child { margin-bottom: 0; }
.section-body strong { color: var(--text); }
.section-body a { color: var(--accent); }
.section-body a:hover { text-decoration: underline; }
.divider { border: none; border-top: 1px solid var(--border); margin: 48px 0; }

/* ── CALLOUT ───────────────────────────────────── */
.callout {
  background: var(--accent-glow);
  border: 1px solid var(--accent-ring);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 16px 0;
}
.callout strong { color: var(--accent); }
.callout-yellow { background: rgba(255,213,63,.07); border-color: rgba(255,213,63,.22); }
.callout-yellow strong { color: var(--cta); }

/* ── FEATURE LIST ──────────────────────────────── */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}
.feature-list li {
  background: var(--surface2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 12px 16px 12px 38px;
  font-size: 14px;
  color: var(--text-muted);
  position: relative;
  line-height: 1.7;
}
.feature-list li::before {
  content: "\2192";
  color: var(--accent);
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  position: absolute;
  left: 16px;
  top: 13px;
}
.feature-list li strong { color: var(--text); font-weight: 600; }
.feature-list li .feat-desc { color: var(--text-muted); }

/* ── CARDS ─────────────────────────────────────── */
.card-grid {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}
.grid-2col { grid-template-columns: 1fr 1fr; }
@media (max-width: 680px) { .grid-2col { grid-template-columns: 1fr; } }
.grid-3col { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) { .grid-3col { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .grid-3col { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .15s;
  position: relative;
  overflow: hidden;
}
.card:hover {
  border-color: var(--accent-ring);
  transform: translateY(-2px);
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity .2s;
}
.card:hover::before { opacity: 1; }
.card-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .10em;
  color: var(--accent);
  margin-bottom: 8px;
}
.card-title {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.card-body {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.75;
}
.card-body p { margin-bottom: 10px; }
.card-body p:last-child { margin-bottom: 0; }
.card-cta {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  margin-top: auto;
  padding-top: 12px;
}

/* ── BUTTONS ───────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all .15s;
  white-space: nowrap;
}
.btn-primary { background: var(--cta); color: var(--cta-text); }
.btn-primary:hover { background: #ffe066; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,0.25); }
.btn-outline:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,.06); }
.btn-ghost { background: var(--accent-glow); color: var(--accent); border: 1px solid var(--accent-ring); }
.btn-ghost:hover { background: rgba(28,205,254,.16); }
.btn-group { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ── STAT STRIP ────────────────────────────────── */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 24px 0;
}
.stat-item {
  background: var(--surface);
  padding: 28px 20px;
  text-align: center;
}
.stat-number {
  font-family: 'Syne', sans-serif;
  font-size: 34px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}
.stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-top: 6px;
}
.stat-sub {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-dim);
  margin-top: 4px;
}
@media (max-width: 520px) {
  .stat-strip { grid-template-columns: 1fr; }
}

/* ── PHOTO SLOTS ───────────────────────────────── */
.photo-slot {
  border: 1px dashed rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface2);
  position: relative;
  aspect-ratio: 16/10;
}
.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .4s;
}
.photo-slot.has-image img { opacity: 1; }
.photo-slot.has-image { border: none; }
.photo-slot .ph-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-dim);
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .10em;
}
.photo-slot.has-image .ph-label { display: none; }

/* ── BADGES ────────────────────────────────────── */
.badge {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 10px;
  border-radius: 100px;
}
.badge-blue {
  background: var(--accent-glow);
  border: 1px solid var(--accent-ring);
  color: var(--accent);
}
.badge-yellow {
  background: rgba(255,213,63,.10);
  border: 1px solid rgba(255,213,63,.22);
  color: #FFD53F;
}

/* ── RESOURCE LIST ─────────────────────────────── */
.resource-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}
.resource-item {
  background: var(--surface2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}
.resource-tag {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .10em;
  color: var(--accent);
  margin-bottom: 6px;
}
.resource-title {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.resource-body {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 8px;
}
.resource-link {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  transition: color .15s;
}
.resource-link:hover { color: #fff; }

/* ── CONTACT BLOCK ─────────────────────────────── */
.contact-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: block;
}
.contact-block a {
  font-family: 'Syne', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.contact-block a:hover { text-decoration: underline; }

/* ── NEWSLETTER EMBED ──────────────────────────── */
.newsletter-wrap {
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
}
.newsletter-heading {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  padding: 24px 24px 12px;
  text-align: center;
}
.newsletter-iframe-clip {
  overflow: hidden;
  height: 180px;
  margin-top: -10px;
}
.newsletter-iframe-clip iframe {
  margin-top: -60px;
  display: block;
}

/* ── HOMEPAGE HERO (centered) ──────────────────── */
.home-hero {
  position: relative;
  padding: 72px 32px 56px;
  overflow: hidden;
  text-align: center;
}
.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, transparent 60%, var(--bg) 100%),
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(28,205,254,.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(255,213,63,.05) 0%, transparent 70%);
  pointer-events: none;
}
.home-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.home-hero-inner .btn-group { justify-content: center; }
.home-hero-inner .lead { margin-left: auto; margin-right: auto; }
@media (max-width: 760px) { .home-hero { padding: 52px 20px 40px; } }

/* ── HERO BADGE ────────────────────────────────── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-ring);
  color: var(--accent);
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

/* ── HERO HEADING & LEAD ───────────────────────── */
.home-hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(32px, 5.5vw, 54px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}
.home-hero h1 .hi { color: var(--accent); }
.home-hero .lead {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 520px;
}

/* ── HOME CONTENT SECTIONS ─────────────────────── */
.home-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 52px 32px;
  border-top: 1px solid var(--border);
}
@media (max-width: 600px) { .home-section { padding: 40px 20px; } }
.home-section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.home-section-sub {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 620px;
}

/* ── SUPPORT / DONATE BAND ─────────────────────── */
.support-band {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 52px 32px;
  text-align: center;
}
.support-band h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 14px;
}
.support-band p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 520px;
  margin: 0 auto 28px;
}

/* ── PHOTO GALLERY (horizontal scroll) ─────────── */
.gallery {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--surface) transparent;
}
.gallery::-webkit-scrollbar { height: 6px; }
.gallery::-webkit-scrollbar-track { background: transparent; }
.gallery::-webkit-scrollbar-thumb { background: var(--surface); border-radius: 3px; }
.gallery-item {
  flex-shrink: 0;
  width: 280px;
  height: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  scroll-snap-align: start;
  position: relative;
  background: var(--surface2);
  border: 1px dashed rgba(255,255,255,0.14);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item .ph-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-dim);
  font-family: 'DM Mono', monospace;
  font-size: 10px;
}
.gallery-item.has-image { border: none; }
.gallery-item.has-image .ph-label { display: none; }

/* ── HERO SPLIT (TOR / Wild pages) ─────────────── */
.hero-split {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
  text-align: left;
}
.hero-split-logo img { height: 220px; width: auto; display: block; }
.hero-split-text .btn-group { justify-content: flex-start; }
.hero-split-text .lead { margin-bottom: 28px; }
@media (max-width: 700px) {
  .hero-split { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .hero-split-logo img { height: 160px; margin: 0 auto; }
  .hero-split-text .btn-group { justify-content: center; }
}
/* Centered hero variant (Education page) */
.hero-split.hero-centered {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}
.hero-split.hero-centered .hero-badge { margin-left: auto; margin-right: auto; }
.hero-split.hero-centered .lead { margin-left: auto; margin-right: auto; }
.hero-split.hero-centered .btn-group { justify-content: center; }

/* ── SCROLLING WORLD MAP (TOR hero background) ── */
/* Desktop: height-based sizing fills hero nicely. Mobile: width-based to fill narrow screens. */
.hero-map {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  display: flex;
  animation: map-scroll 140s linear infinite;
  pointer-events: none;
  height: 120%;
  mask-image: linear-gradient(to bottom, black 50%, transparent 95%);
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 95%);
}
.hero-map-img {
  flex-shrink: 0;
  height: 100%;
  width: auto;
  opacity: 0.04;
  filter: brightness(0) invert(1);
}
@keyframes map-scroll {
  from { transform: translateY(-50%) translateX(0); }
  to { transform: translateY(-50%) translateX(-50%); }
}
@media (max-width: 700px) {
  .hero-map { height: 60%; top: 0; transform: none; }
  .hero-map-img { height: 100%; width: auto; }
  @keyframes map-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }
}

/* ── MOVING TOPOGRAPHIC LINES (Wild hero bg) ──── */
.hero-topo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, black 40%, transparent 90%);
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 90%);
}
.hero-topo::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background:
    repeating-conic-gradient(from 0deg at 50% 50%, transparent 0deg, transparent 3deg, rgba(28,205,254,0.05) 3deg, rgba(28,205,254,0.05) 3.5deg);
  animation: topo-drift 120s linear infinite;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 0%, transparent 70%);
}
@keyframes topo-drift {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ── ANIMATED DOT GRID (Education hero bg) ────── */
.hero-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-dots::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(28,205,254,0.14) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 0%, transparent 75%);
  animation: dots-pulse 4s ease-in-out infinite;
}
@keyframes dots-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* ── WAVE CANVAS (Simulators hero bg) ──────────── */
.hero-wave-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ── SIMULATOR CARDS GRID ──────────────────────── */
.sim-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
@media (max-width: 900px) { .sim-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sim-card-grid { grid-template-columns: 1fr; } }

.sim-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  cursor: pointer;
  transition: border-color .2s, transform .15s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.sim-card:hover { border-color: var(--accent-ring); transform: translateY(-2px); }
.sim-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity .2s;
}
.sim-card:hover::before { opacity: 1; }
.sim-card-tag {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .10em;
  color: var(--accent);
  margin-bottom: 8px;
}
.sim-card-title {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.sim-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
.sim-card-cta {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  margin-top: auto;
  padding-top: 12px;
}

/* ── SIMULATOR IFRAME WRAPPER ──────────────────── */
.sim-frame-wrap {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  margin: 24px 0;
}
.sim-frame-wrap iframe {
  display: block;
  width: 100%;
  min-height: 500px;
  border: 0;
}

/* ── SIMULATOR EFFECT CHIPS ────────────────────── */
.effect-grid { display: flex; flex-direction: column; gap: 16px; margin: 20px 0; }
.effect-row {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}
.effect-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
}
.effect-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.effect-body h3 {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.effect-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}
.effect-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.effect-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
@media (max-width: 600px) {
  .effect-row { flex-direction: column; gap: 8px; }
  .effect-chip { min-width: auto; }
}

/* ── DRIVERS BOX ──────────────────────────────── */
.drivers-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 20px;
}
.driver-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
}
.driver-card:last-child { margin-bottom: 0; }
.driver-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.driver-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── SOCIAL LINKS BAR ──────────────────────────── */
.social-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.social-bar a { color: var(--text-dim); text-decoration: none; transition: color .15s; }
.social-bar a:hover { color: var(--accent); }

/* ── FOOTER ────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding: 40px 32px 24px; }
.footer-inner {
  max-width: 860px;
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: 220px repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) {
  .footer-inner { grid-template-columns: 1fr; }
  .site-footer { padding: 32px 20px 20px; }
}
.footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 8px;
  display: block;
  text-decoration: none;
  cursor: pointer;
}
.footer-mission {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 200px;
}
.footer-col-title {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 8px;
  text-decoration: none;
  transition: color .15s;
  cursor: pointer;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 860px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
}
.footer-bottom a { color: var(--text-dim); transition: color .15s; cursor: pointer; }
.footer-bottom a:hover { color: var(--accent); }

/* ── CONTENT BOX ──────────────────────────────── */
.content-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
}
.content-box h2 {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}
.content-box h3 {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 20px 0 10px;
}
.content-box p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 12px;
}
.content-box p:last-child { margin-bottom: 0; }
.content-box .feature-list { margin-top: 12px; }

/* ── PHASE CARDS ──────────────────────────────── */
.phase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
}
@media (max-width: 640px) { .phase-grid { grid-template-columns: 1fr; } }
.phase-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}
.phase-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .10em;
  color: var(--accent);
  margin-bottom: 6px;
}
.phase-title {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.phase-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── HERO GRID BACKGROUND (Wild page) ─────────── */
.hero-grid-bg {
  position: absolute;
  inset: -60px 0 0 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(28,205,254,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28,205,254,0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 50%, black 0%, transparent 80%);
  animation: grid-scroll 8s linear infinite;
}

@keyframes grid-scroll {
  from { transform: translateY(0); }
  to { transform: translateY(60px); }
}

/* Home hero uses rotating topo lines */
.home-hero .hero-topo { display: block; }

/* ── 24-HOUR ZOOM ─────────────────────────────── */
.sim-frame-zoom-wrap { position: relative; }
.sim-frame-zoom-wrap .zoom-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.sim-frame-zoom-wrap.zoomed {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  background: var(--bg);
  padding: 20px;
  overflow-y: auto;
}
