:root {
  color-scheme: dark;
  --bg: #050505;
  --ink: #f8f4e8;
  --muted: #b8b1a3;
  --gold: #f4c64f;
  --gold-2: #ffe397;
  --green: #55ff91;
  --red: #ff3f3f;
  --panel: rgba(12, 12, 15, 0.78);
  --line: rgba(255, 255, 255, 0.16);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), var(--bg) 34rem),
    url("assets/background-space-money-texture.jpg") center top / cover fixed,
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(244, 198, 79, 0.04), transparent 24%, transparent 76%, rgba(85, 255, 145, 0.04)),
    rgba(0, 0, 0, 0.54);
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 72px;
  padding: 0 clamp(1rem, 3vw, 2.6rem);
  background: rgba(3, 3, 4, 0.76);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.45rem;
  letter-spacing: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(244, 198, 79, 0.54);
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.7rem);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 0.78rem 1.05rem;
  color: var(--ink);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-cta {
  min-height: 38px;
  padding: 0.55rem 0.85rem;
  background: rgba(244, 198, 79, 0.12);
  color: var(--gold-2);
  font-size: 0.8rem;
}

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

.button.primary {
  border-color: rgba(244, 198, 79, 0.7);
  background: linear-gradient(180deg, #ffe28a, #d99c20);
  color: #171006;
  box-shadow: 0 0 30px rgba(244, 198, 79, 0.28);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.07);
}

.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  align-items: center;
  padding: 7rem clamp(1rem, 5vw, 4.5rem) 5.25rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/hero-rocket-elon-space.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.015);
  animation: drift 16s ease-in-out infinite alternate;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 58% 44%, rgba(0, 140, 255, 0.2), transparent 26rem),
    linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.56) 33%, rgba(0, 0, 0, 0.02) 70%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.12) 45%, rgba(0, 0, 0, 0.78));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--green);
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(0.78rem, 1.4vw, 0.92rem);
  font-weight: 900;
  text-transform: uppercase;
}

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

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

h1 {
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.ticker {
  display: block;
  color: var(--gold);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(6.5rem, 18vw, 16rem);
  line-height: 0.8;
  letter-spacing: 0;
  text-shadow: 0 8px 0 rgba(0, 0, 0, 0.56), 0 0 48px rgba(244, 198, 79, 0.24);
}

.name {
  display: block;
  margin-top: 0.4rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 7.6vw, 7rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow: 0 6px 0 rgba(0, 0, 0, 0.65);
}

.hero-line {
  margin-bottom: 0.35rem;
  color: var(--gold-2);
  font-size: clamp(1.25rem, 3.2vw, 2.3rem);
  font-weight: 950;
}

.hero-copy {
  max-width: 650px;
  color: var(--ink);
  font-size: clamp(1rem, 1.9vw, 1.35rem);
  font-weight: 750;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.55rem;
}

.launch-strip {
  position: absolute;
  right: clamp(1rem, 4vw, 4rem);
  bottom: 1.25rem;
  left: clamp(1rem, 4vw, 4rem);
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
}

.launch-strip span {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 0.72rem 0.75rem;
  background: rgba(0, 0, 0, 0.48);
  color: var(--ink);
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(0.68rem, 1.2vw, 0.84rem);
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  backdrop-filter: blur(10px);
}

.section {
  padding: clamp(3.5rem, 8vw, 7rem) clamp(1rem, 5vw, 4.5rem);
}

.section-head {
  width: min(980px, 100%);
  margin: 0 auto 2rem;
  text-align: center;
}

.section-head h2,
.meter-copy h2,
.exit-copy h2,
.manifesto-wrap h2,
.kit-copy h2 {
  margin-bottom: 0.85rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.lore-section {
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.95), rgba(18, 12, 4, 0.72));
}

.lore-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.5rem);
}

.lore-card {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(8, 8, 10, 0.78);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.lore-media {
  aspect-ratio: 1 / 1;
  background: #080808;
  overflow: hidden;
}

.lore-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.lore-card:hover .lore-media img {
  transform: scale(1.05);
}

.lore-card h3,
.lore-card p {
  padding-inline: clamp(1rem, 2vw, 1.35rem);
}

.card-kicker {
  margin: 1.1rem 0 0.55rem;
  color: var(--gold);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lore-card h3 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.05;
}

.lore-card p:last-child {
  margin-bottom: 1.35rem;
  color: var(--muted);
  font-weight: 650;
}

.meter-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3.5rem, 8vw, 7rem) clamp(1rem, 5vw, 4.5rem);
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.78), rgba(2, 35, 23, 0.5)),
    url("assets/background-space-money-texture.jpg") center / cover;
  border-block: 1px solid rgba(255, 255, 255, 0.1);
}

.meter-copy p {
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
}

.meter-panel {
  border: 1px solid rgba(85, 255, 145, 0.32);
  border-radius: 8px;
  padding: clamp(1.1rem, 3vw, 2rem);
  background: rgba(0, 0, 0, 0.66);
  box-shadow: 0 0 60px rgba(85, 255, 145, 0.08), var(--shadow);
}

.meter-topline,
.meter-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.meter-topline strong {
  color: var(--green);
  text-align: right;
}

.money-readout {
  margin: 1.4rem 0 1.15rem;
  color: var(--green);
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(1.65rem, 5vw, 4.4rem);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 22px rgba(85, 255, 145, 0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meter-track {
  position: relative;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: visible;
}

.meter-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--green));
  box-shadow: 0 0 34px rgba(85, 255, 145, 0.36);
  transition: width 1.2s cubic-bezier(0.17, 0.84, 0.44, 1);
}

.rocket-dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 42px;
  height: 42px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 23%, #f4c64f 24% 50%, #1b1103 51%);
  box-shadow: 0 0 28px rgba(244, 198, 79, 0.6);
  transform: translate(-10%, -50%);
  transition: left 1.2s cubic-bezier(0.17, 0.84, 0.44, 1);
}

.meter-labels {
  margin-top: 0.9rem;
  color: var(--muted);
}

.meter-button {
  width: 100%;
  margin-top: 1.5rem;
}

.meter-note {
  margin: 1rem 0 0;
  color: var(--gold-2);
  font-weight: 850;
  text-align: center;
}

.meter-panel.unlocked {
  animation: shake 0.34s linear 2;
  border-color: rgba(244, 198, 79, 0.78);
}

.exit-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.86fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3.5rem, 8vw, 7rem) clamp(1rem, 5vw, 4.5rem);
  background: linear-gradient(180deg, rgba(12, 5, 4, 0.84), rgba(5, 5, 5, 0.95));
}

.exit-art {
  max-width: 520px;
  justify-self: center;
}

.exit-art img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.exit-copy {
  max-width: 720px;
}

.joke-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0 1.8rem;
  padding: 0;
  list-style: none;
}

.joke-list li {
  border-left: 4px solid var(--red);
  padding: 0.85rem 1rem;
  background: rgba(255, 63, 63, 0.08);
  color: var(--ink);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 900;
}

.danger-button {
  border-color: rgba(255, 63, 63, 0.8);
  background: linear-gradient(180deg, #ff6767, #9d1111);
  color: #fff;
}

.manifesto-section {
  padding: clamp(4rem, 9vw, 8rem) clamp(1rem, 5vw, 4.5rem);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.86)),
    url("assets/hero-rocket-elon-space.jpg") center / cover;
}

.manifesto-wrap {
  width: min(980px, 100%);
}

.manifesto-wrap p {
  max-width: 880px;
  color: var(--ink);
  font-size: clamp(1.15rem, 2.8vw, 2rem);
  font-weight: 800;
}

.manifesto-lines {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}

.manifesto-lines span {
  border: 1px solid rgba(244, 198, 79, 0.3);
  border-radius: 6px;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.58);
  color: var(--gold-2);
  font-weight: 950;
  text-align: center;
}

.kit-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 5vw, 4.5rem);
  background: rgba(0, 0, 0, 0.88);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.kit-copy h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4rem);
}

.kit-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem clamp(1rem, 5vw, 4.5rem);
  color: var(--muted);
  background: #030303;
}

.footer div {
  display: grid;
  gap: 0.2rem;
}

.footer strong {
  color: var(--ink);
}

.footer p {
  max-width: 640px;
  margin: 0;
  text-align: right;
  font-size: 0.9rem;
}

@keyframes drift {
  from {
    transform: scale(1.015) translate3d(-0.6%, 0, 0);
  }
  to {
    transform: scale(1.04) translate3d(0.8%, -0.4%, 0);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: 86svh;
    padding-top: 6rem;
  }

  .launch-strip {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 2.5rem;
  }

  .lore-grid,
  .meter-section,
  .exit-section {
    grid-template-columns: 1fr;
  }

  .meter-section,
  .exit-section {
    padding-inline: clamp(1rem, 4vw, 2rem);
  }

  .kit-section,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .kit-actions {
    justify-content: flex-start;
  }

  .footer p {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .topbar {
    height: 64px;
    padding-inline: 0.85rem;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .nav-cta {
    max-width: 124px;
    font-size: 0.72rem;
  }

  .hero {
    min-height: auto;
    padding: 5.4rem 1rem 2.8rem;
  }

  .hero-bg {
    background-position: 58% center;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.34) 42%, rgba(0, 0, 0, 0.9)),
      linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.22));
  }

  .ticker {
    font-size: clamp(5.8rem, 28vw, 9rem);
  }

  .name {
    font-size: clamp(1.9rem, 11.2vw, 3.25rem);
  }

  .button {
    width: 100%;
  }

  .launch-strip {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .section {
    padding-inline: 1rem;
  }

  .section-head {
    text-align: left;
  }

  .manifesto-lines {
    grid-template-columns: 1fr;
  }

  .money-readout {
    font-size: clamp(1.45rem, 9vw, 2.6rem);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
