/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #0a0e17;
  color: #e8ecf4;
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .nav__brand {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
p { margin: 0 0 1em; color: #aab2c5; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; margin: 0; padding: 0; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #6c5ce7;
  color: #fff;
  padding: 0.75em 1em;
  z-index: 100;
}
.skip-link:focus { left: 1em; top: 1em; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid #6c5ce7;
  outline-offset: 2px;
}

/* ---- Layout helpers ---- */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  color: #6c5ce7;
  margin-bottom: 0.75em;
}
.eyebrow--center { text-align: center; }
.section-lead { max-width: 42em; }

/* Fading gradient rule marking the boundary between page segments —
   softer than a hard-edged <hr>, consistent with the frosted/glow
   look used elsewhere on the site. */
.section-divider {
  height: 1px;
  max-width: 1100px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, #2a3247 20%, #2a3247 80%, transparent);
}

section { padding: clamp(2.25rem, 5vw, 4.5rem) clamp(1.25rem, 5vw, 3rem); }
#features { text-align: center; }
#features h2 { max-width: 30em; margin-left: auto; margin-right: auto; }
.section-lead { margin-left: auto; margin-right: auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.75em 1.5em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid transparent;
}
.btn--primary {
  background: linear-gradient(135deg, #6c5ce7, #00d4ff);
  color: #0a0e17;
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px #6c5ce780; }
.btn--ghost {
  border-color: #2a3247;
  color: #e8ecf4;
}
.btn--ghost:hover { border-color: #6c5ce7; }
.btn--large { padding: 1em 2em; font-size: 1.05rem; }
.btn--small { padding: 0.5em 1.1em; font-size: 0.85rem; }

/* ---- Header / nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 23, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #1a2033;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1.25rem, 5vw, 3rem);
  max-width: 1200px;
  margin: 0 auto;
}
.nav__brand {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.nav__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__menu a:not(.btn) { color: #aab2c5; font-size: 0.95rem; }
.nav__menu a:not(.btn):hover { color: #e8ecf4; }
.nav__toggle { display: none; }
.nav__replay {
  background: none;
  border: 1px solid rgba(108, 92, 231, 0.35);
  border-radius: 999px;
  color: #aab2c5;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0.35em 0.85em;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  transition: color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.nav__replay:hover { color: #e8ecf4; border-color: rgba(108, 92, 231, 0.75); }

@media (max-width: 720px) {
  .nav__toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5em;
  }
  .nav__toggle span { width: 22px; height: 2px; background: #e8ecf4; display: block; }
  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    background: #0a0e17;
    padding: 1.5rem;
    border-bottom: 1px solid #1a2033;
    display: none;
  }
  .nav__menu.is-open { display: flex; }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 5vw, 3rem);
  overflow: hidden;
  text-align: center;
}
.hero__glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 60%;
  background: radial-gradient(ellipse at center, #6c5ce74d, transparent 65%),
              radial-gradient(ellipse at 70% 30%, #00d4ff33, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.hero__content { position: relative; max-width: 760px; margin: 0 auto; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.75rem); }
.hero__lead {
  font-size: 1.05rem;
  max-width: 42em;
  margin: 0 auto;
  text-align: center;
  background: rgba(10, 14, 23, 0.8);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(108, 92, 231, 0.35);
  border-radius: 20px;
  padding: 2rem clamp(1.25rem, 4vw, 2.5rem);
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.5);
}
.hero__lead p { margin: 0 0 0.9em; color: #eef1f8; }
.hero__lead p:last-child { margin-bottom: 0; }
.hero__lead-closer {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #e8ecf4;
  background: linear-gradient(135deg, #ffe9a8, #ffc247);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ---- Features ---- */
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  max-width: 1000px;
  margin: 3rem auto 0;
  text-align: left;
}
.feature-card {
  background: #10162663;
  border: 1px solid #1a2033;
  border-radius: 16px;
  padding: 1.75rem;
}
.feature-card h3 { font-size: 1.05rem; margin-bottom: 0.4em; }
.feature-card p { margin: 0; font-size: 0.95rem; }

/* ---- CTA band ---- */
.cta-band {
  text-align: center;
  background: linear-gradient(135deg, #14182b, #0d1420);
}
.cta-band h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.cta-band .btn { margin-top: 1.5rem; }

/* ---- Footer ---- */
.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.85rem;
  color: #6b7386;
}

/* ---- Wayfinding strip: reminds visitors on any page that the
   universe extends beyond whatever feature they're looking at ---- */
.wayfinding {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}
.wayfinding__node {
  font-size: 0.78rem;
  color: #6b7386;
  border: 1px solid #1a2033;
  border-radius: 999px;
  padding: 0.35em 0.9em;
}
.wayfinding__node:hover { color: #e8ecf4; border-color: #6c5ce780; }
.wayfinding__node.is-current {
  color: #ffc247;
  border-color: rgba(255, 194, 71, 0.5);
}

/* ---- 404 ---- */
.not-found {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.not-found__content { text-align: center; }
.not-found__content h1 { font-size: 4rem; color: #6c5ce7; }

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
