:root {
  --bg: #080913;
  --bg-soft: #0e1020;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f4f7ff;
  --muted: #acb6d6;
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 16px 44px rgba(0, 0, 0, 0.3);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Segoe UI", Inter, system-ui, sans-serif;
  line-height: 1.55;
  background:
    radial-gradient(circle at top left, rgba(255, 92, 214, 0.18), transparent 22%),
    radial-gradient(circle at top right, rgba(74, 208, 255, 0.15), transparent 26%),
    linear-gradient(180deg, #070810 0%, #0a0c16 38%, #06070d 100%);
}

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

code {
  font-family: "Cascadia Code", Consolas, monospace;
}

.showcase-shell {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.showcase-hero,
.direction-nav,
.direction-panel,
.showcase-close {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.showcase-hero,
.showcase-close {
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(15, 16, 30, 0.92), rgba(9, 10, 18, 0.96));
}

.eyebrow,
.direction-kicker,
.mock-kicker,
.card-tag,
.status-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
}

.eyebrow {
  color: #69efff;
}

.hero-head {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(290px, 0.9fr);
  gap: 1.2rem;
  align-items: end;
}

.showcase-hero h1,
.showcase-close h2,
.direction-header h2,
.mock-hero h3 {
  margin: 0;
  line-height: 0.96;
}

.showcase-hero h1 {
  max-width: 11ch;
  font-size: clamp(2.8rem, 8vw, 5.6rem);
}

.hero-copy,
.direction-summary,
.mock-lead,
.showcase-close p {
  color: var(--muted);
}

.hero-copy {
  max-width: 56rem;
  margin: 1rem 0 0;
  font-size: 1.08rem;
}

.hero-status {
  display: grid;
  gap: 0.9rem;
}

.status-card {
  padding: 1rem 1.05rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.status-card strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1rem;
}

.direction-nav {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1rem 0 1.35rem;
  padding: 0.9rem;
  border-radius: 999px;
  backdrop-filter: blur(18px);
  background: rgba(9, 10, 18, 0.8);
}

.direction-nav a {
  padding: 0.8rem 1rem;
  border-radius: 999px;
  color: #ebefff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.direction-nav a:hover {
  transform: translateY(-1px);
}

.direction-nav-secondary {
  margin-left: auto;
}

.direction-panel {
  margin-top: 1.2rem;
  padding: clamp(20px, 3vw, 28px);
  border-radius: calc(var(--radius-xl) + 4px);
  overflow: hidden;
}

.direction-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.direction-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.direction-summary {
  max-width: 34rem;
  margin: 0;
}

.mock-shell {
  padding: clamp(20px, 4vw, 30px);
  border-radius: calc(var(--radius-xl) - 2px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mock-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(250px, 0.85fr);
  gap: 1rem;
  align-items: start;
}

.mock-kicker {
  margin-bottom: 0.65rem;
}

.mock-hero h3 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  max-width: 11ch;
}

.mock-lead {
  margin: 0.9rem 0 0;
  max-width: 54rem;
}

.metric-row,
.mock-grid,
.mock-subgrid,
.command-columns,
.study-split,
.recall-grid {
  display: grid;
  gap: 1rem;
}

.metric-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-card,
.mock-card,
.command-sidebar {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-md);
}

.metric-card {
  padding: 1rem;
}

.metric-card span,
.metric-card small,
.micro-copy,
.quote-copy {
  color: var(--muted);
}

.metric-card strong {
  display: block;
  margin: 0.3rem 0 0.2rem;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
}

.mock-grid {
  margin-top: 1rem;
  grid-template-columns: 1.35fr 0.95fr 0.95fr;
}

.mock-subgrid {
  margin-top: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mock-card {
  padding: 1.15rem;
}

.mock-card h4 {
  margin: 0.42rem 0 0.6rem;
  font-size: 1.25rem;
}

.mock-card p,
.mock-card li {
  margin: 0;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.demo-pill {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.mock-card-wide {
  min-height: 100%;
}

.formula-block,
.formula-card code {
  display: grid;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 16px;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.formula-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.choice-list,
.queue-list,
.evidence-list,
.step-list {
  margin: 0.8rem 0 0;
  display: grid;
  gap: 0.7rem;
}

.choice-list,
.queue-list,
.evidence-list {
  padding: 0;
  list-style: none;
}

.step-list {
  padding-left: 1.2rem;
}

.choice-list li,
.queue-list li,
.evidence-list li,
.step-list li {
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.choice-list .is-correct {
  font-weight: 700;
}

.quote-copy {
  font-size: 1.02rem;
}

.progress-meter {
  height: 14px;
  overflow: hidden;
  margin: 0.9rem 0 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.study-split {
  margin-top: 1rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: start;
}

.study-main-panel,
.study-rail {
  display: grid;
  gap: 1rem;
}

.recall-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.demo-image-card {
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.demo-image {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: block;
}

.demo-image-card figcaption,
.image-note {
  color: var(--muted);
  font-size: 0.94rem;
}

.quiz-stack {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.option-row {
  padding: 0.9rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.option-correct {
  font-weight: 700;
}

.challenge-card,
.command-layout {
  margin-top: 1rem;
}

.challenge-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.mock-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  padding: 0.9rem 1.15rem;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.arcade-streak {
  padding: 1.05rem 1.1rem;
  border-radius: var(--radius-lg);
  text-align: center;
}

.arcade-streak span,
.arcade-streak small {
  display: block;
}

.arcade-streak strong {
  display: block;
  margin: 0.35rem 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.command-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 1rem;
}

.command-sidebar {
  padding: 1rem;
}

.command-main {
  display: grid;
  gap: 1rem;
}

.command-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.queue-hot {
  font-weight: 700;
}

.command-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.command-chip {
  padding: 0.75rem 0.95rem;
  border-radius: 999px;
  font-weight: 700;
}

.showcase-close {
  margin-top: 1.2rem;
}

.showcase-close h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  max-width: 12ch;
}

.showcase-close p {
  max-width: 48rem;
  margin-top: 0.9rem;
}

.direction-panel-lab {
  background:
    radial-gradient(circle at top right, rgba(106, 239, 255, 0.14), transparent 24%),
    radial-gradient(circle at bottom left, rgba(255, 94, 219, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(9, 14, 31, 0.96), rgba(4, 8, 18, 0.99));
}

.direction-panel-lab .direction-header {
  align-items: center;
}

.direction-panel-lab .direction-kicker,
.direction-panel-lab .mock-kicker,
.direction-panel-lab .card-tag,
.direction-panel-lab .formula-label {
  color: #6cefff;
}

.direction-panel-lab .mock-shell {
  border-radius: 34px;
  box-shadow: inset 0 0 0 1px rgba(108, 239, 255, 0.08), 0 24px 70px rgba(0, 0, 0, 0.28);
}

.direction-panel-lab .mock-shell,
.direction-panel-lab .metric-card,
.direction-panel-lab .mock-card,
.direction-panel-lab .command-sidebar {
  background: linear-gradient(180deg, rgba(14, 20, 44, 0.94), rgba(8, 12, 27, 0.98));
}

.direction-panel-lab .formula-block,
.direction-panel-lab .formula-card code {
  background: linear-gradient(180deg, rgba(8, 30, 56, 0.96), rgba(16, 15, 50, 0.98));
  border: 1px solid rgba(108, 239, 255, 0.28);
  color: #eef8ff;
}

.direction-panel-lab .choice-list .is-correct,
.direction-panel-lab .option-correct,
.direction-panel-lab .mock-cta {
  background: linear-gradient(135deg, #6cefff 0%, #ff5edb 100%);
  color: #08101b;
}

.direction-panel-arcade {
  background:
    radial-gradient(circle at top left, rgba(255, 79, 216, 0.16), transparent 24%),
    radial-gradient(circle at right center, rgba(83, 247, 255, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(24, 8, 39, 0.97), rgba(9, 6, 22, 0.99));
}

.direction-panel-arcade .direction-header h2,
.direction-panel-arcade .mock-hero h3,
.direction-panel-arcade .mock-card h4,
.direction-panel-arcade .arcade-streak strong {
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.direction-panel-arcade .direction-kicker,
.direction-panel-arcade .mock-kicker,
.direction-panel-arcade .card-tag {
  color: #ff71df;
}

.direction-panel-arcade .mock-shell {
  position: relative;
  border-radius: 42px 18px 38px 18px;
  border: 2px solid rgba(255, 79, 216, 0.28);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.direction-panel-arcade .mock-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 79, 216, 0.08), transparent 40%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 12px, transparent 12px 24px);
  pointer-events: none;
}

.direction-panel-arcade .mock-shell,
.direction-panel-arcade .metric-card,
.direction-panel-arcade .mock-card {
  background: linear-gradient(180deg, rgba(43, 13, 70, 0.95), rgba(18, 10, 38, 0.98));
}

.direction-panel-arcade .mock-hero,
.direction-panel-arcade .mock-subgrid,
.direction-panel-arcade .challenge-card {
  position: relative;
  z-index: 1;
}

.direction-panel-arcade .mock-card,
.direction-panel-arcade .arcade-streak,
.direction-panel-arcade .metric-card {
  border-width: 2px;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 24px 10px 24px 10px;
}

.direction-panel-arcade .mock-card:nth-child(odd) {
  transform: rotate(-1deg);
}

.direction-panel-arcade .mock-card:nth-child(even) {
  transform: rotate(1deg);
}

.direction-panel-arcade .progress-meter span,
.direction-panel-arcade .mock-cta,
.direction-panel-arcade .arcade-streak {
  background: linear-gradient(135deg, #ff4fd8 0%, #53f7ff 100%);
  color: #12071d;
}

.direction-panel-arcade .demo-pill,
.direction-panel-arcade .option-correct {
  background: linear-gradient(135deg, rgba(255, 79, 216, 0.22), rgba(83, 247, 255, 0.18));
  border-color: rgba(255, 255, 255, 0.18);
}

.direction-panel-arcade .formula-card code {
  background: linear-gradient(180deg, rgba(68, 15, 90, 0.96), rgba(22, 14, 46, 0.98));
  border: 1px solid rgba(255, 79, 216, 0.32);
  color: #fff2ff;
}

.direction-panel-command {
  background:
    radial-gradient(circle at top right, rgba(116, 166, 255, 0.15), transparent 26%),
    radial-gradient(circle at bottom left, rgba(106, 255, 200, 0.12), transparent 20%),
    linear-gradient(180deg, rgba(7, 15, 28, 0.97), rgba(4, 8, 16, 0.99));
}

.direction-panel-command .direction-header,
.direction-panel-command .mock-hero,
.direction-panel-command .mock-card,
.direction-panel-command .command-sidebar,
.direction-panel-command .command-chip {
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

.direction-panel-command .direction-kicker,
.direction-panel-command .mock-kicker,
.direction-panel-command .card-tag {
  color: #8db4ff;
}

.direction-panel-command .mock-shell {
  border-radius: 18px;
  border-color: rgba(120, 166, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(9, 18, 33, 0.96), rgba(6, 10, 20, 0.98)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: auto, 24px 24px, 24px 24px;
}

.direction-panel-command .mock-card,
.direction-panel-command .command-sidebar {
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.95), rgba(7, 13, 23, 0.98));
}

.direction-panel-command .mock-card,
.direction-panel-command .command-sidebar {
  border-radius: 10px;
  border-color: rgba(120, 166, 255, 0.16);
  box-shadow: none;
}

.direction-panel-command .direction-header h2,
.direction-panel-command .mock-hero h3 {
  letter-spacing: -0.04em;
}

.direction-panel-command .card-tag,
.direction-panel-command .mock-kicker,
.direction-panel-command .direction-kicker {
  font-family: "Cascadia Code", Consolas, monospace;
}

.direction-panel-command .command-chip,
.direction-panel-command .queue-hot {
  background: rgba(120, 166, 255, 0.12);
  color: #dbe7ff;
}

.direction-panel-command .command-chip-alert {
  background: rgba(106, 255, 200, 0.14);
  color: #bbffe8;
}

.direction-panel-command code {
  color: #cfe3ff;
}

.direction-panel-command .mock-cta {
  background: linear-gradient(135deg, #78a6ff 0%, #6affc8 100%);
  color: #08121d;
}

.direction-panel-command .demo-pill,
.direction-panel-command .option-correct {
  background: rgba(120, 166, 255, 0.12);
  border-color: rgba(120, 166, 255, 0.18);
}

@media (max-width: 1100px) {
  .hero-head,
  .mock-hero,
  .command-layout,
  .challenge-card {
    grid-template-columns: 1fr;
  }

  .direction-header {
    display: grid;
    align-items: start;
  }

  .mock-grid,
  .mock-subgrid,
  .command-columns,
  .metric-row,
  .study-split,
  .recall-grid {
    grid-template-columns: 1fr;
  }

  .direction-nav-secondary {
    margin-left: 0;
  }

  .direction-panel-arcade .mock-card:nth-child(odd),
  .direction-panel-arcade .mock-card:nth-child(even) {
    transform: none;
  }
}

@media (max-width: 700px) {
  .showcase-shell {
    width: calc(100% - 18px);
    padding-top: 14px;
  }

  .direction-nav {
    position: static;
    border-radius: 24px;
  }

  .showcase-hero h1,
  .mock-hero h3,
  .direction-header h2,
  .showcase-close h2 {
    max-width: none;
  }

  .mock-shell,
  .direction-panel,
  .showcase-hero,
  .showcase-close {
    padding-left: 16px;
    padding-right: 16px;
  }
}
