:root {
  --bg-core: #0a1628;
  --bg-void: #000;
  --cyan: #38bdf8;
  --cyan-bright: #a5f3fc;
  --ice: #e0f2fe;
  --dim: rgba(165, 243, 252, 0.7);
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(ellipse at center, var(--bg-core) 0%, var(--bg-void) 75%);
  color: var(--ice);
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

main {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 32px);
  pointer-events: none;
  padding: 24px;
}

.logo {
  width: clamp(56px, 7vw, 84px);
  height: clamp(56px, 7vw, 84px);
  overflow: visible;
  filter: drop-shadow(0 0 24px rgba(56, 189, 248, 0.28));
  animation: float 8s ease-in-out infinite;
}

.logo .nodes circle {
  fill: var(--ice);
  filter: drop-shadow(0 0 4px var(--cyan-bright));
  transform-origin: center;
  transform-box: fill-box;
}

.logo .nodes circle:nth-child(1) { animation: pulse 3.2s ease-in-out infinite; }
.logo .nodes circle:nth-child(2) { animation: pulse 3.2s ease-in-out 0.4s infinite; }
.logo .nodes circle:nth-child(3) { animation: pulse 3.2s ease-in-out 0.8s infinite; }
.logo .nodes circle:nth-child(4) { animation: pulse 3.2s ease-in-out 1.2s infinite; }
.logo .nodes circle:nth-child(5) {
  fill: var(--cyan-bright);
  filter: drop-shadow(0 0 8px var(--cyan-bright));
  animation: pulse-core 2.4s ease-in-out infinite;
}

.logo .edges line {
  stroke: rgba(165, 243, 252, 0.9);
  stroke-width: 1.5;
  fill: none;
  animation: breathe 4s ease-in-out infinite;
}

.logo .edges-dim line {
  stroke: rgba(56, 189, 248, 0.4);
  stroke-width: 1;
  fill: none;
  animation: breathe 4s ease-in-out 1s infinite;
}

.wordmark {
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ice);
  text-shadow:
    0 0 32px rgba(56, 189, 248, 0.3),
    0 0 64px rgba(56, 189, 248, 0.15);
  line-height: 1;
}

.wordmark .dot {
  color: var(--cyan);
  text-shadow: 0 0 12px var(--cyan);
}

.tagline {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(0.7rem, 1.1vw, 0.9rem);
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--dim);
  text-transform: uppercase;
  margin-top: 4px;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.15); }
}

@keyframes pulse-core {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.25); }
}

@keyframes breathe {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .logo,
  .logo .nodes circle,
  .logo .edges line,
  .logo .edges-dim line {
    animation: none;
  }
  #neural { opacity: 0.4; }
}
