/* ============================================================
   HERO + PROGRESS
   ============================================================ */

.hero-section {
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.hero-inner {
  width: 100%;
  max-width: 1080px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: heroFadeIn 1.4s cubic-bezier(.2,.8,.2,1) both;
}

.hero-logo {
  width: min(440px, 70vw);
  height: auto;
  filter:
    drop-shadow(0 0 22px rgba(164,107,255,0.45))
    drop-shadow(0 0 70px rgba(123,44,255,0.35));
  animation: heroFloat 7s ease-in-out infinite;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(13px, 1.3vw, 17px);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-1);
  max-width: 760px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  line-height: 1.35;
}
.hero-tagline span { display: block; }

/* ---------- Progress head (no container, just centered labels) ---------- */
.progress-head {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.progress-count {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  justify-content: center;
}
.count-number {
  font-size: clamp(36px, 5vw, 54px);
  color: var(--ink-0);
  text-shadow: 0 0 16px var(--violet-light), 0 0 40px rgba(123,44,255,0.5);
  letter-spacing: 0.04em;
  transition: transform .3s;
}
.count-number.bump { animation: countBump .6s ease-out; }
.count-divider {
  color: var(--ink-3);
  font-size: clamp(20px, 2.8vw, 28px);
}
.count-target {
  color: var(--ink-2);
  font-size: clamp(20px, 2.8vw, 28px);
}

.progress-labels {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--font-display);
  letter-spacing: 0.22em;
  font-size: 10px;
  color: var(--ink-3);
}
.progress-labels strong {
  color: var(--violet-halo);
  letter-spacing: 0.22em;
}
.progress-labels .progress-stage::before {
  content: '';
  display: inline-block;
  width: 20px; height: 1px;
  background: rgba(164,107,255,0.35);
  vertical-align: middle;
  margin-right: 8px;
}

/* ---------- Planet stage (scattered cosmic route on starfield) ---------- */
.planet-stage {
  position: relative;
  width: 100%;
  max-width: 1100px;
  height: clamp(320px, 42vh, 440px);
  margin: -69px auto 8px;
}

/* SVG covering the stage — paths use viewBox 0..100 mapped to the box.
   vector-effect keeps strokes uniform under non-uniform scaling. */
.planet-paths {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.planet-paths .seg-base {
  fill: none;
  stroke: rgba(164,107,255,0.30);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 2 3;
  opacity: 0.7;
}
.planet-paths .seg-fill {
  fill: none;
  stroke: url(#lota-fill-grad);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.2s cubic-bezier(.2,.8,.2,1);
  /* drop-shadow removed for performance; thicker stroke + brighter gradient
     gives a similar "lit" feel without the per-frame paint cost. */
}
.planet-paths .seg-fill.complete {
  animation: fillPulse 1s ease-out;
}
.planet-paths .comet-group {
  transition: opacity .35s ease;
}
.planet-paths .comet-dot {
  fill: #ffffff;
  /* drop-shadow filters removed; the SVG halo (an extra circle behind) gives
     the glow effect more cheaply. */
}
.planet-paths .comet-halo { fill: var(--violet-light); opacity: 0.55; }
.planet-paths .comet-halo-outer { fill: var(--violet); opacity: 0.25; }
.planet-paths .comet-trail { fill: var(--violet-halo); }

/* Planet nodes — absolute positioned using inline left/top % + --planet-size */
.planet-stage .planet-node {
  position: absolute;
  width: var(--planet-size, 80px);
  height: var(--planet-size, 80px);
  transform: translate(-50%, -50%);
  z-index: 2;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.planet-stage .planet-node .planet-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(70%) brightness(0.35) saturate(0.7);
  transition: filter 1s, transform 1s;
  animation: planetBob 6s ease-in-out infinite;
  pointer-events: none;
}
.planet-stage .planet-node.active .planet-img {
  filter: grayscale(0%) brightness(1.05) saturate(1.1);
}
.planet-stage .planet-node.current .planet-img {
  filter: grayscale(55%) brightness(0.55);
  /* No filter animation — glow opacity is animated on .planet-glow instead. */
  animation: planetBob 6s ease-in-out infinite;
}

/* Cheap GPU-accelerated glow — radial gradient on a pseudo wrapper.
   Replaces the previous drop-shadow filter (which is paint-heavy). */
.planet-stage .planet-node .planet-glow {
  position: absolute;
  inset: -22%;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(199,125,255,0.55) 0%,
    rgba(123,44,255,0.35) 35%,
    transparent 70%);
  opacity: 0;
  transition: opacity .6s;
  pointer-events: none;
  will-change: opacity;
}
.planet-stage .planet-node.active .planet-glow { opacity: 1; }
.planet-stage .planet-node.current .planet-glow {
  opacity: 0.4;
  animation: glowPulse 2.6s ease-in-out infinite;
}
.planet-stage .planet-node .planet-rings {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}
.planet-stage .planet-node.milestone-flash .planet-rings::before,
.planet-stage .planet-node.milestone-flash .planet-rings::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--violet-halo);
  animation: ringExpand 1.2s ease-out forwards;
}
.planet-stage .planet-node.milestone-flash .planet-rings::after { animation-delay: 0.2s; }

.planet-stage .planet-node .milestone-label {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ink-3);
  white-space: nowrap;
  transition: color .6s;
  text-transform: uppercase;
}
.planet-stage .planet-node.active .milestone-label {
  color: var(--violet-halo);
  text-shadow: 0 0 10px rgba(199,125,255,0.6);
}
.planet-stage .planet-node.start .milestone-label {
  color: var(--ink-0);
  text-shadow: 0 0 12px var(--violet-light);
  letter-spacing: 0.3em;
}

/* Label above the planet — used only on the 100 milestone in desktop layout
   to avoid the START→100 line passing through the label. */
.planet-stage .planet-node.label-above .milestone-label {
  top: auto;
  bottom: calc(100% + 8px);
}

/* ---------- Hero / CTA button wraps ---------- */
.hero-cta-wrap,
.cta-btn-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.cta-btn {
  position: relative;
  padding: 16px 44px;
  min-width: 260px;
  border: 1px solid var(--violet-light);
  background: linear-gradient(180deg, var(--violet-mid) 0%, var(--violet-deep) 100%);
  color: var(--ink-0);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.2em;
  border-radius: var(--radius);
  cursor: pointer;
  overflow: hidden;
  transition: transform .2s, box-shadow .3s, border-color .3s;
  box-shadow: var(--glow-violet);
}
.cta-btn .cta-btn-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .6s;
  pointer-events: none;
}
.cta-btn:hover {
  transform: translateY(-1px);
  border-color: var(--violet-halo);
  box-shadow: var(--glow-violet-strong);
}
.cta-btn:hover .cta-btn-glow { transform: translateX(100%); }
.cta-btn:active { transform: translateY(0); }
.cta-btn:disabled { opacity: 0.6; cursor: progress; }

.form-hint {
  text-align: center;
  color: var(--ink-3);
  font-size: 12px;
  margin: 10px 0 0;
  letter-spacing: 0.03em;
}
.form-status {
  text-align: center;
  min-height: 22px;
  margin: 8px 0 0;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}
.form-status.ok { color: #6effa5; text-shadow: 0 0 10px rgba(110,255,165,0.35); }
.form-status.err { color: #ff7a9a; text-shadow: 0 0 10px rgba(255,122,154,0.35); }

@media (max-width: 720px) {
  .cta-btn { min-width: 0; width: 100%; }
  /* On mobile the planets render in a single horizontal line — the stage
     only needs enough vertical room for the largest planet + label. */
  .planet-stage {
    height: clamp(110px, 18vh, 160px);
    max-width: 100%;
    margin: -16px auto 8px;
  }
  .planet-stage .planet-node .milestone-label {
    font-size: 9px;
    letter-spacing: 0.2em;
    top: calc(100% + 4px);
  }
  .planet-paths .seg-fill { stroke-width: 3.4; }
  .planet-paths .seg-base { stroke-width: 1.2; }
}
