@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

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

html, body {
  overflow-x: hidden;
  background: #07070c;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #f2f2f6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  position: relative;
}

/* ---------- background layers ---------- */
/* Fixed, non-content decorative layers. Kept at z-index 0-1 (never negative)
   so they stay behind every content section while remaining visible while
   scrolling, per production z-index rules. */
.bg-base {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(94, 234, 212, 0.10), transparent 60%),
    radial-gradient(ellipse 70% 50% at 85% 110%, rgba(255, 184, 107, 0.08), transparent 60%),
    linear-gradient(180deg, #07070c 0%, #0a0b14 45%, #07070c 100%);
}

#orbit-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 90% 90% at 50% 40%, transparent 55%, rgba(4, 4, 8, 0.55) 100%);
}

/* ---------- layout wrapper ---------- */
main, nav, footer {
  position: relative;
  z-index: 10;
}

/* Major content sections stay above the fixed background/animation layers. */
.hero,
.cards-section,
.cta,
.signal-line {
  position: relative;
  z-index: 2;
}

/* ---------- nav ---------- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 5vw;
  background: rgba(7, 7, 12, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: #f2f2f6;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.logo .ring {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid #5eead4;
  margin-right: 8px;
  transform: translateY(-2px);
}

.logo .ext {
  color: #a5a5b5;
  font-weight: 500;
}

.nav-link {
  display: inline-block;
  padding: 10px 22px;
  background: #f2f2f6;
  color: #07070c;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 999px;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: #5eead4;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(94, 234, 212, 0.25);
  outline: none;
}

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 20vh 6vw 8vh;
}

.eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #5eead4;
  margin-bottom: 24px;
  opacity: 0.9;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 5rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
  max-width: 900px;
}

.hero-title span {
  display: block;
}

.hero-title .line-2 {
  background: linear-gradient(100deg, #f2f2f6 30%, #9ad9cf 65%, #f2f2f6 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: 28px;
  max-width: 680px;
  color: #c3c3d2;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 400;
}

.hero-sub strong {
  color: #f2f2f6;
  font-weight: 600;
}

/* ---------- cards ---------- */
.cards-section {
  padding: 4vh 6vw 12vh;
  max-width: 1200px;
  margin: 0 auto;
}

.cards-heading {
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9a9ab0;
  margin-bottom: 40px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 38px 35px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(94, 234, 212, 0.35);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.card-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(94, 234, 212, 0.6);
  margin-bottom: 22px;
  position: relative;
}

.card-icon::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5eead4;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px 2px rgba(94, 234, 212, 0.6);
}

.card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  color: #f8f8fb;
}

.card p {
  color: #c3c3d2;
  font-size: 0.96rem;
}

/* ---------- CTA ---------- */
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8vh 6vw 16vh;
  max-width: 640px;
  margin: 0 auto;
}

.signal-status {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: #5eead4;
  margin-bottom: 22px;
}

.signal-cta {
  display: inline-block;
  text-decoration: none;
  background: linear-gradient(100deg, #ffb86b, #5eead4);
  color: #07070c;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  letter-spacing: 0.01em;
  padding: 18px 46px;
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(94, 234, 212, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.signal-cta:hover,
.signal-cta:focus-visible {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 44px rgba(255, 184, 107, 0.28);
  filter: brightness(1.05);
  outline: none;
}

.signal-sub {
  margin-top: 20px;
  color: #9a9ab0;
  font-size: 0.85rem;
}

/* ---------- footer ---------- */
/* Footer markup itself is injected via SSI and can't be edited here, but the
   fixed background/animation layers behind it require an explicit contrast
   and stacking pass so its content stays legible while scrolling. */
footer {
  position: relative;
  z-index: 10;
  background: rgba(7, 7, 12, 0.92);
  color: #c3c3d2;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer a {
  color: #5eead4;
}

/* ---------- responsive ---------- */
@media (max-width: 480px) {
  nav {
    padding: 16px 5vw;
  }

  .logo {
    font-size: 1.1rem;
  }

  .nav-link {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  .hero {
    padding: 18vh 6vw 6vh;
  }

  .card {
    padding: 30px 24px;
  }

  .signal-cta {
    padding: 16px 32px;
    width: 100%;
  }

  .cta {
    padding: 6vh 6vw 12vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
