:root {
  --bg: #050508;
  --text: #e8eaf0;
  --accent: #00e5ff;
  --accent-dim: rgba(0, 229, 255, 0.12);
  --muted: #6b7280;
  --glass: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.07);
}

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

html, body {
  height: 100%;
}

body {
  font-family: "Outfit", sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow: hidden;
}

/* ── 3D Canvas ─────────────────────────────────────────────── */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* ── Overlay ──────────────────────────────────────────────── */
.overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: clamp(1rem, 3vw, 2.5rem);
}

.overlay::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(5, 5, 8, 0.55) 0%, transparent 100%);
}

/* ── Top bar ──────────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
}

.brand-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent), 0 0 28px rgba(0, 229, 255, 0.3);
  animation: pulse-dot 2s ease-in-out infinite;
}

.status {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.35rem 0.85rem;
  backdrop-filter: blur(12px);
  background: var(--glass);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: auto 0;
  padding: 2.5rem 2rem;
  border-radius: 24px;
  background: radial-gradient(ellipse 70% 55% at 50% 50%, rgba(5, 5, 8, 0.45), transparent 70%);
  will-change: transform;
}

.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.5), 0 2px 16px rgba(0, 0, 0, 0.9);
}

.title {
  font-weight: 800;
  font-size: clamp(3rem, 12vw, 8.5rem);
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  margin-bottom: 0.6rem;
  background: linear-gradient(90deg, var(--text) 0%, var(--accent) 50%, var(--text) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s ease-in-out infinite;
  text-shadow: none;
  filter: drop-shadow(0 0 30px rgba(0, 229, 255, 0.25));
}

.tagline {
  font-weight: 300;
  font-size: clamp(0.9rem, 1.6vw, 1.15rem);
  color: var(--text);
  opacity: 0.7;
  letter-spacing: 0.08em;
  margin-bottom: 1.4rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9);
}

/* ── Coming Soon (spaceship + fire) ───────────────────────── */
.cs-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2rem;
  position: relative;
}

.cs-ship {
  position: relative;
  flex-shrink: 0;
  animation:
    ship-bob 3s ease-in-out infinite,
    ship-recoil 0.35s ease-out infinite,
    ship-drift 8s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.5));
}

.cs-ship svg {
  display: block;
  transform: scaleX(-1);
}

.cs-exhaust {
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 8px;
  background: linear-gradient(270deg, transparent 0%, #ff4400 30%, #ffaa00 60%, #ff6600 100%);
  border-radius: 0 50% 50% 0;
  opacity: 0.8;
  animation: exhaust-flicker 0.15s ease-in-out infinite alternate;
  filter: blur(1.5px);
}

/* Muzzle flash at ship nose (left side, where ship fires) */
.cs-muzzle {
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #00e5ff 40%, transparent 70%);
  animation: muzzle-flash 0.35s ease-out infinite;
  pointer-events: none;
}

/* ── Bullet lane ─────────────────────────────────────────── */
.cs-bullet-lane {
  position: relative;
  width: clamp(40px, 8vw, 100px);
  height: 20px;
  flex-shrink: 0;
  overflow: visible;
}

.cs-bullet {
  position: absolute;
  top: 50%;
  right: 0;
  width: 14px;
  height: 2.5px;
  border-radius: 1px;
  background: linear-gradient(270deg, transparent 0%, #00e5ff 30%, #fff 100%);
  box-shadow: 0 0 6px #00e5ff, 0 0 14px rgba(0, 229, 255, 0.6), -2px 0 8px #fff;
  transform: translateY(-50%);
  opacity: 0;
  animation: bullet-fly 0.35s linear infinite;
}

.cs-bullet--1 { animation-delay: 0s; }
.cs-bullet--2 { animation-delay: 0.07s; top: calc(50% - 3px); }
.cs-bullet--3 { animation-delay: 0.14s; top: calc(50% + 3px); }
.cs-bullet--4 { animation-delay: 0.21s; top: calc(50% - 1px); }
.cs-bullet--5 { animation-delay: 0.28s; top: calc(50% + 1px); }

/* ── Impact sparks near SOON ─────────────────────────────── */
.cs-spark {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ffcc00;
  pointer-events: none;
  box-shadow: 0 0 4px #ffaa00, 0 0 8px #ff6600;
  animation: spark-fly 0.5s ease-out infinite;
}

.cs-spark--1 { right: -2px; bottom: 50%; animation-delay: 0.05s; --sx: 8px; --sy: -14px; }
.cs-spark--2 { right: 0;    bottom: 55%; animation-delay: 0.15s; --sx: 6px; --sy: 12px; }
.cs-spark--3 { right: -4px; bottom: 45%; animation-delay: 0.25s; --sx: 10px; --sy: -8px; }
.cs-spark--4 { right: -1px; bottom: 52%; animation-delay: 0.35s; --sx: 5px; --sy: 10px; }

.cs-text {
  display: flex;
  align-items: baseline;
  gap: 0.45em;
  white-space: nowrap;
}

.cs-coming {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: clamp(1.4rem, 4vw, 2.6rem);
  letter-spacing: 0.14em;
  color: var(--text);
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.cs-soon {
  position: relative;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: clamp(1.4rem, 4vw, 2.6rem);
  letter-spacing: 0.14em;
  color: #fff;
  text-shadow:
    0 0 4px #fff,
    0 -2px 8px #ff6600,
    0 -4px 16px #ff4400,
    0 -6px 24px #ff2200,
    2px -4px 12px #ff8800;
  animation: fire-text 0.12s ease-in-out infinite alternate;
  overflow: visible;
}

/* Flame particles above SOON */
.cs-fire {
  position: absolute;
  bottom: 85%;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
  animation: flame-rise 1s ease-out infinite;
}

.cs-fire--1 {
  left: 15%;
  width: 6px;
  height: 10px;
  background: #ff6600;
  animation-duration: 0.9s;
  animation-delay: 0s;
}

.cs-fire--2 {
  left: 50%;
  width: 5px;
  height: 8px;
  background: #ffaa00;
  animation-duration: 1.1s;
  animation-delay: 0.25s;
}

.cs-fire--3 {
  left: 80%;
  width: 4px;
  height: 9px;
  background: #ff4400;
  animation-duration: 0.8s;
  animation-delay: 0.5s;
}

/* ── Countdown ────────────────────────────────────────────── */
.countdown {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  backdrop-filter: blur(16px);
  background: var(--glass);
  overflow: hidden;
}

.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.9rem clamp(0.8rem, 2.5vw, 1.8rem);
}

.cd-val {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1;
  color: var(--text);
}

.cd-label {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.25rem;
}

.cd-sep {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.4rem;
  color: var(--accent);
  opacity: 0.5;
  padding: 0 0.15rem;
  animation: blink-sep 1s step-end infinite;
}

/* ── Notify ───────────────────────────────────────────────── */
.notify {
  display: flex;
  width: min(480px, 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(16px);
  background: var(--glass);
  transition: border-color 0.25s;
}

.notify:focus-within {
  border-color: rgba(0, 229, 255, 0.35);
}

.notify input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  padding: 0.85rem 1rem;
  outline: none;
}

.notify input::placeholder {
  color: var(--muted);
}

.notify input:focus-visible,
.notify button:focus-visible {
  outline: 2px solid rgba(0, 229, 255, 0.7);
  outline-offset: -2px;
}

.notify button {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border: none;
  background: var(--accent);
  color: var(--bg);
  font-family: "Outfit", sans-serif;
  font-weight: 500;
  font-size: 0.82rem;
  padding: 0.85rem 1.2rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}

.notify button:hover {
  background: #33ecff;
  transform: translateX(2px);
}

.form-note {
  min-height: 1.2em;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
}

.form-note.is-success {
  color: #5ef3c6;
}

.form-note.is-error {
  color: #ff7a9a;
}

/* ── Bottom bar ──────────────────────────────────────────── */
.bottombar {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.foot-dot {
  opacity: 0.3;
}

/* ── Animations ──────────────────────────────────────────── */
.anim-fade {
  opacity: 0;
  transform: translateY(1rem);
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--d, 0s);
}

.anim-slide {
  opacity: 0;
  transform: translateY(110%);
  animation: slideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--d, 0s);
  display: block;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 12px var(--accent), 0 0 28px rgba(0, 229, 255, 0.3); }
  50%      { box-shadow: 0 0 6px  var(--accent), 0 0 14px rgba(0, 229, 255, 0.15); }
}

@keyframes blink-sep {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 0.1; }
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  50%  { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

@keyframes ship-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

@keyframes ship-recoil {
  0%   { margin-left: 0; }
  15%  { margin-left: 3px; }
  100% { margin-left: 0; }
}

@keyframes ship-drift {
  0%   { translate: 0 0; }
  25%  { translate: 6px -3px; }
  50%  { translate: -4px 2px; }
  75%  { translate: 8px 1px; }
  100% { translate: 0 0; }
}

@keyframes exhaust-flicker {
  0%   { width: 18px; opacity: 0.7; }
  100% { width: 24px; opacity: 0.95; }
}

@keyframes muzzle-flash {
  0%   { opacity: 0; transform: translateY(-50%) scale(0.3); }
  15%  { opacity: 1; transform: translateY(-50%) scale(1.6); }
  40%  { opacity: 0.6; transform: translateY(-50%) scale(1); }
  100% { opacity: 0; transform: translateY(-50%) scale(0.3); }
}

@keyframes bullet-fly {
  0%   { right: 0; opacity: 0; transform: translateY(-50%) scaleX(0.5); }
  10%  { opacity: 1; transform: translateY(-50%) scaleX(1); }
  80%  { opacity: 0.9; }
  100% { right: 100%; opacity: 0; transform: translateY(-50%) scaleX(1.3); }
}

@keyframes spark-fly {
  0%   { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--sx), var(--sy)) scale(0); opacity: 0; }
}

@keyframes beam-pulse {
  0%, 100% { opacity: 0.8; }
  50%      { opacity: 1; }
}

@keyframes beam-dot {
  0%   { box-shadow: 0 0 6px var(--accent), 0 0 12px var(--accent); transform: translateY(-50%) scale(0.8); }
  100% { box-shadow: 0 0 14px var(--accent), 0 0 28px var(--accent); transform: translateY(-50%) scale(1.2); }
}

@keyframes fire-text {
  0%   {
    text-shadow:
      0 0 4px #fff,
      0 -2px 8px #ff6600,
      0 -4px 16px #ff4400,
      0 -6px 24px #ff2200,
      2px -4px 12px #ff8800;
  }
  100% {
    text-shadow:
      0 0 4px #fff,
      0 -3px 10px #ff8800,
      0 -5px 18px #ff5500,
      0 -7px 28px #ff3300,
      -2px -5px 14px #ffaa00;
  }
}

@keyframes flame-rise {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.9;
  }
  50% {
    transform: translateY(-12px) scale(0.7);
    opacity: 0.5;
  }
  100% {
    transform: translateY(-22px) scale(0.2);
    opacity: 0;
  }
}

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  .title {
    font-size: clamp(2.2rem, 10vw, 3.5rem);
    letter-spacing: 0.04em;
  }
  .cs-wrap {
    gap: 0;
  }
  .cs-ship svg {
    width: 32px;
    height: 18px;
  }
  .cs-beam {
    width: 20px;
  }
  .cs-bullet-lane {
    width: 30px;
  }
  .cs-bullet {
    width: 10px;
  }
  .cs-coming,
  .cs-soon {
    font-size: clamp(1rem, 6vw, 1.6rem);
  }
  .notify {
    flex-direction: column;
  }
  .notify button {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero {
    transform: none !important;
  }
}
