/* Dome journey — immersive logo splash, lands, world hub */

#starfield {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

#vignette {
  position: fixed;
  inset: 0;
  z-index: 12;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(3, 4, 10, 0.85) 100%);
  opacity: 0.5;
  transition: opacity 0.4s;
}

#cursor-glow {
  position: fixed;
  width: 280px;
  height: 280px;
  margin: -140px 0 0 -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(177, 75, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9997;
  mix-blend-mode: screen;
}

#warp-layer {
  position: fixed;
  inset: 0;
  z-index: 15;
  pointer-events: none;
  opacity: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 40px,
    rgba(70, 230, 255, 0.03) 40px,
    rgba(70, 230, 255, 0.06) 42px
  );
  animation: warpScroll 0.4s linear infinite;
  animation-play-state: paused;
}
#warp-layer[style*="opacity: 0"] { animation-play-state: paused; }
body[data-journey-phase="zoom"] #warp-layer { animation-play-state: running; }

@keyframes warpScroll {
  from { transform: translateX(0) scaleY(1.2); }
  to { transform: translateX(-42px) scaleY(1.2); }
}

#experience-hud {
  position: fixed;
  top: 80px;
  left: 24px;
  z-index: 56;
  font-family: var(--font-mono);
  pointer-events: none;
  transition: opacity 0.5s;
}
#experience-hud .hud-label {
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  color: var(--purple);
  margin-bottom: 4px;
}
#experience-hud .hud-phase {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
  margin-bottom: 6px;
}
#experience-hud .hud-sub {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

#scroll-progress {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 56;
  width: 44px;
  height: 44px;
  pointer-events: none;
  transition: opacity 0.5s;
}
#scroll-progress svg { transform: rotate(-90deg); }
#scroll-progress circle.bg { fill: none; stroke: rgba(70, 230, 255, 0.15); stroke-width: 2; }
#scroll-progress circle#scroll-ring {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 113;
  stroke-dashoffset: 113;
  filter: drop-shadow(0 0 4px rgba(70, 230, 255, 0.6));
}

#logo-splash {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  pointer-events: none;
  perspective: 1000px;
}
#logo-splash.hidden {
  opacity: 0;
  visibility: hidden;
}

#logo-hero-wrap {
  will-change: transform, opacity;
  transition: opacity 0.3s ease;
  transform-style: preserve-3d;
}

.brand-logo--hero .brand-logo__mark {
  animation: markPulse 3s ease-in-out infinite;
}
@keyframes markPulse {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(177, 75, 255, 0.5)) drop-shadow(0 0 40px rgba(70, 230, 255, 0.3)); }
  50% { filter: drop-shadow(0 0 30px rgba(177, 75, 255, 0.8)) drop-shadow(0 0 60px rgba(70, 230, 255, 0.5)); }
}

#scroll-cue {
  position: fixed;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 55;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
  text-align: center;
  line-height: 2;
  transition: opacity 0.5s;
}
#scroll-cue .arrow {
  display: block;
  font-size: 1.2rem;
  animation: bounce 1.5s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(6px); opacity: 0.5; }
}

#dome-stage {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: transparent;
}
#dome-canvas {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  z-index: 2;
}
#dome-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
#dome-fallback::before {
  content: '';
  width: min(70vw, 420px);
  height: min(70vw, 420px);
  border: 2px solid rgba(70, 230, 255, 0.5);
  border-radius: 50%;
  box-shadow:
    0 0 60px rgba(177, 75, 255, 0.4),
    0 0 120px rgba(70, 230, 255, 0.2),
    inset 0 0 60px rgba(177, 75, 255, 0.15);
  animation: domePulse 3s ease-in-out infinite;
}
@keyframes domePulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.06); opacity: 1; }
}
#dome-stage.has-webgl #dome-fallback { opacity: 0.25; }

#dome-glow {
  position: fixed;
  inset: 0;
  z-index: 11;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(177, 75, 255, 0.3) 0%, rgba(70, 230, 255, 0.15) 35%, transparent 70%);
  opacity: 0.4;
  transition: opacity 0.3s;
}

#lands-layer {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
}
#lands-layer.visible { opacity: 1; pointer-events: auto; }

.lands-title {
  position: absolute;
  top: 14%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 90%;
}
.lands-title h2 {
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: var(--cyan);
  -webkit-text-stroke: 1px var(--purple);
  margin-bottom: 8px;
  animation: titleGlow 2s ease-in-out infinite alternate;
}
@keyframes titleGlow {
  from { text-shadow: 0 0 10px rgba(70, 230, 255, 0.3); }
  to { text-shadow: 0 0 20px rgba(177, 75, 255, 0.5); }
}
.lands-title p {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.lands-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 900px;
  width: 90%;
}
@media (max-width: 700px) { .lands-grid { grid-template-columns: repeat(2, 1fr); } }

.land-card {
  background: rgba(3, 4, 10, 0.88);
  border: 1px solid var(--border);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.35s, box-shadow 0.35s;
  position: relative;
  overflow: hidden;
  opacity: 0;
}
.land-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--cyan-dim), var(--purple-dim));
  opacity: 0;
  transition: opacity 0.35s;
}
.land-card::after {
  content: '';
  position: absolute;
  top: 4px; left: 4px;
  width: 10px; height: 10px;
  border-top: 1px solid var(--cyan);
  border-left: 1px solid var(--cyan);
  opacity: 0.5;
  transition: opacity 0.35s;
}
.land-card .hud-br {
  position: absolute;
  bottom: 4px; right: 4px;
  width: 10px; height: 10px;
  border-bottom: 1px solid var(--purple);
  border-right: 1px solid var(--purple);
  opacity: 0.5;
}
.land-card:hover, .land-card:focus {
  border-color: var(--purple);
  box-shadow: 0 0 40px rgba(177, 75, 255, 0.35), inset 0 0 20px rgba(70, 230, 255, 0.05);
}
.land-card:hover::before { opacity: 1; }
.land-card:hover .land-icon img { filter: drop-shadow(0 0 12px rgba(70, 230, 255, 0.8)); }

.land-card .land-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.land-card .land-icon img {
  width: 40px;
  height: 40px;
  transition: filter 0.35s, transform 0.35s;
}
.land-card:hover .land-icon img { transform: scale(1.1); }

.land-card h3 { font-size: 0.75rem; color: var(--cyan); margin-bottom: 4px; position: relative; z-index: 1; }
.land-card p { font-size: 0.7rem; color: var(--text-muted); position: relative; z-index: 1; }

#world-hub {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(3, 4, 10, 0.98);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
#world-hub.open { opacity: 1; pointer-events: auto; }

.hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  gap: 12px;
}
.hub-land-name {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--purple);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hub-land-icon { width: 20px; height: 20px; }
.hub-close {
  background: none;
  border: 1px solid var(--border);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 8px 14px;
  cursor: pointer;
  white-space: nowrap;
}
.hub-close:hover { border-color: var(--cyan); background: var(--cyan-dim); }

.hub-tabs {
  display: flex;
  gap: 4px;
  padding: 12px 24px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.hub-tab {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 16px;
  border: 1px solid transparent;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
}
.hub-tab.active {
  color: var(--cyan);
  border-color: var(--cyan);
  background: var(--cyan-dim);
}

.hub-panels { flex: 1; overflow-y: auto; padding: 32px 24px 48px; }
.hub-panel { display: none; max-width: 900px; margin: 0 auto; }
.hub-panel.active { display: block; animation: panelIn 0.4s ease; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.hub-panel h2 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--cyan);
  -webkit-text-stroke: 1px var(--purple);
  margin-bottom: 16px;
}
.hub-panel .lead { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 28px; line-height: 1.7; }

.money-steps { display: grid; gap: 16px; margin: 24px 0; }
.money-step {
  display: flex;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  background: var(--bg-panel);
}
.money-step .num { font-family: var(--font-head); font-size: 1.5rem; color: var(--purple); min-width: 40px; }
.money-step h4 { color: var(--cyan); font-size: 0.95rem; margin-bottom: 6px; }
.money-step p { color: var(--text-muted); font-size: 0.88rem; }

.site-nav.nav--journey {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

body.home-page { min-height: 900vh; }
#main-content {
  position: relative;
  z-index: 20;
  margin-top: 560vh;
  background: linear-gradient(180deg, transparent 0%, #03040a 8%);
}

@media (max-width: 600px) {
  #experience-hud { top: 16px; left: 16px; }
  #experience-hud .hud-phase { font-size: 0.7rem; }
  #scroll-progress { bottom: 16px; right: 16px; }
}
