/* ============ Astroverse — landing styles ============ */
:root {
  --bg: #07070f;
  --bg-soft: #0c0c18;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.09);
  --text: #eef0ff;
  --text-dim: #9aa0b8;
  --accent: #7c6cff;
  --accent-2: #38bdf8;
  --accent-3: #a78bfa;
  --radius: 20px;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  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;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- background ---------- */
#stars {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
.orb {
  position: fixed; border-radius: 50%;
  filter: blur(120px); opacity: 0.35;
  z-index: 0; pointer-events: none;
}
.orb-1 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, #5b4bdb, transparent 70%);
  top: -180px; right: -120px;
}
.orb-2 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, #0e7490, transparent 70%);
  bottom: -160px; left: -140px;
}

main, .footer, .nav { position: relative; z-index: 1; }

/* ---------- typography ---------- */
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); line-height: 1.06; font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.12; font-weight: 700; margin-bottom: 20px; }
h3 { font-size: 1.25rem; font-weight: 600; }

.grad {
  background: linear-gradient(92deg, var(--accent-3), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--accent-2); margin-bottom: 18px;
}

.lead { font-size: 1.15rem; color: var(--text-dim); max-width: 620px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 7, 15, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto;
  padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  color: var(--text); text-decoration: none;
}
.logo-mark { width: 30px; height: 30px; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  color: var(--text-dim); text-decoration: none;
  font-size: 0.95rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-toggle { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600; font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
  font-family: var(--font-body);
}
.btn-primary {
  background: linear-gradient(92deg, var(--accent), var(--accent-2));
  color: #fff !important;
  box-shadow: 0 8px 32px rgba(124, 108, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(124, 108, 255, 0.5); }
.btn-ghost {
  color: var(--text); border: 1px solid var(--border);
  background: var(--surface);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.25); transform: translateY(-2px); }
.btn-small { padding: 10px 22px; font-size: 0.9rem; background: var(--surface); border: 1px solid var(--border); color: var(--text) !important; }
.btn-small:hover { border-color: var(--accent); }
.btn-large { padding: 18px 40px; font-size: 1.1rem; }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 140px 0 80px;
  position: relative;
}
.hero-cta { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; }
.hero .lead { margin-top: 26px; }
.hero-glow {
  position: absolute; left: 50%; bottom: -30%;
  width: 900px; height: 500px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(124,108,255,0.16), transparent 65%);
  pointer-events: none;
}

/* ---------- sections ---------- */
.section { padding: 110px 0; }
.section-alt {
  background: linear-gradient(180deg, transparent, rgba(124,108,255,0.045) 30%, rgba(56,189,248,0.035) 70%, transparent);
}

/* ---------- cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  backdrop-filter: blur(8px);
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 108, 255, 0.45);
  background: rgba(124, 108, 255, 0.06);
}
.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(124,108,255,0.18), rgba(56,189,248,0.18));
  border: 1px solid rgba(124,108,255,0.3);
  color: var(--accent-3);
  margin-bottom: 22px;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--text-dim); font-size: 0.96rem; margin-bottom: 18px; }
.card ul { list-style: none; }
.card li {
  color: var(--text-dim); font-size: 0.9rem;
  padding: 7px 0 7px 22px; position: relative;
}
.card li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(92deg, var(--accent), var(--accent-2));
}

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.step {
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.025);
  transition: border-color 0.3s;
}
.step:hover { border-color: rgba(56,189,248,0.4); }
.step-num {
  font-family: var(--font-display);
  font-size: 0.85rem; font-weight: 600;
  color: var(--accent-2);
  display: block; margin-bottom: 14px;
  letter-spacing: 0.12em;
}
.step h3 { margin-bottom: 10px; font-size: 1.1rem; }
.step p { color: var(--text-dim); font-size: 0.92rem; }

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.stat {
  padding: 30px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 2.2rem; font-weight: 700;
  display: block;
}
.stat-label { color: var(--text-dim); font-size: 0.85rem; }

/* ---------- contact ---------- */
.section-contact { padding-bottom: 140px; }
.contact-card {
  text-align: center;
  padding: 80px 40px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(124,108,255,0.14), transparent 60%),
    var(--surface);
  backdrop-filter: blur(8px);
}
.contact-card .lead { margin: 0 auto 36px; }
.contact-loc { margin-top: 24px; color: var(--text-dim); font-size: 0.9rem; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  background: rgba(5,5,10,0.6);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.footer-brand { font-family: var(--font-display); font-weight: 600; }
.footer-sub { color: var(--text-dim); font-size: 0.85rem; }
.footer-links { display: flex; gap: 26px; }
.footer-links a {
  color: var(--text-dim); text-decoration: none; font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--text-dim); font-size: 0.85rem; }

/* ---------- reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  .nav-links {
    position: fixed; inset: 0; top: 64px;
    background: rgba(7,7,15,0.97);
    flex-direction: column; justify-content: flex-start;
    padding-top: 48px; gap: 30px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.2rem; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 6px;
    background: none; border: none; cursor: pointer; padding: 8px;
  }
  .nav-toggle span {
    width: 24px; height: 2px; background: var(--text);
    transition: transform 0.25s, opacity 0.25s;
  }
  .nav-toggle.open span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle.open span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .section { padding: 80px 0; }
  .contact-card { padding: 56px 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
