/* CJ BEST Webdev Sandbox — onboarding wizard */
:root {
  --bg: #0b1020; --panel: #121a2e; --panel-2: #0e1526; --line: #22304e;
  --text: #e8ecf8; --muted: #9aa8c7; --faint: #5d6a8c;
  --accent: #5b8cff; --accent-2: #9f7cff; --ok: #37c79a; --err: #ff6a7a;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background: var(--bg); color: var(--text); min-height: 100vh;
  display: flex; flex-direction: column;
}
.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 400px at 85% -10%, rgba(159, 124, 255, .16), transparent 70%),
    radial-gradient(700px 500px at -10% 110%, rgba(91, 140, 255, .14), transparent 70%);
}

/* header / footer */
.top { display: flex; justify-content: space-between; align-items: center; padding: 22px 34px; }
.brand { font-family: 'Space Grotesk', sans-serif; font-size: 15px; letter-spacing: .3px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.brand b { color: var(--text); }
.logo-dot { width: 10px; height: 10px; border-radius: 3px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 0 14px rgba(91, 140, 255, .8); }
.top-right { font-size: 12.5px; color: var(--faint); font-family: 'Space Grotesk', sans-serif; }
.foot { text-align: center; color: var(--faint); font-size: 12px; padding: 26px 20px 30px; }

/* layout */
.shell { display: flex; gap: 46px; max-width: 1060px; width: 100%; margin: 0 auto; padding: 10px 34px 30px; flex: 1; }
.rail { display: none; }
@media (min-width: 860px) {
  .rail { display: block; width: 210px; flex: none; padding-top: 46px; }
  .rail ol { list-style: none; }
  .rail li { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 13px; padding: 8px 0; transition: color .3s; }
  .rail li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--line); transition: all .3s; }
  .rail li.active { color: var(--text); }
  .rail li.active::before { background: var(--accent); box-shadow: 0 0 10px rgba(91, 140, 255, .9); }
  .rail li.done { color: var(--muted); }
  .rail li.done::before { background: var(--ok); }
}

/* stage + screens */
.stage { flex: 1; max-width: 660px; }
.screen { animation: rise .45s cubic-bezier(.2, .9, .25, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.kicker { font-family: 'Space Grotesk', sans-serif; font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(26px, 4.5vw, 38px); font-weight: 600; line-height: 1.15; margin-bottom: 12px; }
h1 .grad { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 16px; line-height: 1.6; margin-bottom: 30px; max-width: 54ch; }

/* choice cards */
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.card {
  position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 20px 20px; cursor: pointer; transition: transform .18s, border-color .18s, box-shadow .18s;
  outline: none; text-align: left; color: inherit; font: inherit;
}
.card:hover, .card:focus-visible { transform: translateY(-3px); border-color: #365083; box-shadow: 0 12px 30px rgba(5, 10, 25, .5); }
.card.sel { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 14px 34px rgba(91, 140, 255, .18); }
.card .ico { font-size: 22px; margin-bottom: 12px; display: block; }
.card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.card .pick { position: absolute; top: 14px; right: 14px; width: 18px; height: 18px; border-radius: 50%; border: 1.6px solid var(--line); display: grid; place-items: center; }
.card.sel .pick { border-color: var(--accent); background: var(--accent); }
.card.sel .pick::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #fff; }
.row-cards { grid-template-columns: 1fr 1fr; }

/* nav */
.nav { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.btn {
  font-family: 'Space Grotesk', sans-serif; font-size: 14.5px; font-weight: 600; cursor: pointer;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #071022; border: 0;
  padding: 13px 26px; border-radius: 11px; transition: filter .18s, transform .18s;
}
.btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn:disabled { opacity: .4; cursor: default; transform: none; }
.btn.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.btn.ghost:hover { color: var(--text); }
.hint { color: var(--faint); font-size: 12.5px; margin-left: auto; }
@media (max-width: 640px) { .nav { flex-wrap: wrap; } .hint { margin-left: 0; width: 100%; } }

/* forms */
.form { display: grid; gap: 18px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; letter-spacing: .3px; }
.field input {
  width: 100%; background: var(--panel-2); border: 1px solid var(--line); border-radius: 11px;
  color: var(--text); font: inherit; font-size: 15px; padding: 13px 15px; outline: none; transition: border-color .2s;
}
.field input:focus { border-color: var(--accent); }
.field .prefix { color: var(--faint); font-size: 12.5px; margin-top: 6px; }
.url-preview { display: flex; align-items: center; gap: 8px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 11px; padding: 13px 15px; font-size: 14px; color: var(--muted); font-family: 'Space Grotesk', monospace; }
.url-preview b { color: var(--accent); }

/* review */
.review { display: grid; gap: 10px; }
.rv { display: flex; justify-content: space-between; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 13px 16px; font-size: 14px; }
.rv span:first-child { color: var(--muted); }
.rv span:last-child { color: var(--text); font-weight: 500; text-align: right; }

/* provisioning + done */
.prog { display: grid; gap: 16px; margin-top: 6px; }
.pstep { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 14.5px; transition: color .3s; }
.pstep .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--line); flex: none; position: relative; transition: background .3s; }
.pstep.on { color: var(--text); }
.pstep.on .dot { background: var(--accent); box-shadow: 0 0 12px rgba(91, 140, 255, .9); }
.pstep.ok { color: var(--muted); }
.pstep.ok .dot { background: var(--ok); }
.done-card { background: var(--panel); border: 1px solid #2c4d3f; border-radius: 16px; padding: 34px; }
.space-url {
  display: block; font-family: 'Space Grotesk', monospace; font-size: 17px; color: var(--accent);
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 11px; padding: 15px 18px;
  margin: 18px 0; text-decoration: none; transition: border-color .2s; word-break: break-all;
}
.space-url:hover { border-color: var(--accent); }
.err-note { background: rgba(255, 106, 122, .08); border: 1px solid rgba(255, 106, 122, .35); color: var(--err); border-radius: 10px; padding: 12px 15px; font-size: 13.5px; margin-top: 16px; display: none; }
.err-note.show { display: block; animation: rise .3s both; }

/* toast for keyboard shortcut hint */
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
