/* Graviton Flux — synthwave / pixel landing */
:root {
  --gf-void: #02010a;
  --gf-deep: #0a0620;
  --gf-red: #ff2a2a;
  --gf-yellow: #ffd93a;
  --gf-mint: #4fff78;
  --gf-cyan: #4dccff;
  --gf-purple: #b378ff;
  --gf-pink: #ff4fd8;
  --gf-ink: #e8f0ff;
  --gf-muted: rgba(232, 240, 255, 0.55);
  --font-title: "Jersey 20", "Jersey 15", monospace;
  --font-display: "Jersey 15", "Jersey 10", monospace;
  --font-ui: "Jersey 10", "Tiny5", monospace;
  --font-tiny: "Tiny5", "Jersey 10", monospace;
}

@font-face {
  font-family: "Jersey 15 Local";
  src: url("../fonts/Jersey15-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Tiny5 Local";
  src: url("../fonts/Tiny5-Regular.ttf") format("truetype");
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  color: var(--gf-ink);
  background: var(--gf-void);
  overflow-x: hidden;
  image-rendering: pixelated;
  -webkit-font-smoothing: none;
}

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

a { color: var(--gf-cyan); text-decoration: none; }
a:hover { color: var(--gf-yellow); }

.wrap {
  width: min(1100px, 100% - 2rem);
  margin-inline: auto;
}

/* —— Global CRT (page-wide; hero adds a second heavier layer) —— */
.crt-vignette {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.28) 0px,
      rgba(0, 0, 0, 0.28) 1px,
      transparent 1px,
      transparent 3px
    ),
    radial-gradient(ellipse at center, transparent 38%, rgba(0, 0, 0, 0.78) 100%);
  mix-blend-mode: multiply;
  opacity: 0.85;
}

/* —— Hero —— */
.hero {
  --horizon: 52%;
  position: relative;
  min-height: min(100vh, 900px);
  min-height: min(100dvh, 900px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(3.5rem, 10vh, 5.5rem) 0 2rem;
  overflow: hidden;
  background: #02010a;
}

.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-sky {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--horizon);
  background: linear-gradient(
    180deg,
    #02010a 0%,
    #0d0221 40%,
    #45125e 78%,
    #a22561 94%,
    #ff3864 100%
  );
}

#starfield {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  height: var(--horizon);
}

/* Clip: black hole never paints below the horizon */
.bh-clip {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--horizon);
  overflow: hidden;
  z-index: 2;
}

.black-hole {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(42vw, 280px);
  height: min(42vw, 280px);
  transform: translate(-50%, 50%);
}

.bh-glow {
  position: absolute;
  inset: -32%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 45%,
    rgba(255, 180, 90, 0.75) 0%,
    rgba(255, 56, 100, 0.55) 22%,
    rgba(255, 79, 216, 0.28) 42%,
    rgba(80, 0, 120, 0.18) 58%,
    transparent 72%
  );
  animation: bhPulse 2.4s ease-in-out infinite;
  will-change: transform, opacity, filter;
}

.bh-core {
  position: absolute;
  inset: 26%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #120818 0%, #000 52%, #000 100%);
  box-shadow:
    0 0 0 3px rgba(255, 56, 100, 0.45),
    0 0 36px 8px rgba(255, 56, 100, 0.45),
    0 0 80px 20px rgba(255, 120, 40, 0.2),
    inset 0 0 28px #000;
}

@keyframes bhPulse {
  0%, 100% {
    opacity: 0.55;
    transform: scale(0.88);
    filter: blur(2px) brightness(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.14);
    filter: blur(0.5px) brightness(1.35);
  }
}

/* Synthwave floor — canvas does true perspective projection */
.synth-floor {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--horizon);
  bottom: 0;
  z-index: 3;
  overflow: hidden;
  background: #09090e;
  border-top: 2px solid rgba(255, 79, 216, 0.7);
  box-shadow:
    0 -1px 0 rgba(77, 204, 255, 0.45),
    0 -14px 48px rgba(255, 56, 100, 0.28);
}

#synthFloor {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Strong vintage CRT scanlines over the whole hero */
.hero-scanlines {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.45) 0px,
      rgba(0, 0, 0, 0.45) 1px,
      transparent 1px,
      transparent 2px
    ),
    repeating-linear-gradient(
      to bottom,
      transparent 0px,
      transparent 2px,
      rgba(255, 255, 255, 0.03) 2px,
      rgba(255, 255, 255, 0.03) 3px
    ),
    radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.45) 100%);
  mix-blend-mode: multiply;
  opacity: 1;
  animation: scanFlicker 5.5s steps(2) infinite;
}

@keyframes scanFlicker {
  0%, 92%, 100% { opacity: 1; }
  93% { opacity: 0.78; }
  95% { opacity: 0.95; }
  97% { opacity: 0.82; }
}

.hero-content {
  position: relative;
  z-index: 7;
  text-align: center;
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 0.5rem;
  /* keep copy in the sky band, clear of the hole */
  max-height: calc(var(--horizon) - 2rem);
}

.hero-icon,
.final-icon {
  display: block;
  margin-inline: auto;
  border-radius: 22%;
  border: 3px solid rgba(255, 217, 58, 0.55);
  box-shadow:
    0 0 0 2px rgba(255, 42, 42, 0.35),
    0 0 28px rgba(255, 128, 40, 0.45),
    0 8px 24px rgba(0, 0, 0, 0.65);
  image-rendering: auto;
  -webkit-font-smoothing: antialiased;
}
.hero-icon {
  width: clamp(96px, 18vw, 148px);
  height: auto;
  margin-bottom: 0.85rem;
}
.final-icon {
  width: 88px;
  height: auto;
  margin-bottom: 1rem;
  border-width: 2px;
}

.eyebrow {
  font-family: var(--font-tiny);
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gf-mint);
  margin: 0 0 0.85rem;
  text-shadow: 0 0 12px rgba(79, 255, 120, 0.5);
}

.logo-title {
  margin: 0;
  line-height: 0.9;
}
.logo-title .graviton {
  display: block;
  font-family: var(--font-title);
  font-size: clamp(3.2rem, 12vw, 6.5rem);
  color: var(--gf-red);
  text-shadow:
    3px 3px 0 #4a0000,
    0 0 28px rgba(255, 42, 42, 0.55);
}
.logo-title .flux {
  display: block;
  font-family: var(--font-title);
  font-size: clamp(2.3rem, 9vw, 4.6rem);
  color: var(--gf-yellow);
  letter-spacing: 0.18em;
  margin-top: 0.08em;
  text-shadow:
    3px 3px 0 #5a4200,
    0 0 24px rgba(255, 217, 58, 0.45);
}

.tagline {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  color: var(--gf-ink);
  max-width: 34rem;
  margin: 1.15rem auto 0;
  line-height: 1.35;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  padding: 0.85rem 1.4rem;
  border: 3px solid currentColor;
  background: rgba(2, 1, 10, 0.65);
  color: var(--gf-cyan);
  cursor: pointer;
  transition: transform 0.15s steps(2), background 0.15s, box-shadow 0.15s;
  box-shadow: 0 0 0 0 transparent;
  text-transform: uppercase;
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 currentColor, 0 0 24px rgba(77, 204, 255, 0.35);
  background: rgba(77, 204, 255, 0.12);
  color: var(--gf-cyan);
}
.btn-apple {
  color: var(--gf-ink);
  border-color: var(--gf-ink);
  background: linear-gradient(180deg, #2a2a32 0%, #111118 100%);
}
.btn-apple:hover {
  color: #fff;
  border-color: #fff;
  box-shadow: 4px 4px 0 #fff, 0 0 28px rgba(255, 255, 255, 0.2);
}
.btn-ghost {
  color: var(--gf-yellow);
  border-color: var(--gf-yellow);
}
.btn-ghost:hover {
  color: var(--gf-yellow);
  box-shadow: 4px 4px 0 var(--gf-yellow), 0 0 24px rgba(255, 217, 58, 0.3);
}

.apple-mark {
  width: 18px;
  height: 22px;
  flex-shrink: 0;
}

.scroll-hint {
  margin-top: 2.5rem;
  font-family: var(--font-tiny);
  font-size: 0.95rem;
  color: var(--gf-muted);
  letter-spacing: 0.2em;
  animation: bob 1.4s steps(4) infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* —— Sections —— */
.section {
  padding: 4.5rem 0;
  position: relative;
}
.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-head h2 {
  font-family: var(--font-title);
  font-size: clamp(2rem, 6vw, 3.2rem);
  color: var(--gf-yellow);
  margin: 0 0 0.5rem;
  text-shadow: 0 0 20px rgba(255, 217, 58, 0.35);
}
.section-head p {
  font-family: var(--font-ui);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--gf-muted);
  max-width: 36rem;
  margin: 0 auto;
  line-height: 1.4;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.feature {
  border: 3px solid rgba(179, 120, 255, 0.45);
  background: linear-gradient(160deg, rgba(179, 120, 255, 0.08), rgba(2, 1, 10, 0.9));
  padding: 1.25rem 1.15rem 1.35rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s steps(2);
}
.feature:hover {
  border-color: var(--gf-cyan);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--gf-cyan);
}
.feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  animation: sheen 4s linear infinite;
}
@keyframes sheen {
  0% { left: -40%; }
  100% { left: 120%; }
}
.feature h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gf-mint);
  margin: 0 0 0.55rem;
  letter-spacing: 0.04em;
}
.feature p {
  margin: 0;
  font-family: var(--font-tiny);
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--gf-muted);
}

/* —— Gallery —— */
.gallery-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0 1.25rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.gallery-track::-webkit-scrollbar { height: 8px; }
.gallery-track::-webkit-scrollbar-thumb {
  background: var(--gf-purple);
  border: 2px solid var(--gf-void);
}
.shot {
  flex: 0 0 min(220px, 58vw);
  scroll-snap-align: start;
  border: 3px solid rgba(77, 204, 255, 0.4);
  background: #000;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.shot:hover {
  border-color: var(--gf-pink);
  box-shadow: 0 0 28px rgba(255, 79, 216, 0.35);
}
.shot img {
  width: 100%;
  aspect-ratio: 1488 / 2266;
  object-fit: cover;
  object-position: center top;
}
.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, 0.15) 2px,
    rgba(0, 0, 0, 0.15) 3px
  );
  pointer-events: none;
}

/* —— Soundtrack —— */
.ost {
  border: 3px solid rgba(255, 42, 42, 0.45);
  background:
    linear-gradient(135deg, rgba(255, 42, 42, 0.1), transparent 40%),
    linear-gradient(225deg, rgba(179, 120, 255, 0.12), transparent 45%),
    rgba(10, 6, 32, 0.9);
  padding: 1.75rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem;
  align-items: center;
}
.ost h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gf-red);
  margin: 0 0 0.4rem;
}
.ost p {
  margin: 0;
  font-family: var(--font-tiny);
  font-size: 1.05rem;
  color: var(--gf-muted);
  max-width: 36rem;
}
.ost-controls {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: stretch;
}
.ost-controls .btn { min-width: 10rem; }
.eq {
  display: flex;
  gap: 3px;
  height: 28px;
  align-items: flex-end;
  justify-content: center;
  opacity: 0.35;
}
.eq.is-on { opacity: 1; }
.eq span {
  width: 4px;
  background: var(--gf-mint);
  box-shadow: 0 0 8px rgba(79, 255, 120, 0.6);
  animation: eqBar 0.55s ease-in-out infinite alternate;
  height: 30%;
}
.eq span:nth-child(2) { animation-delay: 0.1s; height: 60%; }
.eq span:nth-child(3) { animation-delay: 0.2s; height: 40%; }
.eq span:nth-child(4) { animation-delay: 0.05s; height: 80%; }
.eq span:nth-child(5) { animation-delay: 0.15s; height: 50%; }
.eq:not(.is-on) span { animation: none; height: 20%; }
@keyframes eqBar {
  from { transform: scaleY(0.45); }
  to { transform: scaleY(1); }
}
@media (max-width: 700px) {
  .ost { grid-template-columns: 1fr; }
}

/* —— Levels strip —— */
.levels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.level-chip {
  font-family: var(--font-tiny);
  font-size: 0.95rem;
  padding: 0.45rem 0.7rem;
  border: 2px solid rgba(255, 217, 58, 0.35);
  color: var(--gf-yellow);
  background: rgba(255, 217, 58, 0.06);
  letter-spacing: 0.04em;
}

/* —— Final CTA —— */
.final {
  text-align: center;
  padding: 5rem 0 4rem;
  background:
    radial-gradient(ellipse 70% 60% at 50% 80%, rgba(255, 42, 42, 0.15), transparent 70%);
}
.final h2 {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 7vw, 3.8rem);
  color: var(--gf-ink);
  margin: 0 0 0.75rem;
  text-shadow: 0 0 30px rgba(77, 204, 255, 0.35);
}
.final p {
  font-family: var(--font-ui);
  color: var(--gf-muted);
  font-size: 1.15rem;
  margin: 0 0 1.5rem;
}

.footer {
  border-top: 2px solid rgba(179, 120, 255, 0.25);
  padding: 1.5rem 0 2.5rem;
  text-align: center;
  font-family: var(--font-tiny);
  font-size: 0.95rem;
  color: var(--gf-muted);
}
.footer .brand {
  color: var(--gf-red);
  font-family: var(--font-display);
  letter-spacing: 0.08em;
}

@media (prefers-reduced-motion: reduce) {
  .bh-glow,
  .hero-scanlines {
    animation: none !important;
  }
  .hero-scanlines { opacity: 0.9; }
}
