@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #f3fbfa;
  --surface: #ffffff;
  --surface-2: #e8f7ef;
  --ink: #17222c;
  --muted: #66727d;
  --border: #d9e8e7;
  --primary: #e84d2a;
  --primary-dark: #b9361d;
  --mint: #30b981;
  --violet: #7167d8;
  --gold: #d99b16;
  --danger: #c93333;
  --shadow: 0 18px 45px rgba(23, 34, 44, 0.09);
  --radius: 18px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(48, 185, 129, 0.14), transparent 28rem),
    radial-gradient(circle at 90% 15%, rgba(113, 103, 216, 0.11), transparent 24rem),
    var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 0 32px;
  border-bottom: 1px solid var(--border);
  background: rgba(243, 251, 250, 0.88);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border: 2px solid var(--primary);
  border-radius: 999px;
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  width: 4px;
  height: 10px;
  background: var(--primary);
  border-radius: 999px;
  transform: rotate(42deg);
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.92rem;
  font-weight: 700;
}

nav a {
  color: var(--muted);
}

nav a:hover {
  color: var(--ink);
}

.ghost-button {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  cursor: pointer;
  padding: 7px 12px;
  font-weight: 800;
}

.ghost-button:hover {
  color: var(--ink);
  border-color: var(--primary);
}

#app {
  min-height: calc(100vh - 68px);
}

#app:focus {
  outline: none;
}

.page {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 42px 0 80px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 44px;
  align-items: center;
  min-height: calc(100vh - 120px);
}

.eyebrow {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.7rem, 8vw, 5.8rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3.1rem);
}

h3 {
  font-size: 1.25rem;
}

h4 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.primary-button,
.secondary-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  padding: 10px 18px;
}

.primary-button {
  background: var(--primary);
  color: white;
  box-shadow: 0 12px 24px rgba(232, 77, 42, 0.22);
}

.primary-button:hover {
  background: var(--primary-dark);
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.secondary-button {
  border: 1px solid var(--border);
  background: white;
  color: var(--ink);
}

.danger-button {
  background: rgba(201, 51, 51, 0.1);
  color: var(--danger);
}

.hero-card,
.card,
.lesson-card,
.quiz-card,
.mission-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.hero-card {
  overflow: hidden;
  padding: 20px;
}

.comic-frame {
  min-height: 390px;
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(48, 185, 129, 0.2), rgba(113, 103, 216, 0.15)),
    #f8ffff;
  position: relative;
}

.comic-frame::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 18px;
}

.floating-card {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 32px rgba(23, 34, 44, 0.1);
  padding: 16px;
}

.float-a {
  left: 38px;
  top: 42px;
  width: 190px;
  animation: floaty 4s ease-in-out infinite;
}

.float-b {
  right: 36px;
  bottom: 46px;
  width: 220px;
  animation: floaty 4s ease-in-out infinite 600ms;
}

.float-c {
  left: 42%;
  top: 42%;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  animation: pulse-core 3.4s ease-in-out infinite;
}

.float-c::after {
  content: "AI";
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  font-weight: 900;
}

.line {
  display: block;
  height: 9px;
  margin: 8px 0;
  border-radius: 999px;
  background: rgba(23, 34, 44, 0.15);
}

.line.hot {
  background: var(--primary);
}

.line.mint {
  background: var(--mint);
}

.line.violet {
  background: var(--violet);
}

.questionnaire {
  margin-top: 34px;
  padding: 22px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.choice-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
  cursor: pointer;
  padding: 16px;
  text-align: left;
}

.choice-card strong {
  display: block;
  margin-bottom: 4px;
}

.choice-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.choice-card:hover,
.choice-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(232, 77, 42, 0.1);
}

.course-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 92px;
  padding: 18px;
}

.sidebar-stats,
.stage-rail {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.sidebar-stats span,
.stage-rail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: white;
  color: var(--muted);
  font-size: 0.88rem;
  padding: 10px 12px;
}

.sidebar-stats strong,
.stage-rail-item strong {
  color: var(--ink);
}

.sidebar-stats em {
  color: inherit;
  font-style: normal;
  text-align: right;
}

.stage-rail-item.complete {
  border-color: rgba(48, 185, 129, 0.34);
  background: rgba(48, 185, 129, 0.08);
}

.stage-rail-item.locked {
  opacity: 0.58;
}

.progress-ring {
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  margin: 8px auto 16px;
  border-radius: 999px;
  background: conic-gradient(var(--primary) var(--progress), rgba(23, 34, 44, 0.08) 0);
}

.progress-ring span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: white;
  font-weight: 900;
}

.dashboard-grid,
.portfolio-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(170px, 0.55fr) minmax(170px, 0.55fr);
  gap: 14px;
  margin: 24px 0 34px;
}

.next-action-card,
.dashboard-card,
.portfolio-score-card,
.portfolio-feature {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow);
  padding: 18px;
}

.next-action-card h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.next-action-card p,
.dashboard-card p,
.portfolio-score-card p,
.portfolio-feature p {
  color: var(--muted);
  margin-bottom: 0;
}

.dashboard-card {
  display: grid;
  align-content: start;
  gap: 8px;
}

.dashboard-card.complete {
  border-color: rgba(48, 185, 129, 0.34);
  background: rgba(48, 185, 129, 0.08);
}

.metric {
  color: var(--primary);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 950;
  line-height: 1;
}

.stage {
  margin-bottom: 36px;
}

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

.stage-summary {
  display: grid;
  justify-items: end;
  gap: 8px;
  min-width: 132px;
}

.stage-summary strong {
  color: var(--muted);
  font-size: 0.9rem;
}

.stage-progress {
  height: 10px;
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(23, 34, 44, 0.05);
}

.stage-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--gold), var(--mint));
}

.stage-tag,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  border-radius: 999px;
  background: rgba(113, 103, 216, 0.12);
  color: var(--violet);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 4px 9px;
}

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

.module-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 230px;
  padding: 18px;
}

.module-card.complete {
  border-color: rgba(48, 185, 129, 0.34);
  background: rgba(48, 185, 129, 0.06);
}

.module-card.endpoint {
  border-color: rgba(232, 77, 42, 0.32);
  background:
    linear-gradient(135deg, rgba(232, 77, 42, 0.08), rgba(113, 103, 216, 0.08)),
    white;
}

.module-card.locked {
  opacity: 0.58;
}

.module-card p {
  margin: 0;
  color: var(--muted);
}

.module-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.module-score {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.module-checks,
.artifact-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.module-checks span,
.artifact-checks span {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(23, 34, 44, 0.04);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 5px 9px;
}

.module-checks span.done,
.artifact-checks span.done {
  border-color: rgba(48, 185, 129, 0.34);
  background: rgba(48, 185, 129, 0.1);
  color: var(--mint);
}

.module-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.lesson-shell {
  max-width: 900px;
}

.lesson-header {
  margin-bottom: 20px;
}

.comic-lesson {
  margin-bottom: 22px;
  min-height: 260px;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 20%, rgba(48, 185, 129, 0.24), transparent 18rem),
    radial-gradient(circle at 82% 28%, rgba(113, 103, 216, 0.2), transparent 16rem),
    #f9ffff;
  border: 1px solid var(--border);
  position: relative;
  box-shadow: var(--shadow);
}

.comic-lesson::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.86);
}

.comic-scene {
  position: relative;
  height: 260px;
}

.comic-panel {
  position: absolute;
  top: 42px;
  bottom: 42px;
  width: 38%;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 12px 30px rgba(23, 34, 44, 0.08);
}

.panel-left {
  left: 42px;
}

.panel-right {
  right: 42px;
}

.person {
  position: absolute;
  left: 42px;
  bottom: 34px;
  width: 46px;
  height: 78px;
  border-radius: 999px 999px 16px 16px;
  background: var(--primary);
  animation: bob 3s ease-in-out infinite;
}

.person::before {
  content: "";
  position: absolute;
  left: 8px;
  top: -32px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #ffd0b7;
}

.speech {
  position: absolute;
  left: 108px;
  top: 42px;
  width: 128px;
  height: 58px;
  border-radius: 18px 18px 18px 6px;
  background: white;
  animation: pop-in 3.4s ease-in-out infinite;
}

.speech::before,
.speech::after {
  content: "";
  position: absolute;
  left: 18px;
  height: 8px;
  border-radius: 999px;
  background: rgba(23, 34, 44, 0.18);
}

.speech::before {
  top: 17px;
  width: 86px;
}

.speech::after {
  top: 34px;
  width: 56px;
}

.desk-line {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 28px;
  height: 6px;
  border-radius: 999px;
  background: rgba(23, 34, 44, 0.12);
}

.screen {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 190px;
  height: 130px;
  transform: translate(-50%, -50%);
  border-radius: 18px;
  background: white;
  padding: 26px;
  box-shadow: 0 16px 32px rgba(23, 34, 44, 0.1);
}

.screen span {
  display: block;
  height: 10px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(23, 34, 44, 0.15);
  animation: screen-line 2.6s ease-in-out infinite;
}

.screen span:nth-child(1) {
  width: 120px;
  background: var(--mint);
}

.screen span:nth-child(2) {
  width: 96px;
  animation-delay: 160ms;
}

.screen span:nth-child(3) {
  width: 138px;
  background: var(--violet);
  animation-delay: 320ms;
}

.spark {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--gold);
  animation: spark 3s ease-in-out infinite;
}

.spark-one {
  left: 34px;
  top: 48px;
}

.spark-two {
  right: 46px;
  top: 54px;
  background: var(--primary);
  animation-delay: 420ms;
}

.spark-three {
  right: 66px;
  bottom: 44px;
  background: var(--mint);
  animation-delay: 820ms;
}

.scene-prompt .screen {
  border: 3px solid rgba(232, 77, 42, 0.25);
}

.scene-verify .screen {
  border: 3px solid rgba(48, 185, 129, 0.32);
}

.scene-risk .screen {
  border: 3px solid rgba(217, 155, 22, 0.32);
}

.lesson-card {
  padding: 24px;
}

.gold-shell {
  max-width: 980px;
}

.gold-comic {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 160px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 280px;
  margin-bottom: 22px;
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 18%, rgba(48, 185, 129, 0.24), transparent 18rem),
    radial-gradient(circle at 82% 28%, rgba(113, 103, 216, 0.2), transparent 18rem),
    linear-gradient(135deg, #fbffff, #edf8f7);
  box-shadow: var(--shadow);
  padding: 28px;
}

.conversation-comic {
  display: grid;
  grid-template-columns: 1fr 210px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 290px;
  margin-bottom: 22px;
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(232, 77, 42, 0.14), transparent 17rem),
    radial-gradient(circle at 80% 28%, rgba(48, 185, 129, 0.22), transparent 18rem),
    linear-gradient(135deg, #fbffff, #eef9f5);
  box-shadow: var(--shadow);
  padding: 28px;
}

.chat-column {
  display: grid;
  gap: 14px;
  align-content: center;
  min-height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  padding: 20px;
}

.chat-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  font-weight: 950;
}

.mentor-avatar {
  background: var(--mint);
}

.chat-message {
  max-width: 92%;
  border-radius: 18px;
  background: white;
  box-shadow: 0 10px 22px rgba(23, 34, 44, 0.07);
  padding: 12px 14px;
  font-weight: 750;
}

.weak-message {
  border-bottom-left-radius: 4px;
  color: var(--danger);
  animation: pop-in 3s ease-in-out infinite;
}

.strong-message {
  border-bottom-left-radius: 4px;
  color: var(--primary);
  animation: pop-in 3s ease-in-out infinite;
}

.ai-message {
  margin-left: auto;
  border-bottom-right-radius: 4px;
  color: var(--muted);
}

.mentor-cutaway {
  position: relative;
  min-height: 170px;
  border-radius: 999px;
  background: conic-gradient(from 30deg, var(--primary), var(--gold), var(--mint), var(--violet), var(--primary));
  color: white;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 26px;
  box-shadow: 0 20px 42px rgba(23, 34, 44, 0.13);
  animation: pulse-core 3.6s ease-in-out infinite;
}

.mentor-cutaway strong {
  font-size: 1.3rem;
  line-height: 1.05;
}

.mentor-cutaway p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 800;
}

.starter-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.starter-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: white;
  cursor: pointer;
  padding: 10px 14px;
  font-weight: 850;
}

.starter-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.prompt-lab {
  display: grid;
  gap: 16px;
}

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

.prompt-pair {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: white;
  cursor: pointer;
  min-height: 170px;
  padding: 16px;
  text-align: left;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.prompt-pair:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(23, 34, 44, 0.08);
}

.prompt-pair strong,
.prompt-pair span {
  display: block;
}

.weak-label {
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.pair-preview {
  margin-top: 12px;
  color: var(--muted);
}

.prompt-pair.revealed {
  border-color: var(--mint);
  background: rgba(48, 185, 129, 0.08);
}

.followup-track {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.followup-track span {
  border-radius: 999px;
  background: rgba(113, 103, 216, 0.1);
  color: var(--violet);
  font-weight: 850;
  padding: 9px 12px;
}

.toolbox-comic {
  display: grid;
  grid-template-columns: 1fr 190px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 300px;
  margin-bottom: 22px;
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 22%, rgba(217, 155, 22, 0.22), transparent 17rem),
    radial-gradient(circle at 78% 24%, rgba(113, 103, 216, 0.2), transparent 18rem),
    linear-gradient(135deg, #ffffff, #edf8f7);
  box-shadow: var(--shadow);
  padding: 28px;
}

.sam-panel,
.tool-mentor-panel {
  min-height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 16px 34px rgba(23, 34, 44, 0.08);
  padding: 20px;
}

.sam-panel {
  display: grid;
  gap: 10px;
  align-content: center;
}

.tool-bubble {
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  background: white;
  color: var(--muted);
  font-weight: 850;
  padding: 9px 13px;
  box-shadow: 0 10px 20px rgba(23, 34, 44, 0.07);
  animation: pop-in 3.2s ease-in-out infinite;
}

.tool-bubble:nth-child(2) {
  animation-delay: 180ms;
}

.tool-bubble:nth-child(3) {
  animation-delay: 360ms;
}

.tool-bubble:nth-child(4) {
  animation-delay: 540ms;
}

.wrong-tool {
  color: var(--danger);
}

.toolbox-core {
  position: relative;
  display: grid;
  place-items: center;
  width: 164px;
  height: 164px;
  margin: 0 auto;
  border-radius: 34px;
  background: conic-gradient(from 40deg, var(--gold), var(--primary), var(--violet), var(--mint), var(--gold));
  box-shadow: 0 24px 48px rgba(23, 34, 44, 0.13);
  animation: pulse-core 3.5s ease-in-out infinite;
}

.toolbox-core strong {
  z-index: 2;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 26px;
  background: white;
  color: var(--primary);
  font-size: 1.08rem;
  font-weight: 950;
}

.tool-orbit {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: white;
  animation: orbit 5.5s linear infinite;
}

.orbit-search {
  transform-origin: 58px 58px;
}

.orbit-image {
  background: var(--mint);
  animation-delay: 800ms;
}

.orbit-data {
  background: var(--gold);
  animation-delay: 1600ms;
}

.tool-shelf {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.tool-shelf span {
  border-radius: 14px;
  background: rgba(48, 185, 129, 0.12);
  color: var(--mint);
  font-weight: 900;
  padding: 10px;
  text-align: center;
}

.tool-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.tool-token {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: white;
  padding: 16px;
}

.tool-token strong {
  display: block;
  color: var(--primary);
  font-size: 1.04rem;
  margin-bottom: 8px;
}

.tool-token p {
  margin: 8px 0 0;
}

.tool-token span {
  color: var(--ink);
  font-weight: 850;
}

.tool-lab {
  display: grid;
  gap: 16px;
}

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

.tool-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: white;
  cursor: pointer;
  min-height: 158px;
  padding: 16px;
  text-align: left;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.tool-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(23, 34, 44, 0.08);
}

.tool-card span,
.tool-card strong,
.tool-card em {
  display: block;
}

.tool-card span {
  color: var(--primary);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.tool-card em {
  margin-top: 12px;
  color: var(--muted);
  font-style: normal;
}

.tool-card.revealed {
  border-color: var(--mint);
  background: rgba(48, 185, 129, 0.08);
}

.prompt-comic {
  display: grid;
  grid-template-columns: 1fr 190px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 300px;
  margin-bottom: 22px;
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 24%, rgba(232, 77, 42, 0.16), transparent 18rem),
    radial-gradient(circle at 82% 24%, rgba(48, 185, 129, 0.18), transparent 18rem),
    linear-gradient(135deg, #ffffff, #f1f8ff);
  box-shadow: var(--shadow);
  padding: 28px;
}

.prompt-input-stack,
.prompt-output-stack {
  min-height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 16px 34px rgba(23, 34, 44, 0.08);
  padding: 20px;
}

.prompt-input-stack {
  display: grid;
  gap: 12px;
  align-content: center;
}

.prompt-slip {
  display: block;
  width: fit-content;
  max-width: 100%;
  border-radius: 16px;
  background: white;
  color: var(--muted);
  font-weight: 850;
  padding: 11px 13px;
  box-shadow: 0 10px 20px rgba(23, 34, 44, 0.07);
  animation: paper-stack 3.1s ease-in-out infinite;
}

.prompt-slip:nth-child(2) {
  animation-delay: 180ms;
}

.prompt-slip:nth-child(3) {
  animation-delay: 360ms;
}

.vague-slip {
  color: var(--danger);
}

.prompt-machine {
  position: relative;
  display: grid;
  place-items: center;
  width: 170px;
  height: 170px;
  margin: 0 auto;
  border-radius: 999px;
  background: conic-gradient(from 20deg, var(--primary), var(--gold), var(--mint), var(--violet), var(--primary));
  box-shadow: 0 24px 48px rgba(23, 34, 44, 0.13);
  animation: pulse-core 3.5s ease-in-out infinite;
}

.prompt-machine strong {
  z-index: 2;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 999px;
  background: white;
  color: var(--primary);
  font-size: 0.98rem;
  font-weight: 950;
  line-height: 1.1;
  text-align: center;
}

.machine-light {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: white;
  animation: orbit 5.2s linear infinite;
}

.light-two {
  background: var(--mint);
  animation-delay: 700ms;
}

.light-three {
  background: var(--gold);
  animation-delay: 1400ms;
}

.prompt-output-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-content: center;
}

.prompt-output-stack span {
  border-radius: 14px;
  background: rgba(48, 185, 129, 0.12);
  color: var(--mint);
  font-weight: 900;
  padding: 10px;
  text-align: center;
}

.prompt-output-stack span:nth-child(5) {
  grid-column: 1 / -1;
}

.prompt-builder-lab,
.rewrite-lab {
  display: grid;
  gap: 16px;
}

.prompt-part-grid,
.rewrite-card-grid,
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.prompt-part-card,
.rewrite-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: white;
  cursor: pointer;
  min-height: 176px;
  padding: 16px;
  text-align: left;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.prompt-part-card:hover,
.rewrite-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(23, 34, 44, 0.08);
}

.prompt-part-card span,
.prompt-part-card strong,
.prompt-part-card em,
.rewrite-card span,
.rewrite-card strong,
.rewrite-card em {
  display: block;
}

.prompt-part-card span,
.rewrite-card span {
  color: var(--primary);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.prompt-part-card em,
.rewrite-card em {
  margin-top: 12px;
  color: var(--muted);
  font-style: normal;
}

.prompt-part-card.selected,
.rewrite-card.revealed {
  border-color: var(--mint);
  background: rgba(48, 185, 129, 0.08);
}

.prompt-preview {
  border: 1px solid rgba(113, 103, 216, 0.28);
  border-radius: 18px;
  background: rgba(113, 103, 216, 0.08);
  padding: 18px;
}

.prompt-preview p {
  margin: 8px 0;
}

.checklist-grid span {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
  color: var(--ink);
  font-weight: 800;
  padding: 14px;
}

.truth-comic {
  display: grid;
  grid-template-columns: 1fr 190px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 300px;
  margin-bottom: 22px;
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 24%, rgba(201, 51, 51, 0.12), transparent 17rem),
    radial-gradient(circle at 78% 24%, rgba(217, 155, 22, 0.2), transparent 18rem),
    linear-gradient(135deg, #ffffff, #f6fbf7);
  box-shadow: var(--shadow);
  padding: 28px;
}

.answer-panel,
.verdict-panel {
  min-height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 16px 34px rgba(23, 34, 44, 0.08);
  padding: 20px;
}

.answer-panel {
  display: grid;
  gap: 14px;
  align-content: center;
}

.claim-line {
  display: block;
  height: 16px;
  border-radius: 999px;
  background: rgba(102, 114, 125, 0.18);
  position: relative;
  overflow: hidden;
}

.claim-line::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  animation: scan-line 2.6s ease-in-out infinite;
}

.claim-safe::after {
  background: rgba(48, 185, 129, 0.34);
}

.claim-warning::after {
  background: rgba(217, 155, 22, 0.36);
  animation-delay: 220ms;
}

.claim-danger::after {
  background: rgba(201, 51, 51, 0.32);
  animation-delay: 440ms;
}

.short-line {
  width: 68%;
}

.truth-scanner {
  position: relative;
  display: grid;
  place-items: center;
  width: 170px;
  height: 170px;
  margin: 0 auto;
  border-radius: 38px;
  background: conic-gradient(from 30deg, var(--danger), var(--gold), var(--mint), var(--violet), var(--danger));
  box-shadow: 0 24px 48px rgba(23, 34, 44, 0.13);
  overflow: hidden;
  animation: pulse-core 3.5s ease-in-out infinite;
}

.truth-scanner strong {
  z-index: 2;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 28px;
  background: white;
  color: var(--danger);
  font-size: 1.1rem;
  font-weight: 950;
}

.scanner-beam {
  position: absolute;
  left: 16px;
  top: 0;
  width: 18px;
  height: 100%;
  background: rgba(255, 255, 255, 0.74);
  filter: blur(2px);
  transform: skewX(-12deg);
  animation: scanner-beam 2.4s ease-in-out infinite;
}

.verdict-panel {
  display: grid;
  gap: 12px;
  align-content: center;
}

.verdict {
  border-radius: 16px;
  background: white;
  font-weight: 950;
  padding: 12px 14px;
  box-shadow: 0 10px 20px rgba(23, 34, 44, 0.07);
}

.verdict.safe {
  color: var(--mint);
}

.verdict.check {
  color: var(--gold);
}

.verdict.danger {
  color: var(--danger);
}

.red-flag-grid,
.claim-card-grid,
.source-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.red-flag-grid span {
  border: 1px solid rgba(201, 51, 51, 0.18);
  border-radius: 16px;
  background: rgba(201, 51, 51, 0.06);
  color: var(--ink);
  font-weight: 800;
  padding: 14px;
}

.truth-lab,
.source-lab {
  display: grid;
  gap: 16px;
}

.claim-card,
.source-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: white;
  cursor: pointer;
  min-height: 156px;
  padding: 16px;
  text-align: left;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.claim-card:hover,
.source-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(23, 34, 44, 0.08);
}

.claim-card span,
.claim-card strong,
.claim-card em,
.source-card span,
.source-card strong,
.source-card em {
  display: block;
}

.claim-card span,
.source-card span {
  color: var(--primary);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.claim-card em,
.source-card em {
  margin-top: 12px;
  color: var(--muted);
  font-style: normal;
}

.claim-card.safe-draft {
  border-color: var(--mint);
  background: rgba(48, 185, 129, 0.08);
}

.claim-card.check,
.source-card.revealed {
  border-color: var(--gold);
  background: rgba(217, 155, 22, 0.1);
}

.claim-card.do-not-use {
  border-color: var(--danger);
  background: rgba(201, 51, 51, 0.08);
}

.verification-loop {
  counter-reset: verify-step;
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.verification-loop li {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
  color: var(--ink);
  font-weight: 800;
  padding: 14px 14px 14px 48px;
  position: relative;
}

.verification-loop li::before {
  counter-increment: verify-step;
  content: counter(verify-step);
  position: absolute;
  left: 14px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  font-size: 0.8rem;
  font-weight: 950;
}

.privacy-comic {
  display: grid;
  grid-template-columns: 1fr 190px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 300px;
  margin-bottom: 22px;
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 24%, rgba(113, 103, 216, 0.16), transparent 17rem),
    radial-gradient(circle at 78% 24%, rgba(48, 185, 129, 0.2), transparent 18rem),
    linear-gradient(135deg, #ffffff, #effaf6);
  box-shadow: var(--shadow);
  padding: 28px;
}

.private-note-panel,
.safe-note-panel {
  min-height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 34px rgba(23, 34, 44, 0.08);
  padding: 20px;
}

.private-note-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: center;
}

.private-line {
  display: block;
  width: 100%;
  height: 16px;
  border-radius: 999px;
  background: rgba(102, 114, 125, 0.18);
}

.private-token {
  border-radius: 999px;
  background: rgba(201, 51, 51, 0.09);
  color: var(--danger);
  font-weight: 900;
  padding: 9px 12px;
  animation: pop-in 3s ease-in-out infinite;
}

.private-token:nth-child(4) {
  animation-delay: 220ms;
}

.private-token:nth-child(5) {
  animation-delay: 440ms;
}

.privacy-shield {
  position: relative;
  display: grid;
  place-items: center;
  width: 170px;
  height: 170px;
  margin: 0 auto;
  border-radius: 50% 50% 42% 42%;
  background: conic-gradient(from 40deg, var(--violet), var(--mint), var(--gold), var(--primary), var(--violet));
  box-shadow: 0 24px 48px rgba(23, 34, 44, 0.13);
  overflow: hidden;
  animation: pulse-core 3.5s ease-in-out infinite;
}

.privacy-shield strong {
  z-index: 2;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 999px;
  background: white;
  color: var(--violet);
  font-size: 1.1rem;
  font-weight: 950;
}

.shield-sweep {
  position: absolute;
  inset: 14px;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.78);
  animation: shield-sweep 2.8s ease-in-out infinite;
}

.safe-note-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-content: center;
}

.safe-note-panel span {
  border-radius: 14px;
  background: rgba(48, 185, 129, 0.12);
  color: var(--mint);
  font-weight: 900;
  padding: 10px;
  text-align: center;
}

.privacy-lane-grid,
.privacy-card-grid,
.redaction-card-grid,
.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.privacy-lane {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: white;
  padding: 16px;
}

.privacy-lane strong {
  display: block;
  color: var(--primary);
  margin-bottom: 8px;
}

.privacy-lane p {
  margin: 0;
}

.privacy-lab,
.redaction-lab {
  display: grid;
  gap: 16px;
}

.privacy-card,
.redaction-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: white;
  cursor: pointer;
  min-height: 164px;
  padding: 16px;
  text-align: left;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.privacy-card:hover,
.redaction-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(23, 34, 44, 0.08);
}

.privacy-card span,
.privacy-card strong,
.privacy-card em,
.redaction-card span,
.redaction-card strong,
.redaction-card em {
  display: block;
}

.privacy-card span,
.redaction-card span {
  color: var(--primary);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.privacy-card em,
.redaction-card em {
  margin-top: 12px;
  color: var(--muted);
  font-style: normal;
}

.privacy-card.safe {
  border-color: var(--mint);
  background: rgba(48, 185, 129, 0.08);
}

.privacy-card.mask,
.redaction-card.revealed {
  border-color: var(--gold);
  background: rgba(217, 155, 22, 0.1);
}

.privacy-card.block {
  border-color: var(--danger);
  background: rgba(201, 51, 51, 0.08);
}

.policy-grid span {
  border: 1px solid rgba(113, 103, 216, 0.24);
  border-radius: 16px;
  background: rgba(113, 103, 216, 0.08);
  color: var(--ink);
  font-weight: 800;
  padding: 14px;
}

.project-comic {
  display: grid;
  grid-template-columns: 1fr 190px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 300px;
  margin-bottom: 22px;
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 24%, rgba(48, 185, 129, 0.17), transparent 17rem),
    radial-gradient(circle at 78% 24%, rgba(232, 77, 42, 0.15), transparent 18rem),
    linear-gradient(135deg, #ffffff, #f2f9ff);
  box-shadow: var(--shadow);
  padding: 28px;
}

.project-before-panel,
.project-after-panel {
  min-height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 34px rgba(23, 34, 44, 0.08);
  display: grid;
  gap: 10px;
  place-items: center;
  padding: 20px;
  text-align: center;
}

.project-before-panel span,
.project-after-panel span {
  border-radius: 999px;
  background: rgba(232, 77, 42, 0.09);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  padding: 8px 12px;
  text-transform: uppercase;
}

.project-after-panel span {
  background: rgba(48, 185, 129, 0.12);
  color: var(--mint);
}

.project-before-panel strong,
.project-after-panel strong {
  font-size: 1.2rem;
}

.project-pipeline {
  position: relative;
  display: grid;
  place-items: center;
  width: 170px;
  height: 170px;
  margin: 0 auto;
  border-radius: 40px;
  background: conic-gradient(from 20deg, var(--mint), var(--violet), var(--gold), var(--primary), var(--mint));
  box-shadow: 0 24px 48px rgba(23, 34, 44, 0.13);
  animation: pulse-core 3.5s ease-in-out infinite;
}

.project-pipeline strong {
  z-index: 2;
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  border-radius: 30px;
  background: white;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 950;
}

.pipeline-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: white;
  animation: orbit 5.4s linear infinite;
}

.dot-two {
  background: var(--mint);
  animation-delay: 700ms;
}

.dot-three {
  background: var(--gold);
  animation-delay: 1400ms;
}

.project-option-grid,
.project-step-grid,
.artifact-check-grid,
.rubric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.project-option,
.rubric-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: white;
  padding: 16px;
}

.project-option strong,
.rubric-card strong {
  display: block;
  color: var(--primary);
  margin-bottom: 8px;
}

.project-option p,
.rubric-card p {
  margin: 0;
}

.project-lab {
  display: grid;
  gap: 16px;
}

.project-step-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: white;
  cursor: pointer;
  min-height: 164px;
  padding: 16px;
  text-align: left;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.project-step-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(23, 34, 44, 0.08);
}

.project-step-card span,
.project-step-card strong,
.project-step-card em {
  display: block;
}

.project-step-card span {
  color: var(--primary);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.project-step-card em {
  margin-top: 12px;
  color: var(--muted);
  font-style: normal;
}

.project-step-card.revealed {
  border-color: var(--mint);
  background: rgba(48, 185, 129, 0.08);
}

.artifact-check-grid span {
  border: 1px solid rgba(48, 185, 129, 0.26);
  border-radius: 16px;
  background: rgba(48, 185, 129, 0.08);
  color: var(--ink);
  font-weight: 800;
  padding: 14px;
}

.rubric-card:nth-child(2) {
  border-color: rgba(217, 155, 22, 0.32);
}

.rubric-card:nth-child(3) {
  border-color: rgba(48, 185, 129, 0.34);
}

.stage2-comic {
  display: grid;
  grid-template-columns: 1fr 190px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 300px;
  margin-bottom: 22px;
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 24%, rgba(113, 103, 216, 0.17), transparent 17rem),
    radial-gradient(circle at 78% 24%, rgba(217, 155, 22, 0.17), transparent 18rem),
    linear-gradient(135deg, #ffffff, #f4fbf8);
  box-shadow: var(--shadow);
  padding: 28px;
}

.stage2-input-panel,
.stage2-output-panel {
  min-height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 34px rgba(23, 34, 44, 0.08);
  display: grid;
  gap: 10px;
  place-items: center;
  padding: 20px;
  text-align: center;
}

.stage2-input-panel span,
.stage2-output-panel span {
  border-radius: 999px;
  background: rgba(113, 103, 216, 0.1);
  color: var(--violet);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  padding: 8px 12px;
  text-transform: uppercase;
}

.stage2-output-panel span {
  background: rgba(48, 185, 129, 0.12);
  color: var(--mint);
}

.stage2-input-panel strong,
.stage2-output-panel strong {
  font-size: 1.18rem;
}

.stage2-core {
  position: relative;
  display: grid;
  place-items: center;
  width: 170px;
  height: 170px;
  margin: 0 auto;
  border-radius: 999px;
  background: conic-gradient(from 25deg, var(--violet), var(--mint), var(--gold), var(--primary), var(--violet));
  box-shadow: 0 24px 48px rgba(23, 34, 44, 0.13);
  animation: pulse-core 3.5s ease-in-out infinite;
}

.stage2-core strong {
  z-index: 2;
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  border-radius: 999px;
  background: white;
  color: var(--violet);
  font-size: 1.05rem;
  font-weight: 950;
}

.stage2-orbit {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: white;
  animation: orbit 5.4s linear infinite;
}

.orbit-two {
  background: var(--mint);
  animation-delay: 700ms;
}

.orbit-three {
  background: var(--gold);
  animation-delay: 1400ms;
}

.stage2-move-grid,
.stage2-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.stage2-move-grid span {
  border: 1px solid rgba(113, 103, 216, 0.24);
  border-radius: 16px;
  background: rgba(113, 103, 216, 0.08);
  color: var(--ink);
  font-weight: 800;
  padding: 14px;
}

.stage2-lab {
  display: grid;
  gap: 16px;
}

.stage2-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: white;
  cursor: pointer;
  min-height: 164px;
  padding: 16px;
  text-align: left;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.stage2-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(23, 34, 44, 0.08);
}

.stage2-card span,
.stage2-card strong,
.stage2-card em {
  display: block;
}

.stage2-card span {
  color: var(--primary);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.stage2-card em {
  margin-top: 12px;
  color: var(--muted);
  font-style: normal;
}

.stage2-card.good {
  border-color: var(--mint);
  background: rgba(48, 185, 129, 0.08);
}

.stage2-card.conditional {
  border-color: var(--gold);
  background: rgba(217, 155, 22, 0.1);
}

.stage2-card.poor {
  border-color: var(--danger);
  background: rgba(201, 51, 51, 0.08);
}

.stage2-practice-list {
  counter-reset: stage2-step;
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.stage2-practice-list li {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
  color: var(--ink);
  font-weight: 800;
  padding: 14px 14px 14px 48px;
  position: relative;
}

.stage2-practice-list li::before {
  counter-increment: stage2-step;
  content: counter(stage2-step);
  position: absolute;
  left: 14px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--violet);
  color: white;
  font-size: 0.8rem;
  font-weight: 950;
}

.stage3-comic {
  display: grid;
  grid-template-columns: 1fr 190px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 300px;
  margin-bottom: 22px;
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 24%, rgba(48, 185, 129, 0.18), transparent 17rem),
    radial-gradient(circle at 78% 24%, rgba(113, 103, 216, 0.17), transparent 18rem),
    linear-gradient(135deg, #ffffff, #f6fbff);
  box-shadow: var(--shadow);
  padding: 28px;
}

.stage3-brief-panel,
.stage3-proof-panel {
  min-height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 34px rgba(23, 34, 44, 0.08);
  display: grid;
  gap: 10px;
  place-items: center;
  padding: 20px;
  text-align: center;
}

.stage3-brief-panel span,
.stage3-proof-panel span {
  border-radius: 999px;
  background: rgba(232, 77, 42, 0.09);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  padding: 8px 12px;
  text-transform: uppercase;
}

.stage3-proof-panel span {
  background: rgba(48, 185, 129, 0.12);
  color: var(--mint);
}

.stage3-core {
  position: relative;
  display: grid;
  place-items: center;
  width: 170px;
  height: 170px;
  margin: 0 auto;
  border-radius: 36px;
  background: conic-gradient(from 25deg, var(--mint), var(--primary), var(--gold), var(--violet), var(--mint));
  box-shadow: 0 24px 48px rgba(23, 34, 44, 0.13);
  animation: pulse-core 3.5s ease-in-out infinite;
}

.stage3-core strong {
  z-index: 2;
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  border-radius: 28px;
  background: white;
  color: var(--mint);
  font-size: 0.95rem;
  font-weight: 950;
  line-height: 1.1;
  text-align: center;
}

.stage3-orbit {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: white;
  animation: orbit 5.4s linear infinite;
}

.stage3-format-grid,
.stage3-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.stage3-format-grid span {
  border: 1px solid rgba(48, 185, 129, 0.26);
  border-radius: 16px;
  background: rgba(48, 185, 129, 0.08);
  color: var(--ink);
  font-weight: 800;
  padding: 14px;
}

.stage3-lab {
  display: grid;
  gap: 16px;
}

.stage3-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: white;
  cursor: pointer;
  min-height: 164px;
  padding: 16px;
  text-align: left;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.stage3-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(23, 34, 44, 0.08);
}

.stage3-card span,
.stage3-card strong,
.stage3-card em {
  display: block;
}

.stage3-card span {
  color: var(--primary);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.stage3-card em {
  margin-top: 12px;
  color: var(--muted);
  font-style: normal;
}

.stage3-card.good {
  border-color: var(--mint);
  background: rgba(48, 185, 129, 0.08);
}

.stage3-card.conditional {
  border-color: var(--gold);
  background: rgba(217, 155, 22, 0.1);
}

.stage3-card.poor {
  border-color: var(--danger);
  background: rgba(201, 51, 51, 0.08);
}

.stage3-practice-list {
  counter-reset: stage3-step;
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.stage3-practice-list li {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
  color: var(--ink);
  font-weight: 800;
  padding: 14px 14px 14px 48px;
  position: relative;
}

.stage3-practice-list li::before {
  counter-increment: stage3-step;
  content: counter(stage3-step);
  position: absolute;
  left: 14px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--mint);
  color: white;
  font-size: 0.8rem;
  font-weight: 950;
}

.stage4-comic {
  display: grid;
  grid-template-columns: 1fr 190px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 300px;
  margin-bottom: 22px;
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 24%, rgba(217, 155, 22, 0.18), transparent 17rem),
    radial-gradient(circle at 78% 24%, rgba(48, 185, 129, 0.18), transparent 18rem),
    linear-gradient(135deg, #ffffff, #f8fafc);
  box-shadow: var(--shadow);
  padding: 28px;
}

.stage4-risk-panel,
.stage4-trust-panel {
  min-height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 16px 34px rgba(23, 34, 44, 0.08);
  display: grid;
  gap: 10px;
  place-items: center;
  padding: 20px;
  text-align: center;
}

.stage4-risk-panel span,
.stage4-trust-panel span {
  border-radius: 999px;
  background: rgba(217, 155, 22, 0.14);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  padding: 8px 12px;
  text-transform: uppercase;
}

.stage4-trust-panel span {
  background: rgba(48, 185, 129, 0.12);
  color: var(--mint);
}

.stage4-risk-panel strong,
.stage4-trust-panel strong {
  font-size: 1.12rem;
}

.stage4-core {
  position: relative;
  display: grid;
  place-items: center;
  width: 170px;
  height: 170px;
  margin: 0 auto;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--ink), #4b5563);
  box-shadow: 0 24px 48px rgba(23, 34, 44, 0.16);
  animation: pulse-core 3.5s ease-in-out infinite;
}

.stage4-core strong {
  z-index: 2;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 950;
  line-height: 1.1;
  text-align: center;
}

.stage4-ring {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.64);
  border-radius: 999px;
  animation: trust-ring 4.8s ease-in-out infinite;
}

.ring-one {
  width: 132px;
  height: 132px;
}

.ring-two {
  width: 92px;
  height: 92px;
  border-color: rgba(217, 155, 22, 0.65);
  animation-delay: 700ms;
}

.ring-three {
  width: 52px;
  height: 52px;
  border-color: rgba(48, 185, 129, 0.68);
  animation-delay: 1400ms;
}

.stage4-system-grid,
.stage4-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.stage4-system-grid span {
  border: 1px solid rgba(23, 34, 44, 0.12);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(23, 34, 44, 0.04), rgba(217, 155, 22, 0.1));
  color: var(--ink);
  font-weight: 800;
  padding: 14px;
}

.stage4-lab {
  display: grid;
  gap: 16px;
}

.stage4-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: white;
  cursor: pointer;
  min-height: 164px;
  padding: 16px;
  text-align: left;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.stage4-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(23, 34, 44, 0.08);
}

.stage4-card span,
.stage4-card strong,
.stage4-card em {
  display: block;
}

.stage4-card span {
  color: var(--gold);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.stage4-card em {
  margin-top: 12px;
  color: var(--muted);
  font-style: normal;
}

.stage4-card.good {
  border-color: var(--mint);
  background: rgba(48, 185, 129, 0.08);
}

.stage4-card.conditional {
  border-color: var(--gold);
  background: rgba(217, 155, 22, 0.1);
}

.stage4-card.poor {
  border-color: var(--danger);
  background: rgba(201, 51, 51, 0.08);
}

.stage4-practice-list {
  counter-reset: stage4-step;
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.stage4-practice-list li {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
  color: var(--ink);
  font-weight: 800;
  padding: 14px 14px 14px 48px;
  position: relative;
}

.stage4-practice-list li::before {
  counter-increment: stage4-step;
  content: counter(stage4-step);
  position: absolute;
  left: 14px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 0.8rem;
  font-weight: 950;
}

.stage5-comic {
  display: grid;
  grid-template-columns: 1fr 190px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 300px;
  margin-bottom: 22px;
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 24%, rgba(232, 77, 42, 0.14), transparent 17rem),
    radial-gradient(circle at 78% 28%, rgba(113, 103, 216, 0.16), transparent 18rem),
    linear-gradient(135deg, #ffffff, #f6fbff);
  box-shadow: var(--shadow);
  padding: 28px;
}

.stage5-signal-panel,
.stage5-proof-panel {
  min-height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 16px 34px rgba(23, 34, 44, 0.08);
  display: grid;
  gap: 10px;
  place-items: center;
  padding: 20px;
  text-align: center;
}

.stage5-signal-panel span,
.stage5-proof-panel span {
  border-radius: 999px;
  background: rgba(232, 77, 42, 0.1);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  padding: 8px 12px;
  text-transform: uppercase;
}

.stage5-proof-panel span {
  background: rgba(113, 103, 216, 0.12);
  color: var(--violet);
}

.stage5-signal-panel strong,
.stage5-proof-panel strong {
  font-size: 1.14rem;
}

.stage5-core {
  position: relative;
  display: grid;
  place-items: center;
  width: 170px;
  height: 170px;
  margin: 0 auto;
  border-radius: 999px;
  background: conic-gradient(from 60deg, var(--primary), var(--gold), var(--mint), var(--violet), var(--primary));
  box-shadow: 0 24px 48px rgba(23, 34, 44, 0.14);
  animation: pulse-core 3.5s ease-in-out infinite;
}

.stage5-core strong {
  z-index: 2;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 999px;
  background: white;
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 950;
  line-height: 1.1;
  text-align: center;
}

.stage5-step {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: white;
  box-shadow: 0 8px 18px rgba(23, 34, 44, 0.14);
  animation: proof-step 4.8s ease-in-out infinite;
}

.step-one {
  left: 24px;
  top: 42px;
}

.step-two {
  right: 24px;
  top: 76px;
  background: var(--gold);
  animation-delay: 700ms;
}

.step-three {
  left: 74px;
  bottom: 24px;
  background: var(--mint);
  animation-delay: 1400ms;
}

.stage5-skill-grid,
.stage5-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.stage5-skill-grid span {
  border: 1px solid rgba(113, 103, 216, 0.24);
  border-radius: 16px;
  background: rgba(113, 103, 216, 0.08);
  color: var(--ink);
  font-weight: 800;
  padding: 14px;
}

.stage5-lab {
  display: grid;
  gap: 16px;
}

.stage5-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: white;
  cursor: pointer;
  min-height: 164px;
  padding: 16px;
  text-align: left;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.stage5-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(23, 34, 44, 0.08);
}

.stage5-card span,
.stage5-card strong,
.stage5-card em {
  display: block;
}

.stage5-card span {
  color: var(--primary);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.stage5-card em {
  margin-top: 12px;
  color: var(--muted);
  font-style: normal;
}

.stage5-card.good {
  border-color: var(--mint);
  background: rgba(48, 185, 129, 0.08);
}

.stage5-card.conditional {
  border-color: var(--gold);
  background: rgba(217, 155, 22, 0.1);
}

.stage5-card.poor {
  border-color: var(--danger);
  background: rgba(201, 51, 51, 0.08);
}

.stage5-practice-list {
  counter-reset: stage5-step;
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.stage5-practice-list li {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
  color: var(--ink);
  font-weight: 800;
  padding: 14px 14px 14px 48px;
  position: relative;
}

.stage5-practice-list li::before {
  counter-increment: stage5-step;
  content: counter(stage5-step);
  position: absolute;
  left: 14px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  font-size: 0.8rem;
  font-weight: 950;
}

.gold-panel {
  position: relative;
  min-height: 200px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 16px 34px rgba(23, 34, 44, 0.08);
  padding: 24px;
}

.avatar {
  width: 70px;
  height: 96px;
  margin: 12px auto 0;
  border-radius: 999px 999px 22px 22px;
  background: var(--primary);
  position: relative;
  animation: bob 3s ease-in-out infinite;
}

.avatar::before {
  content: "";
  position: absolute;
  left: 15px;
  top: -34px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #ffd2b8;
}

.avatar.mentor {
  background: var(--mint);
  animation-delay: 400ms;
}

.comic-caption {
  margin-top: 22px;
  border-radius: 18px;
  background: white;
  padding: 14px;
}

.comic-caption strong,
.comic-caption span {
  display: block;
}

.comic-caption span {
  color: var(--muted);
}

.gold-ai-core {
  position: relative;
  display: grid;
  place-items: center;
  width: 144px;
  height: 144px;
  margin: 0 auto;
  border-radius: 999px;
  background: conic-gradient(from 80deg, var(--primary), var(--mint), var(--violet), var(--gold), var(--primary));
  box-shadow: 0 24px 48px rgba(23, 34, 44, 0.13);
  animation: pulse-core 3.4s ease-in-out infinite;
}

.gold-ai-core strong {
  z-index: 2;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background: white;
  color: var(--primary);
  font-size: 1.8rem;
  font-weight: 950;
}

.orbit {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: white;
  animation: orbit 5s linear infinite;
}

.orbit-a {
  transform-origin: 54px 54px;
}

.orbit-b {
  background: var(--mint);
  animation-delay: 800ms;
}

.orbit-c {
  background: var(--gold);
  animation-delay: 1500ms;
}

.gold-lesson-card {
  display: grid;
  gap: 22px;
}

.gold-section {
  border-bottom: 1px solid var(--border);
  padding-bottom: 22px;
}

.gold-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.definition-box {
  border-left: 5px solid var(--primary);
  border-radius: 14px;
  background: rgba(232, 77, 42, 0.08);
  color: var(--ink) !important;
  padding: 16px;
}

.analogy-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 22px;
  align-items: center;
}

.intern-animation {
  position: relative;
  min-height: 150px;
  border-radius: 24px;
  background: rgba(48, 185, 129, 0.12);
  overflow: hidden;
}

.intern-animation span {
  position: absolute;
  left: 26px;
  width: 116px;
  height: 18px;
  border-radius: 999px;
  background: white;
  animation: paper-stack 3s ease-in-out infinite;
}

.intern-animation span:nth-child(1) {
  top: 34px;
}

.intern-animation span:nth-child(2) {
  top: 68px;
  animation-delay: 180ms;
  background: rgba(113, 103, 216, 0.24);
}

.intern-animation span:nth-child(3) {
  top: 102px;
  animation-delay: 360ms;
  background: rgba(232, 77, 42, 0.22);
}

.can-card {
  border-color: rgba(48, 185, 129, 0.36);
}

.cannot-card {
  border-color: rgba(201, 51, 51, 0.22);
}

.sort-lab {
  display: grid;
  gap: 16px;
}

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

.sort-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: white;
  cursor: pointer;
  min-height: 132px;
  padding: 16px;
  text-align: left;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.sort-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(23, 34, 44, 0.08);
}

.sort-card strong,
.sort-card span {
  display: block;
}

.sort-card span {
  margin-top: 10px;
  color: var(--muted);
}

.sort-card.revealed {
  border-color: var(--mint);
  background: rgba(48, 185, 129, 0.08);
}

.audience-card {
  border-color: rgba(113, 103, 216, 0.28);
  background: rgba(113, 103, 216, 0.08);
}

.audience-hook {
  margin-top: 14px;
  max-width: 640px;
}

.lesson-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 18px 0;
}

.mini-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
  padding: 16px;
}

.mini-card strong {
  display: block;
  margin-bottom: 6px;
}

.mini-card p,
.lesson-card p {
  color: var(--muted);
}

.steps {
  padding-left: 20px;
}

.steps li {
  margin: 8px 0;
}

.quiz-shell,
.portfolio-shell {
  max-width: 860px;
}

.quiz-card,
.mission-card {
  padding: 22px;
  margin-top: 16px;
}

.option-list {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.option-button {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: white;
  cursor: pointer;
  padding: 13px 14px;
  text-align: left;
}

.option-button:hover {
  border-color: var(--primary);
}

.option-button.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(232, 77, 42, 0.1);
}

.option-button.correct {
  border-color: var(--mint);
  background: rgba(48, 185, 129, 0.1);
}

.option-button.wrong {
  border-color: var(--danger);
  background: rgba(201, 51, 51, 0.08);
}

.feedback {
  border-radius: 14px;
  margin: 14px 0;
  padding: 14px;
  background: rgba(113, 103, 216, 0.1);
}

.mission-workspace {
  display: grid;
  gap: 12px;
  margin: 20px 0 8px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  padding: 16px;
}

.workspace-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.artifact-notes-label {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
}

.mission-workspace textarea {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: white;
  color: var(--ink);
  padding: 14px;
}

.mission-workspace textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(232, 77, 42, 0.1);
  outline: none;
}

.artifact-quality-list {
  display: grid;
  gap: 8px;
}

.artifact-quality-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: white;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 750;
  padding: 10px 12px;
}

.artifact-quality-item.checked {
  border-color: rgba(48, 185, 129, 0.38);
  background: rgba(48, 185, 129, 0.08);
  color: var(--ink);
}

.artifact-quality-item input {
  margin-top: 3px;
  accent-color: var(--mint);
}

.artifact-helper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.portfolio-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.portfolio-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.portfolio-score-card {
  min-height: 170px;
}

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

.portfolio-feature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 18px 0 30px;
}

.portfolio-feature h2 {
  font-size: clamp(1.65rem, 3vw, 2.5rem);
}

.completion-panel,
.portfolio-export-panel,
.strongest-artifacts {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow);
  margin: 18px 0 30px;
  padding: 18px;
}

.completion-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-color: rgba(48, 185, 129, 0.34);
  background:
    radial-gradient(circle at 92% 20%, rgba(48, 185, 129, 0.13), transparent 15rem),
    white;
}

.completion-panel h2,
.portfolio-export-panel h2,
.strongest-artifacts h2 {
  font-size: clamp(1.65rem, 3vw, 2.5rem);
}

.completion-panel p,
.portfolio-export-panel p,
.strongest-artifacts p {
  color: var(--muted);
}

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

.export-grid,
.strongest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.export-card,
.strong-artifact-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(243, 251, 250, 0.68);
  padding: 14px;
}

.strong-artifact-card {
  display: grid;
  gap: 10px;
}

.strong-artifact-card h3 {
  margin-top: 6px;
}

.portfolio-stage-list,
.portfolio-stage {
  display: grid;
  gap: 22px;
}

.portfolio-stage {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.portfolio-stage-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.portfolio-stage-header p {
  color: var(--muted);
  margin-bottom: 0;
}

.artifact {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
  padding: 16px;
}

.artifact h3 {
  margin-top: 10px;
}

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

.artifact-preview {
  margin: 14px 0 0;
  border-left: 4px solid var(--mint);
  border-radius: 12px;
  background: rgba(48, 185, 129, 0.08);
  color: var(--ink);
  font-size: 0.92rem;
  padding: 12px 14px;
}

.artifact-preview.empty {
  border-left-color: var(--gold);
  background: rgba(217, 155, 22, 0.09);
  color: var(--muted);
}

.polish-tips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.polish-tips span {
  border: 1px solid rgba(217, 155, 22, 0.28);
  border-radius: 999px;
  background: rgba(217, 155, 22, 0.09);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 5px 9px;
}

.polish-tips.complete span {
  border-color: rgba(48, 185, 129, 0.28);
  background: rgba(48, 185, 129, 0.09);
  color: var(--mint);
}

.artifact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  min-width: 168px;
}

.artifact.done {
  border-color: var(--mint);
  background: rgba(48, 185, 129, 0.08);
}

.empty-state {
  padding: 32px;
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes pulse-core {
  0%,
  100% {
    transform: scale(0.98);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes pop-in {
  0%,
  100% {
    transform: translateY(4px);
    opacity: 0.82;
  }
  50% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

@keyframes screen-line {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.62;
  }
  50% {
    transform: translateX(8px);
    opacity: 1;
  }
}

@keyframes spark {
  0%,
  100% {
    transform: scale(0.7);
    opacity: 0.42;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

@keyframes orbit {
  from {
    transform: rotate(0deg) translateX(66px) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translateX(66px) rotate(-360deg);
  }
}

@keyframes trust-ring {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.55;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes proof-step {
  0%,
  100% {
    transform: translateY(0) scale(0.92);
    opacity: 0.7;
  }

  50% {
    transform: translateY(-10px) scale(1.08);
    opacity: 1;
  }
}

@keyframes paper-stack {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.7;
  }
  50% {
    transform: translateX(16px);
    opacity: 1;
  }
}

@keyframes scanner-beam {
  0%,
  100% {
    transform: translateX(-22px) skewX(-12deg);
    opacity: 0.5;
  }
  50% {
    transform: translateX(150px) skewX(-12deg);
    opacity: 1;
  }
}

@keyframes scan-line {
  0%,
  100% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(0);
  }
}

@keyframes shield-sweep {
  0%,
  100% {
    transform: scale(0.86);
    opacity: 0.54;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .hero,
  .course-layout,
  .lesson-grid,
  .dashboard-grid,
  .portfolio-dashboard,
  .portfolio-hero {
    grid-template-columns: 1fr;
  }

  .gold-comic,
  .conversation-comic,
  .toolbox-comic,
  .prompt-comic,
  .truth-comic,
  .privacy-comic,
  .project-comic,
  .stage2-comic,
  .stage3-comic,
  .stage4-comic,
  .stage5-comic,
  .analogy-strip {
    grid-template-columns: 1fr;
  }

  .gold-ai-core,
  .toolbox-core,
  .prompt-machine,
  .truth-scanner,
  .privacy-shield,
  .project-pipeline,
  .stage2-core,
  .stage3-core,
  .stage4-core,
  .stage5-core {
    order: -1;
  }

  .sidebar {
    position: static;
    overflow: hidden;
  }

  .site-header {
    gap: 12px;
  }

  .brand span:last-child {
    display: none;
  }

  nav {
    flex: 0 0 auto;
    margin-left: auto;
  }

  .sidebar-stats span,
  .stage-rail-item {
    align-items: flex-start;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    justify-content: stretch;
  }

  .sidebar-stats strong,
  .stage-rail-item strong {
    min-width: 28px;
  }

  .sidebar-stats em,
  .stage-rail-item span {
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: right;
  }

  .portfolio-feature,
  .completion-panel,
  .portfolio-stage-header,
  .stage-header {
    align-items: start;
    flex-direction: column;
  }

  .stage-summary {
    justify-items: start;
  }

  .module-grid,
  .choice-grid,
  .sort-grid,
  .prompt-pair-grid,
  .tool-type-grid,
  .tool-card-grid,
  .prompt-part-grid,
  .rewrite-card-grid,
  .checklist-grid,
  .red-flag-grid,
  .claim-card-grid,
  .source-card-grid,
  .privacy-lane-grid,
  .privacy-card-grid,
  .redaction-card-grid,
  .policy-grid,
  .project-option-grid,
  .project-step-grid,
  .artifact-check-grid,
  .rubric-grid,
  .stage2-move-grid,
  .stage2-card-grid,
  .stage3-format-grid,
  .stage3-card-grid,
  .stage4-system-grid,
  .stage4-card-grid,
  .stage5-skill-grid,
  .stage5-card-grid,
  .export-grid,
  .strongest-grid {
    grid-template-columns: 1fr;
  }

  .comic-panel {
    width: calc(50% - 54px);
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 10px;
    padding: 0 16px;
  }

  .brand {
    min-width: 0;
    font-size: 0.95rem;
  }

  .brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  nav {
    flex: 0 0 auto;
    gap: 10px;
    font-size: 0.82rem;
  }

  .ghost-button {
    min-height: 38px;
    padding: 7px 10px;
  }

  .page {
    width: min(100% - 24px, var(--max));
    padding-top: 28px;
  }

  .sidebar {
    padding: 16px;
    overflow: hidden;
  }

  .sidebar-stats span,
  .stage-rail-item {
    align-items: flex-start;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    justify-content: stretch;
  }

  .sidebar-stats strong,
  .stage-rail-item strong {
    min-width: 28px;
  }

  .sidebar-stats em,
  .stage-rail-item span {
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: right;
  }

  .comic-frame {
    min-height: 310px;
  }

  .comic-panel {
    top: 36px;
    bottom: 36px;
  }

  .panel-left {
    left: 18px;
  }

  .panel-right {
    right: 18px;
  }

  .speech {
    left: 72px;
    width: 96px;
  }

  .screen {
    width: 132px;
  }

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

  .artifact-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .module-card-top {
    align-items: start;
    flex-direction: column;
  }

  .workspace-header,
  .artifact-helper {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .brand span:last-child {
    display: none;
  }

  nav {
    gap: 8px;
  }
}

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

/* Premium dark app presentation */
:root {
  --bg: #141B29;
  --glass: #202B3D;
  --glass-hi: #263348;
  --surface: var(--glass);
  --surface-2: var(--glass-hi);
  --surface-3: #2B374B;
  --raised: #31405A;
  --raised-2: #3A4A67;
  --border: rgba(255, 255, 255, 0.07);
  --border-2: rgba(53, 198, 255, 0.22);
  --ink: #FFFFFF;
  --ink-2: #AEB7C8;
  --muted: #9FAABD;
  --muted-2: #AEB7C8;
  --accent: #35C6FF;
  --accent-2: #2F6BFF;
  --accent-glow: rgba(53, 198, 255, 0.18);
  --accent-tint: rgba(53, 198, 255, 0.10);
  --blue-tint: rgba(112, 133, 255, 0.12);
  --blue-ink: #7085FF;
  --primary: #35C6FF;
  --primary-dark: #2F6BFF;
  --mint: #35C6FF;
  --violet: #7085FF;
  --gold: #FFB347;
  --amber: #FFB347;
  --amber-tint: rgba(255, 179, 71, 0.12);
  --danger: #FF5A5A;
  --r-s: 14px;
  --r-m: 16px;
  --r-l: 24px;
  --r-xl: 32px;
  --sh-s: 4px 4px 14px rgba(0, 0, 0, 0.38), -2px -2px 8px rgba(255, 255, 255, 0.02);
  --sh-m: 8px 8px 22px rgba(0, 0, 0, 0.45), -4px -4px 12px rgba(255, 255, 255, 0.025);
  --sh-l: 12px 12px 32px rgba(0, 0, 0, 0.52), -6px -6px 18px rgba(255, 255, 255, 0.03);
  --shadow: var(--sh-l);
  --shadow-soft: var(--sh-s);
  --inset-soft:
    inset 4px 4px 12px rgba(0, 0, 0, 0.36),
    inset -2px -2px 8px rgba(255, 255, 255, 0.025);
  --blue-gradient: linear-gradient(135deg, #35C6FF, #2F6BFF);
  --violet-gradient: linear-gradient(135deg, #7085FF, #435DDB);
  --radius: var(--r-xl);
  --t: 0.18s ease;
  --t2: 0.28s ease;
}

html {
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(53, 198, 255, 0.04) 1px, transparent 1px);
  background-size: 30px 30px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 62px;
  height: 62px;
  padding: 0 clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--border);
  background: rgba(20, 27, 41, 0.92);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}

#app,
.page {
  position: relative;
  z-index: 1;
}

.course-layout,
.course-layout > *,
.lesson-grid,
.lesson-grid > *,
.dashboard-grid,
.dashboard-grid > *,
.portfolio-dashboard,
.portfolio-dashboard > *,
.portfolio-hero,
.portfolio-hero > *,
.module-grid,
.module-card,
.sidebar {
  min-width: 0;
  max-width: 100%;
}

.brand,
h1,
h2,
h3,
h4,
strong,
legend {
  color: var(--ink);
}

.brand {
  font-weight: 950;
}

.brand-mark {
  border-color: var(--primary);
  background: #202b3d;
  box-shadow: var(--shadow-soft);
}

.brand-mark::after {
  background: var(--primary);
}

nav a,
.lead,
p,
li,
.module-card p,
.mini-card p,
.lesson-card p {
  color: var(--muted);
}

nav a:hover,
.ghost-button:hover {
  color: var(--ink);
}

.eyebrow {
  color: var(--primary);
}

.page {
  position: relative;
}

.hero-card,
.card,
.lesson-card,
.quiz-card,
.mission-card,
.mini-card,
.choice-card,
.module-card,
.artifact,
.next-action-card,
.dashboard-card,
.portfolio-score-card,
.portfolio-feature,
.completion-panel,
.portfolio-export-panel,
.strongest-artifacts,
.export-card,
.strong-artifact-card,
.sidebar,
.questionnaire,
.rubric-card,
.project-option,
.tool-token,
.privacy-lane,
.gold-panel,
.chat-column,
.sam-panel,
.tool-mentor-panel,
.prompt-input-stack,
.prompt-output-stack,
.scanner-panel,
.truth-output-panel,
.private-note-panel,
.safe-note-panel,
.project-before-panel,
.project-after-panel,
.stage2-input-panel,
.stage2-output-panel,
.stage3-brief-panel,
.stage3-proof-panel,
.stage4-risk-panel,
.stage4-trust-panel,
.stage5-signal-panel,
.stage5-proof-panel {
  border: 1px solid rgba(51, 65, 87, 0.58);
  border-radius: 32px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-card {
  border-radius: 52px;
  padding: 24px;
  transform: perspective(1000px) rotateX(2deg) rotateY(-4deg);
  transform-origin: center;
}

.lesson-card,
.quiz-card,
.mission-card {
  border-radius: 34px;
  background: #202b3d;
}

.mini-card,
.choice-card,
.artifact,
.module-card,
.dashboard-card,
.export-card,
.strong-artifact-card {
  background: #263348;
}

.module-card,
.artifact,
.dashboard-card,
.choice-card {
  border-radius: 28px;
}

.module-card.complete,
.artifact.done,
.dashboard-card.complete,
.stage-rail-item.complete,
.completion-panel {
  border-color: rgba(53, 198, 255, 0.34);
  background: linear-gradient(145deg, #25344b, #213148);
}

.module-card.endpoint {
  border-color: rgba(53, 198, 255, 0.48);
  background:
    radial-gradient(circle at 86% 8%, rgba(53, 198, 255, 0.2), transparent 12rem),
    linear-gradient(145deg, #31405a, #202b3d);
}

.module-card.locked,
.stage-rail-item.locked {
  opacity: 0.44;
}

.primary-button {
  border: 0;
  background: var(--blue-gradient);
  color: #ffffff;
  border-radius: var(--r-m);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(53, 198, 255, 0.28);
  transition: transform var(--t), box-shadow var(--t), background var(--t);
}

.primary-button:hover {
  background: linear-gradient(135deg, #4DCEFF, #3F7AFF);
  box-shadow: 0 10px 28px rgba(53, 198, 255, 0.38);
  transform: translateY(-1px);
}

.secondary-button,
.ghost-button {
  border: 1px solid rgba(53, 198, 255, 0.3);
  border-radius: var(--r-m);
  background: transparent;
  color: #35C6FF;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: none;
  transition: transform var(--t), border-color var(--t), background var(--t), color var(--t);
}

.secondary-button:hover,
.ghost-button:hover {
  border-color: rgba(53, 198, 255, 0.5);
  background: rgba(53, 198, 255, 0.08);
  color: #35C6FF;
  transform: translateY(-1px);
}

.danger-button {
  background: #2b374b;
  color: var(--danger);
  box-shadow: var(--shadow-soft);
}

.pill,
.stage-tag {
  border: 1px solid rgba(53, 198, 255, 0.2);
  background: #31405a;
  color: #dbeaff;
  box-shadow: -3px -3px 8px rgba(103, 130, 174, 0.06), 4px 5px 10px rgba(4, 9, 18, 0.22);
}

.metric {
  background: var(--blue-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.progress-ring {
  background: conic-gradient(#35c6ff var(--progress), #31405a 0);
  box-shadow: var(--shadow-soft);
}

.progress-ring span {
  background: #202b3d;
  color: var(--ink);
  box-shadow: var(--inset-soft);
}

.stage-progress {
  border-color: rgba(51, 65, 87, 0.72);
  background: #202b3d;
  box-shadow: var(--inset-soft);
}

.stage-progress span {
  background: var(--blue-gradient);
}

.sidebar-stats span,
.stage-rail-item,
.module-checks span,
.artifact-checks span,
.starter-chip,
.followup-track span,
.tool-bubble,
.prompt-slip,
.tool-shelf span,
.prompt-output-stack span,
.quality-check-grid span,
.red-flag-grid span,
.privacy-lane-grid span,
.policy-grid span,
.artifact-check-grid span,
.stage2-move-grid span,
.stage3-format-grid span,
.stage4-system-grid span,
.stage5-skill-grid span {
  border: 1px solid rgba(51, 65, 87, 0.62);
  background: #31405a;
  color: #d7e2f5;
  box-shadow: var(--shadow-soft);
  max-width: 100%;
  overflow-wrap: anywhere;
}

.module-checks span.done,
.artifact-checks span.done {
  border-color: rgba(53, 198, 255, 0.38);
  background: rgba(53, 198, 255, 0.12);
  color: #8fe1ff;
}

.comic-frame,
.comic-lesson,
.gold-comic,
.conversation-comic,
.toolbox-comic,
.prompt-comic,
.truth-comic,
.privacy-comic,
.project-comic,
.stage2-comic,
.stage3-comic,
.stage4-comic,
.stage5-comic {
  border: 1px solid rgba(51, 65, 87, 0.66);
  border-radius: 42px;
  background:
    radial-gradient(circle at 18% 16%, rgba(53, 198, 255, 0.16), transparent 18rem),
    radial-gradient(circle at 86% 20%, rgba(112, 133, 255, 0.14), transparent 20rem),
    linear-gradient(145deg, #1b2435, #202b3d);
  box-shadow: var(--shadow);
}

.comic-frame::before,
.comic-lesson::after {
  border-color: rgba(51, 65, 87, 0.5);
}

.floating-card,
.comic-panel,
.comic-caption,
.screen,
.speech,
.chat-message,
.tool-bubble,
.prompt-slip,
.truth-line,
.private-token,
.safe-note-panel span,
.project-step-card,
.stage2-card,
.stage3-card,
.stage4-card,
.stage5-card,
.sort-card,
.prompt-pair,
.tool-card,
.prompt-part-card,
.rewrite-card,
.claim-card,
.source-card,
.privacy-card,
.redaction-card,
.option-button {
  border: 1px solid rgba(51, 65, 87, 0.62);
  border-radius: 24px;
  background: #263348;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.floating-card {
  backdrop-filter: none;
}

.float-c,
.gold-ai-core,
.mentor-cutaway,
.toolbox-core,
.prompt-machine,
.truth-scanner,
.privacy-shield,
.project-pipeline,
.stage2-core,
.stage3-core,
.stage4-core,
.stage5-core {
  background: var(--blue-gradient);
  box-shadow:
    18px 20px 34px rgba(4, 9, 18, 0.36),
    -8px -8px 18px rgba(103, 130, 174, 0.1);
}

.float-c::after,
.gold-ai-core strong,
.toolbox-core strong,
.prompt-machine strong,
.truth-scanner strong,
.privacy-shield strong,
.project-pipeline strong,
.stage2-core strong,
.stage3-core strong,
.stage4-core strong,
.stage5-core strong {
  background: #202b3d;
  color: #ffffff;
  box-shadow: var(--inset-soft);
}

.line,
.speech::before,
.speech::after,
.desk-line,
.screen span {
  background: #3a4a67;
}

.line.hot,
.screen span:nth-child(1),
.spark,
.machine-light,
.orbit,
.stage2-orbit,
.stage3-orbit,
.stage4-ring,
.stage5-step {
  background: #35c6ff;
}

.line.mint,
.line.violet,
.orbit-image,
.orbit-data,
.light-two,
.light-three {
  background: #7085ff;
}

.person,
.chat-avatar,
.avatar,
.maya,
.mentor {
  background: #35c6ff;
}

.person::before,
.avatar::before {
  background: #9fb4d8;
}

.mentor-avatar {
  background: #7085ff;
}

.weak-message,
.strong-message,
.tool-token strong,
.weak-label,
.tool-card span,
.prompt-part-card span,
.rewrite-card span,
.claim-card span,
.source-card span,
.privacy-card span,
.stage2-card span,
.stage3-card span,
.stage4-card span,
.stage5-card span {
  color: #8fe1ff;
}

.ai-message,
.tool-card em,
.prompt-pair .pair-preview,
.stage2-card em,
.stage3-card em,
.stage4-card em,
.stage5-card em,
.artifact-preview.empty {
  color: var(--muted);
}

.definition-box,
.feedback,
.artifact-preview {
  border: 1px solid rgba(53, 198, 255, 0.18);
  border-left: 4px solid #35c6ff;
  border-radius: 22px;
  background: #263348;
  color: #dce7f7;
}

.prompt-pair.revealed,
.tool-card.revealed,
.sort-card.revealed,
.project-step-card.revealed,
.stage2-card.good,
.stage3-card.good,
.stage4-card.good,
.stage5-card.good,
.claim-card.safe-draft,
.privacy-card.safe,
.redaction-card.revealed,
.option-button.correct {
  border-color: rgba(53, 198, 255, 0.42);
  background: rgba(53, 198, 255, 0.12);
}

.stage2-card.conditional,
.stage3-card.conditional,
.stage4-card.conditional,
.stage5-card.conditional,
.claim-card.check,
.privacy-card.mask,
.option-button.selected {
  border-color: rgba(112, 133, 255, 0.5);
  background: rgba(112, 133, 255, 0.13);
}

.stage2-card.poor,
.stage3-card.poor,
.stage4-card.poor,
.stage5-card.poor,
.claim-card.do-not-use,
.privacy-card.block,
.option-button.wrong {
  border-color: rgba(255, 122, 138, 0.42);
  background: rgba(255, 122, 138, 0.11);
}

.mission-workspace,
.mission-workspace textarea,
.artifact-quality-item,
.quiz-card fieldset {
  border-color: rgba(51, 65, 87, 0.66);
  background: #263348;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.mission-workspace textarea::placeholder {
  color: #8996aa;
}

.mission-workspace textarea:focus {
  border-color: rgba(53, 198, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(53, 198, 255, 0.12), var(--shadow-soft);
}

.artifact-quality-item.checked,
.polish-tips.complete span {
  border-color: rgba(53, 198, 255, 0.42);
  background: rgba(53, 198, 255, 0.12);
  color: #e8f6ff;
}

.polish-tips span {
  border-color: rgba(112, 133, 255, 0.34);
  background: rgba(112, 133, 255, 0.13);
  color: #dbe4ff;
}

.can-card {
  border-color: rgba(53, 198, 255, 0.28);
}

.cannot-card {
  border-color: rgba(255, 122, 138, 0.28);
}

.choice-card:hover,
.choice-card.selected,
.starter-chip:hover,
.prompt-pair:hover,
.tool-card:hover,
.sort-card:hover,
.stage2-card:hover,
.stage3-card:hover,
.stage4-card:hover,
.stage5-card:hover,
.project-step-card:hover {
  border-color: rgba(53, 198, 255, 0.72);
  box-shadow:
    12px 14px 24px rgba(4, 9, 18, 0.34),
    -6px -6px 14px rgba(103, 130, 174, 0.1);
}

fieldset {
  border-color: rgba(51, 65, 87, 0.66);
}

input,
textarea,
select {
  color-scheme: dark;
}

@media (max-width: 900px) {
  .hero-card {
    transform: none;
    border-radius: 42px;
  }

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-header {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }

  .page {
    width: calc(100% - 24px);
    max-width: calc(100vw - 24px);
  }

  .course-layout {
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
  }

  .course-layout > *,
  .sidebar,
  .card,
  .dashboard-grid,
  .module-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}

/* Inbox Firewall-inspired homepage layout */
.home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 96px) clamp(16px, 4vw, 48px);
  background: linear-gradient(-45deg, #0D1825, #141B29, #111A2B, #0A1220);
  background-size: 400% 400%;
  animation: home-bg-shift 14s ease infinite;
}

.home-hero::before,
.home-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(48px);
}

.home-hero::before {
  top: -18%;
  right: -4%;
  width: min(55vw, 680px);
  height: min(55vw, 680px);
  background: radial-gradient(circle, rgba(53, 198, 255, 0.22) 0%, rgba(53, 198, 255, 0.06) 45%, transparent 70%);
  animation: home-orb-a 20s ease-in-out infinite;
}

.home-hero::after {
  bottom: -12%;
  left: -4%;
  width: min(44vw, 540px);
  height: min(44vw, 540px);
  background: radial-gradient(circle, rgba(112, 133, 255, 0.18) 0%, rgba(112, 133, 255, 0.05) 45%, transparent 70%);
  animation: home-orb-b 26s ease-in-out infinite;
}

.learning-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, rgba(53, 198, 255, 0.15) 30%, rgba(53, 198, 255, 0.1) 70%, transparent 100%);
  pointer-events: none;
}

.learning-stream {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.learning-particle {
  position: absolute;
  right: -72px;
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 24px;
  border: 1px solid rgba(53, 198, 255, 0.34);
  border-radius: 999px;
  background: rgba(53, 198, 255, 0.07);
  color: rgba(190, 237, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: var(--sh-s);
  animation: learning-drift linear infinite both;
}

.learning-particle:nth-child(3n) {
  border-color: rgba(112, 133, 255, 0.35);
  background: rgba(112, 133, 255, 0.07);
  color: rgba(219, 228, 255, 0.78);
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
  max-width: 1220px;
  margin: 0 auto;
}

.home-hero-inner > * {
  min-width: 0;
}

.home-hero-text,
.home-demo-frame {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.home-demo-frame {
  transition-delay: 0.12s;
}

.home-hero-text.revealed,
.home-demo-frame.revealed {
  opacity: 1;
  transform: none;
}

.home-hero h1 {
  max-width: 620px;
  margin-bottom: 20px;
  color: var(--ink);
  font-size: clamp(2.75rem, 5.4vw, 4.7rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: 0;
}

.home-hero h1 em {
  font-style: normal;
  background: linear-gradient(130deg, #35C6FF 0%, #7085FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lede {
  max-width: 520px;
  margin: 0 0 26px;
  color: var(--ink-2);
  font-size: 1.08rem;
  line-height: 1.68;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-bottom: 26px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: home-pulse 1.8s ease-in-out infinite;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  background: #202B3D;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  box-shadow: var(--sh-s);
}

.home-questionnaire {
  margin-top: 32px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 28px;
  background: #202B3D;
  box-shadow: var(--sh-m);
}

.home-questionnaire h2 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.home-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr));
  gap: 10px;
  margin-top: 16px;
}

.home-choice-grid .choice-card {
  min-height: 140px;
  border-radius: 20px;
  background: #263348;
}

.home-demo-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background: #1E2B3F;
  box-shadow: var(--sh-l);
}

.home-demo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, transparent 55%);
  pointer-events: none;
}

.window-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #182033;
}

.chrome-dots {
  display: flex;
  gap: 6px;
}

.chrome-dots-hidden {
  opacity: 0;
}

.cdot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.cdot.red {
  background: #ff5f57;
}

.cdot.amber {
  background: #febc2e;
}

.cdot.green {
  background: #28c840;
}

.chrome-title {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.home-demo-body {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  min-height: 430px;
}

.home-demo-sidebar {
  padding: 15px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.04);
}

.demo-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.home-step-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.home-step-list span {
  padding: 8px 10px;
  border-radius: var(--r-s);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.home-step-list .is-active,
.home-step-list span:hover {
  border: 1px solid rgba(53, 198, 255, 0.22);
  background: rgba(53, 198, 255, 0.12);
  color: #35C6FF;
  font-weight: 600;
  box-shadow: var(--sh-s);
}

.home-stage-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 16px;
}

.home-stage-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.demo-title {
  margin: 0 0 2px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
}

.demo-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.clean-all-btn {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border: 0;
  border-radius: var(--r-s);
  background: linear-gradient(135deg, #35C6FF, #2F6BFF);
  color: #fff;
  box-shadow: 0 3px 10px rgba(53, 198, 255, 0.28);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 11px;
}

.three-stage-wrap {
  position: relative;
  flex: 1;
  min-height: 340px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  background:
    radial-gradient(circle at 22% 12%, rgba(53, 198, 255, 0.16), transparent 15rem),
    radial-gradient(circle at 86% 20%, rgba(112, 133, 255, 0.18), transparent 16rem),
    #202B3D;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), var(--sh-s);
}

#aiJourneyCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

.three-fallback-label {
  position: absolute;
  inset: auto 18px 18px;
  display: none;
  padding: 10px 12px;
  border: 1px solid rgba(53, 198, 255, 0.2);
  border-radius: 16px;
  background: rgba(32, 43, 61, 0.86);
  color: var(--muted);
  font-size: 0.82rem;
}

.three-unavailable .three-fallback-label {
  display: block;
}

.home-proof-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 14px;
  max-width: 1220px;
  margin: 0 auto;
  padding: 36px clamp(16px, 4vw, 48px) 76px;
}

.home-proof-strip article {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 28px;
  background: #202B3D;
  box-shadow: var(--sh-m);
  padding: 22px;
}

.home-proof-strip span {
  color: #35C6FF;
  font-size: 0.78rem;
  font-weight: 800;
}

.home-proof-strip h3 {
  margin: 10px 0 8px;
}

.home-proof-strip p {
  margin: 0;
  color: var(--muted);
}

.home-section {
  max-width: 1220px;
  margin: 0 auto;
  padding: 40px clamp(16px, 4vw, 48px);
}

.home-section h2,
.home-final-cta h2 {
  max-width: 780px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.home-section p,
.home-final-cta p {
  color: var(--ink-2);
}

.home-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: center;
}

.home-info-panel,
.home-comparison,
.home-method-grid article,
.home-roadmap article,
.home-faq details {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 28px;
  background: #202B3D;
  box-shadow: var(--sh-m);
}

.home-info-panel {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.home-info-panel div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 20px;
  background: #263348;
  box-shadow: var(--sh-s);
}

.home-info-panel strong,
.home-comparison span,
.home-method-grid h3,
.home-roadmap h3,
.home-faq summary {
  color: var(--ink);
}

.home-info-panel span,
.home-roadmap span {
  color: var(--muted);
  font-size: 0.9rem;
}

.home-section-head {
  max-width: 780px;
  margin-bottom: 22px;
}

.home-method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.home-method-grid article,
.home-roadmap article {
  padding: 20px;
}

.home-method-grid article > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #35C6FF, #2F6BFF);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(53, 198, 255, 0.28);
}

.home-method-grid p,
.home-roadmap p {
  margin-bottom: 0;
}

.home-roadmap {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.roadmap-index {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 10px;
  border: 1px solid rgba(53, 198, 255, 0.22);
  border-radius: 999px;
  background: rgba(53, 198, 255, 0.1);
  color: #35C6FF;
  font-size: 0.76rem;
  font-weight: 800;
}

.home-outcomes {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: start;
}

.home-outcome-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-outcome-list span {
  flex: 1 1 230px;
  border: 1px solid rgba(53, 198, 255, 0.2);
  border-radius: 18px;
  background: #263348;
  color: #dbeaff;
  box-shadow: var(--sh-s);
  font-weight: 700;
  padding: 12px 14px;
}

.home-comparison {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.home-comparison article {
  padding: 16px;
  border-radius: 20px;
  background: #263348;
  box-shadow: var(--sh-s);
}

.home-comparison span {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
}

.home-comparison article:last-child {
  border: 1px solid rgba(53, 198, 255, 0.34);
  background: linear-gradient(145deg, #25344b, #213148);
}

.home-faq {
  display: grid;
  gap: 12px;
}

.home-faq details {
  padding: 0;
  overflow: hidden;
}

.home-faq summary {
  cursor: pointer;
  font-weight: 800;
  padding: 18px 20px;
}

.home-faq p {
  margin: 0;
  padding: 0 20px 20px;
}

.home-final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1220px;
  margin: 40px auto 86px;
  padding: 32px clamp(20px, 4vw, 44px);
  border: 1px solid rgba(53, 198, 255, 0.22);
  border-radius: 32px;
  background:
    radial-gradient(circle at 12% 18%, rgba(53, 198, 255, 0.18), transparent 20rem),
    #202B3D;
  box-shadow: var(--sh-l);
}

.home-final-cta p {
  margin-bottom: 0;
}

@keyframes home-bg-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes home-orb-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40% { transform: translate(-24px, 32px) scale(1.05); }
  70% { transform: translate(16px, -16px) scale(0.96); }
}

@keyframes home-orb-b {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(28px, -22px); }
}

@keyframes home-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(53, 198, 255, 0.65);
  }
  50% {
    transform: scale(1.5);
    box-shadow: 0 0 0 9px rgba(53, 198, 255, 0);
  }
}

@keyframes learning-drift {
  0% {
    opacity: 0;
    transform: translateX(0);
  }
  4% {
    opacity: 1;
  }
  78% {
    opacity: 0.85;
  }
  92% {
    opacity: 0;
  }
  100% {
    opacity: 0;
    transform: translateX(-115vw);
  }
}

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

  .home-demo-frame {
    min-height: 460px;
  }

  .home-proof-strip {
    grid-template-columns: 1fr;
  }

  .home-split,
  .home-outcomes {
    grid-template-columns: 1fr;
  }

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

  .home-final-cta {
    align-items: flex-start;
    flex-direction: column;
    margin-inline: 16px;
  }
}

@media (max-width: 680px) {
  .home-hero {
    padding: 44px 16px 34px;
  }

  .home-hero h1 {
    font-size: clamp(2.4rem, 12vw, 3.35rem);
  }

  .home-choice-grid,
  .home-demo-body {
    grid-template-columns: 1fr;
  }

  .home-demo-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .home-step-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .home-step-list span {
    padding: 7px 6px;
    text-align: center;
    font-size: 0.68rem;
  }

  .three-stage-wrap {
    min-height: 300px;
  }

  .home-section {
    padding: 34px 16px;
  }

  .home-method-grid,
  .home-roadmap {
    grid-template-columns: 1fr;
  }

  .home-final-cta {
    margin-top: 28px;
    margin-bottom: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero,
  .home-hero::before,
  .home-hero::after,
  .learning-particle,
  .pulse-dot {
    animation: none !important;
  }

  .home-hero-text,
  .home-demo-frame {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Rich homepage section pass */
.home-proof-strip {
  padding-top: 52px;
  padding-bottom: 96px;
}

.home-proof-strip article,
.home-method-grid article,
.home-roadmap article,
.home-faq details {
  position: relative;
  overflow: hidden;
}

.home-proof-strip article::before,
.home-method-grid article::before,
.home-roadmap article::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 0%, rgba(53, 198, 255, 0.16), transparent 13rem);
  pointer-events: none;
}

.home-section {
  padding-top: clamp(72px, 9vw, 124px);
  padding-bottom: clamp(72px, 9vw, 124px);
}

.home-section + .home-section {
  border-top: 1px solid rgba(255, 255, 255, 0.045);
}

.home-section h2,
.home-final-cta h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  line-height: 1.08;
}

.home-section p {
  max-width: 680px;
  font-size: 1.02rem;
  line-height: 1.72;
}

.home-section-feature {
  min-height: 560px;
}

.home-section-head-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.58fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  max-width: none;
}

.home-visual-stack {
  display: grid;
  gap: 16px;
}

.home-visual-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid rgba(53, 198, 255, 0.18);
  border-radius: 32px;
  background:
    radial-gradient(circle at 20% 12%, rgba(53, 198, 255, 0.2), transparent 15rem),
    radial-gradient(circle at 84% 20%, rgba(112, 133, 255, 0.18), transparent 14rem),
    #202B3D;
  box-shadow: var(--sh-l);
}

.home-visual-card canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-visual-copy {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  background: rgba(32, 43, 61, 0.86);
  box-shadow: var(--sh-s);
}

.home-visual-copy span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.home-visual-copy strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.home-visual-card-compact {
  min-height: 220px;
}

.home-roadmap-visual,
.home-outcome-visual {
  min-height: 330px;
}

.home-info-panel {
  background:
    linear-gradient(145deg, rgba(38, 51, 72, 0.98), rgba(32, 43, 61, 0.98));
}

.home-info-panel div:nth-child(2),
.method-card-b,
.home-roadmap article:nth-child(2n),
.home-comparison article:last-child {
  border-color: rgba(112, 133, 255, 0.26);
  background:
    radial-gradient(circle at 90% 10%, rgba(112, 133, 255, 0.14), transparent 9rem),
    #263348;
}

.home-info-panel div:nth-child(3),
.method-card-d,
.home-roadmap article:nth-child(5) {
  border-color: rgba(255, 179, 71, 0.22);
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 179, 71, 0.13), transparent 9rem),
    #263348;
}

.home-method-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.home-method-grid article {
  min-height: 250px;
  padding: 24px;
}

.home-method-grid h3,
.home-roadmap h3 {
  font-size: 1.12rem;
  line-height: 1.12;
}

.home-method-grid p,
.home-roadmap p,
.home-faq p {
  font-size: 0.93rem;
  line-height: 1.62;
}

.home-method-grid article > span {
  width: 42px;
  height: 42px;
  border-radius: 15px;
}

.home-roadmap-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.48fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.home-roadmap {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.home-roadmap article {
  min-height: 310px;
  padding: 22px;
}

.home-outcomes {
  align-items: center;
}

.home-outcome-visual {
  margin-top: 24px;
}

.home-outcome-list {
  gap: 12px;
}

.home-outcome-list span {
  position: relative;
  min-height: 62px;
  border-color: rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(145deg, rgba(38, 51, 72, 0.98), rgba(32, 43, 61, 0.98));
}

.home-outcome-list span:nth-child(3n + 1) {
  border-color: rgba(53, 198, 255, 0.24);
}

.home-outcome-list span:nth-child(3n + 2) {
  border-color: rgba(112, 133, 255, 0.28);
}

.home-outcome-list span:nth-child(3n) {
  border-color: rgba(255, 179, 71, 0.22);
}

.home-comparison {
  gap: 14px;
}

.home-comparison .home-visual-card {
  min-height: 230px;
}

.home-faq-section .home-section-head {
  margin-bottom: 30px;
}

.home-faq-mini {
  display: grid;
  gap: 6px;
  padding: 22px;
  border: 1px solid rgba(53, 198, 255, 0.18);
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 10%, rgba(53, 198, 255, 0.16), transparent 12rem),
    #202B3D;
  box-shadow: var(--sh-m);
}

.home-faq-mini strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.home-faq-mini span {
  color: var(--muted);
  line-height: 1.55;
}

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

.home-faq details:first-child {
  grid-row: span 2;
}

.home-faq summary {
  font-size: 1rem;
}

.home-final-cta {
  margin-top: 76px;
}

@media (max-width: 1100px) {
  .home-method-grid,
  .home-roadmap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 980px) {
  .home-section-head-row,
  .home-roadmap-layout,
  .home-faq {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .home-section {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .home-method-grid,
  .home-roadmap {
    grid-template-columns: 1fr;
  }

  .home-visual-card,
  .home-roadmap-visual,
  .home-outcome-visual {
    min-height: 240px;
  }
}

/* Homepage layout correction pass */
.home-questionnaire .home-proof-strip {
  max-width: none;
  margin: 16px 0 0;
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.home-questionnaire .home-proof-strip article {
  border-radius: 20px;
  padding: 14px;
  box-shadow: var(--sh-s);
}

.home-questionnaire .home-proof-strip h3 {
  margin: 7px 0 5px;
  font-size: 0.94rem;
}

.home-questionnaire .home-proof-strip p {
  font-size: 0.78rem;
  line-height: 1.42;
}

.home-questionnaire .home-proof-strip span {
  font-size: 0.68rem;
}

.home-section-feature {
  min-height: 0;
}

.home-visual-stack {
  align-self: stretch;
  grid-template-rows: auto 1fr;
}

.home-visual-card {
  min-height: 190px;
}

.home-visual-card-compact {
  min-height: 168px;
}

.home-visual-copy {
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 11px 13px;
  border-radius: 16px;
}

.home-visual-copy strong {
  font-size: 0.94rem;
}

.home-visual-copy span {
  font-size: 0.68rem;
}

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

.home-roadmap-visual {
  min-height: 190px;
}

.home-roadmap-visual .home-visual-copy {
  max-width: 280px;
}

.home-roadmap {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-roadmap article {
  min-height: 235px;
  padding: 22px;
}

.home-roadmap h3 {
  font-size: 1.18rem;
  line-height: 1.14;
}

.home-roadmap p {
  font-size: 0.94rem;
}

.home-outcome-visual {
  min-height: 230px;
}

.home-comparison .home-visual-card {
  min-height: 170px;
}

@media (max-width: 980px) {
  .home-questionnaire .home-proof-strip,
  .home-roadmap {
    grid-template-columns: 1fr;
  }
}

/* Homepage full revamp */
.revamp-home {
  --revamp-bg: #141B29;
  --revamp-bg-2: #171F2F;
  --revamp-card: #202B3D;
  --revamp-card-2: #263348;
  --revamp-raised: #31405A;
  --revamp-blue: #35C6FF;
  --revamp-blue-2: #2F6BFF;
  --revamp-violet: #7085FF;
  --revamp-amber: #FFB347;
  --revamp-muted: #AEB7C8;
  --revamp-line: rgba(174, 183, 200, 0.12);
  min-height: calc(100vh - 68px);
  color: #FFFFFF;
  background:
    radial-gradient(circle at 8% 6%, rgba(53, 198, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 90% 4%, rgba(112, 133, 255, 0.16), transparent 28rem),
    linear-gradient(180deg, #111827 0%, #141B29 38%, #171F2F 100%);
  overflow: hidden;
}

.revamp-home .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--revamp-blue);
}

.revamp-home h1,
.revamp-home h2,
.revamp-home h3 {
  color: #FFFFFF;
}

.revamp-home p {
  color: var(--revamp-muted);
}

.revamp-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 7vw, 92px) clamp(16px, 4vw, 48px) clamp(46px, 6vw, 76px);
}

.revamp-hero::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 44px;
  pointer-events: none;
}

.revamp-shell {
  position: relative;
  z-index: 1;
  width: min(1220px, 100%);
  margin: 0 auto;
}

.revamp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.revamp-hero-copy h1 {
  max-width: 720px;
  margin-top: 18px;
  font-size: clamp(2.65rem, 5.4vw, 5.25rem);
  line-height: 0.96;
}

.revamp-lede {
  max-width: 650px;
  margin: 24px 0 0;
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  line-height: 1.68;
}

.revamp-home .btn-row {
  margin-top: 30px;
}

.revamp-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.revamp-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 18px;
  color: var(--revamp-muted);
  background: linear-gradient(145deg, rgba(49, 64, 90, 0.72), rgba(32, 43, 61, 0.92));
  box-shadow: 8px 10px 22px rgba(6, 12, 22, 0.26), -5px -5px 14px rgba(255, 255, 255, 0.035);
}

.revamp-metrics strong {
  color: #FFFFFF;
  font-size: 1.06rem;
}

.revamp-console {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 16%, rgba(53, 198, 255, 0.14), transparent 16rem),
    linear-gradient(145deg, #263348, #1B2435);
  box-shadow:
    28px 34px 72px rgba(3, 8, 17, 0.46),
    -14px -14px 36px rgba(255, 255, 255, 0.04);
}

.revamp-console .window-chrome {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: rgba(16, 25, 39, 0.84);
}

.revamp-console-body {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 2.3vw, 28px);
}

.revamp-console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.revamp-console-top div {
  display: grid;
  gap: 4px;
}

.revamp-console-top strong {
  font-size: 1.1rem;
}

.revamp-console-top span:not(.clean-all-btn) {
  color: var(--revamp-muted);
  font-size: 0.86rem;
}

.revamp-three-panel {
  position: relative;
  min-height: 390px;
  border: 1px solid rgba(53, 198, 255, 0.13);
  border-radius: 30px;
  background:
    radial-gradient(circle at 48% 42%, rgba(53, 198, 255, 0.14), transparent 17rem),
    radial-gradient(circle at 70% 76%, rgba(255, 179, 71, 0.1), transparent 13rem),
    #172033;
  overflow: hidden;
  box-shadow: inset 8px 8px 24px rgba(0, 0, 0, 0.24), inset -8px -8px 18px rgba(255, 255, 255, 0.035);
}

.revamp-three-panel canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.revamp-console-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.revamp-console-steps span {
  min-height: 52px;
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: 17px;
  color: var(--revamp-muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
  background: linear-gradient(145deg, rgba(49, 64, 90, 0.86), rgba(32, 43, 61, 0.96));
  box-shadow: 6px 7px 16px rgba(5, 10, 19, 0.28), -4px -4px 12px rgba(255, 255, 255, 0.035);
}

.revamp-console-steps .is-active {
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--revamp-blue), var(--revamp-blue-2));
}

.revamp-track-card {
  margin-top: clamp(28px, 4vw, 46px);
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 34px;
  background:
    radial-gradient(circle at 86% 12%, rgba(112, 133, 255, 0.16), transparent 16rem),
    linear-gradient(145deg, rgba(32, 43, 61, 0.98), rgba(27, 36, 53, 0.98));
  box-shadow: 22px 26px 60px rgba(5, 10, 20, 0.36), -10px -10px 26px rgba(255, 255, 255, 0.035);
}

.revamp-track-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: 24px;
  align-items: end;
}

.revamp-track-head h2 {
  margin-top: 8px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.revamp-track-head p {
  margin: 0;
  line-height: 1.6;
}

.revamp-track-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.revamp-track-option {
  min-height: 120px;
  display: grid;
  gap: 10px;
  align-content: start;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  padding: 18px;
  color: #FFFFFF;
  text-align: left;
  background: linear-gradient(145deg, rgba(49, 64, 90, 0.92), rgba(32, 43, 61, 0.96));
  box-shadow: 9px 10px 22px rgba(5, 10, 20, 0.25), -5px -5px 14px rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.revamp-track-option strong {
  font-size: 1.04rem;
}

.revamp-track-option span {
  color: var(--revamp-muted);
  font-size: 0.91rem;
  line-height: 1.45;
}

.revamp-track-option.selected {
  border-color: rgba(53, 198, 255, 0.55);
  background:
    radial-gradient(circle at 90% 12%, rgba(255, 179, 71, 0.16), transparent 8rem),
    linear-gradient(135deg, rgba(53, 198, 255, 0.22), rgba(47, 107, 255, 0.2)),
    #263348;
}

.revamp-proof-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.revamp-proof-row article {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(20, 27, 41, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.revamp-proof-row span {
  color: var(--revamp-blue);
  font-size: 0.72rem;
  font-weight: 900;
}

.revamp-proof-row p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.48;
}

.revamp-section {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(66px, 8vw, 116px) 0;
}

.revamp-split,
.revamp-outcomes,
.revamp-difference,
.revamp-labs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.75fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
}

.revamp-section-copy h2,
.revamp-section-head h2 {
  max-width: 820px;
  margin-top: 10px;
  font-size: clamp(2rem, 4.1vw, 3.75rem);
  line-height: 1;
}

.revamp-section-copy p,
.revamp-section-head p {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: 1.02rem;
  line-height: 1.72;
}

.revamp-section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.revamp-check-grid,
.revamp-lab-board,
.revamp-outcome-list {
  display: grid;
  gap: 12px;
}

.revamp-check-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.revamp-check-grid span,
.revamp-lab-board span,
.revamp-outcome-list span {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  color: #FFFFFF;
  background: linear-gradient(145deg, rgba(49, 64, 90, 0.88), rgba(32, 43, 61, 0.96));
  box-shadow: 8px 10px 24px rgba(5, 10, 20, 0.22), -4px -4px 12px rgba(255, 255, 255, 0.03);
}

.revamp-check-grid span {
  padding: 15px 16px;
  font-weight: 850;
}

.revamp-side-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(32, 43, 61, 0.96), rgba(27, 36, 53, 0.98));
  box-shadow: 18px 24px 52px rgba(5, 10, 20, 0.34), -8px -8px 22px rgba(255, 255, 255, 0.035);
}

.revamp-visual.home-visual-card {
  position: relative;
  min-height: 230px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 42%, rgba(53, 198, 255, 0.15), transparent 13rem),
    radial-gradient(circle at 88% 20%, rgba(255, 179, 71, 0.12), transparent 11rem),
    #172033;
  overflow: hidden;
  box-shadow: inset 8px 8px 22px rgba(0, 0, 0, 0.22), inset -7px -7px 18px rgba(255, 255, 255, 0.035);
}

.revamp-visual canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

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

.revamp-side-list span {
  padding: 13px 14px;
  border-radius: 18px;
  color: var(--revamp-muted);
  background: rgba(20, 27, 41, 0.64);
}

.revamp-loop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.revamp-loop-grid article {
  min-height: 230px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 26px;
  background:
    radial-gradient(circle at 84% 12%, rgba(112, 133, 255, 0.11), transparent 10rem),
    linear-gradient(145deg, rgba(38, 51, 72, 0.96), rgba(32, 43, 61, 0.98));
  box-shadow: 13px 16px 34px rgba(5, 10, 20, 0.28), -6px -6px 18px rgba(255, 255, 255, 0.035);
}

.revamp-loop-grid article > span,
.revamp-stage-card > span {
  color: var(--revamp-blue);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.revamp-loop-grid h3,
.revamp-stage-card h3 {
  font-size: 1.22rem;
  line-height: 1.13;
}

.revamp-loop-grid p,
.revamp-stage-card p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.58;
}

.revamp-loop-visual {
  grid-column: span 2;
  min-height: 230px;
  padding: 0 !important;
  overflow: hidden;
}

.revamp-loop-visual .revamp-visual.home-visual-card {
  width: 100%;
  min-height: 230px;
  height: 100%;
  border-radius: 26px;
}

.revamp-roadmap-head {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.46fr);
  align-items: end;
  margin-bottom: 22px;
}

.revamp-roadmap-visual.home-visual-card {
  min-height: 190px;
}

.revamp-roadmap-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.revamp-stage-card {
  min-height: 250px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 12%, rgba(53, 198, 255, 0.1), transparent 10rem),
    linear-gradient(145deg, rgba(38, 51, 72, 0.98), rgba(32, 43, 61, 0.98));
  box-shadow: 12px 14px 34px rgba(5, 10, 20, 0.27), -5px -5px 16px rgba(255, 255, 255, 0.035);
}

.revamp-stage-card:nth-child(1),
.revamp-stage-card:nth-child(2),
.revamp-stage-card:nth-child(3) {
  grid-column: span 2;
}

.revamp-stage-card:nth-child(4),
.revamp-stage-card:nth-child(5) {
  grid-column: span 3;
}

.revamp-stage-card strong {
  align-self: end;
  margin-top: 8px;
  color: var(--revamp-amber);
  font-size: 0.86rem;
}

.revamp-labs {
  align-items: start;
}

.revamp-lab-board {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 18px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 100% 0%, rgba(112, 133, 255, 0.18), transparent 16rem),
    linear-gradient(145deg, #202B3D, #1B2435);
  box-shadow: 20px 24px 54px rgba(5, 10, 20, 0.34), -8px -8px 22px rgba(255, 255, 255, 0.035);
}

.revamp-lab-board span {
  min-height: 74px;
  display: flex;
  align-items: center;
  padding: 16px;
  font-weight: 850;
}

.revamp-outcomes {
  align-items: start;
}

.revamp-outcome-visual.home-visual-card {
  min-height: 260px;
  margin-top: 24px;
}

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

.revamp-outcome-list span {
  min-height: 84px;
  display: flex;
  align-items: center;
  padding: 18px;
  font-weight: 850;
  line-height: 1.35;
}

.revamp-outcome-list span:nth-child(3n + 1) {
  border-color: rgba(53, 198, 255, 0.22);
}

.revamp-outcome-list span:nth-child(3n + 2) {
  border-color: rgba(112, 133, 255, 0.24);
}

.revamp-outcome-list span:nth-child(3n) {
  border-color: rgba(255, 179, 71, 0.2);
}

.revamp-difference {
  grid-template-columns: minmax(280px, 0.46fr) minmax(0, 0.84fr) minmax(280px, 0.5fr);
}

.revamp-difference-visual.home-visual-card {
  min-height: 240px;
}

.revamp-compare {
  display: grid;
  gap: 14px;
}

.revamp-compare article {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(49, 64, 90, 0.9), rgba(32, 43, 61, 0.96));
  box-shadow: 10px 12px 28px rgba(5, 10, 20, 0.24), -5px -5px 14px rgba(255, 255, 255, 0.035);
}

.revamp-compare span {
  color: var(--revamp-blue);
  font-weight: 950;
}

.revamp-compare p {
  margin: 8px 0 0;
  line-height: 1.54;
}

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

.revamp-faq details {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  padding: 20px;
  background: linear-gradient(145deg, rgba(38, 51, 72, 0.96), rgba(32, 43, 61, 0.98));
  box-shadow: 10px 12px 28px rgba(5, 10, 20, 0.24), -5px -5px 14px rgba(255, 255, 255, 0.03);
}

.revamp-faq summary {
  color: #FFFFFF;
  cursor: pointer;
  font-weight: 900;
}

.revamp-faq p {
  margin: 12px 0 0;
  line-height: 1.62;
}

.revamp-final-cta {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  transform: translateY(-18px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 36px;
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 179, 71, 0.18), transparent 14rem),
    linear-gradient(135deg, rgba(53, 198, 255, 0.2), rgba(112, 133, 255, 0.16)),
    #202B3D;
  box-shadow: 24px 28px 66px rgba(5, 10, 20, 0.38), -10px -10px 26px rgba(255, 255, 255, 0.035);
}

.revamp-final-cta h2 {
  margin-top: 8px;
  font-size: clamp(1.85rem, 3.2vw, 3rem);
}

.revamp-final-cta p {
  margin: 12px 0 0;
}

@media (max-width: 1080px) {
  .revamp-hero-grid,
  .revamp-split,
  .revamp-outcomes,
  .revamp-labs,
  .revamp-difference,
  .revamp-roadmap-head {
    grid-template-columns: 1fr;
  }

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

  .revamp-stage-card:nth-child(n) {
    grid-column: auto;
  }

  .revamp-loop-visual {
    grid-column: auto;
  }

  .revamp-console {
    max-width: 760px;
  }
}

@media (max-width: 760px) {
  .revamp-hero {
    padding-top: 38px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .revamp-hero::before {
    inset: 8px;
    border-radius: 30px;
  }

  .revamp-track-head,
  .revamp-track-grid,
  .revamp-proof-row,
  .revamp-loop-grid,
  .revamp-roadmap-grid,
  .revamp-lab-board,
  .revamp-outcome-list,
  .revamp-faq,
  .revamp-check-grid {
    grid-template-columns: 1fr;
  }

  .revamp-shell,
  .revamp-hero-copy,
  .revamp-console,
  .revamp-track-card,
  .revamp-section-copy,
  .revamp-section-head {
    min-width: 0;
    max-width: 100%;
  }

  .revamp-hero-copy h1 {
    max-width: 100%;
    font-size: clamp(2.25rem, 11vw, 3rem);
    line-height: 1.02;
    overflow-wrap: break-word;
  }

  .revamp-lede {
    font-size: 0.98rem;
  }

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

  .revamp-metrics span {
    min-width: 0;
  }

  .revamp-metrics span:last-child {
    grid-column: 1 / -1;
  }

  .revamp-console {
    border-radius: 28px;
  }

  .revamp-console-body {
    padding: 14px;
  }

  .revamp-console-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .revamp-three-panel {
    min-height: 285px;
  }

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

  .revamp-console-steps span:last-child {
    grid-column: 1 / -1;
  }

  .revamp-final-cta {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .site-header {
    padding-inline: 10px;
    overflow: hidden;
  }

  nav {
    gap: 8px;
    font-size: 0.72rem;
  }

  .ghost-button {
    padding-inline: 8px;
  }

  .revamp-section,
  .revamp-final-cta {
    width: min(100% - 20px, 1220px);
  }

  .revamp-hero-copy h1 {
    font-size: 2.35rem;
  }

  .revamp-track-card,
  .revamp-side-card,
  .revamp-lab-board,
  .revamp-final-cta {
    border-radius: 28px;
  }

  .revamp-track-option,
  .revamp-proof-row article,
  .revamp-loop-grid article,
  .revamp-stage-card,
  .revamp-outcome-list span,
  .revamp-faq details {
    border-radius: 20px;
  }
}

/* Learning mastery systems */
.rank-panel,
.skill-map-panel,
.stage-gate-card,
.learning-lab,
.remediation-panel {
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    radial-gradient(circle at 92% 8%, rgba(53, 198, 255, 0.12), transparent 12rem),
    linear-gradient(145deg, rgba(38, 51, 72, 0.96), rgba(32, 43, 61, 0.98));
  box-shadow: var(--sh-m);
}

.rank-panel {
  display: grid;
  gap: 5px;
  margin: 14px 0;
  padding: 14px;
  border-radius: 20px;
}

.rank-panel span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.rank-panel strong {
  color: var(--ink);
  font-size: 0.94rem;
}

.skill-map-panel {
  margin: 28px 0 34px;
  padding: clamp(18px, 3vw, 28px);
  border-radius: 32px;
}

.skill-map-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.34fr);
  gap: 20px;
  align-items: end;
  margin-bottom: 18px;
}

.skill-map-header h2 {
  margin-top: 8px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.skill-map-header p {
  max-width: 700px;
  margin: 10px 0 0;
  color: var(--muted);
}

.rank-progress-card {
  display: grid;
  gap: 4px;
  justify-items: start;
  padding: 16px;
  border-radius: 22px;
  background: rgba(20, 27, 41, 0.58);
  box-shadow: var(--inset-soft);
}

.rank-progress-card span {
  color: var(--accent);
  font-size: 1.8rem;
  font-weight: 950;
  line-height: 1;
}

.rank-progress-card strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.skill-map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.skill-node {
  min-width: 0;
  min-height: 220px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  background: rgba(20, 27, 41, 0.58);
  box-shadow: var(--sh-s);
}

.skill-node.is-active {
  border-color: rgba(53, 198, 255, 0.26);
}

.skill-node.is-complete {
  border-color: rgba(255, 179, 71, 0.36);
  background:
    radial-gradient(circle at 86% 10%, rgba(255, 179, 71, 0.14), transparent 8rem),
    rgba(20, 27, 41, 0.62);
}

.skill-node-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.skill-node-top span,
.skill-node small,
.competency-chip-row span,
.score-chip,
.remediation-chip {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.skill-node-top strong {
  color: var(--accent);
}

.skill-node h3 {
  font-size: 1rem;
  line-height: 1.15;
}

.skill-node p {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.48;
}

.skill-meter {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(10, 18, 32, 0.72);
  box-shadow: var(--inset-soft);
}

.skill-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue-gradient);
}

.competency-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.competency-chip-row span,
.score-chip,
.remediation-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 9px;
  border: 1px solid rgba(53, 198, 255, 0.18);
  border-radius: 999px;
  background: rgba(20, 27, 41, 0.62);
}

.module-competencies {
  margin: 12px 0 6px;
}

.stage-gate-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.44fr) auto;
  gap: 18px;
  align-items: center;
  margin: 18px 0;
  padding: 18px;
  border-radius: 26px;
}

.stage-gate-card.is-open {
  border-color: rgba(53, 198, 255, 0.28);
}

.stage-gate-card.is-complete {
  border-color: rgba(255, 179, 71, 0.32);
}

.stage-gate-card h3 {
  margin-top: 6px;
  font-size: 1.18rem;
}

.stage-gate-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.gate-checks {
  display: grid;
  gap: 8px;
}

.gate-check {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: 14px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  background: rgba(20, 27, 41, 0.62);
}

.gate-check.done {
  color: var(--ink);
  background: linear-gradient(135deg, rgba(53, 198, 255, 0.24), rgba(47, 107, 255, 0.18));
}

.stage-gate-actions {
  justify-self: end;
}

.stage-gate-context {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.stage-gate-context article {
  display: grid;
  gap: 4px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(49, 64, 90, 0.88), rgba(32, 43, 61, 0.96));
  box-shadow: var(--sh-s);
}

.stage-gate-context strong {
  color: var(--accent);
  font-size: 1.5rem;
}

.stage-gate-context span {
  color: var(--muted);
  font-weight: 800;
}

.stage-gate-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.stage-gate-form fieldset {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 12px;
  margin: 0;
}

.stage-gate-form legend {
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  white-space: normal;
}

.stage-gate-form .option-list {
  margin: 0;
}

.learning-lab {
  display: grid;
  gap: 18px;
  margin: 24px 0;
  padding: clamp(18px, 3vw, 26px);
  border-radius: 30px;
}

.learning-lab-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.learning-lab h3 {
  margin-top: 7px;
}

.learning-lab p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

.lab-example {
  min-height: 130px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(20, 27, 41, 0.62);
  box-shadow: var(--inset-soft);
}

.lab-example span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.lab-example.strong {
  border: 1px solid rgba(53, 198, 255, 0.2);
}

.lab-example.weak {
  border: 1px solid rgba(255, 90, 90, 0.18);
}

.lab-repair-box {
  display: grid;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
}

.lab-repair-box textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 14px;
  color: var(--ink);
  background: rgba(20, 27, 41, 0.74);
  box-shadow: var(--inset-soft);
}

.remediation-panel {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 24px;
}

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

.remediation-item {
  display: grid;
  gap: 5px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(20, 27, 41, 0.62);
}

.remediation-item span {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.remediation-item p {
  margin: 0;
  color: var(--muted);
}

.score-breakdown {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.score-breakdown span {
  padding: 8px 10px;
  border-radius: 14px;
  color: var(--muted);
  background: rgba(20, 27, 41, 0.62);
}

.score-chip {
  width: fit-content;
  margin: 8px 0;
  color: var(--accent);
}

@media (max-width: 1180px) {
  .skill-map-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stage-gate-card {
    grid-template-columns: 1fr;
  }

  .stage-gate-actions {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .skill-map-header,
  .learning-lab-head,
  .lab-compare-grid,
  .stage-gate-context {
    grid-template-columns: 1fr;
  }

  .skill-map-grid {
    grid-template-columns: 1fr;
  }

  .skill-node {
    min-height: 0;
  }

  .stage-gate-card,
  .learning-lab,
  .remediation-panel {
    border-radius: 24px;
  }
}
