:root {
  --bg: #07070d;
  --surface: #0d0d18;
  --card: #121220;
  --card-strong: #17172a;
  --border: #292943;
  --pink: #ff0a78;
  --pink-soft: rgba(255, 10, 120, .12);
  --cyan: #1de6ff;
  --cyan-soft: rgba(29, 230, 255, .1);
  --text: #f2f2f8;
  --muted: #9797b3;
  --warn: #ffad33;
  --danger: #ff4d5e;
  --success: #43dd8b;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% -10%, rgba(255, 10, 120, .14), transparent 35%),
    radial-gradient(circle at 85% 5%, rgba(29, 230, 255, .09), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button { font: inherit; }
button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }
.display { font-family: "Orbitron", ui-monospace, monospace; }
.shell { min-height: 100vh; }
.topbar {
  min-height: 58px;
  padding: 10px clamp(16px, 4vw, 36px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(7, 7, 13, .82);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  letter-spacing: .16em;
  font-size: .78rem;
}
.brand-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 16px var(--pink); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.lang-switch button, .ghost-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: .78rem;
}
.lang-switch button.active { background: var(--card-strong); color: var(--text); }
.ghost-btn:hover { color: var(--text); }
.page { width: min(100% - 32px, 920px); margin: 0 auto; padding: clamp(32px, 7vw, 70px) 0 56px; }
.eyebrow { margin: 0 0 14px; color: var(--muted); font-size: .75rem; letter-spacing: .25em; text-transform: uppercase; }
.hero { text-align: center; }
.hero h1 { margin: 0; font-size: clamp(2rem, 7vw, 4.6rem); line-height: 1.02; letter-spacing: -.04em; }
.hero h1 span { color: var(--pink); text-shadow: 0 0 30px rgba(255, 10, 120, .35); }
.hero-copy { max-width: 670px; margin: 22px auto 12px; color: #c0c0d2; font-size: clamp(1rem, 2vw, 1.15rem); line-height: 1.7; }
.privacy-note { color: var(--muted); font-size: .82rem; margin: 0 auto 32px; }
.mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 38px auto 34px; }
.mode-card {
  position: relative;
  overflow: hidden;
  min-height: 285px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 18px;
  color: var(--text);
  background: linear-gradient(145deg, var(--card), rgba(15,15,28,.75));
  text-align: left;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.mode-card::after { content: ""; position: absolute; width: 150px; height: 150px; border-radius: 50%; right: -55px; bottom: -70px; filter: blur(5px); opacity: .14; background: currentColor; }
.mode-card.personal { color: var(--pink); }
.mode-card.corporate { color: var(--cyan); }
.mode-card:hover { transform: translateY(-4px); border-color: currentColor; box-shadow: 0 18px 55px rgba(0,0,0,.35); }
.mode-icon { font-size: 2rem; display: block; margin-bottom: 24px; }
.mode-label { font-size: .78rem; letter-spacing: .18em; }
.mode-card h2 { margin: 10px 0 12px; color: var(--text); font-size: 1.35rem; line-height: 1.35; }
.mode-card p { color: var(--muted); font-size: .95rem; line-height: 1.55; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.tag { padding: 5px 9px; border: 1px solid currentColor; border-radius: 999px; font-size: .72rem; opacity: .82; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 650px; margin: 0 auto; padding: 20px; border: 1px solid var(--border); border-radius: 14px; background: rgba(13,13,24,.6); }
.stat strong { display: block; color: var(--pink); font-size: 1.2rem; margin-bottom: 4px; }
.stat span { color: var(--muted); font-size: .75rem; }
.intake { width: min(100% - 32px, 620px); margin: 0 auto; padding: 38px 0 60px; }
.progress-head { display: flex; align-items: center; gap: 12px; margin-bottom: 36px; color: var(--muted); font-size: .75rem; }
.progress-track { height: 4px; flex: 1; background: var(--border); border-radius: 10px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: inherit; transition: width .3s ease; }
.question h2 { margin: 0 0 8px; font-size: clamp(1.25rem, 4vw, 1.75rem); line-height: 1.4; }
.question-sub { margin: 0 0 26px; color: var(--muted); line-height: 1.5; }
.options { display: grid; gap: 10px; }
.option {
  width: 100%;
  min-height: 54px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: #c6c6d6;
  text-align: left;
  cursor: pointer;
}
.option:hover { border-color: #555577; }
.option.selected { color: var(--text); }
.check { width: 20px; height: 20px; flex: 0 0 20px; border: 2px solid var(--border); display: grid; place-items: center; font-size: .7rem; }
.check.multi { border-radius: 5px; }
.check.single { border-radius: 50%; }
.primary-btn {
  width: 100%;
  min-height: 52px;
  margin-top: 24px;
  border: 0;
  border-radius: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  cursor: pointer;
}
.primary-btn:disabled { cursor: not-allowed; opacity: .38; }
.scenario { width: min(100% - 32px, 730px); margin: 0 auto; padding: 34px 0 64px; }
.scenario-head { margin-bottom: 22px; }
.scenario-head h1 { margin: 6px 0; font-size: clamp(1.4rem, 4vw, 2rem); }
.scenario-meta { color: var(--muted); line-height: 1.5; }
.step-bars { display: flex; gap: 6px; margin-top: 16px; }
.step-bar { height: 4px; flex: 1; border-radius: 10px; background: var(--border); }
.panel { padding: 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); margin-bottom: 14px; }
.panel-accent { background: var(--surface); }
.panel-label { margin-bottom: 10px; color: var(--muted); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; }
.panel p { margin: 0; font-size: 1rem; line-height: 1.7; }
.tension { display: block; margin-top: 12px; color: var(--warn); line-height: 1.5; }
.objectives { display: grid; gap: 8px; }
.objective { display: flex; gap: 9px; color: #c9c9d8; line-height: 1.5; }
.objective span:first-child { color: var(--cyan); }
.choice-list { display: grid; gap: 10px; }
.choice { display: flex; gap: 12px; width: 100%; padding: 15px; border: 1px solid var(--border); border-radius: 11px; background: var(--card); color: var(--text); text-align: left; cursor: pointer; line-height: 1.55; }
.choice:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--card)); }
.choice-id { padding: 3px 7px; border-radius: 5px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-size: .78rem; font-weight: 800; }
.result-banner { display: flex; align-items: flex-start; gap: 12px; }
.result-icon { font-size: 1.5rem; }
.risk-pill { display: inline-block; padding: 4px 8px; border-radius: 999px; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.next-btn { margin-top: 18px; }
.loading { text-align: center; padding: 100px 20px; }
.loader { width: 52px; height: 52px; margin: 0 auto 22px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .85s linear infinite; }
.error-card { text-align: center; max-width: 560px; margin: 70px auto; }
.debrief-title { text-align: center; margin-bottom: 24px; }
.score-card { text-align: center; padding: 26px; }
.score-number { font-size: clamp(3rem, 12vw, 5rem); line-height: 1; }
.skill-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.skill-card { padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.skill-top { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 9px; font-size: .82rem; }
.skill-meter { height: 6px; border-radius: 10px; background: var(--border); overflow: hidden; }
.skill-meter div { height: 100%; background: var(--accent); }
.decision-row { padding: 14px 0; border-top: 1px solid var(--border); }
.decision-row:first-of-type { border-top: 0; }
.decision-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; color: var(--muted); font-size: .78rem; }
.decision-row p { font-size: .9rem; }
.action-row { display: flex; gap: 10px; }
.action-row .primary-btn { margin-top: 0; }
.secondary-btn { background: var(--card); color: var(--text); border: 1px solid var(--border); }
.footer-note { margin-top: 18px; color: var(--muted); text-align: center; font-size: .76rem; line-height: 1.5; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 680px) {
  .mode-grid { grid-template-columns: 1fr; }
  .mode-card { min-height: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .skill-grid { grid-template-columns: 1fr; }
  .action-row { flex-direction: column; }
  .brand span:last-child { display: none; }
}

@media print {
  body { background: #fff; color: #111; }
  .topbar, .action-row, .choice-list, .footer-note { display: none !important; }
  .scenario { width: 100%; padding: 0; }
  .panel, .skill-card { break-inside: avoid; background: #fff; color: #111; border-color: #bbb; }
  .panel p, .objective, .scenario-meta, .decision-head { color: #222; }
}
