:root {
  --bg: #08090D;
  --panel: rgba(255,255,255,0.08);
  --cyan: #5FE7FF;
  --violet: #8B5CFF;
  --text: #E8ECF4;
  --muted: #8E97A8;
}

* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; background: var(--bg); }
body { font-family: 'Inter', sans-serif; color: var(--text); }

#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }

.intro {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 2;
  opacity: 1;
  transition: opacity .85s ease, transform .85s ease, filter .85s ease;
}

.intro.is-hidden {
  opacity: 0;
  transform: scale(1.025);
  filter: blur(8px);
  pointer-events: none;
}

.glass-card {
  width: min(560px, 92vw);
  padding: 42px;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  backdrop-filter: blur(22px);
  box-shadow: 0 24px 80px rgba(0,0,0,0.45), 0 0 60px rgba(95,231,255,0.06);
}

.eyebrow, .audio-state {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 11px;
}

h1 {
  margin: 14px 0 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(56px, 10vw, 110px);
  line-height: .82;
  letter-spacing: -.06em;
  text-shadow: 0 0 28px rgba(95,231,255,0.10);
}

.subtitle { color: var(--muted); margin: 0 0 28px; }

button {
  appearance: none;
  border: 1px solid rgba(95,231,255,.45);
  background: rgba(95,231,255,.08);
  color: var(--text);
  padding: 14px 24px;
  border-radius: 999px;
  font: 600 13px/1 'Inter', sans-serif;
  letter-spacing: .16em;
  cursor: pointer;
  transition: .25s ease;
}

button:hover:not(:disabled) {
  transform: translateY(-2px);
  background: rgba(95,231,255,.16);
  box-shadow: 0 0 34px rgba(95,231,255,.16);
}

button:disabled {
  cursor: default;
  opacity: .72;
}

.audio-state { margin-top: 18px; }

.quick-nav {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 4;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}

.quick-nav.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.quick-nav__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 108px;
  justify-content: center;
  border-color: rgba(255,255,255,.13);
  background: rgba(7,9,14,.58);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0,0,0,.24);
}

.quick-nav__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(95,231,255,.7);
}

.quick-nav__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 230px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.025)),
    rgba(7,9,14,.78);
  backdrop-filter: blur(20px);
  box-shadow: 0 22px 60px rgba(0,0,0,.4), 0 0 46px rgba(95,231,255,.04);
  opacity: 0;
  transform: translateY(-6px) scale(.985);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.quick-nav.is-open .quick-nav__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.quick-nav__label {
  margin: 8px 8px 10px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.quick-nav__panel button {
  width: 100%;
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  padding: 11px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  letter-spacing: .04em;
  font-size: 12px;
}

.quick-nav__panel button span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .12em;
}

.quick-nav__panel button:hover {
  transform: none;
  background: rgba(95,231,255,.09);
  box-shadow: inset 0 0 0 1px rgba(95,231,255,.12);
}

.hotspot-label {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transform: translate(14px, 14px);
  padding: 8px 11px;
  border: 1px solid rgba(95,231,255,.28);
  border-radius: 8px;
  background: rgba(8,10,16,.72);
  backdrop-filter: blur(12px);
  color: var(--text);
  font: 600 10px/1 'Inter', sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(0,0,0,.24);
  transition: opacity .14s ease;
}

.hotspot-label.is-visible { opacity: 1; }

.section-panel {
  position: fixed;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4,6,10,.26);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}

.section-panel.is-open {
  opacity: 1;
  pointer-events: auto;
}

.section-panel__inner {
  width: min(720px, 92vw);
  min-height: 380px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.035)),
    rgba(9,12,18,.78);
  box-shadow: 0 30px 90px rgba(0,0,0,.5), 0 0 80px rgba(95,231,255,.05);
  transform: translateY(16px) scale(.985);
  transition: transform .32s ease;
}

.section-panel.is-open .section-panel__inner {
  transform: translateY(0) scale(1);
}

.section-panel__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-panel__status,
.section-panel__kicker {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.section-panel__close {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0;
}

.section-panel__kicker { margin-top: 42px; color: var(--cyan); }

.section-panel h2 {
  margin: 8px 0 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(40px, 8vw, 76px);
  line-height: .95;
  letter-spacing: -.045em;
}

.section-panel__description {
  max-width: 560px;
  margin: 0;
  color: #b8c1cf;
  line-height: 1.65;
}

.section-panel__placeholder {
  margin-top: 34px;
  padding: 18px;
  border: 1px dashed rgba(139,92,255,.35);
  border-radius: 14px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  opacity: .08;
  background-image: radial-gradient(rgba(255,255,255,.6) .5px, transparent .5px);
  background-size: 4px 4px;
  mix-blend-mode: soft-light;
}

@media (max-width: 600px) {
  .glass-card { padding: 30px 24px; border-radius: 20px; }
  .quick-nav { top: 14px; right: 14px; }
  .quick-nav__panel { width: min(230px, calc(100vw - 28px)); }
  .section-panel__inner { padding: 22px; min-height: 340px; border-radius: 20px; }
  .section-panel__kicker { margin-top: 28px; }
}
