#mesh { position: absolute; inset: 0; width: 100%; height: 100%; }

.stage {
  position: relative; z-index: 1; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 16px 96px; text-align: center;
}

/* Core orb */
.core { position: relative; width: min(240px, 60vw); aspect-ratio: 1; display: grid; place-items: center; }
.rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rings circle { fill: none; transform-origin: 100px 100px; }
.track { stroke: var(--line); stroke-width: 2; }
.progress {
  stroke: url(#rg); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 578; stroke-dashoffset: 578; transform: rotate(-90deg);
  transition: stroke-dashoffset 0.8s cubic-bezier(.2,.8,.2,1);
  filter: drop-shadow(0 0 6px rgba(56,189,248,.8));
}
.ring { stroke-width: 1.5; stroke-linecap: round; }
.r1 { stroke: rgba(56,189,248,.55); stroke-dasharray: 60 30 8 30; animation: spin 9s linear infinite; }
.r2 { stroke: rgba(139,92,246,.6); stroke-dasharray: 4 14; animation: spin 14s linear infinite reverse; }
.r3 { stroke: rgba(45,212,191,.45); stroke-dasharray: 120 230; animation: spin 5s cubic-bezier(.6,.1,.4,.9) infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.mark { width: 34%; position: relative; z-index: 2; filter: drop-shadow(0 0 24px rgba(56,189,248,.55)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }
.pulse {
  position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,.35), transparent 70%);
  animation: breathe 3.2s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.35); opacity: .45; } }
.core.done .pulse { background: radial-gradient(circle, rgba(52,211,153,.4), transparent 70%); }
.core.done .r3 { stroke: rgba(52,211,153,.7); }

.title { margin: 28px 0 6px; font-size: clamp(34px, 7vw, 54px); font-weight: 300; letter-spacing: 0.08em; }
.title span { color: var(--ink); }
.title b {
  font-weight: 700; margin-left: 0.18em;
  background: linear-gradient(90deg, var(--sky), var(--violet) 60%, var(--teal));
  background-size: 200% 100%; animation: sheen 6s ease-in-out infinite;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@keyframes sheen { 50% { background-position: 100% 0; } }
.subtitle { margin: 0; color: var(--ink-2); font-size: 15px; max-width: 42ch; }

/* Boot steps */
.steps {
  list-style: none; margin: 32px 0 0; padding: 14px 18px; width: min(440px, 100%);
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-family: var(--mono); font-size: 12.5px; text-align: left;
}
.steps li { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 10px; padding: 6px 0; color: var(--ink-3); transition: color .3s; }
.steps li i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink-3); justify-self: center; transition: all .3s; }
.steps li em { font-style: normal; color: var(--ink-3); }
.steps li.active { color: var(--ink); }
.steps li.active i { border-color: var(--sky); border-top-color: transparent; animation: spin .8s linear infinite; }
.steps li.ok { color: var(--ink-2); }
.steps li.ok i { background: var(--ok); border-color: var(--ok); box-shadow: 0 0 10px var(--ok); }
.steps li.ok em { color: var(--ok); }
.steps li.warn i { background: var(--amber); border-color: var(--amber); }
.steps li.warn em { color: var(--amber); }

/* Call to action */
.cta { margin-top: 26px; display: flex; flex-direction: column; align-items: center; gap: 12px; animation: rise .6s cubic-bezier(.2,.8,.2,1) both; }
.cta[hidden] { display: none; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15.5px;
  background: linear-gradient(135deg, var(--sky), var(--violet));
  box-shadow: 0 10px 40px -10px rgba(56,189,248,.7), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -10px rgba(139,92,246,.8), inset 0 1px 0 rgba(255,255,255,.3); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hint { margin: 0; color: var(--ink-3); font-size: 13px; max-width: 40ch; }

.foot {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 18px 16px;
  color: var(--ink-3); font-size: 12px; letter-spacing: .04em;
}
