:root {
  --ink: #070b12;
  --ink-2: #101826;
  --foam: #f4f7fb;
  --mute: #9aabbf;
  --signal: #c8f542;
  --signal-deep: #8fbc1a;
  --flare: #ff5a36;
  --gsp-brand-font: "Norwester", sans-serif;
  --gsp-brand-weight: 400;
  --gsp-brand-style: normal;
  --gsp-brand-scale: 1.2;
  --gsp-brand-stroke-width: 0px;
  --gsp-brand-stroke-color: #000000;
  --gsp-headline-font: "Sora", sans-serif;
  --gsp-headline-weight: 700;
  --gsp-headline-style: normal;
  --gsp-headline-scale: 1;
  --gsp-headline-stroke-width: 0px;
  --gsp-headline-stroke-color: #000000;
  --gsp-sub-font: "Sora", sans-serif;
  --gsp-sub-weight: 400;
  --gsp-sub-style: normal;
  --gsp-sub-scale: 1;
  --gsp-sub-stroke-width: 0px;
  --gsp-sub-stroke-color: #000000;
  --gsp-meta-font: "Sora", sans-serif;
  --gsp-meta-weight: 400;
  --gsp-meta-style: italic;
  --gsp-meta-scale: 1;
  --gsp-meta-stroke-width: 0px;
  --gsp-meta-stroke-color: #000000;
  --gsp-body-size: clamp(1rem, 2.2vw, 1.15rem);
  --gsp-play-color: rgba(255, 255, 255, 0.5);
  --gsp-play-size: 55vmin;
  --gsp-play-x: 48%;
  --gsp-play-y: 50%;
  --gsp-bg-blur: 12px;
  /* Extra room around the blurred layer so filter edges never crop the play icon. */
  --gsp-bg-blur-pad: calc(var(--gsp-bg-blur) * 2 + 80px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--ink);
  color: var(--foam);
}

body {
  min-height: 100vh;
  font-family: "Sora", sans-serif;
  overflow: hidden;
}

body.mode-wait {
  overflow: auto;
}

.stage {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(24px, 6vw, 64px);
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}

/*
  Oversized blur wrapper: filter is applied here so gradients + play + glows
  all soften together. Padding beyond the viewport prevents crop/disappear bugs.
*/
.stage-blur-root {
  position: absolute;
  z-index: 0;
  inset: calc(var(--gsp-bg-blur-pad) * -1);
  pointer-events: none;
  filter: blur(var(--gsp-bg-blur));
  transform: translateZ(0);
}

/* Matches the visible stage; play X/Y % are relative to this box. */
.stage-back {
  position: absolute;
  inset: var(--gsp-bg-blur-pad);
  overflow: visible;
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(200, 245, 66, 0.14), transparent 55%),
    radial-gradient(900px 600px at 100% 20%, rgba(255, 90, 54, 0.16), transparent 50%),
    linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 55%, #0a121c 100%);
}

.play-mark {
  position: absolute;
  left: var(--gsp-play-x);
  top: var(--gsp-play-y);
  width: var(--gsp-play-size);
  height: var(--gsp-play-size);
  transform: translate(-50%, -50%);
  color: var(--gsp-play-color);
  /* No per-icon blur — whole background blurs via .stage-blur-root. */
  filter: none;
}

.play-mark svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.stage-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      circle at var(--gsp-play-x) var(--gsp-play-y),
      rgba(7, 11, 18, 0.05),
      rgba(7, 11, 18, 0.28) 50%,
      rgba(7, 11, 18, 0.45) 100%
    );
}

.glow {
  position: absolute;
  border-radius: 50%;
  /* Soft orbs; overall background blur is handled by .stage-blur-root. */
  filter: blur(28px);
  pointer-events: none;
  opacity: 0.55;
}

.glow-a {
  width: min(48vw, 420px);
  height: min(48vw, 420px);
  left: -8%;
  top: 18%;
  background: rgba(200, 245, 66, 0.22);
  animation: drift-a 9s ease-in-out infinite alternate;
}

.glow-b {
  width: min(40vw, 360px);
  height: min(40vw, 360px);
  right: -6%;
  bottom: 8%;
  background: rgba(255, 90, 54, 0.2);
  animation: drift-b 11s ease-in-out infinite alternate;
}

.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.hero {
  position: relative;
  z-index: 2;
  width: min(640px, 100%);
  text-align: left;
}

.brand {
  margin: 0 0 1.1rem;
  font-family: var(--gsp-brand-font);
  font-weight: var(--gsp-brand-weight);
  font-style: var(--gsp-brand-style);
  font-size: calc(clamp(2.4rem, 7vw, 4.2rem) * var(--gsp-brand-scale));
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--foam);
  -webkit-text-stroke-width: var(--gsp-brand-stroke-width);
  -webkit-text-stroke-color: var(--gsp-brand-stroke-color);
  paint-order: stroke fill;
  animation: rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.headline {
  margin: 0 0 0.75rem;
  font-family: var(--gsp-headline-font);
  font-weight: var(--gsp-headline-weight);
  font-style: var(--gsp-headline-style);
  font-size: calc(var(--gsp-body-size) * var(--gsp-headline-scale));
  letter-spacing: -0.02em;
  color: var(--signal);
  -webkit-text-stroke-width: var(--gsp-headline-stroke-width);
  -webkit-text-stroke-color: var(--gsp-headline-stroke-color);
  paint-order: stroke fill;
  animation: rise 800ms cubic-bezier(0.22, 1, 0.36, 1) 80ms both;
}

.sub {
  margin: 0 0 2rem;
  max-width: 38ch;
  font-family: var(--gsp-sub-font);
  font-weight: var(--gsp-sub-weight);
  font-style: var(--gsp-sub-style);
  font-size: calc(var(--gsp-body-size) * var(--gsp-sub-scale));
  line-height: 1.45;
  color: var(--foam);
  -webkit-text-stroke-width: var(--gsp-sub-stroke-width);
  -webkit-text-stroke-color: var(--gsp-sub-stroke-color);
  paint-order: stroke fill;
  animation: rise 850ms cubic-bezier(0.22, 1, 0.36, 1) 140ms both;
}

.rail {
  position: relative;
  height: 3px;
  width: min(280px, 70%);
  background: rgba(244, 247, 251, 0.12);
  overflow: hidden;
  animation: rise 900ms cubic-bezier(0.22, 1, 0.36, 1) 200ms both;
}

body.mode-wait .rail {
  display: none;
}

.rail-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(90deg, var(--signal-deep), var(--signal), var(--flare));
  box-shadow: 0 0 18px rgba(200, 245, 66, 0.45);
  animation: fill-rail 1.35s cubic-bezier(0.4, 0, 0.2, 1) 280ms forwards;
}

.meta {
  margin: 1rem 0 0;
  min-height: 1.25em;
  font-family: var(--gsp-meta-font);
  font-weight: var(--gsp-meta-weight);
  font-style: var(--gsp-meta-style);
  font-size: calc(0.85rem * var(--gsp-meta-scale));
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--foam);
  -webkit-text-stroke-width: var(--gsp-meta-stroke-width);
  -webkit-text-stroke-color: var(--gsp-meta-stroke-color);
  paint-order: stroke fill;
  animation: rise 900ms cubic-bezier(0.22, 1, 0.36, 1) 260ms both;
}

.cancel-btn {
  margin-top: 1.5rem;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: #2a3140;
  color: var(--foam);
  font: 600 14px "Outfit", system-ui, sans-serif;
  cursor: pointer;
  animation: rise 900ms cubic-bezier(0.22, 1, 0.36, 1) 280ms both;
}

.cancel-btn:hover {
  background: #3a4254;
}

.hidden {
  display: none !important;
}

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

@keyframes fill-rail {
  to {
    width: 100%;
  }
}

@keyframes drift-a {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(6%, 8%) scale(1.08);
  }
}

@keyframes drift-b {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-8%, -5%) scale(1.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .glow-a,
  .glow-b,
  .brand,
  .headline,
  .sub,
  .rail,
  .meta,
  .cancel-btn,
  .rail-fill,
  .play-mark {
    animation: none !important;
  }

  .stage-blur-root {
    filter: blur(calc(var(--gsp-bg-blur) * 0.5));
  }

  .brand,
  .headline,
  .sub,
  .rail,
  .meta,
  .cancel-btn {
    opacity: 1;
    transform: none;
  }

  .rail-fill {
    width: 100%;
  }
}
