/* ============================================================
   Fonts — self-hosted @font-face (no external stylesheet,
   no query strings, works offline). Space Grotesk + Inter,
   latin & latin-ext subsets. Source: Google Fonts (OFL).
   ============================================================ */
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/spacegrotesk/v22/V8mDoQDjQSkFtoMM3T6r8E7mPb94C-s0.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/spacegrotesk/v22/V8mDoQDjQSkFtoMM3T6r8E7mPbF4Cw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/spacegrotesk/v22/V8mDoQDjQSkFtoMM3T6r8E7mPb94C-s0.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/spacegrotesk/v22/V8mDoQDjQSkFtoMM3T6r8E7mPbF4Cw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/spacegrotesk/v22/V8mDoQDjQSkFtoMM3T6r8E7mPb94C-s0.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/spacegrotesk/v22/V8mDoQDjQSkFtoMM3T6r8E7mPbF4Cw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/spacegrotesk/v22/V8mDoQDjQSkFtoMM3T6r8E7mPb94C-s0.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/spacegrotesk/v22/V8mDoQDjQSkFtoMM3T6r8E7mPbF4Cw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   Explore Universe — global stylesheet
   A dependency-free, space-themed design system.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --bg:        #04050d;
  --bg-soft:   #080b18;
  --bg-elev:   #0d1122;
  --panel:     rgba(17, 22, 44, 0.55);
  --panel-2:   rgba(22, 28, 54, 0.72);
  --border:    rgba(120, 140, 220, 0.16);
  --border-hi: rgba(140, 160, 255, 0.38);

  --text:      #eaeeff;
  --muted:     #98a2c8;
  --faint:     #6b7597;

  --accent:    #7c5cff;   /* violet  */
  --accent-2:  #22d3ee;   /* cyan    */
  --accent-3:  #f472b6;   /* pink    */
  --accent-4:  #fbbf24;   /* amber   */

  --grad-primary: linear-gradient(120deg, #7c5cff 0%, #22d3ee 100%);
  --grad-warm:    linear-gradient(120deg, #f472b6 0%, #fbbf24 100%);

  --glow:      0 0 60px rgba(124, 92, 255, 0.28);
  --glow-cyan: 0 0 60px rgba(34, 211, 238, 0.22);

  --radius:    18px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  --font-display: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --maxw: 1200px;
  --nav-h: 68px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: rgba(124, 92, 255, 0.4); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #05060f; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2a2f56, #1a1e38);
  border-radius: 99px;
  border: 3px solid #05060f;
}
::-webkit-scrollbar-thumb:hover { background: #3a3f6e; }

/* ---------- Ambient background ---------- */
.bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 12% 8%,  rgba(124, 92, 255, 0.16), transparent 60%),
    radial-gradient(800px 600px at 88% 22%, rgba(34, 211, 238, 0.12), transparent 60%),
    radial-gradient(1000px 700px at 50% 110%, rgba(244, 114, 182, 0.10), transparent 60%);
}
.page { position: relative; z-index: 1; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding: clamp(64px, 9vw, 130px) 0; position: relative; }
.center { text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display);
  font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-2));
}

.section-title { font-size: clamp(1.9rem, 4.4vw, 3.1rem); margin-bottom: 18px; }
.section-lead { color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.12rem); max-width: 640px; }
.center .section-lead { margin-inline: auto; }

.grad-text {
  background: var(--grad-primary);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, border-color .3s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--grad-primary); color: #06070f;
  box-shadow: 0 10px 30px -10px rgba(124, 92, 255, 0.8);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 44px -12px rgba(34, 211, 238, 0.7); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-hi); color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--accent-2); box-shadow: var(--glow-cyan); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(6, 8, 18, 0.55);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .4s, background .4s;
}
.nav.scrolled { border-bottom-color: var(--border); background: rgba(6, 8, 18, 0.82); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; }
.brand .orb {
  width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #b9a4ff 0%, #7c5cff 38%, #2a1a6b 100%);
  box-shadow: 0 0 18px rgba(124, 92, 255, 0.85), inset -4px -4px 10px rgba(0,0,0,0.5);
  position: relative; flex: none;
}
.brand .orb::after {
  content: ""; position: absolute; inset: -7px -3px;
  border: 1px solid rgba(160, 180, 255, 0.45);
  border-radius: 50%;
  transform: rotate(-24deg);
  border-top-color: transparent; border-bottom-color: transparent;
}
.brand-name b { background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  position: relative;
  padding: 9px 15px; border-radius: 10px;
  font-size: 0.92rem; color: var(--muted);
  transition: color .25s, background .25s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--grad-primary);
}

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex; align-items: center;
  padding: 60px 0 90px;
}
.hero-inner { max-width: 780px; }
.hero h1 {
  font-size: clamp(2.6rem, 7.2vw, 5.4rem);
  line-height: 1.02; margin-bottom: 24px;
}
.hero .tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 15px; border-radius: 999px;
  border: 1px solid var(--border-hi);
  background: rgba(124, 92, 255, 0.08);
  font-size: 0.8rem; color: #c9d2ff; margin-bottom: 26px;
  letter-spacing: 0.04em;
}
.hero .tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.75); } }
.hero p.lead { font-size: clamp(1.02rem, 1.9vw, 1.28rem); color: var(--muted); max-width: 600px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--faint); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
}
.scroll-hint .mouse { width: 22px; height: 34px; border: 1.5px solid var(--faint); border-radius: 12px; position: relative; }
.scroll-hint .mouse::after { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 3px; height: 7px; border-radius: 2px; background: var(--accent-2); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  padding: 26px 22px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  transition: transform .4s var(--ease), border-color .4s;
}
.stat:hover { transform: translateY(-4px); border-color: var(--border-hi); }
.stat .num { font-family: var(--font-display); font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; line-height: 1; }
.stat .num b { background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat .label { color: var(--muted); font-size: 0.86rem; margin-top: 10px; }

/* ---------- Card grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; overflow: hidden;
  padding: 28px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  transition: transform .45s var(--ease), border-color .45s, box-shadow .45s;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(500px 300px at var(--mx, 50%) var(--my, 0%), rgba(124, 92, 255, 0.16), transparent 70%);
  opacity: 0; transition: opacity .5s; pointer-events: none;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-hi); box-shadow: 0 26px 60px -30px rgba(124, 92, 255, 0.7); }
.card:hover::before { opacity: 1; }
.card .ico {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(124,92,255,0.22), rgba(34,211,238,0.14));
  border: 1px solid var(--border-hi);
}
.card .ico svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.94rem; margin: 0; }
.card .link { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; color: var(--accent-2); font-weight: 600; font-size: 0.88rem; }
.card .link svg { width: 15px; height: 15px; transition: transform .3s; }
.card:hover .link svg { transform: translateX(4px); }

/* ---------- Planet visual (CSS/SVG-generated) ---------- */
.planet-visual { border-radius: 50%; position: relative; }
.planet-visual::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, rgba(255,255,255,0.55), transparent 42%);
  mix-blend-mode: screen; opacity: .7;
}
.planet-visual.shadow { box-shadow: inset -14px -12px 34px rgba(0,0,0,0.75), 0 0 42px -6px var(--pglow, rgba(124,92,255,.6)); }

/* ---------- Footer ---------- */
.footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(6,8,18,0.85));
  padding: 60px 0 34px;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
.footer h4 { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.footer a { display: block; color: var(--muted); padding: 5px 0; font-size: 0.92rem; transition: color .25s, transform .25s; }
.footer a:hover { color: var(--text); transform: translateX(4px); }
.footer .about p { color: var(--muted); font-size: 0.92rem; max-width: 320px; }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--faint); font-size: 0.85rem;
}
.footer-bottom .made { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: calc(48px) 0 8px; }
.page-head h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); margin-bottom: 16px; }
.page-head .section-lead { max-width: 720px; }

/* ---------- Toolbar / chips ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  padding: 9px 17px; border-radius: 999px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  color: var(--muted); font-size: 0.86rem; font-weight: 500;
  transition: all .3s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--border-hi); }
.chip.active { background: var(--grad-primary); color: #06070f; border-color: transparent; font-weight: 600; }

/* ============================================================
   SOLAR SYSTEM PAGE
   ============================================================ */
.solar-layout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
.stage {
  position: relative;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 50% 50%, #0a0e22 0%, #04050d 78%);
  border: 1px solid var(--border);
  overflow: hidden;
  min-height: 560px;
  box-shadow: inset 0 0 120px rgba(124, 92, 255, 0.06);
}
.stage canvas { width: 100%; height: 100%; display: block; cursor: grab; }
.stage canvas:active { cursor: grabbing; }

.stage-hint {
  position: absolute; left: 18px; bottom: 16px;
  font-size: 0.78rem; color: var(--faint); pointer-events: none;
  background: rgba(4,5,13,0.55); padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--border);
}

.controls {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-top: 18px;
}
.ctrl {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 15px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--border);
  font-size: 0.86rem; color: var(--muted);
  transition: all .3s;
}
.ctrl:hover { border-color: var(--border-hi); color: var(--text); }
.ctrl.on { color: var(--text); border-color: var(--accent-2); box-shadow: var(--glow-cyan); }
.ctrl input[type="range"] { -webkit-appearance: none; appearance: none; width: 120px; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.14); outline: none; }
.ctrl input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; border-radius: 50%; background: var(--grad-primary); cursor: pointer; box-shadow: 0 0 12px rgba(124,92,255,0.9); }
.ctrl input[type="range"]::-moz-range-thumb { width: 15px; height: 15px; border: none; border-radius: 50%; background: #7c5cff; cursor: pointer; }

/* Info panel */
.info-panel {
  position: sticky; top: calc(var(--nav-h) + 20px);
  border-radius: var(--radius-lg);
  background: var(--panel-2); border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  padding: 28px; overflow: hidden;
}
.info-panel .top { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.info-panel .p-orb { width: 66px; height: 66px; border-radius: 50%; flex: none; position: relative; }
.info-panel .p-orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 32% 30%, rgba(255,255,255,0.5), transparent 45%); mix-blend-mode: screen; }
.info-panel h2 { font-size: 1.6rem; }
.info-panel .type { color: var(--accent-2); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; }
.info-panel .desc { color: var(--muted); font-size: 0.94rem; }
.factlist { display: grid; gap: 2px; margin: 20px 0; }
.factlist .row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.factlist .row span:first-child { color: var(--faint); }
.factlist .row span:last-child { color: var(--text); font-weight: 600; text-align: right; }
.funfact { margin-top: 16px; padding: 15px 17px; border-radius: var(--radius-sm); background: rgba(124,92,255,0.09); border: 1px solid var(--border-hi); font-size: 0.9rem; color: #cdd5ff; }
.funfact b { color: var(--accent-4); }

.planet-picker { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.planet-picker button {
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid transparent;
  position: relative; transition: transform .3s var(--ease), border-color .3s;
  padding: 0;
}
.planet-picker button::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 32% 30%, rgba(255,255,255,0.5), transparent 45%); }
.planet-picker button:hover { transform: scale(1.14); }
.planet-picker button.active { border-color: #fff; box-shadow: 0 0 0 3px rgba(124,92,255,0.5); }
.planet-picker button .tip {
  position: absolute; bottom: calc(100% + 9px); left: 50%; transform: translateX(-50%) translateY(4px);
  background: #0d1122; border: 1px solid var(--border-hi); color: var(--text);
  font-size: 0.72rem; padding: 4px 9px; border-radius: 7px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.planet-picker button:hover .tip { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   DEEP SPACE PAGE
   ============================================================ */
.dso-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dso {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--panel);
  transition: transform .5s var(--ease), border-color .5s, box-shadow .5s;
}
.dso:hover { transform: translateY(-7px); border-color: var(--border-hi); box-shadow: 0 30px 70px -34px rgba(34,211,238,0.7); }
.dso .thumb { position: relative; height: 190px; overflow: hidden; }
.dso .thumb .art { position: absolute; inset: 0; transition: transform .8s var(--ease); }
.dso:hover .thumb .art { transform: scale(1.08); }
.dso .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(4,5,13,0.92)); }
.dso .badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  padding: 5px 12px; border-radius: 999px; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(4,5,13,0.6); border: 1px solid var(--border-hi); backdrop-filter: blur(6px);
}
.dso .body { padding: 20px 22px 24px; }
.dso .body h3 { font-size: 1.16rem; margin-bottom: 6px; }
.dso .dist { color: var(--accent-2); font-size: 0.82rem; margin-bottom: 12px; }
.dso .body p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* procedural art backgrounds */
.art.nebula-1 { background: radial-gradient(circle at 30% 35%, #ff5ea8 0%, #7c2ff0 30%, transparent 62%), radial-gradient(circle at 72% 68%, #22d3ee 0%, transparent 52%), radial-gradient(circle at 50% 50%, #1a0b3a, #04050d 80%); }
.art.nebula-2 { background: radial-gradient(circle at 68% 30%, #fbbf24 0%, #f472b6 34%, transparent 64%), radial-gradient(circle at 25% 72%, #7c5cff 0%, transparent 55%), radial-gradient(circle at 50% 50%, #150a2e, #04050d 82%); }
.art.nebula-3 { background: radial-gradient(circle at 40% 40%, #34d399 0%, #22d3ee 30%, transparent 60%), radial-gradient(circle at 75% 70%, #7c5cff 0%, transparent 55%), radial-gradient(circle at 50% 50%, #0a1a2e, #04050d 82%); }
.art.galaxy-1 { background: radial-gradient(ellipse at 50% 50%, #fff3d0 0%, #fbbf24 12%, #f472b6 26%, #7c5cff 44%, transparent 70%), conic-gradient(from 30deg at 50% 50%, rgba(124,92,255,0.5), transparent 25%, rgba(34,211,238,0.4) 50%, transparent 75%, rgba(244,114,182,0.4)), radial-gradient(circle at 50% 50%, #12061f, #04050d 80%); }
.art.galaxy-2 { background: conic-gradient(from 120deg at 50% 50%, rgba(34,211,238,0.55), transparent 22%, rgba(124,92,255,0.5) 46%, transparent 68%, rgba(251,191,36,0.4)), radial-gradient(ellipse at 50% 50%, #cfe8ff 0%, #4c6ef5 20%, transparent 62%), radial-gradient(circle at 50% 50%, #0a0e2a, #04050d 82%); }
.art.galaxy-3 { background: radial-gradient(ellipse at 46% 44%, #ffe9c2 0%, #f59e0b 14%, #ef4444 30%, transparent 58%), radial-gradient(circle at 70% 66%, #7c5cff 0%, transparent 48%), radial-gradient(circle at 50% 50%, #170a12, #04050d 82%); }
.art.cluster-1 { background: radial-gradient(circle at 25% 30%, #fff 0 1px, transparent 3px), radial-gradient(circle at 62% 22%, #bfe3ff 0 2px, transparent 4px), radial-gradient(circle at 45% 62%, #fff 0 1.5px, transparent 3px), radial-gradient(circle at 78% 72%, #ffe8b0 0 2px, transparent 4px), radial-gradient(circle at 34% 80%, #dbe6ff 0 1px, transparent 3px), radial-gradient(circle at 60% 50%, #6d5cff 0%, transparent 55%), radial-gradient(circle at 50% 50%, #0b1030, #04050d 82%); }
.art.blackhole { background: radial-gradient(circle at 50% 50%, #000 0 16%, transparent 17%), conic-gradient(from 0deg at 50% 50%, rgba(251,191,36,0.9), rgba(244,114,182,0.7) 20%, rgba(124,92,255,0.6) 40%, transparent 60%, rgba(34,211,238,0.7) 80%, rgba(251,191,36,0.9)), radial-gradient(circle at 50% 50%, #ffd27a 0 17%, #04050d 60%); }
.art.exo-1 { background: radial-gradient(circle at 40% 44%, #22d3ee 0%, #0e7490 34%, transparent 62%), radial-gradient(circle at 74% 30%, #f472b6 0%, transparent 46%), radial-gradient(circle at 50% 50%, #07182a, #04050d 82%); }
.art.exo-2 { background: radial-gradient(circle at 58% 40%, #fb923c 0%, #b45309 36%, transparent 64%), radial-gradient(circle at 30% 70%, #f43f5e 0%, transparent 48%), radial-gradient(circle at 50% 50%, #1a0e08, #04050d 82%); }

/* ============================================================
   COSMOS (scale) PAGE
   ============================================================ */
.scale-stage {
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: radial-gradient(circle at 50% 45%, #0a0e22, #04050d 80%);
  padding: 40px 24px; text-align: center; overflow: hidden;
}
.scale-track { position: relative; height: 6px; border-radius: 6px; background: rgba(255,255,255,0.08); margin: 46px auto 30px; max-width: 720px; }
.scale-track .fill { position: absolute; inset: 0 auto 0 0; border-radius: 6px; background: var(--grad-primary); width: 30%; }
.scale-track .knob { position: absolute; top: 50%; left: 30%; transform: translate(-50%, -50%); width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(124,92,255,0.35), 0 0 24px rgba(124,92,255,0.9); }
.scale-object { display: grid; place-items: center; gap: 22px; }
.scale-orb { border-radius: 50%; transition: width .5s var(--ease), height .5s var(--ease); position: relative; }
.scale-orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 32% 28%, rgba(255,255,255,0.45), transparent 46%); mix-blend-mode: screen; }
.scale-meta h3 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); margin-bottom: 6px; }
.scale-meta .sz { color: var(--accent-2); font-family: var(--font-display); font-size: 1.05rem; }
.scale-meta p { color: var(--muted); max-width: 560px; margin: 12px auto 0; }
.scale-slider { -webkit-appearance: none; appearance: none; width: min(100%, 720px); height: 6px; border-radius: 6px; background: rgba(255,255,255,0.1); margin-top: 28px; }
.scale-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--grad-primary); cursor: pointer; box-shadow: 0 0 20px rgba(124,92,255,0.9); }
.scale-slider::-moz-range-thumb { width: 24px; height: 24px; border: none; border-radius: 50%; background: #7c5cff; cursor: pointer; }

/* Timeline */
.timeline { position: relative; margin-top: 20px; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--accent-2), var(--accent), transparent); }
.tl-item { position: relative; padding: 0 0 34px; }
.tl-item::before { content: ""; position: absolute; left: -33px; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent-2); box-shadow: 0 0 14px rgba(34,211,238,0.8); }
.tl-item .when { font-family: var(--font-display); color: var(--accent-4); font-weight: 600; font-size: 0.9rem; }
.tl-item h3 { font-size: 1.18rem; margin: 4px 0 8px; }
.tl-item p { color: var(--muted); font-size: 0.93rem; margin: 0; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.tech-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tech-list span { padding: 8px 15px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,0.03); font-size: 0.85rem; color: var(--muted); }
.credit { display: flex; gap: 16px; padding: 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border); }
.credit .badge-i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(140deg, rgba(124,92,255,0.25), rgba(34,211,238,0.15)); flex: none; }
.credit h4 { font-size: 1rem; margin-bottom: 4px; }
.credit p { color: var(--muted); font-size: 0.88rem; margin: 0; }

/* ---------- Utility ---------- */
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }

/* ============================================================
   SHARED COMPONENTS (hero deco, split, search, band)
   ============================================================ */
/* Floating planet in the hero */
.hero-deco {
  position: absolute; right: -30px; top: 50%; transform: translateY(-50%);
  width: min(44vw, 500px); aspect-ratio: 1; pointer-events: none; z-index: 0;
}
.hero-deco .big {
  position: absolute; inset: 15%; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #cdbaff 0%, #6d4bff 42%, #180d3d 100%);
  box-shadow: 0 0 140px -24px #7c5cff, inset -34px -34px 90px rgba(0, 0, 0, 0.72);
  animation: floaty 9s ease-in-out infinite;
}
.hero-deco .ring {
  position: absolute; inset: 4% 1%; border-radius: 50%;
  border: 1px solid rgba(170, 190, 255, 0.4);
  transform: rotate(-20deg) scaleY(0.26);
  box-shadow: 0 0 40px rgba(124, 92, 255, 0.35);
}
.hero-deco .moon {
  position: absolute; width: 26px; height: 26px; border-radius: 50%; top: 12%; left: 8%;
  background: radial-gradient(circle at 34% 30%, #e8ecff, #7d86b8 55%, #2a2f52);
  box-shadow: 0 0 22px rgba(180, 200, 255, 0.7);
  animation: floaty 6s ease-in-out infinite reverse;
}
.hero-deco .grid-line {
  position: absolute; inset: 15%; border-radius: 50%;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 26px);
  -webkit-mask: radial-gradient(circle, #000 62%, transparent 63%);
  mask: radial-gradient(circle, #000 62%, transparent 63%);
  opacity: .5;
}
@keyframes floaty { 0%, 100% { transform: translateY(-8px); } 50% { transform: translateY(8px); } }
@media (max-width: 1080px) { .hero-deco { opacity: .3; right: -140px; } }
@media (max-width: 760px) { .hero-deco { display: none; } }

/* Two-column split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 60px); align-items: center; }
.split.reverse .split-visual { order: -1; }

/* Search box */
.search {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--border);
  min-width: 240px; transition: border-color .3s;
}
.search:focus-within { border-color: var(--accent-2); box-shadow: var(--glow-cyan); }
.search svg { width: 18px; height: 18px; color: var(--faint); flex: none; }
.search input { background: transparent; border: 0; outline: 0; color: var(--text); width: 100%; font: inherit; font-size: 0.92rem; }
.search input::placeholder { color: var(--faint); }

/* CTA band */
.band {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-hi);
  background: linear-gradient(120deg, rgba(124, 92, 255, 0.16), rgba(34, 211, 238, 0.10));
  padding: clamp(34px, 5vw, 66px);
  text-align: center;
}
.band::after {
  content: ""; position: absolute; inset: -40% -10% auto; height: 60%;
  background: radial-gradient(ellipse at 50% 0, rgba(124, 92, 255, 0.35), transparent 70%);
  pointer-events: none;
}
.band h2 { font-size: clamp(1.7rem, 4vw, 2.8rem); margin-bottom: 16px; }
.band p { color: var(--muted); max-width: 620px; margin: 0 auto 26px; }
.band .hero-actions { justify-content: center; }

/* Mini orbit diagram (cosmos teaser) */
.mini-orbit { position: relative; aspect-ratio: 1; width: 100%; max-width: 420px; margin-inline: auto; }
.mini-orbit .ring { position: absolute; inset: 0; border: 1px solid var(--border); border-radius: 50%; }
.mini-orbit .ring:nth-child(2) { inset: 14%; }
.mini-orbit .ring:nth-child(3) { inset: 28%; }
.mini-orbit .core {
  position: absolute; inset: 40%; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff6d8, #ffd257 45%, #ff9d2f);
  box-shadow: 0 0 60px rgba(255, 180, 60, 0.8);
}
.mini-orbit .body {
  position: absolute; top: 50%; left: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #cfe0ff, #4c6ef5 60%, #1b2a6b);
  box-shadow: 0 0 18px rgba(76, 110, 245, 0.9);
}
.mini-orbit .body.b1 { animation: orbit1 9s linear infinite; }
.mini-orbit .body.b2 { width: 26px; height: 26px; margin: -13px 0 0 -13px; background: radial-gradient(circle at 34% 30%, #ffd9b0, #e08a3c 60%, #6b3a12); animation: orbit2 15s linear infinite reverse; }
.mini-orbit .body.b3 { width: 14px; height: 14px; margin: -7px 0 0 -7px; background: radial-gradient(circle at 34% 30%, #bff4ee, #4bbfb0 60%, #12463f); animation: orbit3 22s linear infinite; }
@keyframes orbit1 { from { transform: rotate(0) translateX(172px); } to { transform: rotate(360deg) translateX(172px); } }
@keyframes orbit2 { from { transform: rotate(0) translateX(122px); } to { transform: rotate(360deg) translateX(122px); } }
@keyframes orbit3 { from { transform: rotate(0) translateX(76px); } to { transform: rotate(360deg) translateX(76px); } }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-visual { order: 0; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .solar-layout { grid-template-columns: 1fr; }
  .info-panel { position: static; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .dso-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-hero { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px 20px 26px;
    background: rgba(6, 8, 18, 0.97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .3s, transform .3s;
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 13px 14px; font-size: 1rem; }
  .nav-links a.active::after { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta .btn { display: none; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-2, .grid-4, .dso-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stage { min-height: 420px; }
  .hero { min-height: auto; padding-top: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
