/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  --color-void:            #000000;
  --color-space:           #050508;
  --color-deep:            #0a0a14;
  --color-surface:         #12121e;
  --color-border:          #1e1e32;
  --color-horizon-orange:  #ff6b2b;
  --color-horizon-amber:   #ffaa44;
  --color-horizon-blue:    #3b82f6;
  --color-horizon-cyan:    #06b6d4;
  --color-text-primary:    #f0f0f8;
  --color-text-secondary:  #8888aa;
  --color-text-accent:     #ff6b2b;
  --color-glow-orange:     rgba(255, 107, 43, 0.35);
  --color-glow-blue:       rgba(59, 130, 246, 0.25);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-space);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--color-text-primary);
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(255, 107, 43, 0.05) 0%, transparent 60%);
}

/* ============================================================
   Starfield Canvas
   ============================================================ */
#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ============================================================
   Black Hole Visual
   ============================================================ */
.black-hole-container {
  position: fixed;
  top: 50%;
  left: 65%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}

.black-hole {
  position: relative;
  width: 500px;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.accretion-disk {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #ff6b2b 0%,
    #ffaa44 15%,
    #ffffff 20%,
    #ffaa44 25%,
    transparent 35%,
    transparent 55%,
    #3b82f6 65%,
    transparent 75%,
    #ff6b2b 100%
  );
  filter: blur(8px);
  animation: disk-rotate 8s linear infinite;
}

.disk-inner {
  position: absolute;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: conic-gradient(
    from 90deg,
    #ffaa44 0%,
    #ff6b2b 20%,
    transparent 40%,
    transparent 70%,
    #ff6b2b 100%
  );
  filter: blur(4px);
  animation: disk-rotate 5s linear infinite reverse;
}

.singularity {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, #000000 65%, #050508 100%);
  box-shadow:
    0 0 60px 30px #000000,
    0 0 120px 60px rgba(0, 0, 0, 0.95);
  z-index: 5;
}

.gravitational-lens {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    transparent 30%,
    rgba(0, 0, 0, 0.7) 55%,
    transparent 75%
  );
  animation: lens-pulse 4s ease-in-out infinite alternate;
  z-index: 3;
}

.photon-ring {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 2px solid rgba(255, 107, 43, 0.7);
  box-shadow:
    0 0 15px 3px rgba(255, 107, 43, 0.5),
    inset 0 0 15px 3px rgba(255, 107, 43, 0.3);
  transform: scaleY(0.3);
  animation: photon-orbit 6s linear infinite;
  z-index: 4;
}

/* ============================================================
   Layout
   ============================================================ */
.page-wrapper {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem);
}

.hero-inner {
  max-width: 640px;
  padding-left: clamp(1rem, 5vw, 6rem);
}

/* Re-enable pointer events for interactive elements */
.notify-form,
.site-header,
.site-footer {
  pointer-events: auto;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: auto;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.3em;
  color: var(--color-horizon-orange);
  text-shadow: 0 0 20px var(--color-glow-orange);
}

.nav-classification {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--color-text-secondary);
}

/* ============================================================
   Mission Badge
   ============================================================ */
.mission-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
  animation: fade-in-up 0.8s ease both;
  animation-delay: 0.2s;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-horizon-orange);
  display: inline-block;
  flex-shrink: 0;
  animation: dot-pulse 2s ease-in-out infinite;
}

/* ============================================================
   Headline
   ============================================================ */
.headline {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  text-transform: uppercase;
  margin: 1rem 0 1.5rem;
}

.headline-line {
  display: block;
}

.headline-line--1 {
  animation: fade-in-up 0.8s ease both;
  animation-delay: 0.4s;
}

.headline-line--2 {
  background: linear-gradient(90deg, #ff6b2b, #ffaa44, #3b82f6, #ff6b2b);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(255, 107, 43, 0.6));
  animation: fade-in-up 0.8s ease both 0.6s, gradient-shift 4s ease infinite;
  animation-fill-mode: both;
}

/* ============================================================
   Subheadline
   ============================================================ */
.subheadline {
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--color-text-secondary);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 2rem;
  animation: fade-in-up 0.8s ease both;
  animation-delay: 0.8s;
}

/* ============================================================
   Countdown
   ============================================================ */
.countdown {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  animation: fade-in-up 0.8s ease both;
  animation-delay: 1s;
}

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

.countdown-digit {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-text-primary);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 30px rgba(255, 107, 43, 0.4);
  line-height: 1;
  display: block;
}

.countdown-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--color-text-secondary);
  margin-top: 0.25rem;
}

.countdown-separator {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--color-horizon-orange);
  opacity: 0.6;
  animation: sep-blink 1s step-end infinite;
  align-self: flex-start;
  line-height: 1;
}

.digit-tick {
  animation: digit-tick 150ms ease !important;
}

/* Launched state */
.launched-text {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-horizon-orange);
  text-shadow: 0 0 30px var(--color-glow-orange);
}

/* ============================================================
   Launch Date
   ============================================================ */
.launch-date {
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
}

/* ============================================================
   Notify Form
   ============================================================ */
.notify-form {
  display: flex;
  gap: 0.5rem;
  max-width: 480px;
  margin: 1.5rem 0;
  animation: fade-in-up 0.8s ease both;
  animation-delay: 1.2s;
  pointer-events: auto;
}

.notify-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  outline: none;
  transition: border-color 200ms, box-shadow 200ms;
}

.notify-input::placeholder {
  color: var(--color-text-secondary);
  opacity: 0.7;
}

.notify-input:focus {
  border-color: var(--color-horizon-orange);
  box-shadow: 0 0 0 2px var(--color-glow-orange);
}

.notify-btn {
  background: var(--color-horizon-orange);
  color: var(--color-void);
  border: none;
  cursor: pointer;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  font-family: inherit;
  transition: background 200ms, box-shadow 200ms;
  white-space: nowrap;
}

.notify-btn:hover {
  background: var(--color-horizon-amber);
  box-shadow: 0 0 20px var(--color-glow-orange);
}

.notify-btn:active {
  transform: scale(0.98);
}

.notify-btn.success {
  background: #22c55e;
  cursor: default;
}

/* ============================================================
   Mission Status
   ============================================================ */
.mission-status {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--color-text-secondary);
  animation: fade-in-up 0.8s ease both;
  animation-delay: 1.4s;
  flex-wrap: wrap;
}

.status-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.status-label {
  opacity: 0.6;
}

.status-value {
  color: var(--color-text-primary);
}

.status-value--live {
  color: var(--color-horizon-orange);
  animation: dot-pulse 2s ease-in-out infinite;
}

.status-divider {
  opacity: 0.3;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
  pointer-events: auto;
}

/* ============================================================
   Keyframe Animations
   ============================================================ */
@keyframes disk-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes lens-pulse {
  from { transform: scale(1);    opacity: 0.6; }
  to   { transform: scale(1.08); opacity: 1; }
}

@keyframes photon-orbit {
  0%   { transform: scaleY(0.3) rotate(0deg); }
  100% { transform: scaleY(0.3) rotate(360deg); }
}

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

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

@keyframes dot-pulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}

@keyframes gradient-shift {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

@keyframes digit-tick {
  0%   { transform: scaleY(1); }
  25%  { transform: scaleY(0.85); }
  100% { transform: scaleY(1); }
}

/* ============================================================
   Responsive — 768px and below
   ============================================================ */
@media (max-width: 768px) {
  .black-hole-container {
    top: 28%;
    left: 50%;
    opacity: 0.35;
  }

  .black-hole {
    width: 280px;
    height: 280px;
  }

  .singularity {
    width: 100px;
    height: 100px;
  }

  .gravitational-lens {
    width: 140px;
    height: 140px;
  }

  .photon-ring {
    width: 112px;
    height: 112px;
  }

  .hero-inner {
    padding-left: 1rem;
    text-align: left;
  }

  .notify-form {
    flex-direction: column;
  }

  .site-footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .countdown {
    gap: 0.5rem;
  }

  .countdown-unit {
    min-width: 60px;
  }

  .mission-status {
    gap: 0.5rem;
  }
}

/* ============================================================
   Reduced Motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
