:root {
  --ink: #f7fbef;
  --muted: #b4c0aa;
  --pitch: #09140d;
  --glass: rgba(6, 13, 10, 0.72);
  --glass-strong: rgba(9, 18, 14, 0.9);
  --line: rgba(234, 255, 211, 0.18);
  --acid: #b7ff34;
  --cyan: #47e6ff;
  --amber: #ffb340;
  --danger: #ff5c5c;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
  font-family:
    "Avenir Next Condensed", "DIN Condensed", "Apple SD Gothic Neo",
    "Noto Sans KR", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #020604;
  overscroll-behavior: none;
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  width: 100%;
  min-height: 100%;
  overscroll-behavior: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.match-background {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background:
    radial-gradient(circle at 52% 26%, rgba(183, 255, 52, 0.15), transparent 22rem),
    linear-gradient(135deg, #07110b 0%, #030604 50%, #0d1408 100%);
}

.match-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(0.92) contrast(1.18) brightness(0.58);
}

.pitch-fallback {
  position: absolute;
  inset: -8%;
  opacity: 0.52;
  background:
    linear-gradient(90deg, transparent 49.7%, rgba(235, 255, 216, 0.18) 50%, transparent 50.3%),
    radial-gradient(circle at center, transparent 0 10rem, rgba(235, 255, 216, 0.14) 10.1rem 10.25rem, transparent 10.35rem),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 8.33%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 12.5%);
  transform: perspective(700px) rotateX(58deg) translateY(14%);
  transform-origin: center;
}

.pitch-fallback::before,
.pitch-fallback::after {
  content: "";
  position: absolute;
  top: 22%;
  bottom: 22%;
  width: 17%;
  border: 1px solid rgba(235, 255, 216, 0.16);
}

.pitch-fallback::before {
  left: 0;
}

.pitch-fallback::after {
  right: 0;
}

.player {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--acid);
  box-shadow: 0 0 22px rgba(183, 255, 52, 0.86);
  animation: drift 7s ease-in-out infinite alternate;
}

.p1 { left: 25%; top: 42%; }
.p2 { left: 42%; top: 34%; animation-delay: -1s; }
.p3 { left: 52%; top: 62%; animation-delay: -2s; }
.p4 { left: 68%; top: 47%; animation-delay: -3s; }
.p5 { left: 76%; top: 32%; animation-delay: -4s; }
.ball {
  left: 57%;
  top: 45%;
  width: 9px;
  height: 9px;
  background: white;
  box-shadow: 0 0 18px white;
  animation-duration: 4.5s;
}

.stadium-lights {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 18% 0%, rgba(255, 255, 255, 0.2), transparent 28%),
    radial-gradient(ellipse at 82% 0%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.72));
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  mix-blend-mode: overlay;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 3px 3px;
}

.topbar {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(18px, 4vw, 58px);
  color: rgba(247, 251, 239, 0.86);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.62), transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border: 1px solid var(--acid);
  border-radius: 50%;
  box-shadow: inset 0 0 0 8px rgba(183, 255, 52, 0.13), 0 0 24px rgba(183, 255, 52, 0.35);
}

.topbar nav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scroll-story {
  position: relative;
  min-height: 100svh;
  overflow: visible;
}

.sticky-stage {
  position: relative;
  top: 0;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(390px, 520px);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding: 86px clamp(20px, 5vw, 72px) 72px;
  overflow: visible;
}

.hero-copy {
  max-width: 680px;
  filter: drop-shadow(0 18px 42px rgba(0, 0, 0, 0.56));
}

.eyebrow,
.card-label {
  margin: 0 0 16px;
  color: var(--acid);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(4rem, 8.4vw, 7.6rem);
  line-height: 0.88;
  letter-spacing: -0.065em;
  text-transform: uppercase;
  text-wrap: balance;
}

h1 span {
  display: block;
}

.hero-lede {
  max-width: 560px;
  margin: 28px 0 0;
  color: #dfe7d5;
  font-size: clamp(1rem, 1.55vw, 1.2rem);
  line-height: 1.68;
  word-break: keep-all;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(247, 251, 239, 0.22);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(247, 251, 239, 0.08);
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.03em;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(183, 255, 52, 0.75);
}

.button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.button.primary {
  color: #07110b;
  background: linear-gradient(135deg, var(--acid), #e8ff96);
  border-color: transparent;
  box-shadow: 0 18px 44px rgba(183, 255, 52, 0.24);
}

.button.ghost {
  backdrop-filter: blur(14px);
}

.button.full {
  width: 100%;
}

.control-deck {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(430px, auto);
  gap: 16px;
  min-height: min(690px, calc(100svh - 158px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), transparent 22%),
    var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.control-deck::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(183, 255, 52, 0.12);
  border-radius: 24px;
  pointer-events: none;
}

.deck-header {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: var(--danger);
  box-shadow: 0 0 18px var(--danger);
}

.deck-progress {
  margin-left: auto;
}

.command-line {
  position: relative;
  z-index: 1;
  margin-top: 0;
  padding: 16px;
  border: 1px solid rgba(71, 230, 255, 0.22);
  border-radius: 18px;
  color: var(--cyan);
  background: rgba(0, 0, 0, 0.32);
  font-family: "SF Mono", "Menlo", monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.card-stack {
  position: relative;
  z-index: 1;
  min-height: 430px;
  border-radius: 24px;
}

.story-card {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: start;
  overflow: visible;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(247, 251, 239, 0.14);
  border-radius: 24px;
  background: var(--glass-strong);
  opacity: 0;
  visibility: hidden;
  transform: translateY(26px) scale(0.98);
  pointer-events: none;
  transition: opacity 360ms ease, transform 360ms ease;
}

.story-card.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  z-index: 2;
}

.story-card h2 {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 3.35rem);
  line-height: 1;
  letter-spacing: -0.04em;
  word-break: keep-all;
  text-wrap: balance;
}

.story-card p:not(.card-label) {
  color: #d8e2cf;
  line-height: 1.62;
  margin: 16px 0 0;
  word-break: keep-all;
}

.terminal-list,
.stats-strip {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.terminal-list span,
.stats-strip strong {
  padding: 12px 14px;
  border: 1px solid rgba(183, 255, 52, 0.16);
  border-radius: 12px;
  background: rgba(183, 255, 52, 0.06);
  color: #e7ffd2;
  font-family: "SF Mono", "Menlo", monospace;
}

.mini-pitch {
  position: relative;
  height: clamp(130px, 22svh, 170px);
  margin-top: 22px;
  border: 1px solid rgba(235, 255, 216, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(90deg, transparent 49.5%, rgba(235, 255, 216, 0.22) 50%, transparent 50.5%),
    radial-gradient(circle at center, transparent 0 38px, rgba(235, 255, 216, 0.18) 39px 40px, transparent 41px),
    rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.mini-pitch span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 12px;
  height: 12px;
  border-radius: 99px;
  background: var(--acid);
  box-shadow: 0 0 18px rgba(183, 255, 52, 0.8);
}

.mini-pitch span::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 5px;
  width: 40px;
  border-top: 1px dashed rgba(183, 255, 52, 0.55);
}

.meter-grid {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.meter-grid label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meter-grid label::after {
  content: "";
  display: block;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.meter-grid span {
  height: 10px;
  width: var(--w);
  margin-bottom: -18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--acid));
  box-shadow: 0 0 18px rgba(71, 230, 255, 0.28);
}

.stats-strip {
  grid-template-columns: repeat(3, 1fr);
}

.stats-strip strong {
  text-align: center;
  color: var(--acid);
  font-size: 1.2rem;
}

.waitlist-card h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
}

.waitlist-card p:not(.card-label) {
  margin-top: 12px;
}

.waitlist-form {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.waitlist-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.waitlist-form input,
.waitlist-form select,
.waitlist-form textarea {
  width: 100%;
  position: relative;
  z-index: 3;
  border: 1px solid rgba(247, 251, 239, 0.16);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.36);
  padding: 10px 12px;
  outline: none;
}

.waitlist-form input:focus,
.waitlist-form select:focus,
.waitlist-form textarea:focus {
  border-color: var(--acid);
  box-shadow: 0 0 0 3px rgba(183, 255, 52, 0.13);
}

.waitlist-form textarea {
  resize: vertical;
  max-height: 72px;
}

.waitlist-form button {
  position: relative;
  z-index: 3;
}

.form-status {
  min-height: 1.5em;
  margin: 0;
  color: var(--acid);
  font-size: 0.82rem;
  line-height: 1.35;
}

.page-footer {
  position: fixed;
  z-index: 11;
  left: clamp(16px, 5vw, 72px);
  right: clamp(16px, 5vw, 72px);
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(247, 251, 239, 0.68);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.page-footer a {
  color: var(--acid);
  font-weight: 800;
}

@keyframes drift {
  from {
    transform: translate3d(-10px, 6px, 0);
  }
  to {
    transform: translate3d(18px, -12px, 0);
  }
}

@media (max-width: 980px) {
  .sticky-stage {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 20px;
    padding-top: 82px;
  }

  .hero-copy {
    max-width: none;
  }

  h1 {
    max-width: 700px;
    font-size: clamp(3.1rem, 11vw, 5.9rem);
    line-height: 0.92;
  }

  .hero-lede {
    max-width: 680px;
    margin-top: 18px;
  }

  .control-deck {
    grid-template-rows: auto auto minmax(430px, auto);
    min-height: 0;
  }

  .card-stack {
    min-height: 430px;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 16px 18px;
  }

  .topbar nav {
    display: none;
  }

  .sticky-stage {
    min-height: 100svh;
    padding: 72px 14px 54px;
    gap: 14px;
  }

  .eyebrow {
    margin-bottom: 10px;
    font-size: 0.68rem;
  }

  h1 {
    font-size: clamp(2.55rem, 13vw, 4.3rem);
    letter-spacing: -0.055em;
  }

  .hero-lede {
    margin-top: 14px;
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .hero-actions {
    margin-top: 16px;
  }

  .control-deck {
    grid-template-rows: auto auto minmax(456px, auto);
    min-height: 0;
    padding: 12px;
    border-radius: 22px;
  }

  .deck-header {
    font-size: 0.68rem;
  }

  .command-line {
    padding: 12px;
    border-radius: 14px;
    font-size: 0.78rem;
  }

  .card-stack {
    min-height: 456px;
    border-radius: 18px;
  }

  .story-card {
    padding: 18px;
    border-radius: 18px;
  }

  .story-card h2 {
    font-size: clamp(1.85rem, 8vw, 2.6rem);
    line-height: 1.02;
  }

  .story-card p:not(.card-label) {
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .mini-pitch {
    height: 126px;
  }

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

  .page-footer {
    left: 14px;
    right: 14px;
    bottom: 10px;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    font-size: 0.68rem;
  }
}

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

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

  .match-video {
    display: none;
  }
}
