:root {
  --bg: #0a0a0a;
  --bg-2: #0f0f0f;
  --surface: #141414;
  --surface-2: #1a1a1a;
  --border: #262626;
  --border-2: #333;
  --ink: #f7f7f5;
  --muted: #a3a3a3;
  --faint: #6b6b6b;
  --orange: #ff6b1a;
  --orange-2: #ff8a3d;
  --orange-soft: rgba(255, 107, 26, 0.12);
  --orange-glow: rgba(255, 107, 26, 0.35);
  --danger: #ff5a5a;
  --radius: 14px;
  --radius-sm: 10px;
  --display: 'Anton', 'Inter', sans-serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
  --wrap: 1080px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: none; text-size-adjust: none; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
  min-height: 100dvh; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.55; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.glow {
  position: fixed; inset: -20% -10% auto -10%; height: 70vh; pointer-events: none; z-index: 0;
  background: radial-gradient(60% 60% at 50% 0%, rgba(255, 107, 26, 0.18), transparent 70%);
}
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; position: relative; z-index: 1; }
.narrow { width: min(680px, 100% - 40px); }

/* Header */
.site-header { position: relative; z-index: 2; padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo img { height: 38px; width: auto; }
.header-tag {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--border); padding: 7px 12px; border-radius: 999px;
}

/* Type */
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange); }
.display {
  font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.01em;
  line-height: 0.98; font-size: clamp(44px, 8vw, 88px); text-wrap: balance;
}
.display .accent { color: var(--orange); }
.h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(30px, 4.4vw, 44px); line-height: 1; letter-spacing: 0.01em; }
.h3 { font-size: 18px; font-weight: 700; }
.lead { font-size: clamp(17px, 2vw, 19px); color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: 999px; font-weight: 700; font-size: 16px;
  text-decoration: none; white-space: nowrap; transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s;
}
.btn-primary { background: linear-gradient(180deg, var(--orange-2), var(--orange)); color: #0a0a0a; box-shadow: 0 0 0 1px rgba(255,107,26,.4), 0 10px 36px var(--orange-glow); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255,107,26,.5), 0 14px 44px var(--orange-glow); }
.btn-primary:disabled { opacity: 0.35; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { border: 1px solid var(--border-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--muted); }
.btn-ghost:disabled { opacity: 0.3; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; }

/* Landing */
.hero { padding: 56px 0 72px; text-align: center; }
.hero .eyebrow { margin-bottom: 22px; }
.hero .lead { margin: 24px auto 36px; }
.hero-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; color: var(--muted); font-size: 14px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }

.section { padding: 64px 0; border-top: 1px solid var(--border); }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }

.arch-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.arch-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; min-height: 190px;
}
.arch-card .tag { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.arch-card .name { font-family: var(--display); text-transform: uppercase; font-size: 28px; line-height: 1; color: var(--orange); }
.arch-card p { color: var(--muted); font-size: 14.5px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { padding: 22px 20px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-2); }
.step .num { font-family: var(--display); font-size: 34px; color: var(--orange); line-height: 1; margin-bottom: 12px; }
.step p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }

.cta-band { text-align: center; padding: 72px 0 80px; border-top: 1px solid var(--border); }
.cta-band .h2 { margin-bottom: 26px; }

.site-footer { border-top: 1px solid var(--border); padding: 32px 0 40px; color: var(--faint); font-size: 12.5px; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 10px; }
.site-footer .motto { color: var(--muted); font-weight: 600; letter-spacing: 0.04em; }

/* Quiz shell */
.quiz { min-height: 100dvh; display: flex; flex-direction: column; }
.quiz-top { position: sticky; top: 0; z-index: 5; background: rgba(10,10,10,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.quiz-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.quiz-top .logo img { height: 30px; }
.quiz-count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.progress { height: 3px; background: var(--surface-2); }
.progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--orange), var(--orange-2)); transition: width 0.35s ease; box-shadow: 0 0 12px var(--orange-glow); }

.quiz-main { flex: 1; padding: 40px 0 140px; }
.screen { animation: rise 0.32s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .screen { animation: none; } .progress > i { transition: none; } }

.q-part { margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; }
.q-part .part-title { font-size: 13px; color: var(--faint); }
.q-title { font-size: clamp(22px, 3.2vw, 30px); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; margin-bottom: 10px; text-wrap: pretty; }
.q-hint { color: var(--muted); font-size: 14.5px; margin-bottom: 24px; }
.q-hint strong { color: var(--orange); font-weight: 600; }

.options { display: grid; gap: 10px; }
.opt {
  width: 100%; display: flex; align-items: flex-start; gap: 14px; text-align: left;
  padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.opt:hover { border-color: var(--border-2); background: var(--surface-2); }
.opt:active { transform: scale(0.995); }
.opt .key {
  flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  font-weight: 700; font-size: 13px; border: 1px solid var(--border-2); color: var(--muted); margin-top: -2px;
}
.opt .txt { font-size: 16px; line-height: 1.45; padding-top: 2px; }
.opt[aria-pressed='true'], .opt[aria-checked='true'] { border-color: var(--orange); background: var(--orange-soft); }
.opt[aria-pressed='true'] .key, .opt[aria-checked='true'] .key { background: var(--orange); border-color: var(--orange); color: #0a0a0a; }
.opt.dim { opacity: 0.5; }

.followup { margin-top: 18px; padding: 18px; border-radius: var(--radius-sm); border: 1px dashed var(--orange); background: rgba(255,107,26,.05); }
.followup p { font-size: 15px; margin-bottom: 12px; }
.followup .options { gap: 8px; }

.comment { margin-top: 22px; }
.comment label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.comment label .req { color: var(--orange); font-weight: 600; }
textarea, .field input {
  width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-2);
  padding: 14px 16px; font-size: 16px; transition: border-color 0.15s;
}
textarea { min-height: 92px; resize: vertical; }
textarea:focus, .field input:focus { outline: none; border-color: var(--orange); }

.quiz-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; background: linear-gradient(180deg, rgba(10,10,10,0), rgba(10,10,10,.96) 30%); padding: 26px 0 calc(18px + env(safe-area-inset-bottom)); }
.quiz-nav .wrap { display: flex; justify-content: space-between; gap: 12px; }
.quiz-nav .btn { min-width: 132px; }
.err { color: var(--danger); font-size: 14px; margin-top: 14px; min-height: 20px; }

/* Details form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; color: var(--muted); font-weight: 500; }
.field .help { font-size: 12.5px; color: var(--faint); }
.field input[aria-invalid='true'] { border-color: var(--danger); }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--orange); margin-top: 1px; flex: none; }

/* Loading */
.loader { display: grid; place-items: center; gap: 18px; text-align: center; padding: 80px 0; }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--surface-2); border-top-color: var(--orange); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Results */
.res-hero { padding: 40px 0 36px; text-align: center; }
.res-hero .display { font-size: clamp(52px, 10vw, 104px); margin: 14px 0 10px; }
.res-hero .axes-line { color: var(--muted); font-size: 15px; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; border: 1px solid var(--border-2); color: var(--muted); padding: 7px 12px; border-radius: 999px; }
.badge.orange { color: var(--orange); border-color: rgba(255,107,26,.45); background: var(--orange-soft); }
.res-hero .tagline { font-size: clamp(18px, 2.4vw, 22px); max-width: 40ch; margin: 18px auto 0; text-wrap: balance; }
.res-hero .chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card + .card { margin-top: 14px; }
.card h3 { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); font-weight: 700; margin-bottom: 12px; }
.card p { color: #d6d6d4; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.grid-2 .card + .card { margin-top: 0; }
ul.list { list-style: none; display: grid; gap: 12px; }
ul.list li { position: relative; padding-left: 20px; color: #d6d6d4; }
ul.list li::before { content: ''; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 2px; background: var(--orange); }
ol.prompts { list-style: none; counter-reset: p; display: grid; gap: 12px; }
ol.prompts li { counter-increment: p; display: flex; gap: 14px; color: #d6d6d4; }
ol.prompts li::before { content: counter(p); flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--orange-soft); color: var(--orange); }

.live { border-color: rgba(255,107,26,.45); background: linear-gradient(180deg, rgba(255,107,26,.10), rgba(255,107,26,.02)); }
.live-item { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-top: 1px solid rgba(255,107,26,.2); }
.live-item:first-of-type { border-top: 0; padding-top: 4px; }
.live-item .nm { font-weight: 700; }
.live-item .when { color: var(--orange); font-weight: 600; font-size: 15px; }

.scale { margin-top: 6px; }
.scale + .scale { margin-top: 22px; }
.scale-labels { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.scale-labels b { color: var(--ink); font-weight: 600; }
.scale-track { position: relative; height: 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.scale-track .band { position: absolute; top: 0; bottom: 0; background: rgba(255,255,255,.06); }
.scale-track .mid { position: absolute; left: 50%; top: -4px; bottom: -4px; width: 1px; background: var(--border-2); }
.scale-track .dot { position: absolute; top: 50%; width: 20px; height: 20px; border-radius: 50%; background: var(--orange); transform: translate(-50%, -50%); box-shadow: 0 0 0 4px rgba(255,107,26,.25); }
.scale-note { font-size: 12.5px; color: var(--faint); margin-top: 8px; }

.others { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.others .o { padding: 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-2); }
.others .o.on { border-color: var(--orange); background: var(--orange-soft); }
.others .o .n { font-family: var(--display); text-transform: uppercase; font-size: 20px; line-height: 1.05; }
.others .o .a { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

.disclaimer { font-size: 13px; color: var(--faint); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-top: 14px; }
.res-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 32px 0 8px; }

@media (max-width: 860px) {
  .arch-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .others { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .logo img { height: 32px; }
  .header-tag { display: none; }
  .hero { padding: 34px 0 56px; }
  .hero .btn { width: 100%; }
  .section { padding: 48px 0; }
  .arch-grid { grid-template-columns: 1fr; }
  .arch-card { min-height: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .quiz-main { padding-top: 28px; }
  .quiz-nav .btn { min-width: 0; flex: 1; }
  .opt { padding: 14px 14px; }
  .card { padding: 20px; }
}
