/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #f2ca50;
  --gold-dark: #d4af37;
  --gold-glow: rgba(242, 202, 80, .4);
  --emerald: #59de9b;
  --surface: #080a0e;
  --text: #e2e2e8;
  --text-dim: #8a8a9a;
  --cyan: #00e5ff;
  --magenta: #ff2d95;
  --red: #ff3030;
}

html {
  font-family: 'Manrope', system-ui, sans-serif;
  background: var(--surface);
  color: var(--text);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* === Stadium Background — real photo + gradient overlays === */
.stadium-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: url('public/stadium-bg.jpg') center center / cover no-repeat;
}

/* Dark vignette + color grade overlay on top of the photo */
.stadium-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* Heavy vignette — dark edges */
    radial-gradient(ellipse 80% 70% at 50% 50%, transparent 20%, rgba(0,0,0,.6) 70%, rgba(0,0,0,.85) 100%),
    /* Darken the bottom for footer readability */
    linear-gradient(0deg, rgba(0,0,0,.7) 0%, transparent 20%),
    /* Darken top slightly */
    linear-gradient(180deg, rgba(0,0,0,.3) 0%, transparent 30%),
    /* Overall tint */
    linear-gradient(180deg, rgba(8,10,14,.3) 0%, rgba(8,10,14,.15) 100%);
}

/* === Neon Light Beams — prominent like the reference === */
.light-beams {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.beam {
  position: absolute;
  transform-origin: top center;
}

/* Bright cyan beam — left, wide sweep */
.beam-cyan-left {
  top: -20%;
  left: -8%;
  width: 600px;
  height: 140%;
  background: linear-gradient(
    180deg,
    rgba(0, 229, 255, .3) 0%,
    rgba(0, 229, 255, .14) 12%,
    rgba(0, 229, 255, .06) 35%,
    transparent 65%
  );
  transform: rotate(16deg);
  filter: blur(20px);
}

/* Bright cyan beam — right, wide sweep */
.beam-cyan-right {
  top: -20%;
  right: -8%;
  width: 600px;
  height: 140%;
  background: linear-gradient(
    180deg,
    rgba(0, 229, 255, .25) 0%,
    rgba(0, 229, 255, .12) 12%,
    rgba(0, 229, 255, .05) 35%,
    transparent 65%
  );
  transform: rotate(-16deg);
  filter: blur(20px);
}

/* Magenta beam — left accent */
.beam-magenta-left {
  top: -10%;
  left: 8%;
  width: 400px;
  height: 110%;
  background: linear-gradient(
    180deg,
    rgba(255, 45, 149, .18) 0%,
    rgba(255, 45, 149, .08) 18%,
    rgba(255, 45, 149, .03) 40%,
    transparent 60%
  );
  transform: rotate(22deg);
  filter: blur(25px);
}

/* Magenta beam — right, subtle */
.beam-magenta-right {
  top: -10%;
  right: 18%;
  width: 300px;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(255, 45, 149, .12) 0%,
    rgba(255, 45, 149, .05) 22%,
    transparent 50%
  );
  transform: rotate(-12deg);
  filter: blur(28px);
}

/* === Bokeh Orbs === */
.bokeh-container {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.bokeh {
  position: absolute;
  border-radius: 50%;
  animation: bokeh-drift linear infinite;
}

.bokeh-1 {
  width: 18px; height: 18px;
  background: radial-gradient(circle, rgba(0,229,255,.6) 0%, transparent 70%);
  top: 65%; left: 8%;
  animation-duration: 8s;
}
.bokeh-2 {
  width: 12px; height: 12px;
  background: radial-gradient(circle, rgba(0,229,255,.5) 0%, transparent 70%);
  top: 75%; right: 12%;
  animation-duration: 10s;
  animation-delay: -3s;
}
.bokeh-3 {
  width: 20px; height: 20px;
  background: radial-gradient(circle, rgba(242,202,80,.4) 0%, transparent 70%);
  top: 40%; right: 30%;
  animation-duration: 7s;
  animation-delay: -1s;
}
.bokeh-4 {
  width: 10px; height: 10px;
  background: radial-gradient(circle, rgba(0,229,255,.5) 0%, transparent 70%);
  top: 55%; left: 25%;
  animation-duration: 9s;
  animation-delay: -5s;
}
.bokeh-5 {
  width: 14px; height: 14px;
  background: radial-gradient(circle, rgba(255,45,149,.3) 0%, transparent 70%);
  top: 30%; left: 3%;
  animation-duration: 12s;
  animation-delay: -2s;
}
.bokeh-6 {
  width: 22px; height: 22px;
  background: radial-gradient(circle, rgba(0,229,255,.35) 0%, transparent 70%);
  top: 78%; right: 35%;
  animation-duration: 11s;
  animation-delay: -4s;
}

@keyframes bokeh-drift {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(18px, -25px) scale(1.15); }
  50%  { transform: translate(-12px, -35px) scale(.85); }
  75%  { transform: translate(22px, -12px) scale(1.1); }
  100% { transform: translate(0, 0) scale(1); }
}

/* === Canvas particles === */
#particles {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* === Nav === */
nav {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 2.5rem;
}

.nav-logo {
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .22em;
  color: var(--text);
  text-transform: uppercase;
  font-style: italic;
}

.nav-live {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--red);
  background: rgba(255, 48, 48, .15);
  padding: .5rem 1.1rem;
  border-radius: .35rem;
  border: 1.5px solid rgba(255, 48, 48, .5);
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse-dot 1.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,48,48,.7); }
  50% { box-shadow: 0 0 0 6px rgba(255,48,48,0); }
}

/* === Hero === */
.hero {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw 2rem;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.hero-content {
  flex: 1;
  max-width: 650px;
  padding-bottom: 3rem;
}

/* === Headline — Italic 3D Chrome Metallic === */
h1 {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 2.5rem;
  position: relative;
}

.headline-line {
  display: block;
  font-size: clamp(4.5rem, 10vw, 8.5rem);
  font-weight: 800;
  font-style: italic;
  line-height: .88;
  letter-spacing: -.02em;
  /* Rich multi-stop chrome gradient with highlights and shadows */
  background:
    linear-gradient(
      175deg,
      #ffffff 0%,
      #f0f0f5 8%,
      #c8c8d5 18%,
      #e8e8f0 28%,
      #a0a0b0 38%,
      #d8d8e2 48%,
      #8a8a98 58%,
      #c0c0cc 68%,
      #787885 78%,
      #a8a8b5 88%,
      #707078 100%
    );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  /* Text outline/3D depth effect */
  filter: drop-shadow(2px 4px 0px rgba(0,0,0,.6)) drop-shadow(0 0 30px rgba(255,255,255,.06));
}

.headline-line:last-child {
  font-size: clamp(5rem, 11vw, 9.5rem);
}

/* Bright specular highlight on top of text */
h1::before {
  content: '';
  position: absolute;
  top: 5%;
  left: 5%;
  right: 55%;
  height: 35%;
  background: linear-gradient(180deg, rgba(255,255,255,.06) 0%, transparent 100%);
  pointer-events: none;
  filter: blur(15px);
}

/* Strong gold underglow beneath headline */
h1::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 85%;
  height: 40px;
  background: linear-gradient(90deg, rgba(242,202,80,.45) 0%, rgba(242,202,80,.2) 60%, transparent 100%);
  filter: blur(25px);
  pointer-events: none;
}

/* === Subhero === */
.subhero {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .03em;
  margin-bottom: 1.75rem;
  max-width: 440px;
  line-height: 1.5;
  opacity: .85;
}

/* === Waitlist Form === */
.waitlist-form {
  display: flex;
  gap: 0;
  max-width: 520px;
  position: relative;
}

.waitlist-form input {
  flex: 1;
  padding: 1.05rem 1.5rem;
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, .1);
  border-right: none;
  border-radius: .4rem 0 0 .4rem;
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  outline: none;
  transition: border-color .25s, box-shadow .25s;
}

.waitlist-form input::placeholder {
  color: rgba(255, 255, 255, .25);
  font-weight: 400;
}

.waitlist-form input:focus {
  border-color: rgba(242, 202, 80, .4);
  box-shadow: inset 0 0 20px rgba(242, 202, 80, .05);
}

.waitlist-form button {
  padding: 1.05rem 2.2rem;
  background: transparent;
  border: 2px solid var(--gold);
  border-radius: 0 .4rem .4rem 0;
  color: var(--gold);
  font-family: inherit;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .15em;
  cursor: pointer;
  white-space: nowrap;
  transition: all .3s;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  /* Persistent subtle gold glow */
  box-shadow:
    0 0 15px rgba(242,202,80,.15),
    0 0 40px rgba(242,202,80,.06),
    inset 0 0 15px rgba(242,202,80,.04);
}

.waitlist-form button::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  opacity: 0;
  transition: opacity .3s;
  z-index: -1;
  border-radius: 0 .4rem .4rem 0;
}

.waitlist-form button:hover {
  color: #111;
  border-color: var(--gold);
  box-shadow:
    0 0 25px rgba(242,202,80,.4),
    0 0 80px rgba(242,202,80,.2),
    inset 0 0 25px rgba(242,202,80,.15);
}

.waitlist-form button:hover::before {
  opacity: 1;
}

/* Gold glow line under form */
.waitlist-form::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, var(--gold) 30%, var(--gold) 70%, transparent 95%);
  opacity: .25;
  filter: blur(2px);
}

/* === Form message === */
.form-msg {
  margin-top: .75rem;
  font-size: .85rem;
  min-height: 1.2em;
  transition: color .3s;
  color: transparent;
}
.form-msg.success { color: var(--emerald); }
.form-msg.error { color: var(--red); }

.tagline {
  margin-top: 1.25rem;
  font-size: .95rem;
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: .02em;
  line-height: 1.5;
  max-width: 360px;
}

/* === Phone Section === */
.hero-phone {
  position: relative;
  flex-shrink: 0;
  width: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ambient glow behind phone */
.phone-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 600px;
  background:
    radial-gradient(ellipse 55% 45% at 50% 50%, rgba(242,202,80,.12) 0%, transparent 50%),
    radial-gradient(ellipse 75% 65% at 50% 50%, rgba(89,222,155,.05) 0%, transparent 55%),
    radial-gradient(ellipse 100% 100% at 50% 50%, rgba(0,229,255,.04) 0%, transparent 65%);
  pointer-events: none;
  filter: blur(35px);
}

/* Sparkle trail SVG */
.sparkle-trail {
  position: absolute;
  top: -20px;
  left: -60px;
  width: 420px;
  height: 620px;
  pointer-events: none;
  z-index: 4;
}

.sparkle-svg {
  width: 100%;
  height: 100%;
}

.trail-path {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: draw-trail 3s ease-in-out infinite;
}

@keyframes draw-trail {
  0%   { stroke-dashoffset: 300; opacity: 0; }
  30%  { opacity: .8; }
  70%  { opacity: .8; }
  100% { stroke-dashoffset: -300; opacity: 0; }
}

/* Phone device frame */
.phone-device {
  position: relative;
  z-index: 5;
  transform: perspective(1000px) rotateY(-14deg) rotateX(4deg) rotateZ(3deg);
  transition: transform .5s cubic-bezier(.25,.46,.45,.94);
}

.phone-device:hover {
  transform: perspective(1000px) rotateY(-6deg) rotateX(2deg) rotateZ(1deg);
}

.phone-bezel {
  position: relative;
  width: 260px;
  background: #1a1a1e;
  border-radius: 2.6rem;
  padding: 10px;
  box-shadow:
    /* Metallic frame edge */
    inset 0 1px 0 rgba(255,255,255,.1),
    inset 0 -1px 0 rgba(255,255,255,.03),
    0 0 0 1.5px #3a3a40,
    0 0 0 3px #1a1a1e,
    /* Depth shadows */
    0 30px 60px rgba(0,0,0,.6),
    0 15px 30px rgba(0,0,0,.4),
    /* Colored reflections */
    0 0 100px rgba(242,202,80,.07),
    -15px 0 60px rgba(0,229,255,.04),
    15px 0 60px rgba(255,45,149,.03);
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 95px;
  height: 24px;
  background: #111;
  border-radius: 0 0 1.2rem 1.2rem;
  z-index: 10;
}

.phone-notch::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 9px;
  height: 9px;
  background: #1a1a1e;
  border-radius: 50%;
  box-shadow: inset 0 0 3px rgba(255,255,255,.08);
}

.phone-screen {
  border-radius: 2.2rem;
  overflow: hidden;
  position: relative;
  background: #000;
}

.phone-screen img {
  display: block;
  width: 100%;
  height: auto;
}

.phone-home-bar {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 95px;
  height: 4px;
  background: rgba(255,255,255,.12);
  border-radius: 2px;
  z-index: 10;
}

/* === 3D Gold Coins === */
.coin {
  position: absolute;
  z-index: 6;
  width: 36px;
  height: 36px;
  pointer-events: none;
}

.coin-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 65% 55% at 38% 32%, #ffe98a 0%, #d4a732 45%, #a67c00 100%);
  box-shadow:
    inset 0 2px 5px rgba(255,255,255,.45),
    inset 0 -3px 5px rgba(100,60,0,.4),
    0 4px 15px rgba(242,202,80,.5),
    0 0 25px rgba(242,202,80,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: #7a5500;
  text-shadow: 0 1px 0 rgba(255,255,255,.3);
  border: 2px solid #c99a20;
}

.coin-1 {
  top: 2%; left: -8%;
  width: 44px; height: 44px;
  animation: coin-float-1 4s ease-in-out infinite;
}
.coin-2 {
  top: 14%; right: -12%;
  width: 36px; height: 36px;
  animation: coin-float-2 3.5s ease-in-out infinite;
  animation-delay: -.5s;
}
.coin-3 {
  top: 32%; left: -22%;
  width: 30px; height: 30px;
  animation: coin-float-3 4.5s ease-in-out infinite;
  animation-delay: -1s;
}
.coin-4 {
  top: -5%; left: 30%;
  width: 34px; height: 34px;
  animation: coin-float-1 3.8s ease-in-out infinite;
  animation-delay: -.3s;
}
.coin-5 {
  top: 8%; right: -22%;
  width: 40px; height: 40px;
  animation: coin-float-2 4.2s ease-in-out infinite;
  animation-delay: -.8s;
}
.coin-6 {
  top: 24%; left: 5%;
  width: 26px; height: 26px;
  animation: coin-float-3 3.6s ease-in-out infinite;
  animation-delay: -1.5s;
}
.coin-7 {
  top: -8%; right: 10%;
  width: 32px; height: 32px;
  animation: coin-float-1 5s ease-in-out infinite;
  animation-delay: -2s;
}

@keyframes coin-float-1 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(15deg); }
}
@keyframes coin-float-2 {
  0%, 100% { transform: translateY(0) rotate(5deg); }
  50% { transform: translateY(-14px) rotate(-10deg); }
}
@keyframes coin-float-3 {
  0%, 100% { transform: translateY(0) rotate(-3deg) scale(1); }
  50% { transform: translateY(-22px) rotate(8deg) scale(1.08); }
}

/* === Footer === */
footer {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, .06);
  font-size: .78rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 2.5rem;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color .2s;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--text);
}

/* === Responsive === */
@media (max-width: 960px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 1rem 1.5rem 3rem;
    gap: 3rem;
  }

  .hero-content { max-width: 100%; }

  h1 { align-items: center; }

  .waitlist-form {
    margin: 0 auto;
    max-width: 420px;
  }

  h1::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .hero-phone { width: 300px; }

  .phone-device {
    transform: perspective(1000px) rotateY(-6deg) rotateX(2deg);
  }

  .phone-bezel { width: 230px; }
  .sparkle-trail { display: none; }
  .coin-3, .coin-6, .coin-7 { display: none; }
}

@media (max-width: 520px) {
  nav { padding: 1rem 1.25rem; }
  .hero { padding: 1rem 1rem 2rem; }

  .headline-line { font-size: 3.2rem !important; }
  .headline-line:last-child { font-size: 3.8rem !important; }

  .subhero { font-size: .95rem; margin-bottom: 1.25rem; }

  .waitlist-form {
    flex-direction: column;
    gap: .5rem;
  }

  .waitlist-form input {
    border-radius: .4rem;
    border-right: 1.5px solid rgba(255,255,255,.1);
  }

  .waitlist-form button { border-radius: .4rem; }
  .waitlist-form::after { display: none; }

  .hero-phone { width: 240px; }
  .phone-bezel { width: 200px; }
  .coin { display: none; }

  footer {
    flex-direction: column;
    gap: .5rem;
    text-align: center;
  }
}
