:root {
  --bg-0: #05060d;
  --bg-1: #0b1026;
  --ink: #e8ecff;
  --muted: #8a93c2;
  --accent: #64ffda;
  --accent-2: #7aa2ff;
  --accent-3: #ff77e9;
}

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

html,
body {
  height: 100%;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial,
    sans-serif;
  color: var(--ink);
  background: radial-gradient(
      1200px 800px at 70% -10%,
      var(--bg-1),
      transparent 60%
    ),
    radial-gradient(900px 700px at 10% 110%, #12183a, transparent 55%),
    var(--bg-0);
  overflow: hidden;
  min-height: 100vh;
}

#atom {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.stage {
  position: relative;
  z-index: 1;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.9rem;
  padding: 1.5rem;
  pointer-events: none;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.42em;
  font-size: 0.72rem;
  color: var(--muted);
  padding-left: 0.42em;
}

.title {
  font-size: clamp(2.6rem, 9vw, 6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(
    100deg,
    var(--accent),
    var(--accent-2) 45%,
    var(--accent-3)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgba(122, 162, 255, 0.25);
}

.subtitle {
  color: var(--muted);
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  max-width: 42ch;
  min-height: 1.4em;
}

.legend {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.4rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  display: inline-block;
}
.dot.nucleus {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.dot.electron {
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2);
}
.dot.orbit {
  background: transparent;
  border: 2px solid var(--accent-3);
}

.foot {
  position: fixed;
  bottom: 1rem;
  left: 0;
  right: 0;
  z-index: 1;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
}

.foot code {
  color: var(--accent);
}

.foot a {
  color: var(--accent-2);
  text-decoration: none;
  border-bottom: 1px dashed rgba(122, 162, 255, 0.5);
}
.foot a:hover {
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  .title {
    text-shadow: none;
  }
}
