/* ============================================================
   Alien Pulse Labs — Coming Soon
   ============================================================ */

:root {
  --bg: #0a0a0b;
  --text: #f5f5f4;
  --text-muted: #8a8a8f;
  --text-faint: #514f52;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --accent: #e2703a;
  --accent-rgb: 226, 112, 58;
  --accent-soft: rgba(var(--accent-rgb), 0.12);
  --accent-line: rgba(var(--accent-rgb), 0.32);

  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(24px, 6vw, 72px);
}

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

[hidden] {
  display: none !important;
}

html {
  height: 100%;
}

body {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent-soft);
  color: var(--text);
}

/* ---------- Ambient layers ---------- */

.grid-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 80% 65% at 50% 40%, black 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 40%, black 40%, transparent 90%);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.spotlight {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  background: radial-gradient(
    600px circle at var(--spot-x, 50%) var(--spot-y, 40%),
    rgba(var(--accent-rgb), 0.07),
    transparent 45%
  );
}

.spotlight.is-active {
  opacity: 1;
}

.pulse-line {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 12%;
  width: 100%;
  height: 70px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.32;
}

.pulse-line path {
  fill: none;
  stroke: var(--accent-line);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.pulse-comet-dot {
  fill: var(--accent);
  filter: drop-shadow(0 0 4px rgba(var(--accent-rgb), 0.6));
}

/* ---------- Frame / layout ---------- */

.frame {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100%;
  padding: var(--gutter);
  gap: clamp(16px, 4vh, 32px);
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  animation: rise 0.9s var(--ease) both;
}

.wordmark {
  font-size: clamp(13px, 1.6vw, 15px);
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--text);
}

.wordmark-accent {
  color: var(--text-muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.015);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: breathe 2.4s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.7; box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.5); }
  50% { transform: scale(1.35); opacity: 1; box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0); }
}

/* ---------- Hero ---------- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(18px, 2.6vh, 26px);
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: clamp(10px, 1.3vw, 12px);
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  animation: rise 0.9s var(--ease) 0.05s both;
}

.eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.headline {
  font-size: clamp(2.1rem, 5.6vw, 4.4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
  animation: rise 0.9s var(--ease) 0.14s both;
}

.subtext {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 46ch;
  animation: rise 0.9s var(--ease) 0.22s both;
}

@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* ---------- Countdown ---------- */

.countdown {
  display: flex;
  align-items: baseline;
  gap: clamp(10px, 2vw, 20px);
  margin-top: clamp(8px, 1.4vh, 16px);
  animation: rise 0.9s var(--ease) 0.3s both;
}

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

.value {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.unit-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--text-faint);
  text-transform: uppercase;
}

.countdown-sep {
  font-family: var(--font-mono);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--text-faint);
  transform: translateY(-8px);
}

.launched-message {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-top: 8px;
}

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  animation: rise 0.9s var(--ease) 0.4s both;
}

.coords,
.copyright {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}

.socials {
  display: flex;
  align-items: center;
  gap: 18px;
}

.social-link {
  display: inline-flex;
  color: var(--text-muted);
  transition: color 0.35s var(--ease), transform 0.35s var(--ease);
}

.social-link svg {
  width: 24px;
  height: 24px;
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--accent);
  transform: translateY(-2px);
}

.social-link:active {
  transform: translateY(-1px) scale(0.94);
}

a:focus-visible,
.social-link:focus-visible {
  outline: 1px solid var(--accent-line);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  .frame {
    gap: 20px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .socials {
    order: -1;
  }

  .countdown {
    gap: 12px;
  }

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

  .pulse-line {
    bottom: 15%;
    height: 50px;
    opacity: 0.22;
  }
}

@media (max-width: 380px) {
  .wordmark {
    letter-spacing: 0.18em;
  }
}

/* ---------- Reduced motion ---------- */

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

  .pulse-comet-dot {
    display: none;
  }
}
