/* OUTRUN Time Attack — three-screen splash site (Intro / Home / FAQ)
   Rebuilt from the design handoff prototypes (design_handoff_outrun_site).
   Display face: Exo 2 Italic, stand-in for VTF League ExtraBold Oblique. */

html, body { margin: 0; padding: 0; }

body { font-family: 'Exo 2', sans-serif; }

a { color: #c4b5fd; }
a:hover { color: #ffffff; }

/* ---------- Shared keyframes ---------- */

@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes btnBreath { 0%, 100% { box-shadow: 0 0 16px rgba(230, 30, 45, .3); } 50% { box-shadow: 0 0 32px rgba(230, 30, 45, .6); } }
@keyframes btnBreathIntro { 0%, 100% { box-shadow: 0 0 18px rgba(230, 30, 45, .25), inset 0 0 14px rgba(230, 30, 45, .12); } 50% { box-shadow: 0 0 34px rgba(230, 30, 45, .5), inset 0 0 20px rgba(230, 30, 45, .22); } }

/* ---------- Shared buttons (Home + FAQ sizes via variables) ---------- */

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--btn-h, 56px);
  padding: 0 var(--btn-pad, 44px);
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% 100%, var(--btn-cut, 18px) 100%, 0 calc(100% - var(--btn-cut, 18px)));
  font-style: italic;
  font-weight: 900;
  font-size: var(--btn-fs, 17px);
  letter-spacing: 4px;
}

.btn-primary {
  background: linear-gradient(180deg, #ef2438 0%, #b3121f 100%);
  border: 1px solid rgba(255, 120, 120, .5);
  color: #ffffff;
  animation: btnBreath 3s ease-in-out infinite;
  transition: filter .2s, transform .2s;
}
.btn-primary:hover { filter: brightness(1.2); color: #ffffff; }

.btn-ghost {
  box-sizing: border-box;
  background: rgba(20, 10, 40, .45);
  border: 1px solid rgba(150, 110, 250, .6);
  color: #d8ccff;
  transition: background .2s, color .2s, transform .2s;
}
.btn-ghost:hover { background: rgba(124, 84, 220, .35); color: #ffffff; }

/* ================================================================
   INTRO (index.html) — full-viewport key-art splash
   ================================================================ */

body.intro { background: #030107; }

.intro-viewport {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #030107;
  animation: introFade 1.4s ease-out both;
}

@keyframes introFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes kenBurns { from { transform: scale(1); } to { transform: scale(1.045); } }
@keyframes lightningA { 0%, 6%, 100% { opacity: 0; } 1% { opacity: .9; } 2% { opacity: .15; } 3% { opacity: .7; } 4.5% { opacity: 0; } 52% { opacity: 0; } 53% { opacity: .55; } 54% { opacity: 0; } }
@keyframes lightningB { 0%, 100% { opacity: 0; } 24% { opacity: 0; } 25% { opacity: .8; } 26% { opacity: .1; } 27.5% { opacity: .6; } 29% { opacity: 0; } 74% { opacity: 0; } 75% { opacity: .5; } 76% { opacity: 0; } }
@keyframes sunPulse { 0%, 100% { opacity: .35; } 50% { opacity: .7; } }
@keyframes scanMove { from { background-position: 0 0; } to { background-position: 0 6px; } }

/* Desktop: the 16:9 art on a 1920x1080 design stage, contain-fit to the
   viewport. --u is one design-space pixel (incl. the prototype's 1.02
   overscale), so every design coordinate below is N * var(--u). */

.intro-desktop {
  position: absolute;
  inset: 0;
  --u: calc(min(100vw / 1920, 100vh / 1080) * 1.02);
}

.intro-backdrop {
  position: absolute;
  inset: -40px;
  width: calc(100% + 80px);
  height: calc(100% + 80px);
  object-fit: cover;
  filter: blur(42px) brightness(.55) saturate(1.2);
}

.intro-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--u) * 1920);
  height: calc(var(--u) * 1080);
  transform: translate(-50%, -50%);
}

.intro-zoom {
  position: absolute;
  inset: 0;
  animation: kenBurns 36s ease-in-out infinite alternate;
}

.intro-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.glow {
  position: absolute;
  mix-blend-mode: screen;
  pointer-events: none;
}

.glow-lightning-a {
  left: calc(var(--u) * -60);
  top: calc(var(--u) * -80);
  width: calc(var(--u) * 700);
  height: calc(var(--u) * 500);
  background: radial-gradient(closest-side, rgba(255, 60, 40, .5), rgba(255, 60, 40, 0) 70%);
  opacity: 0;
  animation: lightningA 9s linear infinite;
}

.glow-lightning-b {
  left: calc(var(--u) * 640);
  top: calc(var(--u) * -120);
  width: calc(var(--u) * 760);
  height: calc(var(--u) * 520);
  background: radial-gradient(closest-side, rgba(255, 70, 50, .45), rgba(255, 70, 50, 0) 70%);
  opacity: 0;
  animation: lightningB 11s linear infinite;
}

.glow-sun {
  left: calc(var(--u) * 300);
  top: calc(var(--u) * 200);
  width: calc(var(--u) * 460);
  height: calc(var(--u) * 340);
  background: radial-gradient(closest-side, rgba(170, 200, 255, .55), rgba(170, 200, 255, 0) 70%);
  opacity: .35;
  animation: sunPulse 7s ease-in-out infinite;
}

.intro-cta {
  position: absolute;
  left: calc(var(--u) * 1468);
  top: calc(var(--u) * 706);
  width: calc(var(--u) * 444);
  height: calc(var(--u) * 106);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--u) * 14);
  box-sizing: border-box;
  text-decoration: none;
  background: linear-gradient(180deg, #57121b 0%, #38080f 55%, #2a060c 100%);
  border: 1px solid rgba(255, 80, 80, .55);
  clip-path: polygon(0 0, 100% 0, 100% 100%, calc(var(--u) * 44) 100%, 0 calc(100% - var(--u) * 44));
  color: #ffe2e2;
  font-style: italic;
  font-weight: 800;
  font-size: calc(var(--u) * 26);
  letter-spacing: calc(var(--u) * 8);
  animation: btnBreathIntro 3.2s ease-in-out infinite;
  transition: background .25s, color .25s, border-color .25s;
}
.intro-cta:hover {
  background: linear-gradient(180deg, #8a1a28 0%, #5c0d18 55%, #470a13 100%);
  border-color: rgba(255, 130, 130, .95);
  color: #ffffff;
}
.intro-cta .label { padding-left: calc(var(--u) * 8); }
.intro-cta .arrow { font-style: normal; font-weight: 700; letter-spacing: 0; transform: translateY(-1px); }

.intro-credit {
  position: absolute;
  left: calc(var(--u) * 24);
  bottom: calc(var(--u) * 18);
  color: rgba(220, 210, 255, .55);
  font-style: italic;
  font-weight: 700;
  font-size: calc(var(--u) * 15);
  letter-spacing: calc(var(--u) * 4);
}

.scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .14) 0, rgba(0, 0, 0, .14) 1px, rgba(0, 0, 0, 0) 3px, rgba(0, 0, 0, 0) 6px);
  animation: scanMove 1.2s linear infinite;
  opacity: .5;
}

.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 55%, rgba(3, 1, 7, .75) 100%);
}

/* Mobile intro: scrollable 4:5 poster + CTA column */

.intro-mobile {
  display: none;
  position: absolute;
  inset: 0;
  overflow-y: auto;
  flex-direction: column;
  align-items: center;
}

.intro-poster {
  width: 100%;
  position: relative;
  animation: riseIn .9s ease-out both;
}
.intro-poster img { width: 100%; display: block; }

.poster-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  background: linear-gradient(180deg, rgba(3, 1, 7, 0), #030107);
}

.intro-mobile-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 6px 24px 44px;
  animation: riseIn .9s ease-out .25s both;
}

.intro-cta-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 60px;
  padding: 0 42px;
  text-decoration: none;
  background: linear-gradient(180deg, #57121b 0%, #38080f 55%, #2a060c 100%);
  border: 1px solid rgba(255, 80, 80, .55);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 26px 100%, 0 calc(100% - 26px));
  color: #ffe2e2;
  font-style: italic;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 5px;
  animation: btnBreathIntro 3.2s ease-in-out infinite;
  transition: color .25s, border-color .25s;
}
.intro-cta-mobile:hover { border-color: rgba(255, 130, 130, .95); color: #ffffff; }
.intro-cta-mobile .arrow { font-style: normal; }

.intro-credit-mobile {
  color: rgba(220, 210, 255, .5);
  font-style: italic;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 3px;
  text-align: center;
}

/* Breakpoint from the handoff: mobile when width < 760px or aspect < 0.85 */
@media (max-width: 759px), (max-aspect-ratio: 17/20) {
  .intro-desktop { display: none; }
  .intro-mobile { display: flex; }
}

/* ================================================================
   HOME (home.html) — synthwave hero
   ================================================================ */

body.home { background: #070310; }

@keyframes gridFlow { from { background-position: 0 0; } to { background-position: 0 120px; } }
@keyframes gridFlowUp { from { background-position: 0 0; } to { background-position: 0 -120px; } }
@keyframes logoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes glowPulse { 0%, 100% { opacity: .45; } 50% { opacity: .85; } }
@keyframes streak { from { transform: translateX(-30vw); opacity: 0; } 8% { opacity: .8; } 92% { opacity: .8; } to { transform: translateX(130vw); opacity: 0; } }

.synth {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 38%, #150a2a 0%, #0b0518 45%, #050208 100%);
  display: flex;
  flex-direction: column;
}

.grid-ceiling {
  position: absolute;
  left: -25%;
  right: -25%;
  top: -12%;
  height: 46%;
  pointer-events: none;
  transform: perspective(520px) rotateX(-58deg);
  transform-origin: 50% 100%;
  background-image:
    linear-gradient(rgba(139, 92, 246, .22) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(139, 92, 246, .22) 1.5px, transparent 1.5px);
  background-size: 120px 120px;
  animation: gridFlowUp 9s linear infinite;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .8), transparent);
          mask-image: linear-gradient(180deg, rgba(0, 0, 0, .8), transparent);
}

.grid-floor {
  position: absolute;
  left: -25%;
  right: -25%;
  bottom: -14%;
  height: 52%;
  pointer-events: none;
  transform: perspective(480px) rotateX(58deg);
  transform-origin: 50% 0%;
  background-image:
    linear-gradient(rgba(168, 130, 255, .35) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(168, 130, 255, .35) 1.5px, transparent 1.5px);
  background-size: 120px 120px;
  animation: gridFlow 5s linear infinite;
  -webkit-mask-image: linear-gradient(0deg, rgba(0, 0, 0, .9), transparent);
          mask-image: linear-gradient(0deg, rgba(0, 0, 0, .9), transparent);
}

.horizon-glow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34%;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(124, 84, 220, .28), rgba(124, 84, 220, 0));
}

.streak { position: absolute; pointer-events: none; opacity: 0; }
.streak-1 {
  left: 10%;
  top: 26%;
  width: 34vw;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(200, 180, 255, .7), transparent);
  animation: streak 7s linear infinite;
  animation-delay: 1.5s;
}
.streak-2 {
  left: 4%;
  top: 64%;
  width: 26vw;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(255, 120, 120, .6), transparent);
  animation: streak 9s linear infinite;
  animation-delay: 4s;
}

.hero {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 4vh, 44px);
  padding: clamp(28px, 6vh, 64px) 20px;
  text-align: center;
}

.kicker {
  margin: 0;
  display: flex;
  flex-wrap: wrap; /* not in the prototype: lets the date/venue stack instead of clipping on narrow phones */
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #b7a6e8;
  font-style: italic;
  font-weight: 800;
  font-size: clamp(13px, 1.5vw, 18px);
  letter-spacing: 6px;
  animation: fadeUp .8s ease-out .1s both;
}

.kicker-rule {
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #7c5adc, transparent);
}

.logo-wrap {
  margin: 0;
  position: relative;
  animation: fadeUp .9s ease-out .3s both;
}

.logo-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 130%;
  height: 180%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(230, 40, 55, .38), rgba(230, 40, 55, 0) 70%);
  opacity: .45;
  animation: glowPulse 4.5s ease-in-out infinite;
  pointer-events: none;
}

.logo-img {
  position: relative;
  width: min(660px, 84vw);
  display: block;
  animation: logoFloat 7s ease-in-out infinite;
  filter: drop-shadow(0 10px 30px rgba(120, 80, 220, .45));
}

.tagline {
  margin: 0;
  color: #f2eefc;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(19px, 2.6vw, 32px);
  letter-spacing: 3px;
  animation: fadeUp .9s ease-out .5s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  animation: fadeUp .9s ease-out .65s both;
}
.cta-row .btn-primary:hover { transform: translateY(-2px); }
.cta-row .btn-ghost:hover { transform: translateY(-2px); }

.series {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 980px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 10px;
  row-gap: 10px;
  animation: fadeUp .9s ease-out .8s both;
}

.series li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cfc3f2;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(13px, 1.5vw, 17px);
  letter-spacing: 3px;
}

.series li + li::before {
  content: "\25CF";
  content: "\25CF" / "";
  color: #ef2438;
  font-size: 10px;
  letter-spacing: 0;
}

.site-footer {
  color: rgba(210, 200, 240, .6);
  font-weight: 400;
  font-size: 14px;
  animation: fadeUp .9s ease-out .95s both;
}
.site-footer a { color: #cfc3f2; font-weight: 700; }
.site-footer a:hover { color: #ffffff; }

/* ================================================================
   FAQ (faq.html)
   ================================================================ */

body.faq { background: #070310; }

.faq-scene {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #150a2a 0%, #0b0518 45%, #050208 100%);
}

/* Same floor grid as Home but dimmer and static */
.faq-floor {
  position: absolute;
  left: -25%;
  right: -25%;
  bottom: -16%;
  height: 44%;
  pointer-events: none;
  transform: perspective(480px) rotateX(58deg);
  transform-origin: 50% 0%;
  background-image:
    linear-gradient(rgba(168, 130, 255, .28) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(168, 130, 255, .28) 1.5px, transparent 1.5px);
  background-size: 120px 120px;
  -webkit-mask-image: linear-gradient(0deg, rgba(0, 0, 0, .9), transparent);
          mask-image: linear-gradient(0deg, rgba(0, 0, 0, .9), transparent);
}

.faq-col {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(28px, 5vh, 56px) 24px 64px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  --btn-h: 54px;
  --btn-pad: 40px;
  --btn-fs: 16px;
  --btn-cut: 16px;
}

.faq-logo {
  align-self: center;
  animation: fadeUp .7s ease-out both;
}
.faq-logo img {
  width: min(220px, 50vw);
  display: block;
  filter: drop-shadow(0 6px 18px rgba(120, 80, 220, .5));
}

.faq-title {
  margin: 0;
  text-align: center;
  color: #c9b8f5;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(24px, 3.4vw, 38px);
  letter-spacing: 6px;
  animation: fadeUp .7s ease-out .12s both;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.faq-item { animation: fadeUp .7s ease-out both; }
.faq-item:nth-child(1) { animation-delay: .18s; }
.faq-item:nth-child(2) { animation-delay: .26s; }
.faq-item:nth-child(3) { animation-delay: .34s; }
.faq-item:nth-child(4) { animation-delay: .42s; }
.faq-item:nth-child(5) { animation-delay: .50s; }
.faq-item:nth-child(6) { animation-delay: .58s; }

.faq-q {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.faq-bar {
  width: 4px;
  height: 22px;
  background: #ef2438;
  box-shadow: 0 0 10px rgba(239, 36, 56, .8);
}

.faq-q h2 {
  margin: 0;
  color: #f2eefc;
  font-style: italic;
  font-weight: 800;
  font-size: clamp(17px, 2vw, 21px);
  letter-spacing: 2px;
}

.faq-a {
  margin: 0;
  color: #cbc2e6;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  text-wrap: pretty;
}

.faq-series {
  margin: 10px 0 0;
  padding-left: 22px;
  color: #cbc2e6;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.9;
}

.faq-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 10px;
  animation: fadeUp .7s ease-out .5s both;
}

.faq .site-footer { text-align: center; animation: none; }

/* ---------- Reduced motion: kill every loop and entrance ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
