/* ═══════════════════════════════════════════
   rhizome.audio — Hydra stub page
   ═══════════════════════════════════════════ */

:root {
  --black: #050505;
  --surface: #0a0a0f;
  --phosphor: #00e87b;
  --phosphor-dim: #00e87b33;
  --phosphor-glow: #00e87b18;
  --text: #c8c8c8;
  --text-dim: #555;
  --mono: 'IBM Plex Mono', monospace;
  --display: 'Syne', sans-serif;
}

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

html, body {
  height: 100%;
}

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--mono);
  overflow: hidden;
  position: relative;
}

/* ── Film grain overlay ─────────────────── */

.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ── Rhizome network background ─────────── */

.rhizome {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.connections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.wire {
  stroke: var(--phosphor-dim);
  stroke-width: 0.5;
  opacity: 0;
  animation: wire-in 2s ease-out forwards;
}

.wire-1 { animation-delay: 0.8s; }
.wire-2 { animation-delay: 1.2s; }
.wire-3 { animation-delay: 1.0s; }
.wire-4 { animation-delay: 1.5s; }
.wire-5 { animation-delay: 0.6s; }
.wire-6 { animation-delay: 1.8s; }
.wire-7 { animation-delay: 2.0s; }

@keyframes wire-in {
  from {
    opacity: 0;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
  }
  to {
    opacity: 1;
    stroke-dasharray: 1000;
    stroke-dashoffset: 0;
  }
}

.node {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--phosphor);
  border-radius: 50%;
  opacity: 0;
  animation: node-appear 0.6s ease-out forwards;
  box-shadow:
    0 0 8px var(--phosphor-dim),
    0 0 20px var(--phosphor-glow);
}

.node::after {
  content: '';
  position: absolute;
  inset: -8px;
  border: 1px solid var(--phosphor-dim);
  border-radius: 50%;
  animation: node-ring 3s ease-in-out infinite;
}

.node-1 { left: 20%; top: 30%; animation-delay: 0.3s; }
.node-2 { left: 50%; top: 45%; animation-delay: 0.5s; }
.node-3 { left: 80%; top: 35%; animation-delay: 0.7s; }
.node-4 { left: 30%; top: 60%; animation-delay: 0.4s; }
.node-5 { left: 70%; top: 65%; animation-delay: 0.9s; }
.node-6 { left: 15%; top: 20%; animation-delay: 0.2s; }
.node-7 { left: 85%; top: 70%; animation-delay: 1.1s; }

@keyframes node-appear {
  from { opacity: 0; transform: scale(0); }
  to { opacity: 0.7; transform: scale(1); }
}

@keyframes node-ring {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(2.5); opacity: 0; }
}

/* ── Radial atmosphere ──────────────────── */

.rhizome::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 50% at 50% 45%,
    var(--phosphor-glow) 0%,
    transparent 70%
  );
  z-index: 1;
}

/* ── Main content ───────────────────────── */

main {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem 3rem;
}

/* ── Header ─────────────────────────────── */

header {
  opacity: 0;
  animation: fade-down 1s ease-out 0.2s forwards;
}

.domain {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  text-transform: lowercase;
}

/* ── Hero ────────────────────────────────── */

.hero {
  text-align: center;
  opacity: 0;
  animation: fade-up 1.2s ease-out 0.6s forwards;
}

h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(4rem, 12vw, 10rem);
  letter-spacing: 0.08em;
  line-height: 0.9;
  color: #fff;
  text-shadow:
    0 0 60px var(--phosphor-glow),
    0 0 120px var(--phosphor-glow);
  margin-bottom: 1.5rem;
}

.tagline {
  font-family: var(--mono);
  font-size: clamp(0.75rem, 1.5vw, 0.95rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1.8;
  color: var(--text-dim);
}

/* ── Footer ─────────────────────────────── */

footer {
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  animation: fade-up 1s ease-out 1.2s forwards;
}

.status {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--phosphor);
  border-radius: 50%;
  animation: pulse-glow 2s ease-in-out infinite;
  box-shadow: 0 0 6px var(--phosphor-dim);
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--phosphor-dim); }
  50% { opacity: 0.4; box-shadow: 0 0 2px var(--phosphor-dim); }
}

/* ── Entrance animations ────────────────── */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-down {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ─────────────────────────── */

@media (max-width: 600px) {
  main {
    padding: 2rem 1.5rem;
  }

  .tagline br {
    display: none;
  }
}
