:root {
  --bg: #02030a;
  --bg-soft: #070b1a;
  --text: #f5f8ff;
  --muted: #a4afc9;
  --accent: #365bff;
  --accent-2: #6b3bff;
  --line: rgba(255, 255, 255, 0.12);
  --card: rgba(8, 12, 25, 0.62);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  background: radial-gradient(circle at 10% 0%, #0a1230 0%, #03040d 40%, #010206 100%);
  overflow: hidden;
}

.space-bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; }
.stars { position: absolute; inset: 0; }
.star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 0 10px rgba(255,255,255,0.5);
  animation: twinkle var(--d, 4s) ease-in-out infinite;
}

.nebula {
  position: absolute;
  width: 55vw;
  height: 55vw;
  border-radius: 50%;
  filter: blur(56px);
  opacity: 0.35;
  mix-blend-mode: screen;
}
.nebula-a { left: 24%; top: 18%; background: radial-gradient(circle, rgba(49,77,255,0.9), rgba(49,77,255,0)); animation: driftA 16s ease-in-out infinite alternate; }
.nebula-b { right: 16%; top: 10%; background: radial-gradient(circle, rgba(123,50,255,0.8), rgba(123,50,255,0)); animation: driftB 18s ease-in-out infinite alternate; }
.nebula-c { left: 36%; bottom: -16%; background: radial-gradient(circle, rgba(17,132,255,0.7), rgba(17,132,255,0)); animation: driftC 20s ease-in-out infinite alternate; }

.grid-glow {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.75), transparent 70%);
  opacity: 0.16;
}

.topbar {
  height: 78px;
  display: flex;
  align-items: center;
  padding: 0 28px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: rgba(2,4,10,0.38);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; gap: 12px; align-items: center; font-weight: 600; }
.brand-mark {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(77,106,255,0.8);
  color: #8ca4ff;
  font-size: 0.9rem;
}
.brand-text { color: #dbe3ff; letter-spacing: 0.01em; }

.hero-wrap {
  min-height: calc(100vh - 78px);
  display: grid;
  place-items: center;
  padding: 24px;
}

.hero-card {
  width: min(900px, 100%);
  text-align: center;
  padding: 42px 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.01)),
    var(--card);
  box-shadow: 0 28px 90px rgba(0,0,0,0.6);
  backdrop-filter: blur(14px);
  animation: revealUp 900ms cubic-bezier(.2,.8,.2,1) both;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #9fb2ff;
  animation: fadeIn 900ms 150ms both;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 6.5vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  text-wrap: balance;
  background: linear-gradient(130deg, #f7fbff 0%, #c6d6ff 45%, #8ea8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeIn 900ms 250ms both;
}

.subtitle {
  margin: 20px auto 30px;
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  line-height: 1.6;
  animation: fadeIn 900ms 350ms both;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  animation: fadeIn 900ms 450ms both;
}

.link-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 14px;
  color: #e8efff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid rgba(95, 120, 255, 0.32);
  background: linear-gradient(135deg, rgba(54, 91, 255, 0.22), rgba(107, 59, 255, 0.2));
  overflow: hidden;
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}

.link-pill::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -130%;
  width: 52%;
  height: 150%;
  transform: rotate(16deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.38), transparent);
  transition: left 650ms ease;
}

.link-pill:hover,
.link-pill:focus-visible {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(138, 162, 255, 0.68);
  box-shadow: 0 16px 32px rgba(56, 82, 255, 0.38);
}

.link-pill:hover::before,
.link-pill:focus-visible::before { left: 165%; }

@keyframes twinkle {
  0%, 100% { opacity: 0.22; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.22); }
}
@keyframes driftA { from { transform: translate(-3%, -2%) scale(1); } to { transform: translate(4%, 3%) scale(1.1); } }
@keyframes driftB { from { transform: translate(2%, -1%) scale(1); } to { transform: translate(-4%, 4%) scale(1.08); } }
@keyframes driftC { from { transform: translate(0, 2%) scale(1); } to { transform: translate(3%, -3%) scale(1.1); } }
@keyframes revealUp { from { opacity: 0; transform: translateY(20px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 860px) {
  body { overflow-y: auto; }
  .quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .topbar { padding: 0 16px; }
  .hero-card { padding: 32px 18px; }
  .quick-links { grid-template-columns: 1fr; }
}
