:root {
  --blue: #5b8cff;
  --blue-soft: rgba(91, 140, 255, 0.16);
  --orange: #2dd4bf;
  --orange-soft: rgba(45, 212, 191, 0.13);
  --purple: #8b5cf6;
  --pink: #f472b6;
  --bg0: #04050d;
  --bg1: #080a18;
  --bg2: #0c1024;
  --ink: #f4f6ff;
  --muted: #9aa3c9;
  --faint: #6b739a;
  --line: rgba(255, 255, 255, 0.12);
  --surface: rgba(255, 255, 255, 0.055);
  --surface-strong: rgba(255, 255, 255, 0.085);
  --surface-soft: rgba(255, 255, 255, 0.045);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  --radius: 8px;
  --max: 1120px;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% -10%, rgba(91, 140, 255, 0.30), transparent 36vw),
    radial-gradient(circle at 94% 12%, rgba(139, 92, 246, 0.24), transparent 34vw),
    radial-gradient(circle at 38% 105%, rgba(45, 212, 191, 0.18), transparent 32vw),
    linear-gradient(180deg, var(--bg1), var(--bg0));
  color: var(--ink);
  padding-bottom: 74px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.42) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(188, 208, 255, 0.25) 0 1px, transparent 1.5px);
  background-position: 0 0, 38px 64px;
  background-size: 140px 140px, 190px 190px;
  opacity: 0.22;
}

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 10;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--bg0);
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  min-height: 100vh;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.app-shell.is-ready {
  opacity: 1;
  transform: translateY(0);
}

.screen {
  min-height: 100vh;
  padding: 28px;
}

.platform-screen {
  padding-bottom: 110px;
}

.platform-header {
  width: min(var(--max), 100%);
  margin: 0 auto 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-button {
  border: 0;
  background: transparent;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.platform-header,
.topbar,
.module-card,
.future-panel,
.feature-card,
.instruction-stack article,
.evidence-list article,
.question-card,
.print-page,
.search-field input,
textarea,
.student-row input,
.student-row p {
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.brand-button small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 2px;
}

.compact {
  min-height: 42px;
  padding: 0 14px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 20;
  transform: translateX(-50%);
  width: min(680px, calc(100% - 28px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(8, 10, 24, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.bottom-nav button {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
  cursor: pointer;
}

.bottom-nav button.active {
  background: linear-gradient(120deg, var(--blue), var(--purple));
  color: #fff;
}

.platform-hero,
.module-hero {
  width: min(var(--max), 100%);
  margin: 56px auto 28px;
}

.platform-hero h1,
.module-hero h1 {
  max-width: 900px;
}

.platform-hero p:not(.eyebrow),
.module-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.16rem;
  line-height: 1.65;
}

.module-grid {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.module-card,
.future-panel,
.career-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.module-card {
  min-height: 310px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.module-card > span,
.career-card > div:first-child span {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.module-card h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  margin: 18px 0 12px;
}

.module-card p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: auto;
}

.future-panel {
  width: min(var(--max), 100%);
  margin: 20px auto 0;
  padding: 26px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 20px;
  align-items: center;
  background: var(--surface);
}

.future-panel h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.future-list,
.career-tags,
.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.future-list span,
.career-tags span,
.filter-row button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink);
  padding: 9px 12px;
  font-weight: 800;
}

.atlas-tools {
  width: min(var(--max), 100%);
  margin: 0 auto 20px;
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) 1.2fr;
  gap: 18px;
  align-items: end;
}

.search-field {
  display: grid;
  gap: 8px;
  font-weight: 850;
}

.search-field input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 16px;
  background: var(--surface-soft);
  color: var(--ink);
}

.filter-row button {
  cursor: pointer;
}

.filter-row button.active {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue);
}

.atlas-grid {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.career-card {
  padding: 24px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.discovery-screen {
  min-height: 100vh;
  padding-bottom: 92px;
}

.discovery-screen .platform-header {
  margin-bottom: 14px;
}

.map-module-frame {
  width: min(1440px, 100%);
  height: calc(100vh - 138px);
  min-height: 560px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #04050d;
  box-shadow: var(--shadow);
}

.map-module-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #04050d;
}

.compass-list article {
  display: grid;
  gap: 10px;
  align-content: start;
}

.compass-list .btn {
  min-height: 44px;
  padding: 0 14px;
}

.career-card h2 {
  font-size: 1.8rem;
  margin: 8px 0 10px;
}

.career-card p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.career-card strong {
  color: var(--ink);
}

.compact-field {
  font-size: 0.95rem;
}

.narrow {
  width: min(920px, 100%);
  margin: 72px auto 0;
}

.topbar {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.topbar div {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
}

.brand-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple) 52%, var(--orange));
  display: inline-block;
}

.global-progress,
.question-progress {
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.global-progress {
  width: min(var(--max), 100%);
  margin: 18px auto 0;
}

.global-progress span,
.question-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--purple), var(--orange));
  transition: width 300ms ease;
}

.eyebrow {
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.78rem;
  font-weight: 800;
  margin: 0 0 14px;
}

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

h1 {
  font-size: clamp(3.4rem, 9vw, 7.8rem);
  line-height: 0.95;
  letter-spacing: 0;
  margin-bottom: 28px;
}

h2 {
  font-size: clamp(2.15rem, 5vw, 4rem);
  line-height: 1.03;
  letter-spacing: 0;
  max-width: 850px;
}

h3 {
  font-size: 1.1rem;
}

.welcome-screen {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.welcome-screen::after {
  content: "";
  position: absolute;
  inset: auto 6vw -18vh 6vw;
  height: 34vh;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.28), rgba(45, 212, 191, 0.10), transparent 72%);
  border-radius: 60% 60% 0 0;
  filter: blur(1px);
}

.welcome-screen > * {
  position: relative;
  z-index: 1;
}

.welcome-screen .platform-header {
  text-align: left;
}

.hero-mark {
  width: 118px;
  height: 118px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 78px auto 30px;
  animation: floatIn 850ms ease both;
}

.hero-mark span {
  border-radius: 22px;
  background: var(--blue-soft);
}

.hero-mark span:nth-child(2) {
  background: var(--purple);
}

.hero-mark span:nth-child(3) {
  grid-column: span 2;
  background: linear-gradient(120deg, var(--blue), var(--orange));
}

.hero-copy {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
  margin: 0 auto 34px;
}

.hero-copy p {
  margin-bottom: 8px;
}

.btn {
  border: 0;
  min-height: 52px;
  padding: 0 22px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.btn:focus-visible,
.option:focus-within,
textarea:focus,
input:focus {
  outline: 3px solid rgba(22, 103, 242, 0.25);
  outline-offset: 3px;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.primary {
  background: linear-gradient(120deg, var(--blue), var(--purple));
  color: #fff;
  box-shadow: 0 14px 42px rgba(123, 108, 255, 0.42);
}

.secondary {
  background: var(--surface-strong);
  color: var(--ink);
  border: 1px solid var(--line);
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 42px 0 34px;
}

.feature-card,
.instruction-stack article,
.evidence-list article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-card {
  padding: 22px;
  min-height: 230px;
}

.feature-card p,
.instruction-stack span,
.evidence-list p,
.soft-note,
.scenario-description,
.report-note {
  color: var(--muted);
  line-height: 1.6;
}

.mini-illustration {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  margin-bottom: 28px;
  background:
    linear-gradient(135deg, transparent 45%, rgba(45, 212, 191, 0.9) 46% 60%, transparent 61%),
    linear-gradient(135deg, var(--blue-soft), rgba(255, 255, 255, 0.08));
  border: 1px solid var(--line);
}

.instruction-stack {
  display: grid;
  gap: 16px;
  margin: 40px 0 34px;
}

.instruction-stack article {
  padding: 24px;
  display: grid;
  gap: 8px;
}

.question-layout {
  width: min(var(--max), 100%);
  margin: 42px auto 0;
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: 28px;
  align-items: start;
}

.scenario-art {
  min-height: 620px;
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(22, 103, 242, 0.10), transparent 42%),
    linear-gradient(20deg, rgba(45, 212, 191, 0.16), transparent 50%),
    var(--surface-soft);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.art-window {
  width: 68%;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(8, 10, 24, 0.72);
  box-shadow: var(--shadow);
  padding: 24px;
  display: grid;
  gap: 14px;
  align-content: center;
}

.art-window span {
  display: block;
  height: 54px;
  border-radius: 999px;
  background: var(--blue-soft);
}

.art-window span:nth-child(2) {
  width: 76%;
  background: var(--orange-soft);
}

.art-window span:nth-child(3) {
  width: 48%;
  background: var(--blue);
}

.question-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.question-card h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.choice-group {
  border: 0;
  padding: 0;
  margin: 30px 0;
}

.choice-group legend {
  font-weight: 900;
  margin-bottom: 6px;
  font-size: 1.08rem;
}

.choice-hint {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.option {
  min-height: 76px;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  cursor: pointer;
  color: var(--ink);
  line-height: 1.35;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.option:hover {
  transform: translateY(-1px);
  border-color: rgba(91, 140, 255, 0.45);
}

.option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-mark {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #b8c0cc;
}

.option.selected {
  background: var(--blue-soft);
  border-color: rgba(91, 140, 255, 0.65);
}

.option.selected .radio-mark {
  border: 6px solid var(--blue);
}

.option.blocked {
  cursor: not-allowed;
  opacity: 0.42;
  background: rgba(255, 255, 255, 0.025);
}

.option.blocked:hover {
  transform: none;
  border-color: var(--line);
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.split {
  justify-content: space-between;
}

.evidence-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin: 36px 0 24px;
}

.evidence-list article {
  padding: 20px;
}

.evidence-list h3 {
  margin-bottom: 10px;
  color: var(--blue);
}

.soft-note {
  background: var(--orange-soft);
  border: 1px solid rgba(45, 212, 191, 0.25);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 28px;
}

.journal-prompts {
  display: grid;
  gap: 18px;
  margin: 34px 0;
}

.textarea-field {
  display: grid;
  gap: 10px;
  font-weight: 850;
}

textarea,
.student-row input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  resize: vertical;
  color: var(--ink);
  background: var(--surface);
}

.print-actions {
  width: min(920px, 100%);
  margin: 28px auto;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.print-help {
  width: min(920px, 100%);
  margin: -12px auto 24px;
  padding: 14px 16px;
  border: 1px solid rgba(45, 212, 191, 0.28);
  border-radius: var(--radius);
  background: var(--orange-soft);
  color: var(--ink);
  line-height: 1.5;
}

.print-page {
  width: min(920px, 100%);
  min-height: 1120px;
  margin: 0 auto 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 58px;
  background: rgba(8, 10, 24, 0.86);
}

.journal-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 20px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 24px;
  margin-bottom: 28px;
}

.journal-header p,
.journal-header span {
  color: var(--muted);
  font-weight: 800;
}

.journal-header h1 {
  grid-column: 1 / -1;
  font-size: 4rem;
  margin: 0;
}

.student-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 22px;
  align-items: end;
  margin-bottom: 32px;
}

.student-row label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.student-row p {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin: 0;
  color: var(--muted);
}

.student-row strong {
  display: block;
  color: var(--ink);
  margin-top: 4px;
}

.print-page section {
  margin: 30px 0;
}

.print-page h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.print-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 18px;
}

.print-tags span {
  border: 1px solid rgba(91, 140, 255, 0.32);
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 850;
  padding: 8px 12px;
  border-radius: 999px;
}

.print-answer {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  min-height: 96px;
}

.print-answer h3 {
  margin-bottom: 8px;
}

.print-answer p {
  white-space: pre-wrap;
  color: var(--muted);
}

.journal-note-field textarea {
  margin-top: 10px;
}

.mission {
  background: var(--orange-soft);
  border-radius: var(--radius);
  padding: 20px;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 900px) {
  .feature-grid,
  .evidence-list,
  .module-grid,
  .atlas-grid,
  .future-panel,
  .atlas-tools {
    grid-template-columns: repeat(2, 1fr);
  }

  .future-panel,
  .atlas-tools {
    grid-template-columns: 1fr;
  }

  .question-layout {
    grid-template-columns: 1fr;
  }

  .scenario-art {
    min-height: 220px;
  }

  .art-window {
    width: min(360px, 72%);
    aspect-ratio: 16 / 8;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 88px;
  }

  .screen {
    padding: 18px;
  }

  .topbar,
  .student-row,
  .journal-header {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .narrow {
    margin-top: 42px;
  }

  .feature-grid,
  .evidence-list,
  .option-grid,
  .module-grid,
  .atlas-grid {
    grid-template-columns: 1fr;
  }

  .platform-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .platform-hero,
  .module-hero {
    margin-top: 34px;
  }

  .bottom-nav {
    bottom: 10px;
    width: calc(100% - 18px);
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .bottom-nav button {
    font-size: 0.82rem;
    min-height: 42px;
    padding: 0 4px;
  }

  .map-module-frame {
    height: calc(100vh - 156px);
    min-height: 520px;
  }

  .question-card,
  .print-page {
    padding: 22px;
  }

  .journal-header h1 {
    font-size: 2.8rem;
  }

  .print-actions {
    justify-content: stretch;
  }

  .print-actions .btn {
    flex: 1 1 100%;
  }
}

@media print {
  @page {
    size: A4;
    margin: 12mm;
  }

  body {
    background: #fff;
    padding-bottom: 0;
  }

  .no-print,
  .skip-link {
    display: none !important;
  }

  .screen {
    padding: 0;
    min-height: auto;
  }

  .app-shell {
    opacity: 1;
    transform: none;
  }

  .print-page {
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .student-row input {
    border: 0;
    border-bottom: 1px solid #999;
    border-radius: 0;
    padding: 8px 0;
  }

  .mission,
  .print-tags span {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}
