/* ─── Reset & base ─────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

body {
  font-family: "Ubuntu", "Helvetica Neue", sans-serif;
  background: radial-gradient(ellipse at top, rgba(81, 47, 201, 0.11), transparent 60%), #111214;
  color: #eeedf2;
  line-height: 1;
}

/* ─── Full-page layout ──────────────────────────────────────────────── */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* ─── Background art ────────────────────────────────────────────────── */
.bg-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  background:
    /* Primary core — upper left */
    radial-gradient(ellipse 20% 28% at 18% 22%, rgba(192, 162, 255, 0.14) 0%, transparent 100%),
    /* Primary inner halo */
    radial-gradient(ellipse 44% 36% at 16% 26%, rgba(124, 77, 255, 0.11) 0%, transparent 75%),
    /* Primary wisp sweeping right */
    radial-gradient(ellipse 72% 14% at 38% 20%, rgba(81, 47, 201, 0.08) 0%, transparent 100%),
    /* Primary tendril downward */
    radial-gradient(ellipse 18% 52% at 12% 48%, rgba(81, 47, 201, 0.09) 0%, transparent 85%),
    /* Primary main body */
    radial-gradient(ellipse 92% 72% at 24% 34%, rgba(81, 47, 201, 0.11) 0%, transparent 70%),
    /* Primary wide diffuse */
    radial-gradient(ellipse 110% 90% at 30% 42%, rgba(61, 31, 160, 0.06) 0%, transparent 65%),
    /* Secondary core — upper right */
    radial-gradient(ellipse 16% 24% at 82% 18%, rgba(192, 162, 255, 0.13) 0%, transparent 100%),
    /* Secondary inner halo */
    radial-gradient(ellipse 36% 32% at 80% 22%, rgba(124, 77, 255, 0.09) 0%, transparent 75%),
    /* Secondary wisp */
    radial-gradient(ellipse 80% 12% at 65% 18%, rgba(81, 47, 201, 0.07) 0%, transparent 100%),
    /* Secondary main body */
    radial-gradient(ellipse 76% 84% at 78% 28%, rgba(81, 47, 201, 0.09) 0%, transparent 65%),
    /* Secondary wide diffuse */
    radial-gradient(ellipse 100% 80% at 72% 36%, rgba(61, 31, 160, 0.04) 0%, transparent 60%),
    /* Satellite cluster — center */
    radial-gradient(ellipse 40% 36% at 52% 68%, rgba(124, 77, 255, 0.07) 0%, transparent 70%),
    /* Satellite — lower left */
    radial-gradient(ellipse 50% 34% at 18% 78%, rgba(81, 47, 201, 0.08) 0%, transparent 65%),
    /* Violet fringe — far right */
    radial-gradient(ellipse 36% 44% at 90% 60%, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
}

.bg-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

/* ─── Header ────────────────────────────────────────────────────────── */
.s-header {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 120px;
  margin-top: 42px;
  padding-left: max(16px, calc((100% - 960px) / 2));
}

.s-logo {
  height: 120px;
  width: auto;
}

/* ─── Main ──────────────────────────────────────────────────────────── */
.s-main {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  flex: 1;
  padding: 30px 16px 48px;
}

/* ─── Card outer ────────────────────────────────────────────────────── */
.card-outer {
  position: relative;
  width: 960px;
  max-width: 100%;
}

/* ─── Pam robot — sits above right column ───────────────────────────── */
.pam-body {
  position: absolute;
  width: 186px;
  height: 125px;
  right: 92px;
  top: -119px;
  z-index: 1;
  pointer-events: none;
  transform: scaleX(-1);
}

.pam-hands {
  position: absolute;
  width: 276px;
  height: 94px;
  right: 55px;
  top: -60px;
  z-index: 3;
  pointer-events: none;
  transform: scaleX(-1);
}

/* ─── Card ──────────────────────────────────────────────────────────── */
.card {
  background: #0f1e3b;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ─── Card body (two-column row) ────────────────────────────────── */
.card-body {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

/* ─── Card footer (full-width action row) ───────────────────────── */
.card-footer {
  padding: 0 32px 32px;
  background: #0f1e3b;
}

/* ─── Left column: progress ─────────────────────────────────────────── */
.card-left {
  flex: 1;
  padding: 40px 32px 24px;
  min-width: 0;
  background: #0f1e3b;
}

/* ─── Divider ───────────────────────────────────────────────────────── */
.card-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

/* ─── Right column: install instructions ────────────────────────────── */
.card-right {
  flex: 2;
  padding: 40px 32px 40px;
  min-width: 0;
  background: #0f1e3b;
}

.card-heading {
  font-size: 24px;
  font-weight: 500;
  line-height: 32px;
  letter-spacing: 0.035px;
  color: #fff;
}

.card-desc {
  font-size: 14px;
  font-weight: 300;
  line-height: 22px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 8px;
}

.sound-toggle-heading {
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
  color: #fff;
  margin-bottom: 8px;
}

.sound-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 300;
  line-height: 22px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  margin-bottom: 40px;
  user-select: none;
}

.sound-toggle input[type="checkbox"] {
  accent-color: #7c5ef0;
  width: 16px;
  height: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

.install-heading {
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
  color: #fff;
  margin-bottom: 8px;
}

.install-desc {
  font-size: 14px;
  font-weight: 300;
  line-height: 22px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.install-block {
  margin-bottom: 20px;
}

.install-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 6px;
}

.code-wrap {
  position: relative;
}

.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: #9e9cb8;
  font-family: "Ubuntu", "Helvetica Neue", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #eeedf2;
}

.copy-btn--done {
  color: #c5b6ff;
  border-color: rgba(197, 182, 255, 0.35);
  background: rgba(197, 182, 255, 0.1);
}

pre {
  background: #0a0b0d;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  padding: 12px 16px;
  overflow-x: auto;
}

pre code {
  font-family: "Ubuntu Mono", ui-monospace, monospace;
  font-size: 13px;
  line-height: 20px;
  color: #c5b6ff;
  white-space: pre;
}

.install-note {
  font-size: 12px;
  font-weight: 300;
  line-height: 18px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: -12px;
  margin-bottom: 20px;
}

/* ─── Steps list ────────────────────────────────────────────────────── */
.steps {
  list-style: none;
  margin-top: 24px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-height: 48px;
}

/* Left column: dot-wrap + connector */
.step-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

/* Wrapper that layers the spinner ring over the dot */
.step-dot-wrap {
  position: relative;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Dot variants: all hidden by default ───────────────────────────── */
.step-dot--done,
.step-dot--active-icon,
.step-dot--skel,
.step-spinner-ring {
  display: none;
}

.step-dot {
  width: 24px;
  height: 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-dot img {
  display: block;
  width: 24px;
  height: 24px;
}

.step-dot--done {
  background: #c5b6ff;
}
.step-dot--dim {
  background: rgba(255, 255, 255, 0.12);
}

/* Skeleton bar inside pending dot */
.step-dot--skel {
  padding: 5px;
  align-items: flex-start;
}
.step-skel-bar {
  width: 100%;
  height: 14px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.12);
}

/* Connector line */
.step-line {
  width: 2px;
  height: 24px;
  flex-shrink: 0;
}

/* Step label */
.step-label {
  font-size: 14px;
  font-weight: 300;
  line-height: 24px;
  letter-spacing: 0.035px;
  color: #fff;
}

/* ─── State: active ─────────────────────────────────────────────────── */
/* Show: spinner ring + active-icon. Hide: done, skel. */
.step--active .step-spinner-ring {
  display: block;
}
.step--active .step-dot--active-icon {
  display: flex;
}
.step--active .step-dot--done {
  display: none;
}
.step--active .step-dot--skel {
  display: none;
}
.step--active .step-line {
  background: rgba(255, 255, 255, 0.12);
}

/* ─── State: pending (not yet reached) ──────────────────────────────── */
/* Show: skel. Hide: done, active-icon, spinner. */
.step--pending .step-dot--skel {
  display: flex;
}
.step--pending .step-dot--done {
  display: none;
}
.step--pending .step-dot--active-icon {
  display: none;
}
.step--pending .step-spinner-ring {
  display: none;
}
.step--pending .step-line {
  background: rgba(255, 255, 255, 0.12);
}

/* ─── State: completed (just .step — no active or pending modifier) ─── */
/* Show: done. Hide: active-icon, skel, spinner. */
.step:not(.step--active):not(.step--pending) .step-dot--done {
  display: flex;
}
.step:not(.step--active):not(.step--pending) .step-dot--active-icon {
  display: none;
}
.step:not(.step--active):not(.step--pending) .step-dot--skel {
  display: none;
}
.step:not(.step--active):not(.step--pending) .step-spinner-ring {
  display: none;
}
.step:not(.step--active):not(.step--pending) .step-line {
  background: #c5b6ff;
}

/* ─── Spinning square ring ──────────────────────────────────────────── */
@keyframes spin-square {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.step-spinner-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  border: 3px solid #c5b6ff;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: spin-square 1.5s linear infinite;
  z-index: 1;
  transform-origin: center center;
}

/* Keep the icon above the ring */
.step--active .step-dot--active-icon {
  position: relative;
  z-index: 2;
}

/* ─── Next action button ────────────────────────────────────────────── */
.next-action {
  display: block;
  width: 100%;
  padding: 12px 24px;
  background: #512fc9;
  color: #fff;
  font-family: "Ubuntu", "Helvetica Neue", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0.035px;
  text-align: center;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.next-action:hover {
  background: #6b46e0;
}

/* ─── Footer ────────────────────────────────────────────────────────── */
.s-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 50px;
  padding: 0 24px 24px;
  width: 100%;
}

.s-footer span,
.s-footer a {
  font-size: 14px;
  font-weight: 300;
  line-height: 24px;
  letter-spacing: 0.035px;
  color: #888da8;
  text-decoration: none;
  white-space: nowrap;
}
