:root {
  color-scheme: dark;
  --bg: #08111f;
  --card: rgba(13, 24, 43, 0.78);
  --card-strong: rgba(15, 30, 55, 0.94);
  --text: #eef6ff;
  --muted: #aac0d8;
  --line: rgba(255,255,255,0.12);
  --accent: #6d5dfc;
  --accent-two: #00d4ff;
  --accent-three: #2dfd9b;
  --danger: #ff6b8a;
  --shadow: 0 24px 80px rgba(0,0,0,0.42);
  --radius: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.wheeler {
  --accent: #0ea5e9;
  --accent-two: #22c55e;
  --accent-three: #facc15;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(109,93,252,.25), transparent 32rem), var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

a { color: inherit; }
code {
  color: #dff8ff;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line);
  padding: .18rem .42rem;
  border-radius: .55rem;
}

.bg-glow { position: fixed; z-index: -1; width: 30rem; height: 30rem; border-radius: 50%; filter: blur(80px); opacity: .42; }
.bg-one { right: -8rem; top: 8rem; background: var(--accent); }
.bg-two { left: -10rem; bottom: 0; background: var(--accent-two); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 3rem);
  background: rgba(8,17,31,.76);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center;
  width: 2.6rem; height: 2.6rem;
  border-radius: .9rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-two));
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  font-weight: 900;
}
.brand strong, .brand small { display: block; }
.brand small, .small { color: var(--muted); }
nav { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
nav a, .ghost { color: var(--muted); text-decoration: none; background: transparent; border: 0; cursor: pointer; font: inherit; }
nav a:hover, .ghost:hover { color: var(--text); }

main { width: min(1160px, calc(100% - 2rem)); margin: 1.4rem auto 4rem; display: grid; gap: 1.2rem; }
.card {
  background: linear-gradient(180deg, var(--card-strong), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.15rem, 2.4vw, 2rem);
}
.hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr); gap: 1.5rem; align-items: center; min-height: 460px; }
.eyebrow { color: var(--accent-three); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; }
h1 { font-size: clamp(2.35rem, 7vw, 5.8rem); line-height: .92; margin: .35rem 0 1rem; letter-spacing: -.07em; }
h2 { font-size: clamp(1.35rem, 3vw, 2rem); margin: .2rem 0 .8rem; }
h3 { font-size: 1.45rem; margin: 1rem 0 .75rem; }
.lede { max-width: 64ch; color: var(--muted); font-size: 1.15rem; line-height: 1.7; }
.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.cta-row.compact { margin-top: .8rem; }
.button, button.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.75rem;
  padding: .72rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}
.primary { background: linear-gradient(135deg, var(--accent), var(--accent-two)); color: white; border-color: transparent; }
.secondary { background: rgba(255,255,255,.06); color: var(--text); }
.button:hover { transform: translateY(-1px); }

.status-panel { background: rgba(255,255,255,.055); border: 1px solid var(--line); border-radius: 20px; padding: 1.1rem; }
dl { margin: 0; display: grid; gap: .9rem; }
dt { color: var(--muted); font-size: .85rem; margin-bottom: .25rem; }
dd { margin: 0; display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.copy { background: rgba(255,255,255,.07); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: .4rem .65rem; cursor: pointer; }
.copy:hover { border-color: var(--accent-two); }

.grid { display: grid; gap: 1.2rem; }
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.step-card { position: relative; overflow: hidden; }
.step-number { width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid var(--line); color: var(--accent-three); font-weight: 900; }
.check { display: flex; align-items: center; gap: .55rem; margin-top: 1rem; color: var(--text); font-weight: 700; }
.check input { width: 1.15rem; height: 1.15rem; accent-color: var(--accent-two); }
.section-heading { margin-bottom: 1rem; }
.device-tabs { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: 1rem; }
.tab { border: 1px solid var(--line); background: rgba(255,255,255,.06); color: var(--muted); border-radius: 999px; padding: .75rem 1rem; cursor: pointer; font-weight: 800; }
.tab.active { background: linear-gradient(135deg, var(--accent), var(--accent-two)); color: white; border-color: transparent; }
.device-panel { display: none; border-top: 1px solid var(--line); padding-top: .75rem; }
.device-panel.active { display: block; }
.instructions { color: var(--muted); line-height: 1.8; padding-left: 1.3rem; }
.instructions strong { color: var(--text); }
.progress-wrap { width: 100%; height: .85rem; background: rgba(255,255,255,.08); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.progress-bar { width: 0%; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-two), var(--accent-three)); transition: width .25s ease; }

details { border-top: 1px solid var(--line); padding: 1rem 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 900; }
details p { color: var(--muted); line-height: 1.7; }
.toast { position: fixed; right: 1rem; bottom: 1rem; background: #101c32; border: 1px solid var(--line); border-radius: 999px; padding: .8rem 1rem; box-shadow: var(--shadow); opacity: 0; transform: translateY(1rem); pointer-events: none; transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 820px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .hero, .two-col { grid-template-columns: 1fr; }
  h1 { letter-spacing: -.05em; }
}
