/* ============================================================
   VOYAGER — deep-space landing page
   Pure CSS, no external fonts/assets. Self-contained.
   ============================================================ */

:root {
  --bg-0: #05060f;
  --bg-1: #0a0b1e;
  --ink: #eaf0ff;
  --ink-dim: #9aa6c8;
  --violet: #7c5cff;
  --cyan: #4fe3ff;
  --magenta: #ff5cc8;
  --edge: rgba(140, 160, 255, 0.14);
  --maxw: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  background:
    radial-gradient(1200px 800px at 70% -10%, #16123a 0%, transparent 60%),
    radial-gradient(1000px 900px at 10% 110%, #0c1d33 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
  background-attachment: fixed;
}

/* ---------- Starfield canvas ---------- */
#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

/* ---------- Nebula glow ---------- */
.nebula {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  filter: blur(60px);
  opacity: 0.55;
}
.nebula__blob {
  position: absolute;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  mix-blend-mode: screen;
  animation: drift 26s var(--ease) infinite alternate;
}
.nebula__blob--violet {
  background: radial-gradient(circle at 50% 50%, var(--violet), transparent 68%);
  top: -12vmax; left: -8vmax;
}
.nebula__blob--cyan {
  background: radial-gradient(circle at 50% 50%, var(--cyan), transparent 68%);
  bottom: -16vmax; right: -6vmax;
  animation-delay: -8s;
}
.nebula__blob--magenta {
  background: radial-gradient(circle at 50% 50%, var(--magenta), transparent 70%);
  top: 40%; left: 55%;
  opacity: 0.5;
  animation-delay: -14s;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4vmax, 3vmax, 0) scale(1.15); }
}

/* ---------- Orbiting planet accent ---------- */
.orbit {
  position: fixed;
  top: 18%;
  right: 8%;
  width: 220px;
  height: 220px;
  z-index: 0;
  pointer-events: none;
}
.orbit__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--edge);
  box-shadow: 0 0 60px rgba(124, 92, 255, 0.15) inset;
}
.orbit__planet {
  position: absolute;
  top: 50%; left: 50%;
  width: 16px; height: 16px;
  margin: -8px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, var(--cyan) 45%, #1b2b6b 100%);
  box-shadow: 0 0 18px var(--cyan);
  transform-origin: -102px 0;
  animation: spin 18s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Layout scaffold ---------- */
.site-header,
main,
.site-footer { position: relative; z-index: 1; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: 0.28em;
  font-weight: 700;
  font-size: 0.9rem;
}
.brand__mark {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, var(--violet) 55%, #241a5e);
  box-shadow: 0 0 14px var(--violet);
}
.site-nav { display: flex; gap: clamp(1rem, 3vw, 2rem); }
.site-nav a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  transition: color 0.25s var(--ease);
}
.site-nav a:hover,
.site-nav a:focus-visible { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 12vh, 8rem) clamp(1.25rem, 4vw, 2.5rem) 5rem;
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero__eyebrow {
  margin: 0 0 1.25rem;
  color: var(--cyan);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  opacity: 0.85;
}
.hero__title {
  margin: 0;
  font-size: clamp(2.6rem, 9vw, 6rem);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero__line {
  display: block;
  opacity: 0;
  transform: translateY(28px);
  animation: rise 0.9s var(--ease) forwards;
}
.hero__line:nth-child(2) { animation-delay: 0.12s; }
.hero__line--accent {
  background: linear-gradient(100deg, var(--cyan), var(--violet) 55%, var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}
.hero__lede {
  max-width: 46ch;
  margin: 1.6rem 0 0;
  color: var(--ink-dim);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.28s forwards;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.4s forwards;
}

/* ---------- Buttons ---------- */
.btn {
  --_pad: 0.85rem 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--_pad);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), border-color 0.25s var(--ease);
  will-change: transform;
}
.btn:hover,
.btn:focus-visible { transform: translateY(-2px); }
.btn--primary {
  color: #08091a;
  background: linear-gradient(100deg, var(--cyan), var(--violet));
  box-shadow: 0 8px 30px rgba(124, 92, 255, 0.35);
}
.btn--primary:hover,
.btn--primary:focus-visible { box-shadow: 0 12px 40px rgba(79, 227, 255, 0.45); }
.btn--ghost {
  color: var(--ink);
  border-color: var(--edge);
  background: rgba(255, 255, 255, 0.02);
}
.btn--ghost:hover,
.btn--ghost:focus-visible { border-color: rgba(140, 160, 255, 0.4); }
.btn--lg { --_pad: 1.05rem 2.2rem; font-size: 1.05rem; }

/* ---------- Scroll cue ---------- */
.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 3.5rem;
  color: var(--ink-dim);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.6s forwards;
}
.hero__scroll-dot {
  width: 22px; height: 34px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  position: relative;
}
.hero__scroll-dot::after {
  content: "";
  position: absolute;
  top: 6px; left: 50%;
  width: 3px; height: 6px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--cyan);
  animation: scrolldot 1.8s var(--ease) infinite;
}
@keyframes scrolldot {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(12px); }
}

/* ---------- Reveal-on-scroll utility ---------- */
.panel,
.stats,
.cta { max-width: var(--maxw); margin: 0 auto; padding: clamp(4rem, 10vh, 7rem) clamp(1.25rem, 4vw, 2.5rem); }

[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Cards ---------- */
.panel__grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  padding: 1.8rem;
  border-radius: 18px;
  border: 1px solid var(--edge);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  backdrop-filter: blur(6px);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(140, 160, 255, 0.35);
  box-shadow: 0 20px 50px rgba(10, 12, 40, 0.6);
}
.card__index {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color: var(--cyan);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
}
.card__title { margin: 0.6rem 0 0.5rem; font-size: 1.3rem; }
.card__body { margin: 0; color: var(--ink-dim); font-size: 0.98rem; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  text-align: center;
}
.stat__num {
  display: block;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(120deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label {
  display: block;
  margin-top: 0.5rem;
  color: var(--ink-dim);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta__title { font-size: clamp(1.8rem, 5vw, 3rem); margin: 0 0 0.8rem; }
.cta__body { color: var(--ink-dim); margin: 0 auto 2rem; max-width: 44ch; }

/* ---------- Footer ---------- */
.site-footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem clamp(1.25rem, 4vw, 2.5rem) 3rem;
  border-top: 1px solid var(--edge);
  color: var(--ink-dim);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.site-footer__fine { opacity: 0.6; margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .site-nav { display: none; }
  .orbit { width: 140px; height: 140px; top: 12%; right: -3%; opacity: 0.7; }
  .orbit__planet { transform-origin: -66px 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero__line,
  .hero__lede,
  .hero__actions,
  .hero__scroll,
  [data-reveal] { opacity: 1; transform: none; }
}
