:root {
  --navy: #06152d;
  --navy-2: #0b2348;
  --blue: #0084ff;
  --blue-hot: #22c7ff;
  --gold: #ffc21a;
  --gold-2: #ffdf7c;
  --green: #58f35d;
  --red: #ff5d55;
  --ink: #f7fbff;
  --muted: #b5c4d8;
  --line: rgba(94, 188, 255, 0.24);
  --glass: rgba(5, 18, 40, 0.72);
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.42);
  font-family: Inter, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 4%, rgba(0, 132, 255, 0.28), transparent 26rem),
    radial-gradient(circle at 90% 14%, rgba(255, 194, 26, 0.18), transparent 23rem),
    linear-gradient(180deg, #06152d 0%, #071428 48%, #0b1325 100%);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 72%);
  content: "";
}

#market-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 0.28;
  pointer-events: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
  backdrop-filter: blur(18px);
}

.brand,
nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  color: var(--ink);
  font-weight: 900;
}

.brand span:last-child {
  display: grid;
  gap: 2px;
}

.brand small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--navy);
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(255, 194, 26, 0.32);
  font-size: 1.1rem;
  letter-spacing: 0;
}

nav {
  gap: 22px;
}

nav a {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: 42px;
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 74px);
  margin: 0 auto;
  padding: 58px 0 38px;
}

.hero-copy {
  position: relative;
  max-width: 820px;
  text-align: center;
}

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

h1,
h2 {
  font-family: Newsreader, Georgia, serif;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  color: var(--ink);
  font-size: clamp(3.2rem, 6vw, 6.4rem);
  font-weight: 800;
  line-height: 0.92;
  text-shadow: 0 8px 34px rgba(0, 0, 0, 0.28);
}

h1 span {
  display: block;
  color: var(--gold);
  font-style: italic;
}

.hero-note {
  max-width: 670px;
  margin-inline: auto;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.4vw, 1.22rem);
  line-height: 1.75;
}

.hero-actions,
.button {
  display: flex;
  align-items: center;
}

.hero-actions {
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  min-height: 54px;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: 800 0.9rem/1 Inter, system-ui, sans-serif;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

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

.button.primary {
  color: var(--navy);
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 20px 46px rgba(255, 194, 26, 0.28);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
}

.portrait-card {
  position: relative;
  min-height: 640px;
  padding: 16px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0, 132, 255, 0.22), rgba(255, 194, 26, 0.08)),
    var(--glass);
  border: 1px solid rgba(94, 188, 255, 0.52);
  border-radius: 8px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 0 32px rgba(0, 132, 255, 0.22),
    var(--shadow);
  transform-style: preserve-3d;
}

.portrait-glow {
  position: absolute;
  inset: -30%;
  background: conic-gradient(from 180deg, transparent, rgba(34, 199, 255, 0.3), rgba(255, 194, 26, 0.28), transparent);
  animation: spin 8s linear infinite;
}

.portrait-card img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 570px;
  object-fit: cover;
  object-position: 50% 16%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  display: block;
}

.class-strip {
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 2;
  display: grid;
  gap: 4px;
  min-width: 94px;
  padding: 12px 14px;
  color: var(--gold);
  background: rgba(6, 21, 45, 0.72);
  border: 1px solid rgba(255, 194, 26, 0.36);
  border-radius: 6px;
  text-align: center;
  text-transform: uppercase;
}

.class-strip span {
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 900;
}

.class-strip strong {
  font-size: 1.5rem;
  line-height: 1;
  white-space: nowrap;
}

.portrait-card p {
  position: relative;
  z-index: 2;
  margin: 12px 0 0;
  color: var(--gold);
  font-family: Newsreader, Georgia, serif;
  font-size: 2rem;
  font-weight: 800;
  text-align: right;
}

.ticker {
  overflow: hidden;
  border-block: 1px solid rgba(94, 188, 255, 0.18);
  background: rgba(2, 10, 24, 0.7);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 28s linear infinite;
}

.ticker span {
  padding: 14px 28px;
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.economics-section,
.details-band,
.rsvp-section,
footer {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.economics-section {
  padding: 82px 0 34px;
}

#economics,
#details,
#rsvp {
  scroll-margin-top: 96px;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: end;
  max-width: 780px;
  margin-bottom: 28px;
  margin-inline: auto;
  text-align: center;
}

h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(2.7rem, 5.8vw, 5.6rem);
  line-height: 0.94;
}

.section-heading p,
.rsvp-section p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.7;
}

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

.forecast-card,
.detail-card,
.rsvp-section {
  background: linear-gradient(180deg, rgba(8, 28, 58, 0.84), rgba(4, 16, 35, 0.82));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.24);
}

.forecast-card {
  position: relative;
  text-align: center;
  min-height: 304px;
  padding: 24px;
  overflow: hidden;
}

.forecast-card::after {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 86% 18%, rgba(255, 194, 26, 0.16), transparent 26%);
  content: "";
  pointer-events: none;
}

.forecast-card p,
.detail-card p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.forecast-card h3 {
  margin-bottom: 14px;
  color: var(--green);
  font-size: clamp(2.05rem, 3.1vw, 3rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.regret-card h3 {
  color: var(--red);
}

.shift-card h3 {
  margin-bottom: 8px;
  color: var(--blue-hot);
}

.shift-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-bottom: 10px;
  padding: 7px 10px;
  color: var(--gold);
  background: rgba(255, 194, 26, 0.08);
  border: 1px solid rgba(255, 194, 26, 0.22);
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mini-chart,
.supply-chart {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
}

.chart-grid {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1;
}

.chart-line,
.chart-arrow {
  fill: none;
  stroke: var(--green);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 7;
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  animation: drawLine 1.7s ease forwards;
}

.regret-chart .chart-line {
  stroke: var(--red);
}

.axis {
  fill: none;
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 2;
}

.demand,
.supply,
.shift-arrow {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}

.demand {
  stroke: var(--blue);
}

.supply.old {
  stroke: rgba(0, 132, 255, 0.7);
}

.supply.new,
.shift-arrow {
  stroke: var(--gold);
}

.eq-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.32);
  stroke-dasharray: 5 6;
  stroke-width: 2;
}

.eq-dot.old-dot {
  fill: var(--blue);
}

.eq-dot.new-dot {
  fill: var(--gold);
}

.supply-chart text {
  fill: var(--muted);
  font: 700 14px Inter, system-ui, sans-serif;
}

.supply-chart .curve-label {
  fill: var(--gold);
  font-weight: 900;
}

.supply-chart .axis-label,
.supply-chart .quantity-label {
  fill: rgba(247, 251, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.card-foot {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.details-band {
  padding: 78px 0 34px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.detail-card {
  text-align: center;
  min-height: 230px;
  padding: 28px;
}

.detail-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin: 0 auto 34px;
  color: var(--gold);
  background: rgba(255, 194, 26, 0.1);
  border: 1px solid rgba(255, 194, 26, 0.18);
  border-radius: 8px;
}

.detail-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.detail-card h3 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.05;
}

.rsvp-section {
  display: block;
  margin-top: 58px;
  padding: 24px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 34px rgba(0, 132, 255, 0.14),
    var(--shadow);
}

.rsvp-note {
  margin-top: 24px;
  padding: 16px;
  color: var(--ink);
  background: rgba(0, 132, 255, 0.12);
  border: 1px solid rgba(94, 188, 255, 0.22);
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.5;
}

.rsvp-embed {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.rsvp-embed iframe {
  display: block;
  width: 100%;
  min-height: 1156px;
  border: 0;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 34px 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
}

footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

.hero-enter {
  animation: heroEnter 800ms ease both;
}

.portrait-card.hero-enter {
  animation-delay: 120ms;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes heroEnter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 920px) {
  .site-header,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .hero,
  .section-heading,
  .rsvp-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 38px;
  }

  h1 {
    font-size: clamp(3rem, 12vw, 5.6rem);
  }

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

  .portrait-card img {
    height: 470px;
    object-position: 50% 15%;
  }

  .forecast-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .rsvp-section {
    padding: 32px 20px;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding-top: 12px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  nav a {
    font-size: 0.72rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .portrait-card img {
    height: 330px;
  }

  .class-strip {
    min-width: 78px;
    padding: 9px 8px;
  }

  .class-strip strong {
    font-size: 1.08rem;
  }

  .ticker span {
    padding-inline: 18px;
  }

  .forecast-card,
  .detail-card {
    padding: 20px;
  }
}
