:root {
  color-scheme: dark;
  --scroll: 0;
  --bg: #071116;
  --bg-deep: #03070a;
  --sky: #0b1c23;
  --surface: #10232a;
  --surface-2: #172f36;
  --surface-3: #203e43;
  --paper: #f7f2d8;
  --fg: #f2fbf9;
  --ink: #071116;
  --muted: #9bb8b8;
  --border: #31575f;
  --accent: #33e7dc;
  --accent-2: #8ae768;
  --sun: #ffd35d;
  --coral: #ff715f;
  --good: #71ea92;
  --warn: #ffd35d;
  --bad: #ff715f;
  --shadow-color: rgba(0, 0, 0, 0.36);
  --shadow: 0 24px 60px var(--shadow-color);
  --hard-shadow: 7px 8px 0 rgba(0, 0, 0, 0.42);
  --radius: 18px;
  --radius-lg: 28px;
  --font-display: "Arial Rounded MT Bold", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #e9f3e6;
  --bg-deep: #d2e0df;
  --sky: #dff2f0;
  --surface: #fff9dd;
  --surface-2: #ecf5dd;
  --surface-3: #d8eddf;
  --paper: #fffdf0;
  --fg: #132428;
  --ink: #071116;
  --muted: #557078;
  --border: #96b9a8;
  --accent: #008f94;
  --accent-2: #3f9f46;
  --sun: #d89700;
  --coral: #d85144;
  --good: #257f45;
  --warn: #a76f00;
  --bad: #b93f36;
  --shadow-color: rgba(31, 69, 77, 0.18);
  --hard-shadow: 7px 8px 0 rgba(33, 59, 67, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--fg);
  font-family: var(--font-body);
  background:
    linear-gradient(120deg, rgba(51, 231, 220, 0.08), transparent 26rem),
    linear-gradient(240deg, rgba(255, 113, 95, 0.09), transparent 25rem),
    linear-gradient(180deg, var(--sky), var(--bg) 48%, var(--bg-deep));
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

body::before {
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(51, 231, 220, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 231, 220, 0.1) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(180deg, black, transparent 76%);
}

body::after {
  opacity: 0.3;
  background:
    repeating-linear-gradient(0deg, transparent 0 13px, rgba(51, 231, 220, 0.06) 14px),
    radial-gradient(circle at 72% calc(68% - var(--scroll) * 14%), rgba(138, 231, 104, 0.16), transparent 17rem);
}

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

button,
select,
input,
textarea,
.button,
.nav-link {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 950;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  max-width: 840px;
  margin-bottom: 18px;
  font-size: clamp(44px, 6vw, 88px);
  line-height: 0.92;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(32px, 4.7vw, 68px);
  line-height: 0.94;
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.02;
}

p {
  line-height: 1.62;
}

.muted {
  color: var(--muted);
}

.scroll-signal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 100%;
  height: 4px;
  transform: scaleX(var(--scroll));
  transform-origin: left center;
  background: linear-gradient(90deg, var(--coral), var(--sun), var(--accent-2), var(--accent));
  box-shadow: 0 0 22px rgba(51, 231, 220, 0.55);
  pointer-events: none;
}

.app-shell {
  position: relative;
  width: min(1460px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 56px;
}

.nav {
  position: sticky;
  top: 12px;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 2px solid color-mix(in srgb, var(--border) 74%, transparent);
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

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

.logo {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 18px 18px 10px 18px;
  color: var(--ink);
  background:
    radial-gradient(circle at 72% 25%, var(--sun) 0 6px, transparent 7px),
    linear-gradient(145deg, var(--accent), var(--accent-2));
  box-shadow: 5px 6px 0 rgba(0, 0, 0, 0.42);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.06em;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 950;
}

.brand-subtitle {
  max-width: 62vw;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-links,
.nav-actions,
.actions,
.hero-actions,
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.nav-actions {
  justify-content: flex-end;
}

.nav-link,
.theme-toggle,
.button,
button {
  min-height: 44px;
  border: 2px solid color-mix(in srgb, var(--border) 78%, transparent);
  border-radius: 999px;
  color: var(--fg);
  background: color-mix(in srgb, var(--surface-2) 78%, transparent);
  padding: 10px 16px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.nav-link:hover,
.theme-toggle:hover,
.button:hover,
button:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 4px 4px 0 rgba(51, 231, 220, 0.36);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.theme-toggle-track {
  width: 44px;
  height: 24px;
  padding: 3px;
  border: 2px solid color-mix(in srgb, var(--border) 84%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
}

.theme-toggle-thumb {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--sun);
  box-shadow: 0 0 16px rgba(255, 211, 93, 0.7);
  transform: translateX(0);
  transition: transform 0.2s ease, background 0.2s ease;
}

.theme-toggle[aria-pressed="true"] .theme-toggle-thumb {
  transform: translateX(18px);
  background: var(--accent);
}

.button.primary,
button.primary {
  border-color: var(--ink);
  color: var(--ink);
  background: linear-gradient(135deg, var(--sun), var(--accent-2));
  box-shadow: 5px 6px 0 rgba(0, 0, 0, 0.46);
}

.button.ghost,
button.ghost {
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.button.danger,
button.danger {
  color: var(--bad);
  border-color: color-mix(in srgb, var(--bad) 52%, var(--border));
  background: color-mix(in srgb, var(--bad) 13%, transparent);
}

.hero {
  min-height: calc(100vh - 170px);
  display: grid;
  grid-template-columns: minmax(300px, 0.7fr) minmax(430px, 1.05fr) minmax(280px, 0.62fr);
  gap: clamp(14px, 2vw, 24px);
  align-items: stretch;
  padding: clamp(18px, 2.5vw, 28px) 0 20px;
}

.hero-copy,
.readiness-panel,
.mission-strip,
.stat,
.card,
.panel,
.tool-card,
.console,
.planet-stage,
.route-message,
.domain-chip,
.mission-row {
  border: 2px solid color-mix(in srgb, var(--border) 80%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: var(--shadow);
}

.hero-copy,
.readiness-panel {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 1.6vw, 22px);
}

.hero-copy {
  justify-content: space-between;
}

.lead {
  max-width: 720px;
  color: color-mix(in srgb, var(--fg) 82%, var(--muted));
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.5;
  text-wrap: pretty;
}

.hero h1 {
  font-size: clamp(36px, 3.2vw, 46px);
  line-height: 1;
}

.hero-actions,
.actions {
  align-items: center;
  margin-top: 22px;
}

.mission-strip {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(51, 231, 220, 0.12), transparent),
    color-mix(in srgb, var(--surface-2) 72%, transparent);
}

.mission-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 9px;
  border-radius: 14px;
  box-shadow: none;
  background: color-mix(in srgb, var(--bg) 30%, transparent);
}

.mission-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 14px;
  color: var(--ink);
  background: var(--sun);
  font-family: var(--font-mono);
  font-weight: 950;
}

.mission-row strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-display);
}

.mission-row span {
  color: var(--muted);
  font-size: 13px;
}

.mission-row > .pill {
  display: none;
}

.planet-stage {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  background:
    radial-gradient(circle at 44% 40%, rgba(51, 231, 220, 0.18), transparent 19rem),
    radial-gradient(circle at 70% 70%, rgba(138, 231, 104, 0.12), transparent 16rem),
    linear-gradient(180deg, #0e2a31, #071116);
}

.planet-stage::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 2px dashed rgba(51, 231, 220, 0.34);
  border-radius: 46% 54% 50% 50%;
  transform: rotate(calc(-8deg + var(--scroll) * 18deg));
}

.planet-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(transparent 95%, rgba(51, 231, 220, 0.12) 96%),
    linear-gradient(90deg, transparent 95%, rgba(51, 231, 220, 0.1) 96%);
  background-size: 54px 54px;
  opacity: 0.24;
  pointer-events: none;
}

.planet-title {
  position: absolute;
  left: 22px;
  top: 22px;
  z-index: 3;
  display: grid;
  gap: 6px;
}

.planet-title strong {
  font-family: var(--font-display);
  font-size: 28px;
}

.planet-title span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.planet {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: min(70%, 440px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(calc(var(--scroll) * -22deg));
  border: 3px solid var(--ink);
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 24%, var(--sun) 0 7%, transparent 7.5%),
    radial-gradient(circle at 70% 36%, var(--coral) 0 10%, transparent 10.5%),
    radial-gradient(circle at 58% 72%, var(--accent-2) 0 13%, transparent 13.5%),
    radial-gradient(circle at 34% 70%, #f7f2d8 0 8%, transparent 8.5%),
    linear-gradient(145deg, #56d7be, #206fa1);
  box-shadow: inset -32px -42px 0 rgba(7, 17, 22, 0.2), 12px 16px 0 rgba(0, 0, 0, 0.38);
}

.planet::before,
.planet::after {
  content: "";
  position: absolute;
  border: 2px solid rgba(7, 17, 22, 0.76);
  border-radius: 999px;
  background: rgba(247, 242, 216, 0.86);
}

.planet::before {
  width: 34%;
  height: 12%;
  left: 15%;
  top: 52%;
  transform: rotate(-15deg);
}

.planet::after {
  width: 28%;
  height: 10%;
  right: 17%;
  bottom: 25%;
  transform: rotate(18deg);
}

.route-line {
  position: absolute;
  z-index: 2;
  border: 2px solid rgba(51, 231, 220, 0.54);
  border-left: 0;
  border-bottom: 0;
  border-radius: 999px;
}

.route-line.one {
  left: 24%;
  top: 30%;
  width: 54%;
  height: 34%;
  transform: rotate(-12deg);
}

.route-line.two {
  left: 18%;
  top: 42%;
  width: 64%;
  height: 42%;
  transform: rotate(22deg);
  border-color: rgba(255, 211, 93, 0.52);
}

.courier {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  transform-origin: -124px -104px;
  transform: translate(164px, -232px) rotate(calc(var(--scroll) * 75deg));
  border: 3px solid var(--ink);
  border-radius: 24px 24px 24px 8px;
  color: var(--ink);
  background: linear-gradient(145deg, var(--sun), var(--coral));
  box-shadow: 6px 8px 0 rgba(0, 0, 0, 0.4);
  font-family: var(--font-mono);
  font-weight: 950;
}

.domain-chip {
  position: absolute;
  z-index: 4;
  display: grid;
  gap: 2px;
  min-width: 128px;
  padding: 10px;
  border-radius: 16px;
  box-shadow: 4px 5px 0 rgba(0, 0, 0, 0.35);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  color: var(--ink);
}

.domain-chip strong {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.domain-chip span {
  font-size: 13px;
  font-weight: 800;
}

.domain-chip.security {
  right: 26px;
  top: 130px;
}

.domain-chip.risk {
  left: 34px;
  bottom: 158px;
}

.domain-chip.network {
  right: 42px;
  bottom: 90px;
}

.route-message {
  position: absolute;
  z-index: 5;
  width: min(74%, 330px);
  padding: 16px;
  border-radius: 22px 22px 22px 8px;
  background: color-mix(in srgb, var(--paper) 95%, transparent);
  color: var(--ink);
  box-shadow: 6px 8px 0 rgba(0, 0, 0, 0.36);
}

.route-message.one {
  left: 24px;
  top: 92px;
}

.route-message.two {
  right: 24px;
  bottom: 24px;
  border-radius: 22px 22px 8px 22px;
}

.route-message strong {
  display: block;
  margin-bottom: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.console {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg) 42%, transparent);
  box-shadow: none;
}

.console-line {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  color: color-mix(in srgb, var(--fg) 82%, var(--muted));
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.45;
}

.console-key {
  color: var(--accent);
  text-transform: uppercase;
}

.readiness-panel {
  gap: 14px;
}

.readiness-panel .console {
  margin-top: auto;
}

.readiness-score {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 2px solid var(--ink);
  border-radius: 22px;
  color: var(--ink);
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  box-shadow: var(--hard-shadow);
}

.readiness-score strong {
  font-family: var(--font-display);
  font-size: clamp(54px, 6vw, 82px);
  line-height: 0.9;
}

.readiness-score span {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

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

.stat {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  box-shadow: none;
  background: color-mix(in srgb, var(--surface-2) 74%, transparent);
}

.stat strong {
  color: var(--fg);
  font-family: var(--font-display);
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 0.86;
}

.stat span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section {
  padding: 64px 0 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  margin-bottom: 18px;
}

.section-head p {
  max-width: 760px;
}

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

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

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

.card,
.panel,
.tool-card {
  padding: 22px;
}

.tool-card {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(51, 231, 220, 0.09), transparent 55%),
    color-mix(in srgb, var(--surface) 88%, transparent);
}

.tool-card .button {
  margin-top: auto;
}

.tool-icon {
  width: 66px;
  height: 66px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 18px;
  color: var(--ink);
  background: linear-gradient(145deg, var(--accent), var(--sun));
  box-shadow: 5px 6px 0 rgba(0, 0, 0, 0.42);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 950;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
  color: color-mix(in srgb, var(--fg) 80%, var(--muted));
}

.feature-list li {
  display: flex;
  gap: 10px;
  line-height: 1.45;
}

.feature-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  margin-top: 6px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--accent-2);
}

.app-main {
  padding-top: 20px;
}

.workspace {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding-top: 30px;
}

.sidebar {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 14px;
}

.select,
.search,
textarea {
  width: 100%;
  border: 2px solid color-mix(in srgb, var(--border) 84%, transparent);
  border-radius: 16px;
  color: var(--fg);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  padding: 13px 14px;
  outline: none;
}

.select:focus,
.search:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(51, 231, 220, 0.18);
}

textarea {
  min-height: 180px;
  font-family: var(--font-mono);
  resize: vertical;
}

.progress-shell {
  height: 14px;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--border) 70%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 68%, transparent);
}

.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), var(--sun), var(--accent-2), var(--accent));
  transition: width 0.25s ease;
}

.flashcard,
.quiz-card {
  position: relative;
  min-height: 520px;
  display: grid;
  align-content: center;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 14%, rgba(255, 211, 93, 0.16), transparent 10rem),
    linear-gradient(135deg, rgba(51, 231, 220, 0.09), transparent 58%),
    color-mix(in srgb, var(--surface) 90%, transparent);
}

.flashcard::before,
.quiz-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 2px dashed rgba(51, 231, 220, 0.28);
  border-radius: 22px;
  background:
    repeating-linear-gradient(135deg, transparent 0 26px, rgba(51, 231, 220, 0.07) 27px),
    radial-gradient(circle at 12% 86%, rgba(138, 231, 104, 0.13), transparent 10rem);
}

.flashcard > *,
.quiz-card > * {
  position: relative;
}

.prompt-title,
.question-title {
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: clamp(36px, 4.8vw, 72px);
  line-height: 0.95;
}

.answer-box,
.feedback {
  margin: 18px 0 0;
  border: 2px solid color-mix(in srgb, var(--good) 46%, var(--border));
  border-radius: 18px;
  background: color-mix(in srgb, var(--good) 12%, var(--surface));
  color: color-mix(in srgb, var(--fg) 90%, var(--good));
  line-height: 1.6;
  padding: 18px;
}

.hidden {
  display: none !important;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 7px 10px;
  border: 2px solid color-mix(in srgb, var(--border) 72%, transparent);
  border-radius: 999px;
  color: color-mix(in srgb, var(--fg) 82%, var(--muted));
  background: color-mix(in srgb, var(--surface-2) 68%, transparent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pill.good {
  color: var(--good);
  border-color: color-mix(in srgb, var(--good) 48%, var(--border));
}

.pill.warn {
  color: var(--warn);
  border-color: color-mix(in srgb, var(--warn) 48%, var(--border));
}

.pill.bad {
  color: var(--bad);
  border-color: color-mix(in srgb, var(--bad) 48%, var(--border));
}

.option-list {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.option {
  width: 100%;
  padding: 16px;
  border-radius: 18px;
  text-align: left;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 760;
}

.option.selected {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 18%, var(--surface));
}

.option.correct {
  border-color: var(--good);
  background: color-mix(in srgb, var(--good) 18%, var(--surface));
}

.option.wrong {
  border-color: var(--bad);
  background: color-mix(in srgb, var(--bad) 16%, var(--surface));
}

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

.list-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 2px solid color-mix(in srgb, var(--border) 62%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-2) 64%, transparent);
}

.footer {
  margin-top: 54px;
  padding-top: 22px;
  border-top: 2px solid color-mix(in srgb, var(--border) 62%, transparent);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
}

.reveal-ready {
  opacity: 1;
  transform: none;
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal-ready.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal-ready {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 1fr 1fr;
  }

  .readiness-panel {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 280px 1fr 1fr;
  }

  .readiness-panel .console {
    margin-top: 0;
  }
}

@media (max-width: 1060px) {
  .workspace,
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }

  .planet-stage {
    min-height: 570px;
  }

  .sidebar {
    position: static;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 860px) {
  .hero,
  .readiness-panel {
    grid-template-columns: 1fr;
  }

  .nav {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .brand-subtitle {
    max-width: none;
    white-space: normal;
  }

  .nav-links,
  .nav-actions {
    justify-content: stretch;
  }
}

@media (max-width: 760px) {
  .app-shell {
    width: min(100% - 22px, 1460px);
    padding-top: 10px;
  }

  .nav-link,
  .theme-toggle,
  .button,
  button {
    width: 100%;
  }

  h1 {
    font-size: clamp(44px, 16vw, 78px);
  }

  .prompt-title,
  .question-title {
    font-size: clamp(32px, 11vw, 56px);
  }

  .planet-stage {
    min-height: 520px;
  }

  .route-message,
  .domain-chip {
    width: calc(100% - 34px);
    left: 17px !important;
    right: auto !important;
  }

  .route-message.two {
    bottom: 18px;
  }

  .domain-chip.security {
    top: 116px;
  }

  .domain-chip.risk,
  .domain-chip.network {
    display: none;
  }

  .courier {
    left: auto;
    right: 22px;
    top: 98px;
    width: 58px;
    height: 58px;
    transform: none;
  }

  .mission-row {
    grid-template-columns: 42px 1fr;
  }

  .mission-row .pill {
    grid-column: 1 / -1;
  }

  .console-line {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .list-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
