/* ============================================================
   REAL INTELLIGENCE — Design Tokens
   Flat black/blue interface system.
   ============================================================ */

:root {
  /* Color — flat black/blue base, solid accent, white text */
  --void: #0b1836;
  --ink: #050608;
  --navy-900: #0a0e1a;
  --navy-850: #0d1220;
  --navy-800: #101830;
  --navy-700: #14204a;
  --navy-600: #1a2a5c;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --blue-400: #5b8def;
  --blue-500: #2f5fed;
  --blue-600: #2748c4;
  --electric: #2f5fed;
  --white: #ffffff;
  --black: #000000;
  --text-primary: #ffffff;
  --text-muted: #a7adba;
  --text-faint: #7d8291;
  --alert: #ff5c7a;

  /* Type */
  --font-display: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  /* Scale */
  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.875rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.18rem + 0.35vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.45rem + 0.75vw, 2.1rem);
  --step-3: clamp(2.1rem, 1.8rem + 1.5vw, 3.1rem);
  --step-4: clamp(2.8rem, 2.2rem + 3vw, 4.6rem);
  --step-5: clamp(3.6rem, 2.7rem + 4.5vw, 6.4rem);

  /* Space (8px rhythm) */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4rem;
  --sp-7: 6rem;
  --sp-8: 9rem;

  --radius: 8px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 180ms;
  --glow: rgba(47, 95, 237, 0.55);
  --shadow-1: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-2: 0 8px 24px -8px rgba(0,0,0,0.55), 0 2px 8px -2px rgba(0,0,0,0.4);
  --shadow-3: 0 24px 60px -18px rgba(0,0,0,0.65), 0 8px 24px -8px rgba(0,0,0,0.5);
}

/* ============================================================
   Reset
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--void);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}

/* Ambient glow: soft blue light bleeding from the top, plus fine grain for depth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 1300px 800px at 50% -5%, rgba(47, 95, 237, 0.75), transparent 65%),
    radial-gradient(ellipse 900px 700px at 95% 20%, rgba(37, 99, 235, 0.55), transparent 60%),
    radial-gradient(ellipse 1000px 700px at 0% 35%, rgba(29, 78, 216, 0.5), transparent 60%),
    radial-gradient(ellipse 1100px 900px at 25% 85%, rgba(30, 58, 138, 0.6), transparent 65%),
    radial-gradient(ellipse 1000px 800px at 100% 100%, rgba(37, 99, 235, 0.45), transparent 60%),
    linear-gradient(180deg, #16295c 0%, #0b1836 30%, #0a1230 55%, #05081a 80%, #000000 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--blue-500); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--electric);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: min(1180px, 100% - 3rem);
  margin-inline: auto;
}
@media (max-width: 640px) {
  .wrap { width: min(1180px, 100% - 2rem); }
}

section { position: relative; }

/* ============================================================
   Utility: eyebrow / mono labels
   ============================================================ */

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-400);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 1.4em;
  height: 1px;
  background: var(--blue-400);
  display: inline-block;
}

/* hud-frame: flattened to a no-op (kept as class hook, no corner brackets) */
.hud-frame { position: relative; }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85em 1.5em;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: transform var(--dur) var(--ease-out), background var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue-500);
  color: var(--white);
  border: 1px solid var(--blue-500);
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 10px 30px -8px var(--glow);
}
.btn-primary:hover {
  background: var(--blue-400);
  border-color: var(--blue-400);
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 16px 40px -8px var(--glow);
}
.btn-ghost {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-strong);
  color: var(--text-primary);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--text-primary); transform: translateY(-2px); background: rgba(255,255,255,0.06); }
.btn-arrow { transition: transform var(--dur) var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ============================================================
   Header
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.brand-name { color: var(--text-primary); font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.02em; }

.main-nav { display: flex; align-items: center; gap: var(--sp-5); }
.main-nav ul { display: flex; gap: var(--sp-4); }
.main-nav a {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding: 0.3em 0;
  transition: color var(--dur) var(--ease-out);
}
.main-nav a:hover { color: var(--text-primary); }
.main-nav a[aria-current="page"] { color: var(--text-primary); }
.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--blue-500);
}

.nav-actions { display: flex; align-items: center; gap: var(--sp-3); }
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 18px; height: 1px;
  background: var(--text-primary);
  position: relative;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 860px) {
  .main-nav ul { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.nav-open .main-nav ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--navy-900);
    border-bottom: 1px solid var(--line);
    padding: var(--sp-3) var(--sp-3) var(--sp-4);
    gap: var(--sp-2);
  }
  .nav-actions .btn-ghost { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  padding: var(--sp-8) 0 var(--sp-7);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: clip;
}
.hero-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
}
.hero-glow.g1 { width: 560px; height: 560px; top: -220px; left: 50%; transform: translateX(-50%); background: radial-gradient(circle, rgba(47,95,237,0.55), transparent 70%); animation: drift-a 14s ease-in-out infinite; }
.hero-glow.g2 { width: 380px; height: 380px; top: 40px; right: -120px; background: radial-gradient(circle, rgba(91,141,239,0.35), transparent 70%); animation: drift-b 18s ease-in-out infinite; }
.hero-glow.g3 { width: 320px; height: 320px; top: 120px; left: -140px; background: radial-gradient(circle, rgba(47,95,237,0.25), transparent 70%); animation: drift-c 16s ease-in-out infinite; }
@keyframes drift-a { 0%, 100% { transform: translateX(-50%) translateY(0) scale(1); } 50% { transform: translateX(-46%) translateY(20px) scale(1.06); } }
@keyframes drift-b { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-24px) scale(1.08); } }
@keyframes drift-c { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(18px) scale(0.95); } }
@media (prefers-reduced-motion: reduce) {
  .hero-glow { animation: none; }
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 900px 620px at 50% 30%, rgba(0,0,0,0.7), transparent 72%);
}
.hero .wrap {
  max-width: 880px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-kicker { margin-bottom: var(--sp-3); }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-5);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--white);
}
.hero h1 em {
  font-style: normal;
  color: var(--blue-400);
  text-shadow: 0 0 40px rgba(91,141,239,0.5);
}

.hero-sub {
  margin-top: var(--sp-4);
  max-width: 56ch;
  color: var(--text-muted);
  font-size: var(--step-1);
  line-height: 1.6;
}

.hero-actions {
  margin-top: var(--sp-5);
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  justify-content: center;
}

.hero-meta {
  margin-top: var(--sp-6);
  display: flex;
  gap: var(--sp-5);
  flex-wrap: wrap;
  justify-content: center;
}
.hero-meta div { display: flex; flex-direction: column; gap: 0.3em; align-items: center; }
.hero-meta .num { font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); color: var(--white); }
.hero-meta .label { font-family: var(--font-mono); font-size: var(--step--1); color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; }

/* ============================================================
   Hero 3D card stack — floating, mouse-parallax, glass + glow
   ============================================================ */

.hero-stack-wrap {
  margin-top: var(--sp-7);
  width: 100%;
  max-width: 640px;
  perspective: 1400px;
}
.hero-stack {
  position: relative;
  height: 260px;
  transform-style: preserve-3d;
  transform: rotateX(var(--tilt-x, 8deg)) rotateY(var(--tilt-y, -10deg));
  transition: transform 400ms var(--ease-out);
}
.hero-stack .card3d {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 82%;
  height: 190px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(155deg, rgba(30,46,90,0.55), rgba(6,9,18,0.7));
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-3), 0 0 60px -20px var(--glow);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  animation: float-card 6s ease-in-out infinite;
}
.hero-stack .card3d .c-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-400);
}
.hero-stack .card3d .c-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-1);
  color: var(--white);
  margin-top: 0.4em;
}
.hero-stack .card3d .c-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
}
.hero-stack .card3d .c-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-400); box-shadow: 0 0 10px var(--blue-400); }

.hero-stack .card3d.c1 { transform: translateZ(0px) translateY(10px); z-index: 3; animation-delay: 0s; }
.hero-stack .card3d.c2 { transform: translateZ(-46px) translateY(-14px) translateX(26px) rotate(3deg); z-index: 2; opacity: 0.92; animation-delay: 0.6s; }
.hero-stack .card3d.c3 { transform: translateZ(-92px) translateY(-34px) translateX(-30px) rotate(-4deg); z-index: 1; opacity: 0.8; animation-delay: 1.2s; }

@keyframes float-card {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-stack { transform: rotateX(8deg) rotateY(-10deg) !important; }
  .hero-stack .card3d { animation: none; }
}
@media (max-width: 720px) {
  .hero-stack-wrap { perspective: 1000px; }
  .hero-stack { height: 220px; }
  .hero-stack .card3d { height: 160px; }
}

/* ============================================================
   Section headings
   ============================================================ */

.section-head {
  max-width: 62ch;
  margin-bottom: var(--sp-5);
}
.section-head h2 {
  margin-top: var(--sp-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-3);
  line-height: 1.1;
  color: var(--white);
}
.section-head p {
  margin-top: var(--sp-2);
  color: var(--text-muted);
  font-size: var(--step-0);
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.split { display: flex; justify-content: space-between; align-items: end; gap: var(--sp-4); max-width: none; flex-wrap: wrap; }

section.alt { background: rgba(8, 16, 32, 0.55); border-block: 1px solid var(--line); }
.pad { padding: var(--sp-7) 0; }

/* ============================================================
   Method / process
   ============================================================ */

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 780px) {
  .method-grid { grid-template-columns: 1fr; }
}
.method-item {
  background: rgba(4, 9, 18, 0.75);
  padding: var(--sp-4);
  transition: background var(--dur) var(--ease-out);
}
.method-item:hover { background: rgba(14, 28, 56, 0.55); }
.method-item .idx {
  font-family: var(--font-mono);
  color: var(--electric);
  font-size: var(--step--1);
}
.method-item h3 {
  margin-top: var(--sp-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-1);
  color: var(--white);
}
.method-item p {
  margin-top: var(--sp-2);
  color: var(--text-muted);
  font-size: var(--step--1);
}

/* ============================================================
   Case files (course cards)
   ============================================================ */

.file-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}
@media (max-width: 980px) { .file-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .file-grid { grid-template-columns: 1fr; } }

.file-card {
  background: rgba(9, 18, 36, 0.55);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-2);
  transition: border-color var(--dur) var(--ease-out), transform 150ms var(--ease-out), box-shadow var(--dur) var(--ease-out);
  display: flex;
  flex-direction: column;
  position: relative;
  --bs: 12px;
}
.file-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-3), 0 0 40px -18px var(--glow); }

.file-tab {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7em 1em;
  background: rgba(23, 52, 95, 0.4);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.file-tab .level { color: var(--electric); }

.file-body { padding: var(--sp-3); flex: 1; display: flex; flex-direction: column; }
.file-body h3 {
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--white);
  line-height: 1.25;
}
.file-body p {
  margin-top: var(--sp-2);
  color: var(--text-muted);
  font-size: var(--step--1);
  flex: 1;
}
.file-foot {
  margin-top: var(--sp-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--sp-2);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.file-foot a { color: var(--electric); display: inline-flex; align-items: center; gap: 0.4em; }
.file-foot a .btn-arrow { transition: transform var(--dur) var(--ease-out); }
.file-foot a:hover .btn-arrow { transform: translateX(3px); }

.catalog-actions { margin-top: var(--sp-5); display: flex; justify-content: center; }

/* ============================================================
   Tracks (personal / corporate)
   ============================================================ */

.track-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}
@media (max-width: 780px) { .track-grid { grid-template-columns: 1fr; } }

.track {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: var(--sp-5);
  position: relative;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-2);
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), transform 150ms var(--ease-out);
}
.track:hover { border-color: var(--line-strong); box-shadow: var(--shadow-3), 0 0 50px -20px var(--glow); }
.track.dark { background: rgba(6, 11, 24, 0.6); }
.track.accent { background: var(--navy-800); border-color: var(--line-strong); }
.track .eyebrow { margin-bottom: var(--sp-2); }
.track h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); color: var(--white); }
.track p { margin-top: var(--sp-2); color: var(--text-muted); }
.track ul { margin-top: var(--sp-3); display: flex; flex-direction: column; gap: 0.6em; }
.track li { display: flex; gap: 0.7em; align-items: baseline; font-size: var(--step--1); color: var(--text-primary); }
.track li::before { content: "▸"; color: var(--electric); font-family: var(--font-mono); flex: none; }
.track .btn { margin-top: var(--sp-4); }

/* ============================================================
   Credibility strip
   ============================================================ */

.strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
  justify-content: space-between;
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================================
   Testimonials
   ============================================================ */

.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}
@media (max-width: 780px) { .quote-grid { grid-template-columns: 1fr; } }
.quote {
  background: rgba(9, 18, 36, 0.55);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: var(--sp-4);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-2);
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), transform 150ms var(--ease-out);
}
.quote:hover { border-color: var(--line-strong); box-shadow: var(--shadow-3), 0 0 40px -18px var(--glow); }
.quote p.q {
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.4;
  color: var(--white);
}
.quote .attr {
  margin-top: var(--sp-3);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================================
   CTA band
   ============================================================ */

.cta-band {
  border-top: 1px solid var(--line);
  padding: var(--sp-7) 0;
  text-align: center;
  position: relative;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-4);
  color: var(--white);
  max-width: 20ch;
  margin-inline: auto;
  line-height: 1.08;
}
.cta-band p { margin-top: var(--sp-3); color: var(--text-muted); }
.cta-band .hero-actions { justify-content: center; margin-top: var(--sp-4); }

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--sp-6) 0 var(--sp-4);
  background: rgba(3, 6, 12, 0.6);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--sp-5);
}
@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-brand p { margin-top: var(--sp-2); color: var(--text-muted); font-size: var(--step--1); max-width: 32ch; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: var(--sp-2);
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6em; }
.footer-col a { color: var(--text-muted); font-size: var(--step--1); transition: color var(--dur) var(--ease-out); }
.footer-col a:hover { color: var(--electric); }

.footer-bottom {
  margin-top: var(--sp-6);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================================
   Page header (interior pages)
   ============================================================ */

.page-header {
  padding: var(--sp-6) 0 var(--sp-5);
  border-bottom: 1px solid var(--line);
}
.page-header h1 {
  margin-top: var(--sp-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-4);
  color: var(--white);
  max-width: 22ch;
}
.page-header p { margin-top: var(--sp-3); color: var(--text-muted); max-width: 60ch; font-size: var(--step-0); }

/* Filters (courses page) */
.filters {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-bottom: var(--sp-5);
}
.filter-btn {
  padding: 0.6em 1.1em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(9,18,36,0.4);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  transition: all var(--dur) var(--ease-out);
}
.filter-btn:hover { color: var(--text-primary); border-color: var(--electric); }
.filter-btn[aria-pressed="true"] {
  background: var(--blue-500);
  border-color: var(--blue-500);
  color: var(--white);
  font-weight: 600;
}

/* About page */
.timeline { display: flex; flex-direction: column; }
.tl-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--line);
}
.tl-item:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .tl-item { grid-template-columns: 1fr; gap: var(--sp-1); } }
.tl-item .tl-mark { font-family: var(--font-mono); color: var(--electric); font-size: var(--step--1); }
.tl-item h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); color: var(--white); }
.tl-item p { margin-top: var(--sp-1); color: var(--text-muted); font-size: var(--step--1); max-width: 62ch; }

.faculty-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
@media (max-width: 780px) { .faculty-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .faculty-grid { grid-template-columns: 1fr; } }
.faculty-card { border: 1px solid var(--line); border-radius: 12px; padding: var(--sp-3); background: rgba(9,18,36,0.55); backdrop-filter: blur(8px); box-shadow: var(--shadow-2); transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), transform 150ms var(--ease-out); }
.faculty-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-3), 0 0 40px -18px var(--glow); }
.faculty-card .badge {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); color: var(--electric); font-size: var(--step--1);
  margin-bottom: var(--sp-2);
}
.faculty-card h4 { font-family: var(--font-display); font-weight: 700; color: var(--white); font-size: var(--step-0); }
.faculty-card .role { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.3em; }
.faculty-card p { margin-top: var(--sp-2); color: var(--text-muted); font-size: var(--step--1); }

/* Programs & pricing page */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(9,18,36,0.55);
  margin: 0 auto var(--sp-6);
}
.billing-toggle button {
  padding: 0.6em 1.3em;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--text-muted);
  transition: all var(--dur) var(--ease-out);
}
.billing-toggle button[aria-pressed="true"] {
  background: var(--blue-500);
  color: var(--white);
  font-weight: 600;
  box-shadow: 0 6px 20px -6px var(--glow);
}
.billing-toggle .save {
  font-size: 0.7rem;
  color: var(--blue-400);
  margin-left: 0.4em;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  align-items: stretch;
}
@media (max-width: 980px) { .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }

.price-card {
  background: rgba(9, 18, 36, 0.55);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: var(--sp-5);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-2);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), transform 150ms var(--ease-out);
}
.price-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-3), 0 0 50px -20px var(--glow); }
.price-card.featured {
  border-color: var(--blue-500);
  background: linear-gradient(165deg, rgba(47,95,237,0.16), rgba(9,18,36,0.65));
  box-shadow: var(--shadow-3), 0 0 60px -18px var(--glow);
  transform: scale(1.03);
}
@media (max-width: 980px) { .price-card.featured { transform: none; } }
.price-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue-500);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35em 0.9em;
  border-radius: 999px;
  box-shadow: 0 6px 20px -6px var(--glow);
}
.price-card h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); color: var(--white); }
.price-card .price-desc { margin-top: 0.6em; color: var(--text-muted); font-size: var(--step--1); min-height: 3em; }
.price-amount-row { margin-top: var(--sp-4); display: flex; align-items: baseline; gap: 0.3em; }
.price-amount { font-family: var(--font-display); font-weight: 700; font-size: var(--step-4); color: var(--white); }
.price-period { font-family: var(--font-mono); font-size: var(--step--1); color: var(--text-faint); }
.price-note { margin-top: 0.4em; font-size: 0.78rem; color: var(--text-faint); min-height: 1.2em; }
.price-features { margin-top: var(--sp-4); display: flex; flex-direction: column; gap: 0.75em; flex: 1; }
.price-features li { display: flex; gap: 0.7em; align-items: flex-start; font-size: var(--step--1); color: var(--text-primary); }
.price-features li::before { content: "✓"; color: var(--blue-400); font-family: var(--font-mono); flex: none; font-weight: 700; }
.price-card .btn { margin-top: var(--sp-5); justify-content: center; }
[data-billing="annual"] { display: none; }
.pricing-grid[data-billing-active="annual"] [data-billing="annual"] { display: inline; }
.pricing-grid[data-billing-active="annual"] [data-billing="monthly"] { display: none; }

/* How it works */
.steps-side .file-card { margin-bottom: var(--sp-3); }
.apply-steps { display: flex; flex-direction: column; gap: var(--sp-3); }
.apply-step { display: flex; gap: var(--sp-3); }
.apply-step .n {
  font-family: var(--font-mono);
  color: var(--electric);
  border: 1px solid var(--line-strong);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex: none;
  font-size: 0.8rem;
}
.apply-step h4 { font-family: var(--font-display); font-weight: 700; color: var(--white); font-size: var(--step-0); }
.apply-step p { margin-top: 0.3em; color: var(--text-muted); font-size: var(--step--1); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
@media (max-width: 780px) { .faq-grid { grid-template-columns: 1fr; } }
.faq-item h4 { font-family: var(--font-display); font-weight: 700; font-size: var(--step-0); color: var(--white); }
.faq-item p { margin-top: 0.5em; color: var(--text-muted); font-size: var(--step--1); }

/* Course detail page */
.course-meta-strip { margin-top: var(--sp-3); }
.syllabus { display: flex; flex-direction: column; }
.syllabus-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--line);
}
.syllabus-item:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .syllabus-item { grid-template-columns: 1fr; gap: var(--sp-1); } }
.syllabus-item .mod-num { font-family: var(--font-mono); color: var(--blue-400); font-size: var(--step--1); }
.syllabus-item h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); color: var(--white); }
.syllabus-item p { margin-top: var(--sp-1); color: var(--text-muted); font-size: var(--step--1); max-width: 62ch; }
.syllabus-item .obj-list { margin-top: var(--sp-2); display: flex; flex-direction: column; gap: 0.5em; }
.syllabus-item .obj-list li { display: flex; gap: 0.6em; align-items: baseline; font-size: var(--step--1); color: var(--text-primary); }
.syllabus-item .obj-list li::before { content: "→"; color: var(--blue-400); font-family: var(--font-mono); flex: none; }

.course-not-found { text-align: center; padding: var(--sp-7) 0; }
.course-not-found h1 { font-family: var(--font-display); font-weight: 700; font-size: var(--step-3); color: var(--white); }
.course-not-found p { margin-top: var(--sp-3); color: var(--text-muted); }
.course-not-found .btn { margin-top: var(--sp-4); }

/* Reveal-on-scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
