/* ============================================
   BROTHER BROOKLYN | NEURO-STEM
   Public-facing website for neuroeducational
   programs, books, and events.

   Brand Palette:
   - Deep Aerospace Blue: #0B1221
   - Synapse Cyan: #00F5FF
   - Safety Relay Orange: #FF5E00
   - Schematic Gray: #8E9AAF
   - Pure Insight White: #F8F9FA
   ============================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0B1221;
  --bg-surface: #0f1a2e;
  --bg-card: #131f36;
  --bg-card-hover: #182744;
  --cyan: #00F5FF;
  --cyan-dim: rgba(0, 245, 255, 0.12);
  --cyan-glow: rgba(0, 245, 255, 0.25);
  --orange: #FF5E00;
  --orange-dim: rgba(255, 94, 0, 0.12);
  --orange-glow: rgba(255, 94, 0, 0.25);
  --gray: #8E9AAF;
  --white: #F8F9FA;
  --text-dim: #5e6f88;
  --border: rgba(0, 245, 255, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Neural Canvas */
#neuralCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}

/* =====================
   NAV
   ===================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 68px;
  background: rgba(11, 18, 33, 0.8);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}

.nav.scrolled {
  background: rgba(11, 18, 33, 0.95);
  box-shadow: 0 4px 40px rgba(0,0,0,0.4);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo svg { width: 32px; height: 32px; }

.nav-title {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--cyan);
}

.nav-links {
  display: flex;
  gap: 6px;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray);
  text-decoration: none;
  padding: 7px 16px;
  border-radius: 6px;
  transition: all 0.2s;
}

.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.05); }

.nav-cta {
  font-size: 13px;
  font-weight: 600;
  color: white;
  background: var(--orange);
  text-decoration: none;
  padding: 8px 22px;
  border-radius: 6px;
  transition: all 0.3s;
  box-shadow: 0 2px 12px var(--orange-glow);
}

.nav-cta:hover {
  background: #ff7a2e;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255,94,0,0.4);
}

/* Hamburger (hidden on desktop) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 4px;
  z-index: 110;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(11, 18, 33, 0.97);
  backdrop-filter: blur(24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 8px;
  padding: 80px 32px 40px;
}

.mobile-menu-link {
  font-size: 20px;
  font-weight: 600;
  color: var(--gray);
  text-decoration: none;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  width: 100%;
  max-width: 300px;
  text-align: center;
}

.mobile-menu-link:hover,
.mobile-menu-link:active {
  color: var(--white);
  background: rgba(255,255,255,0.05);
}

.mobile-menu-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: white;
  background: var(--orange);
  text-decoration: none;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
  width: 100%;
  max-width: 300px;
  box-shadow: 0 4px 20px var(--orange-glow);
  min-height: 52px;
}

/* =====================
   HERO
   ===================== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 64px 80px;
  gap: 60px;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -200px;
  left: -200px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,245,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  flex: 1;
  max-width: 660px;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--cyan);
  margin-bottom: 24px;
  opacity: 0.8;
}

.hero-title { margin-bottom: 24px; }

.hero-line-1 {
  display: block;
  font-size: 52px;
  font-weight: 400;
  color: var(--gray);
  line-height: 1.15;
}

.hero-line-2 {
  display: block;
  font-size: 56px;
  font-weight: 900;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--cyan), #00d4ff, var(--white));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--gray);
  max-width: 540px;
  margin-bottom: 40px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.trust-item {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.trust-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-dim);
}

/* Neuron Visual */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.neuron {
  position: relative;
  width: 340px;
  height: 340px;
}

.neuron-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 40px var(--cyan-glow), 0 0 80px rgba(0,245,255,0.1);
}

.neuron-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid;
  transform: translate(-50%, -50%);
}

.neuron-ring-1 {
  width: 100px; height: 100px;
  border-color: rgba(0,245,255,0.3);
  animation: ringPulse 4s ease-in-out infinite;
}

.neuron-ring-2 {
  width: 200px; height: 200px;
  border-color: rgba(0,245,255,0.15);
  animation: ringPulse 4s ease-in-out infinite 1s;
}

.neuron-ring-3 {
  width: 300px; height: 300px;
  border-color: rgba(0,245,255,0.07);
  animation: ringPulse 4s ease-in-out infinite 2s;
}

@keyframes ringPulse {
  0%, 100% { transform: translate(-50%,-50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%,-50%) scale(1.08); opacity: 0.5; }
}

.neuron-pulse {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan-glow);
  top: 50%;
  left: 50%;
}

.neuron-pulse-1 { animation: pulseFly1 3s ease-in-out infinite; }
.neuron-pulse-2 { animation: pulseFly2 3.5s ease-in-out infinite 0.5s; }
.neuron-pulse-3 { animation: pulseFly3 4s ease-in-out infinite 1s; }
.neuron-pulse-4 { animation: pulseFly4 3s ease-in-out infinite 1.5s; }

@keyframes pulseFly1 {
  0% { transform: translate(-50%,-50%); opacity: 1; }
  100% { transform: translate(calc(-50% + 140px), calc(-50% - 80px)); opacity: 0; }
}
@keyframes pulseFly2 {
  0% { transform: translate(-50%,-50%); opacity: 1; }
  100% { transform: translate(calc(-50% - 120px), calc(-50% - 100px)); opacity: 0; }
}
@keyframes pulseFly3 {
  0% { transform: translate(-50%,-50%); opacity: 1; }
  100% { transform: translate(calc(-50% + 100px), calc(-50% + 120px)); opacity: 0; }
}
@keyframes pulseFly4 {
  0% { transform: translate(-50%,-50%); opacity: 1; }
  100% { transform: translate(calc(-50% - 130px), calc(-50% + 60px)); opacity: 0; }
}

/* =====================
   BUTTONS
   ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--orange);
  color: white;
  box-shadow: 0 4px 20px var(--orange-glow);
}

.btn-primary:hover {
  background: #ff7a2e;
  box-shadow: 0 6px 30px rgba(255,94,0,0.45);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 1px solid rgba(0,245,255,0.25);
}

.btn-outline:hover {
  background: var(--cyan-dim);
  border-color: var(--cyan);
}

.btn-ghost {
  background: transparent;
  color: var(--gray);
  border: 1px solid rgba(255,255,255,0.1);
}

.btn-ghost:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.04);
}

.btn-sm { padding: 10px 24px; font-size: 13px; }
.btn-lg { padding: 16px 40px; font-size: 15px; width: 100%; }

/* =====================
   SECTIONS
   ===================== */
.section {
  position: relative;
  z-index: 1;
  padding: 120px 64px;
}

.section-dark { background: var(--bg-surface); }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--cyan);
  margin-bottom: 16px;
}

.section-title {
  font-size: 44px;
  font-weight: 800;
  margin-bottom: 16px;
  text-align: center;
}

.section-desc {
  font-size: 17px;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* =====================
   PROGRAMS
   ===================== */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.program-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all 0.35s;
  display: flex;
  flex-direction: column;
  position: relative;
}

.program-card:hover {
  border-color: rgba(0,245,255,0.15);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.program-card-featured {
  border-color: rgba(0,245,255,0.2);
  background: linear-gradient(170deg, var(--bg-card) 60%, rgba(0,245,255,0.04));
}

.program-card-featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

.program-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--cyan-dim);
  color: var(--cyan);
}

.program-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
}

.program-icon svg { width: 48px; height: 48px; }

.program-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.program-desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 20px;
}

.program-features {
  list-style: none;
  margin-bottom: 28px;
  flex: 1;
}

.program-features li {
  font-size: 13px;
  color: var(--gray);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.program-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.5;
}

/* =====================
   GENESIS PROJECT
   ===================== */
.genesis-layout {
  display: flex;
  gap: 80px;
  align-items: center;
}

.genesis-content { flex: 1.2; }
.genesis-visual { flex: 0.8; display: flex; justify-content: center; }

.genesis-lead {
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
}

.genesis-text {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 36px;
}

.genesis-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 36px;
}

.genesis-stat {
  text-align: center;
}

.genesis-stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 32px;
  font-weight: 800;
  color: var(--cyan);
}

.genesis-stat-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--gray);
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.genesis-tracks {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.genesis-track {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s;
}

.genesis-track:hover {
  border-color: rgba(0,245,255,0.12);
  background: rgba(0,245,255,0.02);
}

.track-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 800;
  color: rgba(0,245,255,0.2);
  flex-shrink: 0;
  line-height: 1.2;
}

.genesis-track strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.genesis-track p {
  font-size: 13px;
  color: var(--gray);
}

/* Gear Visual */
.genesis-graphic {
  position: relative;
  width: 280px;
  height: 280px;
}

.gear {
  position: absolute;
}

.gear svg { display: block; }

.gear-1 {
  top: 20px;
  left: 20px;
  width: 160px;
  height: 160px;
  animation: spin 20s linear infinite;
}

.gear-2 {
  top: 120px;
  left: 140px;
  width: 120px;
  height: 120px;
  animation: spinReverse 15s linear infinite;
}

.gear-3 {
  top: 10px;
  left: 160px;
  width: 80px;
  height: 80px;
  animation: spin 12s linear infinite;
}

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes spinReverse { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }

/* =====================
   BOOKS
   ===================== */
.books-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.book-card {
  display: flex;
  gap: 36px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: all 0.35s;
}

.book-card:hover {
  border-color: rgba(0,245,255,0.15);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.book-cover {
  width: 160px;
  height: 220px;
  flex-shrink: 0;
  border-radius: 4px 12px 12px 4px;
  position: relative;
  perspective: 800px;
}

.book-spine {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: rgba(0,0,0,0.3);
  border-radius: 4px 0 0 4px;
}

.book-front {
  position: absolute;
  inset: 0;
  left: 8px;
  border-radius: 0 12px 12px 0;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.book-cover-1 .book-front {
  background: linear-gradient(160deg, #0B1221 0%, #132040 50%, #1a3060 100%);
  border: 1px solid rgba(0,245,255,0.15);
}

.book-cover-2 .book-front {
  background: linear-gradient(160deg, #1a0a00 0%, #2a1200 50%, #401c00 100%);
  border: 1px solid rgba(255,94,0,0.15);
}

.book-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--cyan);
  opacity: 0.6;
}

.book-cover-2 .book-tag { color: var(--orange); }

.book-title-display {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--white);
}

.book-author {
  font-size: 10px;
  font-weight: 500;
  color: var(--gray);
  letter-spacing: 1px;
}

.book-info { flex: 1; }

.book-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.book-desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 20px;
}

.book-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.book-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  font-weight: 700;
  color: var(--cyan);
}

/* =====================
   EVENTS
   ===================== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.event-card {
  display: flex;
  gap: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all 0.35s;
  position: relative;
}

.event-card:hover {
  border-color: rgba(0,245,255,0.15);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.event-card-featured {
  border-color: rgba(255,94,0,0.15);
  background: linear-gradient(170deg, var(--bg-card) 70%, rgba(255,94,0,0.04));
}

.event-card-featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
}

.event-badge {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--orange-dim);
  color: var(--orange);
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  padding: 16px;
  background: var(--cyan-dim);
  border-radius: var(--radius);
  min-width: 72px;
  align-self: flex-start;
}

.event-card-featured .event-date {
  background: var(--orange-dim);
}

.event-month {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
}

.event-card-featured .event-month { color: var(--orange); }

.event-year {
  font-size: 11px;
  font-weight: 500;
  color: var(--gray);
  margin-top: 2px;
}

.event-info { flex: 1; }

.event-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.event-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--cyan);
  margin-bottom: 12px;
}

.event-card-featured .event-location { color: var(--orange); }

.event-desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* =====================
   ABOUT
   ===================== */
.about-layout {
  display: flex;
  gap: 80px;
  align-items: center;
}

.about-visual {
  flex-shrink: 0;
}

.about-frame {
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-avatar {
  position: relative;
}

.avatar-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f1a2e, #1a3060);
  border: 2px solid rgba(0,245,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-initials {
  font-family: 'JetBrains Mono', monospace;
  font-size: 48px;
  font-weight: 800;
  color: var(--cyan);
  opacity: 0.6;
}

.avatar-ring {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px solid rgba(0,245,255,0.08);
  animation: ringPulse 4s ease-in-out infinite;
}

.about-content { flex: 1; }

.about-name {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 8px;
}

.about-role {
  font-size: 14px;
  color: var(--cyan);
  font-weight: 500;
  margin-bottom: 24px;
}

.about-text {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-credentials {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.credential {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.credential strong {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  color: var(--cyan);
}

.credential span {
  font-size: 12px;
  color: var(--gray);
}

/* =====================
   CTA / SUBSCRIBE
   ===================== */
.section-cta {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-surface) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,94,0,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin: 0 auto;
}

.cta-title {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 40px;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.form-input {
  width: 100%;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s;
  outline: none;
}

.form-input::placeholder { color: var(--text-dim); }

.form-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-dim);
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray);
  margin-bottom: 8px;
  display: block;
}

.form-segments {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.segment input { display: none; }

.segment-btn {
  display: block;
  text-align: center;
  padding: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.segment-btn:hover {
  border-color: rgba(0,245,255,0.2);
  color: var(--white);
}

.segment input:checked + .segment-btn {
  background: var(--cyan-dim);
  border-color: var(--cyan);
  color: var(--cyan);
  font-weight: 600;
}

.form-note {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 4px;
}

/* =====================
   FOOTER
   ===================== */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 64px;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-brand {
  text-align: center;
  margin-bottom: 48px;
}

.footer-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--cyan);
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 4px;
}

.footer-nonprofit {
  font-size: 11px;
  color: var(--text-dim);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--gray);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--cyan); }

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text-dim);
}

/* =====================
   ANIMATIONS
   ===================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================
   RESPONSIVE — TABLET
   ===================== */
@media (max-width: 1100px) {
  .programs-grid { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; }
  .books-grid { grid-template-columns: 1fr; }
  .events-grid { grid-template-columns: 1fr; }
  .genesis-layout { flex-direction: column; gap: 40px; }
  .genesis-visual { display: none; }
  .genesis-content .section-title { text-align: center; }
  .genesis-lead { text-align: center; }
  .genesis-text { text-align: center; }
  .genesis-content { display: flex; flex-direction: column; align-items: center; }
  .genesis-tracks { width: 100%; }
  .genesis-stats { justify-content: center; }
  .about-layout { flex-direction: column; gap: 40px; text-align: center; }
  .about-credentials { justify-content: center; }
  .about-role { text-align: center; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }

  .hero { padding: 100px 40px 60px; }
  .section { padding: 100px 40px; }
}

/* =====================
   RESPONSIVE — MOBILE
   ===================== */
@media (max-width: 768px) {
  /* --- NAV --- */
  .nav {
    padding: 0 16px;
    height: 60px;
  }

  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-menu { display: block; }

  .nav-logo svg { width: 28px; height: 28px; }

  .nav-title {
    font-size: 11px;
    letter-spacing: 2px;
  }

  .nav-cta {
    font-size: 12px;
    padding: 7px 16px;
  }

  /* --- HERO --- */
  .hero {
    flex-direction: column;
    min-height: auto;
    padding: 88px 20px 52px;
    gap: 0;
  }

  .hero-visual { display: none; }
  .hero-bg-glow { width: 400px; height: 400px; top: -150px; left: -150px; }

  .hero-content { max-width: 100%; }

  .hero-eyebrow {
    font-size: 9px;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    line-height: 1.5;
  }

  .hero-title { margin-bottom: 16px; }

  .hero-line-1 {
    font-size: 26px;
    font-weight: 500;
  }

  .hero-line-2 {
    font-size: 30px;
    line-height: 1.15;
  }

  .hero-subtitle {
    font-size: 15px;
    margin-bottom: 28px;
    line-height: 1.7;
  }

  .hero-actions {
    flex-direction: column;
    margin-bottom: 28px;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
  }

  .hero-trust {
    gap: 8px;
  }

  .trust-item {
    font-size: 11px;
  }

  /* --- SECTIONS --- */
  .section {
    padding: 64px 20px;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .section-tag {
    font-size: 9px;
    letter-spacing: 2px;
    margin-bottom: 12px;
  }

  .section-title {
    font-size: 28px;
    margin-bottom: 12px;
  }

  .section-desc {
    font-size: 14px;
    line-height: 1.65;
  }

  /* --- PROGRAMS --- */
  .programs-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 100%;
  }

  .program-card {
    padding: 24px 20px;
  }

  .program-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
  }

  .program-icon svg { width: 40px; height: 40px; }

  .program-badge {
    top: 12px;
    right: 12px;
    font-size: 8px;
    padding: 3px 8px;
  }

  .program-name {
    font-size: 19px;
    margin-bottom: 8px;
  }

  .program-desc {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .program-features {
    margin-bottom: 20px;
  }

  .program-features li {
    font-size: 13px;
    padding: 5px 0 5px 18px;
  }

  .program-features li::before {
    top: 12px;
    width: 5px;
    height: 5px;
  }

  .program-card .btn-sm {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }

  /* --- GENESIS --- */
  .genesis-content {
    align-items: stretch;
  }

  .genesis-content .section-tag {
    text-align: center;
    display: block;
  }

  .genesis-content .section-title {
    text-align: center;
    font-size: 28px;
  }

  .genesis-lead {
    font-size: 17px;
    text-align: center;
  }

  .genesis-text {
    font-size: 14px;
    text-align: left;
    margin-bottom: 28px;
  }

  .genesis-stats {
    flex-direction: row;
    gap: 0;
    margin-bottom: 28px;
  }

  .genesis-stat {
    flex: 1;
  }

  .genesis-stat-value {
    font-size: 24px;
  }

  .genesis-stat-label {
    font-size: 10px;
  }

  .genesis-tracks {
    gap: 12px;
    margin-bottom: 28px;
  }

  .genesis-track {
    padding: 14px 16px;
    gap: 12px;
  }

  .track-num {
    font-size: 16px;
  }

  .genesis-track strong {
    font-size: 13px;
  }

  .genesis-track p {
    font-size: 12px;
  }

  .genesis-content > .btn {
    width: 100%;
    justify-content: center;
  }

  /* --- BOOKS --- */
  .books-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .book-card {
    flex-direction: column;
    padding: 24px 20px;
    gap: 20px;
    text-align: center;
  }

  .book-cover {
    width: 130px;
    height: 180px;
    margin: 0 auto;
  }

  .book-front {
    padding: 18px 14px;
  }

  .book-title-display {
    font-size: 13px;
  }

  .book-author {
    font-size: 9px;
  }

  .book-name {
    font-size: 19px;
    margin-bottom: 8px;
  }

  .book-desc {
    font-size: 13px;
    text-align: left;
    margin-bottom: 16px;
  }

  .book-meta {
    justify-content: center;
    margin-bottom: 16px;
  }

  .book-price {
    font-size: 22px;
  }

  .book-card .btn-sm {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }

  /* --- EVENTS --- */
  .events-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .event-card {
    flex-direction: column;
    padding: 24px 20px;
    gap: 16px;
  }

  .event-card-featured::before {
    left: 16px;
    right: 16px;
  }

  .event-badge {
    top: 12px;
    right: 14px;
  }

  .event-date {
    flex-direction: row;
    gap: 8px;
    justify-content: center;
    align-self: stretch;
    padding: 12px 16px;
  }

  .event-month {
    font-size: 18px;
  }

  .event-year {
    font-size: 12px;
    margin-top: 0;
    align-self: center;
  }

  .event-name {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .event-location {
    font-size: 12px;
    margin-bottom: 10px;
  }

  .event-desc {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .event-card .btn-sm {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }

  /* --- ABOUT --- */
  .about-visual { display: none; }

  .about-layout {
    flex-direction: column;
    gap: 0;
    text-align: center;
  }

  .about-content .section-tag {
    display: block;
    text-align: center;
  }

  .about-name {
    font-size: 30px;
    text-align: center;
  }

  .about-role {
    font-size: 13px;
    text-align: center;
    margin-bottom: 20px;
  }

  .about-text {
    font-size: 14px;
    text-align: left;
    margin-bottom: 12px;
  }

  .about-credentials {
    flex-direction: row;
    gap: 0;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 20px;
  }

  .credential {
    flex: 1;
    align-items: center;
  }

  .credential strong {
    font-size: 18px;
  }

  .credential span {
    font-size: 10px;
  }

  /* --- CTA / SUBSCRIBE --- */
  .section-cta {
    padding: 64px 20px;
  }

  .cta-title {
    font-size: 28px;
    margin-bottom: 12px;
  }

  .cta-desc {
    font-size: 14px;
    margin-bottom: 28px;
  }

  .cta-form {
    gap: 12px;
  }

  .form-input {
    padding: 13px 16px;
    font-size: 16px; /* prevents iOS zoom */
  }

  .form-label {
    font-size: 12px;
  }

  .form-segments {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .segment-btn {
    padding: 11px 8px;
    font-size: 13px;
  }

  .btn-lg {
    padding: 15px 24px;
    font-size: 14px;
  }

  /* --- FOOTER --- */
  .footer {
    padding: 40px 20px;
  }

  .footer-brand {
    margin-bottom: 32px;
  }

  .footer-logo {
    font-size: 12px;
    letter-spacing: 3px;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
    margin-bottom: 32px;
  }

  .footer-col h4 {
    font-size: 11px;
    margin-bottom: 8px;
  }

  .footer-col a {
    font-size: 12px;
    padding: 3px 0;
  }

  .footer-bottom p {
    font-size: 11px;
  }
}

/* =====================
   RESPONSIVE — SMALL MOBILE (iPhone SE, etc.)
   ===================== */
@media (max-width: 380px) {
  .hero {
    padding: 80px 16px 40px;
  }

  .hero-eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }

  .hero-line-1 { font-size: 22px; }
  .hero-line-2 { font-size: 25px; }
  .hero-subtitle { font-size: 14px; }

  .section { padding: 48px 16px; }
  .section-title { font-size: 24px; }
  .section-desc { font-size: 13px; }

  .program-card { padding: 20px 16px; }
  .book-card { padding: 20px 16px; }
  .event-card { padding: 20px 16px; }

  .cta-title { font-size: 24px; }

  .genesis-stats { flex-wrap: wrap; }
  .genesis-stat-value { font-size: 20px; }

  .about-credentials {
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
  }

  .credential { min-width: 80px; }

  .form-segments {
    grid-template-columns: 1fr 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
}

/* Touch-friendly: ensure all interactive elements are at least 44px tap target */
@media (pointer: coarse) {
  .btn { min-height: 48px; }
  .btn-sm { min-height: 44px; }
  .nav-cta { min-height: 40px; display: flex; align-items: center; }
  .segment-btn { min-height: 44px; display: flex; align-items: center; justify-content: center; }
  .form-input { min-height: 48px; }
}
