/* ===== KODLA — Design System ===== */
:root {
  --bg-deep: #070b14;
  --bg-card: rgba(15, 23, 42, 0.7);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --border: rgba(148, 163, 184, 0.12);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --primary: #38bdf8;
  --primary-dark: #0ea5e9;
  --accent: #a78bfa;
  --success: #4ade80;
  --warning: #fbbf24;
  --coral: #fb7185;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --font: 'Outfit', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

/* Background effects */
.stars {
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1.5px 1.5px at 80% 20%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 40% 80%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 10% 60%, rgba(255,255,255,0.4), transparent);
  background-size: 300px 300px;
  animation: twinkle 8s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes twinkle {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

.gradient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 500px; height: 500px;
  background: rgba(56, 189, 248, 0.15);
  top: -100px; right: -100px;
  animation: float 12s ease-in-out infinite;
}

.orb-2 {
  width: 400px; height: 400px;
  background: rgba(167, 139, 250, 0.12);
  bottom: 20%; left: -80px;
  animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}

/* Header */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(7, 11, 20, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.header.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.3); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.35rem;
}

.logo-icon { font-size: 1.6rem; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.75rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--primary); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(56, 189, 248, 0.5);
  transform: translateY(-1px);
}

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

.btn-ghost:hover { background: rgba(255,255,255,0.1); }

.btn-white {
  background: #fff;
  color: var(--bg-deep);
}

.btn-white:hover { box-shadow: 0 6px 24px rgba(255,255,255,0.25); }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 0.9rem 1.75rem; font-size: 1.05rem; }

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(56, 189, 248, 0.12);
  color: var(--primary);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-header p { color: var(--text-muted); font-size: 1.05rem; }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--success);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent), var(--coral));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
}

.stat strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
}

.stat span { font-size: 0.85rem; color: var(--text-muted); }

/* Robot character */
.robot-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.robot-character {
  position: relative;
  animation: robotBob 3s ease-in-out infinite;
}

@keyframes robotBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.robot-head {
  width: 100px;
  height: 80px;
  background: linear-gradient(145deg, #334155, #1e293b);
  border-radius: 20px 20px 12px 12px;
  margin: 0 auto;
  position: relative;
  border: 2px solid rgba(56, 189, 248, 0.4);
}

.robot-antenna {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 20px;
  background: var(--primary);
  border-radius: 2px;
}

.robot-antenna::after {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: var(--coral);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--coral); }
  50% { opacity: 0.6; box-shadow: 0 0 16px var(--coral); }
}

.robot-eye {
  width: 18px;
  height: 18px;
  background: var(--primary);
  border-radius: 50%;
  position: absolute;
  top: 28px;
  animation: blink 4s ease-in-out infinite;
}

.robot-eye.left { left: 22px; }
.robot-eye.right { right: 22px; }

@keyframes blink {
  0%, 48%, 52%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.1); }
}

.robot-body {
  width: 120px;
  height: 90px;
  background: linear-gradient(145deg, #475569, #334155);
  border-radius: 12px;
  margin: 8px auto 0;
  border: 2px solid rgba(167, 139, 250, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.robot-screen {
  background: #0f172a;
  border-radius: 8px;
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--success);
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.robot-arms {
  display: flex;
  justify-content: space-between;
  width: 160px;
  margin: -60px auto 0;
  position: relative;
  z-index: -1;
}

.arm {
  width: 16px;
  height: 50px;
  background: #475569;
  border-radius: 8px;
}

.arm.left { animation: waveLeft 2s ease-in-out infinite; transform-origin: top center; }
.arm.right { animation: waveRight 2s ease-in-out infinite 0.5s; transform-origin: top center; }

@keyframes waveLeft {
  0%, 100% { transform: rotate(10deg); }
  50% { transform: rotate(-15deg); }
}

@keyframes waveRight {
  0%, 100% { transform: rotate(-10deg); }
  50% { transform: rotate(15deg); }
}

.robot-wheels {
  display: flex;
  gap: 60px;
  justify-content: center;
  margin-top: 4px;
}

.wheel {
  width: 28px;
  height: 28px;
  background: #1e293b;
  border: 3px solid var(--primary);
  border-radius: 50%;
  animation: spin 2s linear infinite;
}

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

.code-bubbles span {
  position: absolute;
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 0.4rem 0.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--primary);
  animation: bubbleFloat 4s ease-in-out infinite;
}

.bubble.b1 { top: 10%; left: 0; animation-delay: 0s; }
.bubble.b2 { top: 40%; right: -10%; animation-delay: 1s; color: var(--accent); }
.bubble.b3 { bottom: 15%; left: 5%; animation-delay: 2s; color: var(--success); }

@keyframes bubbleFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); opacity: 0.8; }
  50% { transform: translateY(-10px) rotate(2deg); opacity: 1; }
}

/* Paths */
.paths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.path-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(12px);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  cursor: default;
}

.path-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: var(--shadow);
}

.path-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

.path-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.path-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.path-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.path-modules span {
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  color: var(--text-muted);
}

.path-ages {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--primary);
}

/* Age tabs */
.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}

.tab-btn:hover { border-color: var(--primary); color: var(--text); }

.tab-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.3);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-panel.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.age-detail {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  backdrop-filter: blur(12px);
}

.age-detail-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.age-emoji { font-size: 2.5rem; }

.age-detail h3 { font-size: 1.5rem; font-weight: 700; }
.age-detail .tagline { color: var(--primary); font-weight: 600; }

.age-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.skill-tag {
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid;
}

.age-meta {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Activities */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.85rem;
  cursor: pointer;
  transition: 0.2s;
}

.filter-btn:hover, .filter-btn.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--primary);
  color: var(--primary);
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.activity-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.3s, border-color 0.3s;
  cursor: pointer;
}

.activity-card:hover {
  transform: translateY(-4px);
  border-color: rgba(167, 139, 250, 0.35);
}

.activity-card.hidden { display: none; }

.activity-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.activity-emoji { font-size: 2rem; }

.activity-type {
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.activity-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.activity-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.activity-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.difficulty-dots {
  display: flex;
  gap: 3px;
}

.difficulty-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}

.difficulty-dots span.filled { background: var(--warning); }

/* Plan timeline */
.plan-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.plan-timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  opacity: 0.3;
}

.plan-week {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
}

.plan-marker {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.3);
}

.plan-content {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.plan-content h4 { margin-bottom: 0.5rem; }

.plan-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0;
}

.plan-topics span {
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  background: rgba(56, 189, 248, 0.1);
  border-radius: 6px;
  color: var(--primary);
}

.plan-activity {
  font-size: 0.9rem;
  color: var(--success);
  font-weight: 500;
}

.plan-empty {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}

/* Game */
.game-wrapper {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
}

.game-sidebar h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.block-palette {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.code-block {
  padding: 0.65rem 1rem;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: grab;
  user-select: none;
  transition: transform 0.15s;
}

.code-block:hover { transform: scale(1.02); }
.code-block:active { cursor: grabbing; }

.program-area {
  min-height: 160px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s, background 0.2s;
}

.program-area.drag-over {
  border-color: var(--primary);
  background: rgba(56, 189, 248, 0.05);
}

.drop-hint {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 2rem 0;
}

.program-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: rgba(167, 139, 250, 0.15);
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 6px;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  animation: slideIn 0.2s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.program-block .remove-block {
  background: none;
  border: none;
  color: var(--coral);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.game-actions {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.game-feedback {
  min-height: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.game-feedback.success { color: var(--success); }
.game-feedback.error { color: var(--coral); }
.game-feedback.info { color: var(--primary); }

.game-board {
  display: grid;
  gap: 4px;
  padding: 1rem;
  background: #0f172a;
  border-radius: var(--radius-sm);
  justify-content: center;
}

.game-cell {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: transform 0.3s;
}

.game-cell.wall { background: #334155; }
.game-cell.floor { background: #1e293b; }
.game-cell.start { background: rgba(74, 222, 128, 0.2); }
.game-cell.goal { background: rgba(251, 113, 133, 0.2); }
.game-cell.robot { background: rgba(56, 189, 248, 0.3); transform: scale(1.05); }

.level-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* CTA */
.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem;
  background: linear-gradient(135deg, rgba(56,189,248,0.2), rgba(167,139,250,0.2));
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius);
}

.cta-content h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.cta-content p { color: var(--text-muted); }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.3s ease;
}

.modal-overlay[hidden] { display: none; }

.modal {
  background: #0f172a;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 640px;
  width: 100%;
  position: relative;
  animation: modalIn 0.35s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.modal h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.modal-sub {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.age-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.age-card {
  padding: 1.5rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s;
  text-align: center;
  background: transparent;
  font-family: var(--font);
  color: var(--text);
}

.age-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.2);
}

.age-card .emoji { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
.age-card .label { font-weight: 700; font-size: 1.1rem; }
.age-card .sub { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.25rem; }

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  max-width: 280px;
}

.footer-links h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-links a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--primary); }

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1e293b;
  border: 1px solid var(--border);
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 300;
  opacity: 0;
  transition: transform 0.4s, opacity 0.4s;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.delay-1 { transition-delay: 0.15s; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .paths-grid { grid-template-columns: 1fr; }
  .game-wrapper { grid-template-columns: 1fr; }
  .cta-card { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(7, 11, 20, 0.98);
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open { display: flex; }

  .nav-toggle { display: flex; }

  .header .btn-sm { display: none; }

  .age-cards { grid-template-columns: 1fr; }
}
