:root {
  --bg: #070707;
  --white: #ffffff;
  --dim: rgba(255, 255, 255, 0.4);
  --muted: rgba(255, 255, 255, 0.3);
}

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

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Inter', sans-serif;
}

/* ── Grain overlay ─────────────────────────────── */
.grain-overlay {
  position: fixed;
  inset: -100%;
  width: 300%;
  height: 300%;
  z-index: 50;
  pointer-events: none;
  filter: url(#grain);
  opacity: 0.07;
  animation: grain-shift 0.4s steps(1) infinite;
}

@keyframes grain-shift {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-2%, 3%);
  }
  50% {
    transform: translate(3%, -2%);
  }
  75% {
    transform: translate(-1%, -3%);
  }
}

/* ── Ambient orb ───────────────────────────────── */
.orb {
  position: fixed;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109, 40, 217, 0.45) 0%, rgba(79, 70, 229, 0.2) 45%, transparent 70%);
  filter: blur(90px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: orb-pulse 7s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes orb-pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.75;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.18);
    opacity: 1;
  }
}

/* ── Hero layout ───────────────────────────────── */
.hero {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.content {
  text-align: center;
  opacity: 0;
  animation: fade-up 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

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

/* ── Headline ──────────────────────────────────── */
.headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4.5rem, 15vw, 100vh);
  line-height: 0.88;
  letter-spacing: 0.03em;
  color: var(--white);
}

.outline {
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.7);
  color: transparent;
  display: block;
  font-size: clamp(3.5rem, 15vw, 10rem);
}

/* ── Divider ───────────────────────────────────── */
.divider {
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
  margin: 2.2rem auto 1.8rem;
}

/* ── Tagline ───────────────────────────────────── */
.tagline {
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 2.8rem;
}

/* ── Countdown ─────────────────────────────────── */
.countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.25rem;
}

.unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 72px;
}

.number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  line-height: 1;
  color: var(--white);
}

.unit .label {
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.4rem;
}

.sep {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  line-height: 1;
  color: rgba(255, 255, 255, 0.3);
  padding: 0 0.1rem;
}

/* ── Mobile ────────────────────────────────────── */
@media (max-width: 600px) {
  .orb {
    width: 500px;
    height: 500px;
    top: 50%;
    opacity: 0.4;
    filter: blur(60px);
    animation: none;
  }

  .content {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 16px;
    padding: 2rem 1.5rem;
  }

  .notify-btn {
    width: 100%;
    height: 48px;
    letter-spacing: 0.15em;
  }

  .notify-input {
    width: 100% !important;
    height: 48px;
  }
}

/* ── Launch date ───────────────────────────────── */
.launch-date {
  margin-top: 2rem;
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}

/* ── Notify form ───────────────────────────────── */
.notify-form {
  margin-top: 2rem;
}

.notify-row {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.notify-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 0.55rem 1rem;
  outline: none;
  width: 220px;
  transition: border-color 0.2s;
}

.notify-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.notify-input:focus {
  border-color: rgba(124, 58, 237, 0.7);
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.15);
}

.notify-btn {
  background: rgba(124, 58, 237, 0.25);
  border: 1px solid rgba(124, 58, 237, 0.5);
  border-radius: 6px;
  color: var(--white);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  padding: 0.55rem 1.2rem;
  text-transform: uppercase;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.notify-btn:hover {
  background: rgba(124, 58, 237, 0.45);
  border-color: rgba(124, 58, 237, 0.8);
}

.notify-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.notify-status {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 0.75rem;
  min-height: 1em;
  color: rgba(255, 255, 255, 0.45);
}

.notify-status.success {
  color: rgba(134, 239, 172, 0.8);
}

.notify-status.error {
  color: rgba(252, 165, 165, 0.8);
}

/* ── Glitch animation ──────────────────────────── */
.glitching {
  animation: glitch-flash 0.3s steps(1) forwards;
}

@keyframes glitch-flash {
  0% {
    text-shadow:
      3px 0 #7c3aed,
      -3px 0 #06b6d4;
    transform: skewX(-5deg);
  }
  20% {
    text-shadow:
      -3px 0 #7c3aed,
      3px 0 #06b6d4;
    transform: skewX(4deg);
  }
  40% {
    text-shadow:
      2px 0 #7c3aed,
      -2px 0 #06b6d4;
    transform: skewX(-3deg);
  }
  60% {
    text-shadow:
      -1px 0 #7c3aed,
      1px 0 #06b6d4;
    transform: skewX(2deg);
  }
  80% {
    text-shadow:
      1px 0 #7c3aed,
      -1px 0 #06b6d4;
    transform: skewX(-1deg);
  }
  100% {
    text-shadow: none;
    transform: skewX(0);
  }
}
