:root {
  --ink: #0c1117;
  --ink-soft: #39424d;
  --paper: #f3efe8;
  --paper-2: #fbf7f1;
  --signal: #e0502d;
  --electric: #0aa39f;
  --acid: #f6c85c;
  --cobalt: #214dff;
  --midnight: #0c121b;
  --card: rgba(255, 255, 255, 0.88);
  --border: rgba(12, 18, 27, 0.14);
  --shadow: 0 30px 80px rgba(12, 18, 27, 0.18);
  --shadow-soft: 0 18px 46px rgba(12, 18, 27, 0.12);
  --shadow-glow: 0 28px 70px rgba(12, 18, 27, 0.22);
  --glass: rgba(255, 255, 255, 0.76);
  --glass-strong: rgba(255, 255, 255, 0.9);
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --font-sans: "Manrope", "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Manrope", "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  line-height: 1.6;
  --hub-accent: var(--cobalt);
  --hub-accent-soft: rgba(33, 77, 255, 0.18);
  background:
    radial-gradient(circle at 8% -10%, rgba(246, 200, 92, 0.38), rgba(246, 200, 92, 0) 46%),
    radial-gradient(circle at 92% -5%, rgba(10, 163, 159, 0.26), rgba(10, 163, 159, 0) 40%),
    radial-gradient(circle at 50% 10%, rgba(33, 77, 255, 0.15), rgba(33, 77, 255, 0) 42%),
    linear-gradient(120deg, var(--paper) 0%, var(--paper-2) 55%, #fff 100%);
  min-height: 100vh;
  background-attachment: fixed;
  color-scheme: light;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, transparent 55%, rgba(12, 18, 27, 0.18) 100%);
  pointer-events: none;
  z-index: -5;
}

body[data-hub="home"] {
  --hub-accent: var(--cobalt);
  --hub-accent-soft: rgba(33, 77, 255, 0.22);
}

body[data-hub="resources"],
body[data-hub="courses-resources"],
body[data-hub="youtube"] {
  --hub-accent: var(--cobalt);
  --hub-accent-soft: rgba(33, 77, 255, 0.2);
}

body[data-hub="open-data"],
body[data-hub="training-data"],
body[data-hub="device-lab"],
body[data-hub="tutor"] {
  --hub-accent: var(--electric);
  --hub-accent-soft: rgba(10, 163, 159, 0.22);
}

body[data-hub="automation"],
body[data-hub="pipeline"],
body[data-hub="marketing-ai"],
body[data-hub="affiliate"] {
  --hub-accent: var(--signal);
  --hub-accent-soft: rgba(224, 80, 45, 0.22);
}

body[data-hub="analyzer"],
body[data-hub="timeline"] {
  --hub-accent: var(--acid);
  --hub-accent-soft: rgba(246, 200, 92, 0.28);
}

body[data-hub="frontiers"],
body[data-hub="bci-lab"],
body[data-hub="consciousness"],
body[data-hub="ia"],
body[data-hub="intelligence-augmentation"] {
  --hub-accent: var(--electric);
  --hub-accent-soft: rgba(10, 163, 159, 0.2);
}

body[data-hub="about"] {
  --hub-accent: var(--midnight);
  --hub-accent-soft: rgba(12, 18, 27, 0.18);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(rgba(12, 18, 27, 0.04) 1px, transparent 1px),
    radial-gradient(rgba(12, 18, 27, 0.03) 1px, transparent 1px);
  background-size: 120px 120px, 80px 80px;
  background-position: 0 0, 40px 60px;
  pointer-events: none;
  z-index: -6;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 10;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.bg-orbit {
  position: fixed;
  top: -240px;
  right: -260px;
  width: 560px;
  height: 560px;
  background: conic-gradient(from 120deg, rgba(224, 80, 45, 0.3), rgba(10, 163, 159, 0.22), rgba(33, 77, 255, 0.24));
  border-radius: 50%;
  z-index: -3;
  animation: orbitSpin 18s linear infinite;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(12, 18, 27, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 18, 27, 0.04) 1px, transparent 1px);
  background-size: 100px 100px;
  opacity: 0.25;
  z-index: -4;
}

.bg-slice {
  position: fixed;
  left: -140px;
  bottom: -160px;
  width: 460px;
  height: 460px;
  background: linear-gradient(140deg, rgba(33, 77, 255, 0.26), rgba(255, 255, 255, 0));
  border-radius: 40% 60% 60% 40%;
  filter: blur(8px);
  z-index: -2;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 6vw;
  position: sticky;
  top: 0;
  background: linear-gradient(120deg, rgba(243, 239, 232, 0.92), rgba(255, 255, 255, 0.86));
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 14px 30px rgba(12, 18, 27, 0.08);
  z-index: 5;
  gap: 16px;
  flex-wrap: wrap;
}

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

.brand-mark {
  background: linear-gradient(135deg, var(--midnight), #1b2433);
  color: #fff;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.site-nav {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.nav-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.site-nav a {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(12, 18, 27, 0.1);
  background: var(--glass);
  box-shadow: 0 10px 24px rgba(12, 18, 27, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.site-nav a:hover {
  background: var(--midnight);
  color: #fff;
  border-color: var(--midnight);
}

.site-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

button,
.button {
  border: none;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.button.primary {
  background: linear-gradient(120deg, var(--signal), #ff7a42);
  color: #fff;
  box-shadow: 0 18px 36px rgba(224, 79, 47, 0.32);
}

.button.secondary {
  background: var(--glass-strong);
  border: 1px solid rgba(12, 18, 27, 0.14);
  color: var(--ink);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(12, 18, 27, 0.6);
  color: var(--ink);
}

button:hover,
.button:hover {
  transform: translateY(-2px);
}

main {
  padding: 36px 6vw 90px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
  margin: 40px 0 70px;
}

.hero-split {
  align-items: stretch;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.hero-metric {
  background: rgba(12, 18, 27, 0.04);
  border-radius: 16px;
  padding: 14px;
  border: 1px solid rgba(12, 18, 27, 0.08);
}

.hero-metric span {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  color: var(--ink-soft);
}

.hero-metric strong {
  display: block;
  font-size: 1.2rem;
  margin-top: 6px;
}

.hero-signal {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(12, 18, 27, 0.12);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.92), rgba(246, 240, 232, 0.55));
  display: grid;
  gap: 10px;
}

.hero-signal-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  color: var(--ink-soft);
  font-family: var(--font-mono);
}

.hero-signal strong {
  font-size: 1.05rem;
}

.page-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  align-items: center;
  background: linear-gradient(135deg, var(--glass-strong), rgba(246, 240, 232, 0.7));
  border: 1px solid rgba(12, 18, 27, 0.12);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 0%, var(--hub-accent-soft), rgba(33, 77, 255, 0) 46%);
  opacity: 0.6;
  pointer-events: none;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: -40% 40% auto -20%;
  height: 220px;
  background: radial-gradient(circle, var(--hub-accent-soft), rgba(33, 77, 255, 0) 70%);
  opacity: 0.7;
  pointer-events: none;
}

.page-hero h1,
.page-hero h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  line-height: 1.08;
  margin: 10px 0;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 4.8vw, 4.6rem);
  line-height: 1.03;
  margin: 12px 0;
}

.hero-copy {
  display: grid;
  gap: 18px;
}

.lede {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 560px;
}

.muted {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.subtext {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.hero-actions,
.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--hub-accent-soft);
  color: var(--hub-accent);
  font-weight: 700;
  font-size: 0.85rem;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
}

.hero-visual img {
  width: 100%;
  max-width: 520px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(12, 18, 27, 0.14);
  box-shadow: 0 22px 60px rgba(11, 18, 26, 0.35);
  background: rgba(255, 255, 255, 0.7);
  filter: saturate(1.08) contrast(1.05);
}

.hero-banner {
  width: min(520px, 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 26px 70px rgba(11, 18, 26, 0.35);
  background: var(--glass-strong);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05);
  position: relative;
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.hero-video {
  width: min(560px, 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(11, 18, 26, 0.3);
  background: var(--glass-strong);
}

.hero-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
}

.hero-window {
  width: min(520px, 100%);
  background: var(--glass-strong);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 18px;
}

.window-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  margin-bottom: 16px;
}

.pill {
  background: rgba(14, 165, 165, 0.2);
  color: #0f6e6e;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.window-body {
  display: grid;
  gap: 14px;
  font-size: 0.95rem;
}

.prompt-line {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(15, 20, 26, 0.04);
  line-height: 1.5;
}

.prompt-label {
  display: inline-block;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  font-size: 0.7rem;
  margin-right: 8px;
  color: var(--ink-soft);
}

.build-list {
  display: grid;
  gap: 10px;
}

.build-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(224, 79, 47, 0.08);
  font-weight: 600;
}

.build-item span {
  background: var(--signal);
  color: #fff;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.75rem;
}

.build-status {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(31, 79, 255, 0.12);
  font-weight: 600;
}

.section {
  margin: 60px 0;
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  top: -24px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(12, 18, 27, 0.16), transparent);
}

.section-title h2,
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 1.12;
  margin: 8px 0 0;
}

.flow-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 24px;
}

.step-card {
  position: relative;
  overflow: hidden;
  background: var(--glass);
  border-radius: var(--radius-md);
  border: 1px solid rgba(12, 18, 27, 0.12);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--hub-accent);
  color: #fff;
  font-weight: 800;
  margin-bottom: 12px;
}

.module-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.module-card {
  display: block;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
  background: var(--glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.module-card:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 20, 26, 0.2);
  box-shadow: var(--shadow);
}

.card-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--glass);
  padding: 22px;
  border-radius: 22px;
  box-shadow: var(--shadow-glow);
  border: 1px solid var(--border);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--hub-accent-soft);
  color: var(--hub-accent);
  font-weight: 700;
  font-size: 0.85rem;
}

.list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(15, 20, 26, 0.08);
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.tag-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tag {
  background: var(--hub-accent-soft);
  color: var(--hub-accent);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

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

label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

input,
select,
textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-family: var(--font-sans);
  background: #fff;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.panel-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.panel {
  background: var(--glass);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px rgba(12, 18, 27, 0.22);
}

.hub-links {
  margin-top: 16px;
}

.hub-links-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.hub-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--glass-strong);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hub-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px rgba(15, 20, 26, 0.16);
}

.hub-card-title {
  font-weight: 800;
  font-size: 1.05rem;
}

.hub-card-body {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.split-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.stack {
  display: grid;
  gap: 12px;
}

.page-hero-card {
  background: linear-gradient(140deg, rgba(33, 77, 255, 0.16), rgba(255, 255, 255, 0.85));
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid rgba(33, 77, 255, 0.2);
  display: grid;
  gap: 10px;
  box-shadow: var(--shadow-soft);
}

.media-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.media-card {
  border-radius: 20px;
  border: 1px solid rgba(12, 18, 27, 0.14);
  background: var(--glass-strong);
  box-shadow: 0 20px 50px rgba(12, 18, 27, 0.2);
  overflow: hidden;
}

.media-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}

.media-strip {
  display: grid;
  gap: 14px;
}

.portrait-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.portrait-card {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(12, 18, 27, 0.18);
  box-shadow: 0 18px 40px rgba(10, 16, 22, 0.25);
  background: rgba(12, 18, 27, 0.08);
}

.portrait-card img {
  width: 100%;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.founder-card {
  display: grid;
  gap: 18px;
  align-items: center;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  padding: 22px;
}

.founder-photo {
  width: 100%;
  border-radius: 20px;
  border: 1px solid rgba(12, 18, 27, 0.2);
  box-shadow: 0 16px 38px rgba(12, 18, 27, 0.28);
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.founder-card .lede {
  margin-top: 8px;
}

.founder-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.founder-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(12, 18, 27, 0.08);
}

@media (max-width: 760px) {
  .founder-card {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

.hero-image-wrap {
  position: relative;
}

.hero-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 18% 12%, rgba(96, 165, 250, 0.25), rgba(12, 18, 27, 0) 62%);
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero-image-wrap:hover .hero-banner {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 30px 80px rgba(11, 18, 26, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  .hero-banner {
    transition: none;
  }

  .hero-image-wrap:hover .hero-banner {
    transform: none;
  }
}

.notice {
  background: rgba(246, 200, 92, 0.3);
  padding: 14px 18px;
  border-radius: 16px;
}

pre.notice {
  white-space: pre-wrap;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.footer {
  text-align: center;
  padding: 30px;
  color: var(--ink-soft);
  font-weight: 600;
}

.tutor-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: auto;
}

.assist-widget {
  left: 24px;
  right: auto;
}

.assist-toggle {
  background: var(--electric);
}

.tutor-toggle {
  background: var(--midnight);
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 18px 36px rgba(15, 20, 26, 0.25);
  z-index: 21;
}

.tutor-panel {
  width: min(360px, 86vw);
  background: var(--card);
  box-shadow: var(--shadow);
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 16px;
  margin-top: 12px;
  display: none;
  max-height: 60vh;
  overflow: auto;
}

.tutor-panel.open {
  display: block;
}

.tutor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.tutor-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.tutor-expand,
.tutor-open,
.tutor-close {
  background: transparent;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: var(--ink-soft);
}

.tutor-open {
  font-weight: 700;
  text-decoration: none;
}

.tutor-close {
  font-size: 1.2rem;
}

.tutor-form textarea {
  width: 100%;
  resize: vertical;
}

.tutor-response {
  margin-top: 12px;
  background: rgba(31, 79, 255, 0.1);
  padding: 12px;
  border-radius: 14px;
  white-space: pre-wrap;
  max-height: 40vh;
  overflow: auto;
}

.tutor-panel.expanded {
  width: min(520px, 92vw);
  max-height: 80vh;
}

.chat-box {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.chat-response {
  background: rgba(31, 79, 255, 0.1);
  padding: 14px 16px;
  border-radius: 16px;
  white-space: pre-wrap;
}

.stat-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 12px;
}

.stat-card {
  background: var(--glass-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-glow);
  display: grid;
  gap: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 60px rgba(12, 18, 27, 0.2);
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 800;
}

.stat-label {
  color: var(--ink-soft);
  font-weight: 600;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
}

.timeline-dot {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: var(--midnight);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.timeline-item .lede {
  margin: 6px 0 0;
}

.checklist {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.checklist-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(12, 18, 27, 0.04);
  border: 1px dashed var(--border);
}

.checklist-dot {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: var(--midnight);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(31, 79, 255, 0.1);
  color: var(--midnight);
  font-weight: 700;
  font-size: 0.8rem;
}

body.loaded .reveal {
  animation: revealUp 0.7s ease forwards;
  animation-delay: var(--reveal-delay, 0ms);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
}

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

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .site-header {
    flex-direction: column;
    gap: 16px;
  }

  .site-nav {
    justify-content: center;
  }

  .tutor-widget {
    right: 16px;
    bottom: 16px;
  }

  .assist-widget {
    left: 16px;
    right: auto;
    bottom: 86px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-orbit {
    animation: none;
  }

  body.loaded .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
