:root {
  --night: #030712;
  --night-2: #091120;
  --panel: #101827;
  --panel-2: #151e2f;
  --panel-3: #1b2536;
  --line: rgba(148, 163, 184, 0.17);
  --line-bright: rgba(100, 180, 255, 0.36);
  --text: #f8fafc;
  --muted: #98a5b8;
  --blue: #005aaa;
  --blue-bright: #64b4ff;
  --blue-soft: rgba(0, 90, 170, 0.13);
  --green: #23c99a;
  --green-soft: rgba(35, 201, 154, 0.12);
  --amber: #f5b942;
  --amber-soft: rgba(245, 185, 66, 0.13);
  --red: #ef6559;
  --red-soft: rgba(239, 101, 89, 0.12);
  --radius: 22px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--night);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(100, 180, 255, 0.65);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.page-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 90, 170, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 90, 170, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.glow {
  position: fixed;
  z-index: -2;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(80px);
}

.glow-one {
  width: 480px;
  height: 480px;
  top: 110px;
  left: -260px;
  background: rgba(0, 90, 170, 0.22);
}

.glow-two {
  width: 420px;
  height: 420px;
  top: 480px;
  right: -300px;
  background: rgba(35, 201, 154, 0.1);
}

.site-header,
.view,
.site-footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--text);
  text-decoration: none;
  font-size: 20px;
  font-weight: 720;
  letter-spacing: -0.025em;
}

.brand img {
  width: 80px;
  height: 36px;
  object-fit: contain;
}

.product-lockup {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 9px;
}

.product-lockup strong {
  font-size: 12px;
  letter-spacing: 0.06em;
}

.product-lockup small {
  grid-column: 2;
  color: var(--muted);
  font-size: 10px;
}

.live-dot {
  grid-row: 1 / 3;
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(35, 201, 154, 0.1), 0 0 20px rgba(35, 201, 154, 0.55);
}

.view {
  animation: view-in 360ms ease-out;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(10px); }
}

.start-view {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(430px, 0.98fr);
  align-items: center;
  gap: clamp(44px, 7vw, 96px);
  min-height: calc(100vh - 82px);
  padding: 64px 0 78px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #89a3d8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.035em;
}

.eyebrow span,
.section-label {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border: 1px solid rgba(100, 180, 255, 0.28);
  border-radius: 6px;
  color: var(--blue-bright);
  background: rgba(0, 90, 170, 0.08);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(68px, 8vw, 112px);
  line-height: 0.82;
  letter-spacing: -0.075em;
}

.hero-copy h1 span {
  color: var(--text);
}

.hero-copy h1 em {
  color: var(--blue-bright);
  font-style: normal;
}

.hero-lead {
  max-width: 610px;
  margin: 30px 0 0;
  color: #b6c0cf;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.56;
}

.challenge-facts {
  display: flex;
  gap: 0;
  margin: 32px 0 30px;
}

.challenge-facts div {
  min-width: 114px;
  padding: 0 22px;
  border-left: 1px solid var(--line);
}

.challenge-facts div:first-child {
  padding-left: 0;
  border-left: 0;
}

.challenge-facts strong,
.challenge-facts span {
  display: block;
}

.challenge-facts strong {
  color: var(--text);
  font-size: 24px;
  line-height: 1;
}

.challenge-facts span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.start-actions,
.result-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  text-decoration: none;
  font-size: 13px;
  font-weight: 760;
  transition: transform 150ms ease, border 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

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

.button-primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 12px 34px rgba(0, 90, 170, 0.25);
}

.button-primary:hover {
  background: #0874c6;
  box-shadow: 0 16px 40px rgba(0, 90, 170, 0.33);
}

.button-ghost {
  color: #cbd5e1;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.button-ghost:hover {
  border-color: rgba(100, 180, 255, 0.38);
  background: rgba(0, 90, 170, 0.08);
}

.button-large {
  min-height: 55px;
  padding-inline: 25px;
  font-size: 14px;
}

.button-full {
  width: 100%;
}

.microcopy {
  margin: 13px 0 0;
  color: #657286;
  font-size: 10px;
}

.hero-visual {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line-bright);
  border-radius: 25px;
  background: linear-gradient(150deg, rgba(27, 37, 54, 0.98), rgba(10, 17, 31, 0.97));
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.04);
  transform: perspective(1000px) rotateY(-3deg) rotateX(1deg);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(100, 180, 255, 0.4), transparent 45%, rgba(35, 201, 154, 0.16));
  filter: blur(18px);
  opacity: 0.35;
}

.visual-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: #7f8da3;
  font-size: 10px;
}

.visual-topline span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-weight: 750;
}

.visual-topline i,
.data-source i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.visual-topline b {
  color: #64748b;
  font-weight: 650;
}

.visual-task {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  align-items: center;
  gap: 15px;
  padding: 25px 0;
}

.visual-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  color: #cfe3ff;
  background: var(--blue-soft);
  font-size: 20px;
  font-weight: 800;
}

.visual-task small,
.visual-task strong,
.visual-task p {
  display: block;
  margin: 0;
}

.visual-task small {
  margin-bottom: 3px;
  color: #7f8da3;
  font-size: 10px;
}

.visual-task strong {
  font-size: 22px;
  letter-spacing: -0.03em;
}

.visual-task p {
  margin-top: 4px;
  color: #8f9db2;
  font-size: 10px;
}

.priority-badge,
.urgency {
  padding: 6px 8px;
  border: 1px solid rgba(245, 185, 66, 0.25);
  border-radius: 5px;
  color: var(--amber);
  background: var(--amber-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.workflow-preview {
  display: grid;
  grid-template-columns: 74px minmax(35px, 1fr) 82px minmax(35px, 1fr) 108px;
  align-items: center;
  padding: 24px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(3, 7, 18, 0.34);
}

.preview-step {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #526176;
  text-align: center;
}

.preview-step span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #334155;
  border-radius: 10px;
  background: #111827;
  font-size: 11px;
  font-weight: 800;
}

.preview-step small {
  min-height: 22px;
  font-size: 8px;
  line-height: 1.25;
}

.preview-step.done {
  color: var(--green);
}

.preview-step.done span {
  border-color: rgba(35, 201, 154, 0.35);
  background: var(--green-soft);
}

.preview-step.active {
  color: var(--blue-bright);
}

.preview-step.active span {
  border-color: var(--blue);
  background: var(--blue-soft);
  box-shadow: 0 0 24px rgba(0, 90, 170, 0.35);
}

.workflow-preview > i {
  height: 2px;
  margin-top: -22px;
  overflow: hidden;
  background: #273348;
}

.workflow-preview > i::after {
  content: "";
  display: block;
  width: 45%;
  height: 100%;
  background: var(--blue-bright);
  box-shadow: 0 0 12px var(--blue-bright);
  animation: route-pulse 1.7s ease-in-out infinite;
}

@keyframes route-pulse {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(330%); }
}

.visual-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 8px;
  margin-top: 14px;
}

.visual-actions span,
.visual-actions strong {
  display: grid;
  place-items: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #8390a4;
  font-size: 9px;
}

.visual-actions strong {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.sync-toast {
  position: absolute;
  right: -30px;
  bottom: -30px;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 214px;
  padding: 13px 15px;
  border: 1px solid rgba(35, 201, 154, 0.28);
  border-radius: 12px;
  background: #101b28;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
}

.sync-toast > span {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 8px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 17px;
}

.sync-toast strong,
.sync-toast small {
  display: block;
}

.sync-toast strong {
  font-size: 10px;
}

.sync-toast small {
  margin-top: 3px;
  color: #7c899c;
  font-size: 8px;
}

.rules-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(16, 24, 39, 0.86);
  animation: rules-in 220ms ease-out;
}

@keyframes rules-in {
  from { opacity: 0; transform: translateY(-8px); }
}

.rules-card > div {
  position: relative;
  padding: 24px 26px 24px 58px;
  border-left: 1px solid var(--line);
}

.rules-card > div:first-child {
  border-left: 0;
}

.rule-number {
  position: absolute;
  top: 25px;
  left: 24px;
  color: var(--blue-bright);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.rules-card h2 {
  margin: 0 0 6px;
  font-size: 14px;
}

.rules-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.challenge-view {
  padding: 36px 0 80px;
}

.challenge-hud {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 30px;
  margin-bottom: 22px;
}

.hud-progress > span {
  display: block;
  margin-bottom: 9px;
  color: #9aa7ba;
  font-size: 11px;
  font-weight: 700;
}

.progress-track {
  width: min(520px, 100%);
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: #182234;
}

.progress-track i {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--blue-bright));
  box-shadow: 0 0 14px rgba(100, 180, 255, 0.38);
  transition: width 250ms ease;
}

.hud-stat {
  min-width: 90px;
  padding-right: 28px;
  border-right: 1px solid var(--line);
  text-align: right;
}

.hud-stat small,
.hud-stat strong {
  display: block;
}

.hud-stat small {
  color: #68778b;
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hud-stat strong {
  margin-top: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 20px;
  letter-spacing: 0.03em;
}

.timer {
  position: relative;
  width: 70px;
  height: 70px;
}

.timer svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.timer circle {
  fill: none;
  stroke: #182234;
  stroke-width: 3;
}

.timer circle:last-child {
  stroke: var(--blue-bright);
  stroke-linecap: round;
  stroke-dasharray: 106.8;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 3px rgba(100, 180, 255, 0.5));
  transition: stroke-dashoffset 1s linear, stroke 200ms ease;
}

.timer > div {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.timer strong,
.timer small {
  display: block;
}

.timer strong {
  font-size: 19px;
  line-height: 1;
}

.timer small {
  margin-top: 4px;
  color: #68778b;
  font-size: 7px;
  letter-spacing: 0.1em;
}

.timer.warning circle:last-child {
  stroke: var(--amber);
}

.timer.danger circle:last-child {
  stroke: var(--red);
}

.timer.danger strong {
  color: var(--red);
}

.case-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.policy-panel {
  position: relative;
  padding: 31px 28px;
  border-right: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(0, 90, 170, 0.1), rgba(3, 7, 18, 0.25));
}

.policy-panel::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 58px;
  width: 9px;
  height: 42px;
  border-radius: 5px;
  background: var(--blue);
  box-shadow: 0 0 24px rgba(0, 90, 170, 0.6);
}

.panel-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--blue-bright);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.panel-label b {
  color: #65748a;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 600;
}

.policy-panel h2 {
  margin: 14px 0 23px;
  font-size: 23px;
  letter-spacing: -0.03em;
}

.policy-content {
  display: grid;
  gap: 10px;
}

.policy-rule {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.policy-rule:first-child {
  border-top: 0;
}

.policy-rule span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 7px;
  color: var(--blue-bright);
  background: var(--blue-soft);
  font-size: 9px;
  font-weight: 800;
}

.policy-rule p {
  margin: 2px 0 0;
  color: #b0bbca;
  font-size: 11px;
  line-height: 1.5;
}

.policy-rule strong {
  color: var(--text);
}

.policy-note {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 9px;
  margin-top: 24px;
  padding: 12px;
  border: 1px solid rgba(100, 180, 255, 0.18);
  border-radius: 9px;
  background: rgba(0, 90, 170, 0.07);
}

.policy-note > span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: var(--blue-bright);
  border: 1px solid rgba(100, 180, 255, 0.35);
  font-family: Georgia, serif;
  font-size: 10px;
  font-weight: 800;
}

.policy-note p {
  margin: 1px 0 0;
  color: #8290a4;
  font-size: 9px;
  line-height: 1.5;
}

.case-card {
  min-height: 610px;
  padding: 32px 36px 26px;
  background: linear-gradient(155deg, rgba(21, 30, 47, 0.96), rgba(12, 19, 32, 0.96));
}

.case-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.case-type {
  display: block;
  margin-bottom: 8px;
  color: var(--blue-bright);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-header h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.case-data {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(3, 7, 18, 0.25);
}

.data-cell {
  min-width: 0;
  padding: 15px 16px;
  border-left: 1px solid var(--line);
}

.data-cell:first-child {
  border-left: 0;
}

.data-cell small,
.data-cell strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-cell small {
  margin-bottom: 6px;
  color: #64748b;
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.data-cell strong {
  color: #d5dce6;
  font-size: 11px;
  font-weight: 700;
}

.data-cell.warn strong {
  color: var(--amber);
}

.data-cell.good strong {
  color: var(--green);
}

.decision-prompt {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 13px;
  margin: 24px 0 17px;
}

.prompt-icon {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 9px;
  color: var(--blue-bright);
  border: 1px solid rgba(100, 180, 255, 0.28);
  background: var(--blue-soft);
  font-size: 15px;
  font-weight: 800;
}

.decision-prompt small,
.decision-prompt strong {
  display: block;
}

.decision-prompt small {
  margin-bottom: 3px;
  color: #66758a;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.decision-prompt strong {
  font-size: 14px;
}

.answer-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.answer-button {
  position: relative;
  min-height: 112px;
  padding: 17px 15px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #c4ceda;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  text-align: left;
  transition: transform 150ms ease, border 150ms ease, background 150ms ease;
}

.answer-button:hover:not(:disabled) {
  z-index: 1;
  border-color: rgba(100, 180, 255, 0.45);
  background: rgba(0, 90, 170, 0.08);
  transform: translateY(-3px);
}

.answer-button:disabled {
  cursor: default;
}

.answer-button .answer-key {
  display: block;
  margin-bottom: 13px;
  color: var(--blue-bright);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 800;
}

.answer-button .answer-text {
  display: block;
  padding-right: 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.42;
}

.answer-button .answer-state {
  position: absolute;
  top: 14px;
  right: 14px;
  color: transparent;
  font-size: 14px;
  font-weight: 900;
}

.answer-button.correct {
  border-color: rgba(35, 201, 154, 0.48);
  color: #baf4df;
  background: var(--green-soft);
}

.answer-button.correct .answer-key,
.answer-button.correct .answer-state {
  color: var(--green);
}

.answer-button.incorrect {
  border-color: rgba(239, 101, 89, 0.43);
  color: #ffc7c1;
  background: var(--red-soft);
}

.answer-button.incorrect .answer-key,
.answer-button.incorrect .answer-state {
  color: var(--red);
}

.answer-button.dimmed {
  opacity: 0.45;
}

.feedback {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 13px;
  margin-top: 16px;
  padding: 14px 15px;
  border: 1px solid rgba(100, 180, 255, 0.18);
  border-radius: 11px;
  background: rgba(0, 90, 170, 0.07);
  animation: feedback-in 200ms ease-out;
}

@keyframes feedback-in {
  from { opacity: 0; transform: translateY(6px); }
}

.feedback-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}

.feedback.correct {
  border-color: rgba(35, 201, 154, 0.22);
  background: rgba(35, 201, 154, 0.07);
}

.feedback.correct .feedback-icon {
  background: var(--green);
}

.feedback.incorrect {
  border-color: rgba(239, 101, 89, 0.22);
  background: rgba(239, 101, 89, 0.07);
}

.feedback.incorrect .feedback-icon {
  background: var(--red);
}

.feedback strong {
  display: block;
  margin-bottom: 3px;
  font-size: 12px;
}

.feedback p {
  margin: 0;
  color: #9aa7b8;
  font-size: 10px;
  line-height: 1.48;
}

.product-proof {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 9px;
}

.product-proof span {
  color: var(--blue-bright);
  font-weight: 800;
}

.product-proof b {
  color: #7c8ba1;
  font-weight: 600;
}

.case-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  margin-top: 14px;
}

.data-source {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #617087;
  font-size: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.data-source i {
  color: var(--green);
}

.route-strip {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 14px;
  padding: 15px 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(16, 24, 39, 0.75);
}

.route-label {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.route-flow {
  display: flex;
  align-items: center;
  min-width: 0;
}

.route-node {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #8290a4;
  background: #111827;
  font-size: 8px;
  white-space: nowrap;
}

.route-node.current {
  color: var(--blue-bright);
  border-color: rgba(100, 180, 255, 0.36);
  background: var(--blue-soft);
}

.route-node.done {
  color: var(--green);
  border-color: rgba(35, 201, 154, 0.26);
  background: var(--green-soft);
}

.route-connector {
  width: clamp(20px, 4vw, 62px);
  height: 1px;
  background: #2b3749;
}

.route-connector.done {
  background: var(--green);
  box-shadow: 0 0 8px rgba(35, 201, 154, 0.38);
}

.result-view {
  padding: 55px 0 90px;
}

.result-hero {
  display: grid;
  grid-template-columns: 1fr 280px;
  align-items: stretch;
  gap: 18px;
}

.result-copy,
.rank-card,
.product-story,
.lead-card,
.metric-grid > div {
  border: 1px solid var(--line);
  background: rgba(16, 24, 39, 0.92);
}

.result-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 330px;
  padding: clamp(32px, 5vw, 58px);
  border-radius: var(--radius);
}

.result-copy h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(40px, 5.5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.result-copy > p {
  max-width: 680px;
  margin: 20px 0 25px;
  color: #9eabba;
  font-size: 15px;
  line-height: 1.6;
}

.rank-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 32px 24px;
  border-color: rgba(100, 180, 255, 0.28);
  border-radius: var(--radius);
  text-align: center;
  background: linear-gradient(150deg, #172554, #0f1c37);
}

.rank-card::before {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -105px;
  top: -90px;
  border: 28px solid rgba(100, 180, 255, 0.08);
  border-radius: 50%;
}

.rank-card > span {
  color: #8fa8d5;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rank-mark {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  margin: 18px 0;
  border: 2px solid rgba(100, 180, 255, 0.6);
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 90, 170, 0.25);
  box-shadow: 0 0 0 10px rgba(0, 90, 170, 0.08), 0 0 42px rgba(0, 90, 170, 0.28);
  font-size: 56px;
  font-weight: 850;
  letter-spacing: -0.06em;
}

.rank-card > strong {
  font-size: 17px;
}

.rank-card > small {
  margin-top: 6px;
  color: #8fa0b9;
  font-size: 9px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.metric-grid > div {
  padding: 20px 22px;
  border-radius: 12px;
}

.metric-grid span,
.metric-grid strong {
  display: block;
}

.metric-grid span {
  color: #65748a;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-grid strong {
  margin-top: 8px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.product-story {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(35px, 7vw, 90px);
  margin-top: 18px;
  padding: clamp(34px, 6vw, 66px);
  border-radius: var(--radius);
}

.story-copy h2,
.lead-intro h2 {
  margin: 17px 0 15px;
  font-size: clamp(28px, 3.6vw, 43px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.story-copy p,
.lead-intro p {
  margin: 0;
  color: #95a2b4;
  font-size: 13px;
  line-height: 1.7;
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.feature-list > div {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(3, 7, 18, 0.25);
}

.feature-list > div > span {
  color: var(--blue-bright);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
}

.feature-list p {
  margin: 0;
  color: #77869a;
  font-size: 9px;
  line-height: 1.5;
}

.feature-list strong {
  display: block;
  margin-bottom: 4px;
  color: #dfe7f2;
  font-size: 11px;
}

.lead-card {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: clamp(36px, 7vw, 85px);
  margin-top: 18px;
  padding: clamp(34px, 6vw, 66px);
  border-radius: var(--radius);
}

.lead-intro ul {
  margin: 25px 0 0;
  padding: 0;
  list-style: none;
}

.lead-intro li {
  position: relative;
  margin: 11px 0;
  padding-left: 24px;
  color: #a6b1c0;
  font-size: 11px;
}

.lead-intro li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 900;
}

.bonus-notice {
  margin-top: 28px;
  padding: 18px 19px;
  border: 1px solid rgba(245, 185, 66, 0.3);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(245, 185, 66, 0.12), rgba(0, 90, 170, 0.08));
}

.bonus-notice span,
.bonus-notice strong {
  display: block;
}

.bonus-notice span {
  margin-bottom: 8px;
  color: var(--amber);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bonus-notice strong {
  max-width: 520px;
  color: #fff2cc;
  font-size: 15px;
  line-height: 1.35;
}

.bonus-notice p {
  margin: 8px 0 0;
  color: #8c98aa;
  font-size: 9px;
  line-height: 1.5;
}

.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  border: 1px solid rgba(100, 180, 255, 0.28);
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(23, 37, 84, 0.72), rgba(9, 17, 32, 0.96));
  text-align: center;
}

.qr-kicker {
  margin-bottom: 16px;
  color: var(--blue-bright);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.qr-image-link {
  display: block;
  width: min(270px, 100%);
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.32), 0 0 34px rgba(100, 180, 255, 0.15);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.qr-image-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.38), 0 0 42px rgba(100, 180, 255, 0.23);
}

.qr-image-link img {
  display: block;
  width: 100%;
  height: auto;
}

.qr-card h3 {
  margin: 21px 0 7px;
  font-size: 20px;
  letter-spacing: -0.025em;
}

.qr-card > p {
  max-width: 330px;
  margin: 0 0 18px;
  color: #91a0b5;
  font-size: 10px;
  line-height: 1.5;
}

.qr-card > small {
  margin-top: 12px;
  color: #65748b;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
}

.site-footer a {
  color: inherit;
}

.site-footer a:hover {
  color: var(--blue-bright);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
}

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

.footer-brand img {
  width: 64px;
  height: 28px;
  object-fit: contain;
}

.footer-brand p,
.footer-meta {
  margin: 0;
  color: #566478;
  font-size: 8px;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 22px;
}

.footer-meta nav {
  display: flex;
  gap: 14px;
}

.footer-meta a {
  text-decoration: none;
}

noscript {
  display: block;
  padding: 20px;
  color: var(--red);
  text-align: center;
}

@media (max-width: 980px) {
  .start-view {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 50px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-visual {
    width: min(620px, 100%);
    margin: 0 auto;
  }

  .rules-card {
    margin-top: 25px;
  }

  .case-shell {
    grid-template-columns: 1fr;
  }

  .policy-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .policy-panel::after {
    top: auto;
    right: auto;
    bottom: -5px;
    left: 42px;
    width: 42px;
    height: 9px;
  }

  .policy-content {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .policy-rule,
  .policy-rule:first-child {
    border-top: 0;
    border-left: 1px solid var(--line);
    padding: 0 0 0 14px;
  }

  .policy-rule:first-child {
    border-left: 0;
    padding-left: 0;
  }

  .policy-note {
    max-width: 540px;
  }

  .result-hero,
  .product-story,
  .lead-card {
    grid-template-columns: 1fr;
  }

  .rank-card {
    min-height: 280px;
  }
}

@media (max-width: 700px) {
  .site-header,
  .view,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    min-height: 70px;
  }

  .brand img {
    width: 68px;
  }

  .brand > span,
  .product-lockup small {
    display: none;
  }

  .product-lockup {
    grid-template-columns: auto auto;
  }

  .product-lockup strong {
    font-size: 10px;
  }

  .start-view {
    gap: 45px;
    padding: 40px 0 60px;
  }

  .hero-copy h1 {
    font-size: clamp(60px, 21vw, 88px);
  }

  .hero-lead {
    font-size: 16px;
  }

  .challenge-facts div {
    min-width: 0;
    flex: 1;
    padding: 0 12px;
  }

  .start-actions,
  .result-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-visual {
    padding: 16px;
    transform: none;
  }

  .workflow-preview {
    grid-template-columns: 64px minmax(15px, 1fr) 70px minmax(15px, 1fr) 88px;
    padding-inline: 9px;
  }

  .sync-toast {
    right: -6px;
    bottom: -32px;
  }

  .rules-card {
    grid-template-columns: 1fr;
  }

  .rules-card > div,
  .rules-card > div:first-child {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .rules-card > div:first-child {
    border-top: 0;
  }

  .challenge-view {
    padding-top: 24px;
  }

  .challenge-hud {
    grid-template-columns: 1fr auto;
    gap: 14px;
  }

  .hud-progress {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .hud-stat {
    grid-row: 1;
    grid-column: 1;
    justify-self: start;
    padding: 0;
    border-right: 0;
    text-align: left;
  }

  .timer {
    grid-row: 1;
    grid-column: 2;
  }

  .policy-panel,
  .case-card {
    padding: 24px 18px;
  }

  .policy-content {
    grid-template-columns: 1fr;
  }

  .policy-rule,
  .policy-rule:first-child {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding: 10px 0 0;
  }

  .policy-rule:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .case-card {
    min-height: 0;
  }

  .case-data {
    grid-template-columns: 1fr 1fr;
  }

  .data-cell:nth-child(3) {
    border-left: 0;
  }

  .data-cell:nth-child(n+3) {
    border-top: 1px solid var(--line);
  }

  .answer-list {
    grid-template-columns: 1fr;
  }

  .answer-button {
    min-height: 76px;
    padding: 13px 14px;
  }

  .answer-button .answer-key {
    margin-bottom: 8px;
  }

  .route-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    overflow-x: auto;
  }

  .route-flow {
    min-width: max-content;
  }

  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .site-footer,
  .footer-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-meta {
    gap: 10px;
  }

  .footer-meta nav {
    flex-wrap: wrap;
  }
}

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