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

/* ── Tokens ────────────────────────────────────────────────── */
:root {
  --bg:      #04080f;
  --cyan:    #00d4ff;
  --blue:    #0077ff;
  --orange:  #f97316;
  --text:    #e2eeff;
  --muted:   rgba(226,238,255,.4);
  --font:    'Plus Jakarta Sans', system-ui, sans-serif;
  --heading: 'Outfit', system-ui, sans-serif;
}

/* ── Lock viewport ─────────────────────────────────────────── */
html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: none;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0; left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
}

/* ── Grid background ───────────────────────────────────────── */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
}

/* ── Glow orbs ─────────────────────────────────────────────── */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 1;
  will-change: transform, opacity;
}

.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,212,255,.28), transparent 70%);
  top: -200px; left: -180px;
  animation: orb-drift-a 18s ease-in-out infinite alternate;
}

.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,119,255,.30), transparent 70%);
  bottom: -180px; right: -140px;
  animation: orb-drift-b 22s ease-in-out infinite alternate;
}

.orb-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(0,119,255,.20), transparent 70%);
  top: 30%; right: 10%;
  animation: orb-drift-c 14s ease-in-out infinite alternate;
}

.orb-4 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(249,115,22,.18), transparent 70%);
  bottom: 20%; left: 8%;
  animation: orb-drift-a 16s ease-in-out infinite alternate-reverse;
}

@keyframes orb-drift-a {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.12); }
}
@keyframes orb-drift-b {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-50px, -30px) scale(1.08); }
}
@keyframes orb-drift-c {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-30px, 50px) scale(1.15); }
}

/* ── Particle canvas ───────────────────────────────────────── */
.particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* ── Scanlines ─────────────────────────────────────────────── */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,.08) 3px,
    rgba(0,0,0,.08) 4px
  );
}

/* ── Vignette ──────────────────────────────────────────────── */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: radial-gradient(ellipse 100% 100% at 50% 50%, transparent 40%, rgba(4,8,15,.7) 100%);
}

/* ── Stage ─────────────────────────────────────────────────── */
.stage {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 3vh, 2.8rem);
  width: 100%;
  height: 100%;
  padding: 2rem;
  text-align: center;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}

.wip-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(0,212,255,.25);
  background: rgba(0,212,255,.06);
  padding: .35em 1em;
  border-radius: 100px;
  box-shadow: 0 0 20px rgba(0,212,255,.1);
  animation: fade-up .6s ease both;
}

.wip-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: blink 1.4s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: .2; }
}

/* ── Headline ──────────────────────────────────────────────── */
.headline {
  display: flex;
  flex-direction: column;
  gap: .1em;
  font-family: var(--heading);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.08;
}

.headline-line {
  display: block;
  color: var(--text);
}

.headline-line:nth-child(1) { animation: fade-up .7s .12s ease both; }
.headline-line:nth-child(3) { animation: fade-up .7s .32s ease both; }

.gradient-text {
  background: linear-gradient(90deg,
    var(--cyan)   0%,
    var(--blue)  35%,
    var(--orange) 50%,
    var(--blue)  65%,
    var(--cyan)  100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: gradient-pan 5s ease-in-out infinite, fade-up .7s .22s ease both;
  filter: drop-shadow(0 0 30px rgba(0,212,255,.2));
}

@keyframes gradient-pan {
  0%, 100% { background-position:   0% center; }
  50%      { background-position: 100% center; }
}

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

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  position: fixed;
  bottom: 1.8rem;
  left: 0;
  right: 0;
  width: fit-content;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .7rem;
  color: rgba(226,238,255,.2);
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: fade-up .7s .5s ease both;
}

.footer-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(0,212,255,.4);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 480px) {
  .headline { font-size: clamp(1.8rem, 8vw, 2.4rem); }
}

@media (max-height: 600px) {
  .stage { gap: 1.2rem; }
  .headline { font-size: clamp(1.4rem, 4vw, 2rem); }
}

/* ── Reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .orb                         { animation: none; }
  .wip-dot                     { animation: none; }
  .gradient-text               { animation: none; background-position: 0% center; }
  .wip-badge,
  .headline-line,
  .footer                      { animation: none; opacity: 1; transform: none; }
}
