:root {
  color-scheme: dark;
  --ink: #ecf2f6;
  --muted: #91a3b1;
  --faint: #607483;
  --navy: #061521;
  --navy-2: #091e2d;
  --panel: rgba(12, 34, 49, .78);
  --line: rgba(151, 177, 193, .16);
  --line-strong: rgba(151, 177, 193, .28);
  --green: #5bc7a2;
  --green-soft: rgba(91, 199, 162, .12);
  --gold: #d7b875;
  --gold-soft: rgba(215, 184, 117, .11);
  --red: #df7d78;
  --radius: 14px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .24);
}

* { box-sizing: border-box; }
.price-unit { white-space: nowrap; font-variant-numeric: tabular-nums; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% -10%, rgba(64, 116, 142, .18), transparent 35%),
    linear-gradient(180deg, #071827 0%, var(--navy) 48%, #05111b 100%);
  color: var(--ink);
  font: 15px/1.6 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  background-image: linear-gradient(rgba(255,255,255,.7) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.7) 1px, transparent 1px);
  background-size: 48px 48px;
}

.shell { width: min(1320px, calc(100% - 64px)); margin: 0 auto; }
.masthead {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(215, 184, 117, .55);
  color: var(--gold);
  font: 600 12px/1 Georgia, serif;
  letter-spacing: .12em;
}
.brand strong { display: block; font: 600 15px/1.2 Georgia, "Times New Roman", serif; letter-spacing: .02em; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.mast-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(91,199,162,.1); }
.divider { width: 1px; height: 14px; background: var(--line-strong); }

main { padding: 72px 0 64px; }
.hero { display: grid; grid-template-columns: 1fr auto; gap: 96px; align-items: end; padding: 0 14px 58px; }
.eyebrow { margin: 0 0 16px; color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .18em; }
h1 { margin: 0; max-width: 720px; font: 500 clamp(36px, 5vw, 56px)/1.04 Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
.hero-meta { margin: 18px 0 0; color: var(--muted); font-size: 14px; }
.hero-side { min-width: 210px; padding: 20px 0 3px 24px; border-left: 1px solid var(--line-strong); }
.status-label { display: block; color: var(--faint); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hero-side strong { display: block; margin: 7px 0 2px; color: var(--green); font: 500 24px/1.25 Georgia, serif; }
.hero-side > span:last-child { color: var(--muted); font-size: 12px; }

.section-nav { display: flex; gap: 28px; width: fit-content; margin: -12px 14px 48px; padding: 0; }
.section-nav a { padding: 7px 12px; border-radius: 999px; color: var(--muted); font-size: 11px; font-weight: 650; text-decoration: none; transition: background 150ms ease, color 150ms ease; }
.section-nav a { padding: 0 0 5px; border-radius: 0; border-bottom: 1px solid transparent; }
.section-nav a:hover, .section-nav a:focus-visible { color: var(--ink); border-color: var(--gold); outline: none; }

.decision-panel { margin-bottom: 88px; padding: 46px 52px 38px; border: 1px solid rgba(91,199,162,.28); border-radius: calc(var(--radius) + 2px); background: linear-gradient(135deg, rgba(91,199,162,.08), rgba(9,30,45,.88) 52%); box-shadow: var(--shadow); }
.decision-heading { display: block; margin-bottom: 38px; }
.decision-heading .eyebrow { grid-column: 1 / -1; margin-bottom: 8px; }
.decision-heading h2, .section-intro h2 { margin: 0; font: 600 clamp(30px, 3vw, 42px)/1.05 Georgia, serif; letter-spacing: -.025em; }
.decision-heading > p:last-child, .section-intro > p { max-width: 740px; margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.decision-grid { display: block; }
.decision-main { padding: 0 0 34px; border-bottom: 1px solid var(--line); }
.decision-gates { display: block; padding-top: 32px; }
.decision-gates article { min-height: auto; padding: 26px 0 30px; }
.decision-gates article + article { padding: 30px 0 0; border-top: 1px solid var(--line); border-left: 0; }
.decision-label { display: block; color: var(--faint); font-size: 10px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.decision-grid strong, .decision-value { display: block; margin: 9px 0 8px; color: var(--ink); font: 500 20px/1.45 Georgia, serif; }
.decision-main > strong { color: var(--green); font-size: 27px; }
.decision-grid p { max-width: 580px; margin: 0; color: #b4c2cb; font-size: 14px; line-height: 1.65; }
.scenario-wrap, .analysis-section, .learn-section { scroll-margin-top: 72px; }
.section-intro { display: block; margin: 0 14px 34px; padding-bottom: 20px; border-bottom: 1px solid var(--line-strong); }
.section-intro .eyebrow { margin-bottom: 7px; }

.scenario-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; margin-bottom: 96px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); box-shadow: var(--shadow); }
.scenario { position: relative; min-height: 230px; padding: 38px 44px 40px; background: rgba(8, 27, 40, .96); }
.scenario > div:first-child { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.scenario-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.secondary .scenario-dot { background: var(--gold); }
.scenario > strong { display: block; margin: 14px 0 14px; color: #f4f8fa; font: 600 52px/.95 Georgia, serif; letter-spacing: -.035em; }
.track { height: 3px; overflow: hidden; margin-bottom: 15px; border-radius: 4px; background: rgba(255,255,255,.08); }
.track span { display: block; width: 0; height: 100%; background: var(--green); transition: width 240ms cubic-bezier(.23,1,.32,1); }
.secondary .track span { background: var(--gold); }
.scenario-copy { max-width: 570px; margin: 0; color: #c2cdd4; font-size: 15px; line-height: 1.7; }
.step-list { margin: 0; padding: 0; }
.step-list > div { padding: 12px 0; border-top: 1px solid rgba(151,177,193,.13); }
.step-list > div:first-child { padding-top: 0; border-top: 0; }
.step-row { display: grid; grid-template-columns: minmax(190px, 42%) 1fr; gap: 28px; align-items: baseline; }
.step-row-full { grid-template-columns: 1fr; }
.step-action { color: #aebdc7; }
.step-values { color: #f2f5f7; font-weight: 600; font-variant-numeric: tabular-nums; }
.decision-value .step-list { max-width: 560px; }
.decision-value .step-list > div { font-size: 17px; }
.decision-value .decision-sequence { max-width: none; margin-top: 18px; }
.decision-value .decision-sequence > div { padding: 17px 0; font-size: 21px; line-height: 1.45; }

.report-grid { display: grid; grid-template-columns: 1fr; gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(8,27,40,.72); box-shadow: var(--shadow); }
.card, .card.wide { grid-column: 1; display: block; padding: 52px 58px 58px; border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: blur(10px); }
.card + .card { border-top: 1px solid var(--line-strong); }
.card h2 { margin: 0 0 30px; color: #f0f4f6; font: 600 clamp(25px, 2.5vw, 34px)/1.08 Georgia, serif; letter-spacing: -.015em; text-transform: uppercase; }
.card h2::after { content: ""; display: block; width: 54px; height: 2px; margin-top: 18px; background: var(--gold); }
.analysis-lines { margin: 0; padding: 0; }
.analysis-line { padding: 18px 0; border-top: 1px solid rgba(151,177,193,.13); color: #d2dbe1; font-size: 16px; line-height: 1.78; }
.analysis-line:first-child { padding-top: 0; border-top: 0; }
.key-level-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.level-group { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(6,21,33,.42); }
.level-group h3 { margin: 0; padding: 20px 24px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.level-stack > div { padding: 15px 24px; color: #f2f5f7; font: 600 19px/1.35 Georgia, serif; font-variant-numeric: tabular-nums; }
.level-stack > div + div { border-top: 1px solid rgba(151,177,193,.13); }
.level-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 58px; }
.level-row small { color: #8194a2; font: 700 12px/1 Inter, sans-serif; letter-spacing: .07em; }
.level-row.importance-normal { color: #aab8c1; font-size: 17px; font-weight: 500; }
.level-row.importance-dominant { min-height: 72px; color: #fff; font-size: 31px; font-weight: 700; }
.card strong { color: #f3f6f8; font-weight: 650; }
.card p { margin: 0; color: #d2dbe1; font-size: 16px; line-height: 1.78; }
.card p + p { margin-top: 12px; }
.card.conclusion { background: linear-gradient(135deg, rgba(91,199,162,.09), transparent 58%); }
.card.pattern-radar { background: linear-gradient(135deg, rgba(215,184,117,.055), transparent 58%); }
.card.pattern-radar { border-top: 1px solid var(--line-strong); }

.elliott-routes { display: grid; gap: 24px; }
.elliott-route { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(6, 21, 33, .42); }
.elliott-route header { display: grid; grid-template-columns: 130px 1fr; gap: 24px; align-items: baseline; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.elliott-route header span { color: var(--green); font-size: 11px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.elliott-route.alternative header span { color: var(--gold); }
.elliott-route header strong { color: #f3f6f8; font: 500 20px/1.35 Georgia, serif; }
.route-row { display: grid; grid-template-columns: 180px 1fr; gap: 32px; padding: 20px 26px; }
.route-row + .route-row { border-top: 1px solid rgba(151,177,193,.13); }
.route-row > span { padding-top: 2px; color: var(--faint); font-size: 10px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.route-row p { margin: 0; color: #d2dbe1; font-size: 16px; line-height: 1.7; }
.route-row p + p { margin-top: 8px; }
.empty { grid-column: 1 / -1; padding: 80px; text-align: center; color: var(--muted); }

.learn-section { margin-top: 76px; padding-top: 52px; border-top: 1px solid var(--line); }
.glossary-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.glossary-grid article { padding: 24px 26px; border: 1px solid var(--line); border-radius: 11px; background: rgba(9,30,45,.55); }
.glossary-grid strong { color: var(--gold); font-size: 13px; }
.glossary-grid p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

footer { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 44px; padding: 30px 14px 0; border-top: 1px solid var(--line); color: var(--faint); font-size: 11px; }
footer strong, footer span { display: block; }
footer strong { color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
footer p { margin: 0; text-align: right; }

@media (max-width: 760px) {
  .shell { width: calc(100% - 24px); }
  .masthead { height: 72px; }
  .mast-meta > span:not(.live-dot):not(:last-child) { display: none; }
  .divider { display: none; }
  main { padding-top: 42px; }
  .hero { grid-template-columns: 1fr; gap: 26px; }
  .hero-side { padding: 16px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .section-nav { top: 8px; width: 100%; overflow-x: auto; justify-content: space-between; margin-bottom: 24px; }
  .section-nav a { white-space: nowrap; padding-inline: 9px; }
  .decision-panel { padding: 26px 22px; margin-bottom: 52px; }
  .decision-heading, .section-intro { grid-template-columns: 1fr; gap: 9px; }
  .decision-grid { grid-template-columns: 1fr; gap: 28px; }
  .decision-main { padding: 0 0 28px; border-right: 0; border-bottom: 1px solid var(--line); }
  .decision-gates { grid-template-columns: 1fr; }
  .decision-gates article { min-height: auto; padding: 0 0 22px; }
  .decision-gates article + article { padding: 22px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .decision-value .decision-sequence > div { font-size: 18px; }
  .step-row { grid-template-columns: minmax(118px, 40%) 1fr; gap: 14px; }
  .scenario-strip { grid-template-columns: 1fr; }
  .scenario { min-height: 165px; }
  .card, .card.wide { display: block; padding: 30px 24px 34px; }
  .card h2 { margin-bottom: 24px; }
  .elliott-route header, .route-row { grid-template-columns: 1fr; gap: 8px; }
  .key-level-groups { grid-template-columns: 1fr; }
  .elliott-route header { padding: 20px; }
  .route-row { padding: 18px 20px; }
  .glossary-grid { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; gap: 12px; }
  footer p { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .track span { transition: none; }
}

@media (prefers-contrast: more) {
  :root { --panel: #0b2536; --line: rgba(220,235,244,.38); --muted: #bdcbd4; }
  .section-nav { background: #061521; }
}
