:root {
  --bg: #050505;
  --bg-soft: #0a0d0a;
  --panel: rgba(10, 12, 10, 0.62);
  --panel-strong: rgba(9, 10, 9, 0.82);
  --border: rgba(255, 255, 255, 0.12);
  --gold: #ddb66a;
  --gold-bright: #ffe9a3;
  --green: #79ff8d;
  --green-deep: #39c56c;
  --text: #f5efe4;
  --muted: rgba(245, 239, 228, 0.72);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --radius: 28px;
  --radius-lg: 40px;
  --max: 1240px;
  --header: 86px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(84, 255, 144, 0.08), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(255, 210, 115, 0.12), transparent 26%),
    linear-gradient(180deg, #020302, #070807 40%, #050505);
  font-family: "SF Pro Display", "Segoe UI", sans-serif;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a,
button {
  color: inherit;
}

a {
  text-decoration: none;
}

button {
  font: inherit;
}

.starfield,
.mouse-glow,
.orb,
.veil,
.section-bg {
  pointer-events: none;
}

.starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
}

.mouse-glow {
  position: fixed;
  width: 34rem;
  height: 34rem;
  left: 0;
  top: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(121, 255, 141, 0.16), rgba(221, 182, 106, 0.08), transparent 68%);
  filter: blur(12px);
  transform: translate3d(-50%, -50%, 0);
  z-index: -2;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  z-index: -2;
}

.orb--gold {
  width: 20rem;
  height: 20rem;
  top: 14%;
  right: -6rem;
  background: rgba(221, 182, 106, 0.22);
  animation: drift 16s ease-in-out infinite;
}

.orb--green {
  width: 18rem;
  height: 18rem;
  left: -5rem;
  bottom: 18%;
  background: rgba(61, 255, 130, 0.16);
  animation: drift 18s ease-in-out infinite reverse;
}

.site-header {
  position: sticky;
  top: 18px;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  width: min(calc(100% - 24px), var(--max));
  margin: 18px auto 0;
  padding: 0.95rem 1.15rem;
  min-height: var(--header);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(8, 10, 9, 0.58);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transition: background 180ms ease, min-height 180ms ease, transform 180ms ease;
}

.site-header.is-compact {
  min-height: 70px;
  background: rgba(7, 9, 8, 0.78);
}

.brand,
.eyebrow,
.button,
.brand__ticker {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand {
  display: grid;
  gap: 0.2rem;
}

.brand__title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 700;
}

.brand__ticker {
  color: var(--green);
  font-size: 0.72rem;
}

.site-nav,
.header-actions,
.hero-actions,
.hero-marquee,
.cta-row,
.royal-stats,
.thesis-grid,
.meme-grid {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.site-nav {
  justify-content: center;
}

.site-nav a {
  color: rgba(245, 239, 228, 0.72);
  font-size: 0.84rem;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #fff;
  text-shadow: 0 0 22px rgba(121, 255, 141, 0.42);
  outline: none;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.95rem 1.45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.2) 50%, transparent 80%);
  transform: translateX(-140%);
}

.button:hover::before,
.button:focus-visible::before {
  animation: shine 0.8s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.35);
  outline: none;
}

.button--primary {
  color: #11110d;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
}

.button--ghost {
  border-color: rgba(121, 255, 141, 0.34);
  background: rgba(9, 14, 10, 0.55);
  color: var(--green);
}

.panel {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header) + 64px) 20px 92px;
  overflow: clip;
}

.panel--large {
  min-height: 120vh;
}

.panel--compact {
  min-height: auto;
  padding-top: 8rem;
  padding-bottom: 8rem;
}

.section-bg,
.veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.section-bg {
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
}

.veil {
  background: linear-gradient(180deg, rgba(2, 3, 3, 0.5), rgba(4, 5, 5, 0.84) 54%, rgba(3, 3, 3, 0.96));
}

.veil--hero {
  background:
    radial-gradient(circle at 70% 28%, rgba(121, 255, 141, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(2, 2, 2, 0.34), rgba(2, 3, 2, 0.76) 58%, rgba(3, 3, 3, 0.94));
}

.veil--museum,
.veil--midnight,
.veil--email,
.veil--royal,
.veil--victory {
  background:
    linear-gradient(180deg, rgba(2, 2, 2, 0.46), rgba(3, 5, 4, 0.8) 54%, rgba(3, 3, 3, 0.96));
}

.section-shell {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  margin: 0 auto;
}

.hero-shell,
.victory-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 2rem;
  align-items: center;
}

.hero-copy h1,
.section-heading h2,
.mega,
.final-cta h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 0.95;
}

.hero-copy h1 {
  max-width: 8ch;
  font-size: clamp(3.6rem, 10vw, 7.5rem);
}

.hero-subtitle {
  margin: 1.25rem 0 0.8rem;
  font-size: clamp(1.25rem, 2.6vw, 2.15rem);
  color: var(--gold-bright);
}

.hero-note,
.section-heading p,
.market-card p,
.split-card p,
.victory-text,
.email-card p,
.timeline-card p,
.thesis-card p,
.meme-card p,
.site-footer p {
  color: var(--muted);
}

.hero-note {
  max-width: 34rem;
  font-size: 1.05rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--green);
  font-size: 0.78rem;
}

.hero-marquee {
  margin-top: 1.6rem;
}

.hero-marquee span,
.float-chip,
.timeline-card span,
.counter-card span,
.card-kicker,
.email-bar p,
.window-reveal__frame span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(6, 9, 7, 0.48);
  backdrop-filter: blur(14px);
  font-size: 0.74rem;
}

.glass-card,
.email-card,
.counter-card,
.timeline-card,
.thesis-card,
.meme-card,
.quote-band,
.final-cta__shell,
.throne-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(18, 21, 18, 0.6), rgba(7, 8, 7, 0.75));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.market-card,
.split-card,
.counter-card,
.timeline-card,
.thesis-card,
.meme-card {
  border-radius: var(--radius);
}

.market-card {
  max-width: 28rem;
  padding: 1.25rem;
}

.market-card strong {
  display: block;
  margin-top: 0.75rem;
  font-size: 1.6rem;
  line-height: 1.1;
}

.hero-side {
  display: grid;
  gap: 1rem;
  justify-items: end;
}

.floating-set {
  position: relative;
  width: min(100%, 27rem);
  min-height: 16rem;
}

.float-chip {
  position: absolute;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.float-chip--coin {
  top: 0;
  right: 2rem;
  color: #15120c;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  animation: float 5s ease-in-out infinite;
}

.float-chip--cert {
  top: 5rem;
  left: 0;
  color: #102313;
  background: linear-gradient(135deg, rgba(121, 255, 141, 0.92), rgba(84, 194, 112, 0.88));
  animation: float 6.4s ease-in-out infinite;
}

.float-chip--trail {
  right: 0;
  bottom: 1rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  animation: float 7s ease-in-out infinite;
}

.section-heading {
  max-width: 44rem;
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-size: clamp(2.4rem, 6vw, 5.2rem);
}

.timeline-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 1rem;
  padding-bottom: 1rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}

.timeline-row::-webkit-scrollbar {
  height: 10px;
}

.timeline-row::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(221, 182, 106, 0.3);
}

.timeline-card {
  scroll-snap-align: start;
  padding: 1.35rem;
}

.timeline-card h3,
.split-card h3,
.throne-card h3 {
  margin: 1rem 0 0.7rem;
  font-size: 1.55rem;
}

.quote-band {
  margin-top: 2rem;
  padding: 1.4rem 1.5rem;
  border-radius: 999px;
}

.quote-band p,
.giant-quote {
  margin: 0;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 3vw, 2.3rem);
  color: var(--gold-bright);
}

.split-grid,
.counter-grid {
  display: grid;
  gap: 1rem;
}

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

.counter-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1.4rem;
}

.split-card,
.counter-card {
  padding: 1.4rem;
}

.counter-card strong {
  display: block;
  margin-top: 0.75rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  color: var(--gold-bright);
}

.email-shell {
  display: grid;
  gap: 1.5rem;
}

.email-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.email-bar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
}

.email-body {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(220px, 0.9fr);
  gap: 1rem;
  padding: 1.4rem;
}

.typewriter {
  min-height: 18rem;
  margin: 0;
  padding: 1.5rem;
  border-radius: 24px;
  background: rgba(1, 4, 2, 0.82);
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 1.05rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

.window-reveal {
  position: relative;
  min-height: 20rem;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(15, 15, 15, 0.1), rgba(4, 4, 4, 0.65)),
    url("dearfriend.png") center / cover no-repeat;
}

.window-reveal::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 18%, rgba(0, 0, 0, 0.22));
}

.window-reveal__frame {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(4, 7, 5, 0.56);
  transform: translateY(var(--window-shift, 24px));
  opacity: var(--window-opacity, 0.2);
  transition: transform 300ms ease, opacity 300ms ease;
}

.throne-card {
  position: relative;
  overflow: hidden;
  border-radius: 42px;
  max-width: 62rem;
  margin: 0 auto;
}

.throne-card__glow {
  position: absolute;
  inset: -20%;
  background: linear-gradient(120deg, transparent 26%, rgba(255, 233, 163, 0.18) 48%, transparent 70%);
  animation: shimmer 3.6s linear infinite;
}

.throne-card__content {
  position: relative;
  padding: 2rem;
}

.royal-stats {
  margin-top: 1.35rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.royal-stats div {
  padding: 1.1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.royal-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.royal-stats strong {
  display: block;
  margin-top: 0.35rem;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
}

.victory-copy {
  max-width: 46rem;
}

.mega {
  font-size: clamp(4.4rem, 13vw, 9rem);
  color: var(--gold-bright);
}

.victory-text {
  margin: 0.55rem 0;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
}

.launch-scene {
  position: relative;
  min-height: 22rem;
}

.launch-scene__rocket {
  position: absolute;
  bottom: 2rem;
  width: 14px;
  height: 110px;
  border-radius: 999px 999px 14px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(221, 182, 106, 0.85));
  box-shadow: 0 0 22px rgba(255, 233, 163, 0.22);
}

.launch-scene__rocket::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -44px;
  width: 16px;
  height: 46px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255, 233, 163, 0.88), transparent);
  filter: blur(3px);
}

.launch-scene__rocket--one {
  left: 15%;
  animation: launch 4.8s ease-in-out infinite;
}

.launch-scene__rocket--two {
  left: 38%;
  height: 90px;
  animation: launch 6s ease-in-out infinite 1.1s;
}

.launch-scene__orbit {
  position: absolute;
  right: 10%;
  top: 12%;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(121, 255, 141, 0.2);
  border-radius: 50%;
  animation: spin 12s linear infinite;
}

.launch-scene__orbit::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(121, 255, 141, 0.65);
}

.launch-scene__orbit--offset {
  top: 26%;
  right: 20%;
  width: 140px;
  height: 140px;
  animation-direction: reverse;
}

.launch-scene__skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78)),
    linear-gradient(90deg,
      rgba(121, 255, 141, 0.16) 0 10%,
      transparent 10% 13%,
      rgba(221, 182, 106, 0.22) 13% 23%,
      transparent 23% 29%,
      rgba(121, 255, 141, 0.14) 29% 36%,
      transparent 36% 42%,
      rgba(221, 182, 106, 0.24) 42% 48%,
      transparent 48% 54%,
      rgba(121, 255, 141, 0.16) 54% 62%,
      transparent 62% 70%,
      rgba(221, 182, 106, 0.28) 70% 82%,
      transparent 82% 88%,
      rgba(121, 255, 141, 0.14) 88% 100%);
  clip-path: polygon(0 100%, 0 55%, 7% 42%, 12% 62%, 20% 24%, 27% 48%, 34% 16%, 40% 72%, 48% 28%, 56% 62%, 63% 20%, 70% 68%, 78% 25%, 86% 56%, 92% 36%, 100% 65%, 100% 100%);
}

.thesis-grid,
.meme-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.thesis-card,
.meme-card {
  padding: 1.3rem;
  text-align: center;
}

.thesis-card span,
.meme-card span {
  display: block;
  font-size: 2.1rem;
  color: var(--green);
}

.giant-quote {
  margin-top: 2rem;
}

.meme-card {
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.meme-card:hover,
.meme-card:focus-within {
  transform: translateY(-6px) rotate(-1deg);
  border-color: rgba(121, 255, 141, 0.34);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.35);
}

.final-cta {
  min-height: 72vh;
  display: grid;
  align-items: center;
}

.final-cta__shell {
  position: relative;
  overflow: hidden;
  padding: 2.2rem;
  border-radius: 42px;
}

.final-cta__shell::after {
  content: "";
  position: absolute;
  inset: -30% auto auto -10%;
  width: 18rem;
  height: 18rem;
  background: radial-gradient(circle, rgba(121, 255, 141, 0.18), transparent 70%);
  animation: drift 9s ease-in-out infinite;
}

.final-cta h2 {
  font-size: clamp(3rem, 8vw, 6rem);
  margin-bottom: 1.5rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  width: min(calc(100% - 24px), var(--max));
  margin: 0 auto;
  padding: 0 0 2rem;
}

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

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay {
  transition-delay: 120ms;
}

@keyframes shine {
  from { transform: translateX(-140%); }
  to { transform: translateX(140%); }
}

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, 18px, 0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes shimmer {
  from { transform: translateX(-30%); }
  to { transform: translateX(30%); }
}

@keyframes launch {
  0% { transform: translateY(0); opacity: 0.75; }
  42% { transform: translateY(-120px); opacity: 1; }
  100% { transform: translateY(-240px); opacity: 0; }
}

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

@media (max-width: 1080px) {
  .site-header,
  .hero-shell,
  .victory-shell,
  .split-grid,
  .email-body,
  .thesis-grid,
  .meme-grid,
  .counter-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    grid-template-columns: 1fr;
    border-radius: 30px;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero-side {
    justify-items: start;
  }

  .royal-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .panel {
    padding-top: calc(var(--header) + 98px);
  }

  .button {
    width: 100%;
  }

  .header-actions,
  .hero-actions,
  .cta-row {
    width: 100%;
  }

  .timeline-row {
    grid-auto-columns: minmax(84vw, 1fr);
  }

  .final-cta h2,
  .hero-copy h1,
  .mega,
  .section-heading h2 {
    line-height: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
