:root {
  --bg: #07101d;
  --panel: rgba(14, 27, 45, 0.84);
  --panel-strong: #102139;
  --line: rgba(172, 196, 224, 0.16);
  --line-strong: rgba(108, 230, 196, 0.45);
  --text: #f4f8fc;
  --muted: #9db0c5;
  --accent: #6ce6c4;
  --accent-strong: #28bfa0;
  --accent-soft: rgba(108, 230, 196, 0.1);
  --warm: #f3c989;
  --danger: #ff9d9d;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -20%, #193251 0, transparent 42%),
    linear-gradient(180deg, #07101d 0%, #091523 62%, #07101d 100%);
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
  line-height: 1.5;
}

button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.ambient {
  position: fixed;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.1;
  pointer-events: none;
}

.ambient-one { top: 18%; left: -18rem; background: var(--accent); }
.ambient-two { right: -20rem; bottom: 0; background: #6386ff; }

.topbar {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.2rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--accent);
  background: var(--accent-soft);
}

.topbar-meta {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 9px;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(108, 230, 196, 0.08);
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0 72px;
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(560px, 1.25fr);
  gap: clamp(48px, 7vw, 110px);
  align-items: start;
}

.intro { position: sticky; top: 48px; padding-top: 42px; }

.eyebrow, .step-kicker {
  margin: 0 0 16px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 800;
}

.intro h1 {
  margin: 0;
  max-width: 640px;
  font-size: clamp(2.55rem, 5vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.intro h1 span { color: var(--accent); }

.lead {
  margin: 28px 0 34px;
  max-width: 560px;
  color: var(--muted);
  font-size: 1.04rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-row span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #bdcbd9;
  font-size: 0.72rem;
}

.experience {
  min-height: 650px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.progress-wrap {
  padding: 24px 30px 0;
}

.progress-copy {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.75rem;
}

.progress-copy span:last-child { color: #d9e4ee; }

.progress-track {
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  overflow: hidden;
}

.progress-track span {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent));
  transition: width 0.35s ease;
}

.step {
  display: none;
  padding: 42px 34px 32px;
  animation: reveal 0.35s ease;
}

.step.is-active { display: block; }

@keyframes reveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-heading { margin-bottom: 30px; }
.step-heading.compact { margin-bottom: 24px; }
.step-heading h2, .result-header h2, .success-step h2 {
  margin: 0 0 11px;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.step-heading p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.choice-grid {
  display: grid;
  gap: 12px;
}

.choice-grid.roles { grid-template-columns: repeat(2, 1fr); }
.choice-grid.goals { grid-template-columns: 1fr; }

.choice-card {
  min-height: 106px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.025);
  color: var(--text);
  text-align: left;
  transition: 0.2s ease;
}

.choice-card:hover {
  border-color: rgba(108, 230, 196, 0.32);
  transform: translateY(-2px);
}

.choice-card.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(108, 230, 196, 0.08);
}

.choice-icon {
  float: right;
  color: var(--accent);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.choice-card strong, .choice-card small { display: block; }
.choice-card strong { font-size: 0.9rem; }
.choice-card small { color: var(--muted); margin-top: 7px; font-size: 0.72rem; }

.goals .choice-card {
  min-height: auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 20px;
}

.goals .choice-card small { margin-top: 0; }

.actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-top: 30px;
}

.actions-end { justify-content: flex-end; }

.primary-button {
  border: 0;
  border-radius: 12px;
  padding: 13px 18px;
  background: var(--accent);
  color: #071a17;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 10px 30px rgba(40, 191, 160, 0.16);
}

.primary-button:hover { background: #8af2d4; }
.primary-button:disabled { opacity: 0.55; cursor: wait; }
.primary-button span { margin-left: 12px; }

.text-button {
  border: 0;
  padding: 10px 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
}

.text-button:hover { color: var(--text); }

.field-error {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--danger);
  font-size: 0.78rem;
}

.dna-list { display: grid; gap: 14px; }

.dna-question {
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.dna-question > span {
  display: block;
  margin-bottom: 12px;
  font-size: 0.8rem;
  color: #dfe8f1;
}

.scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}

.scale button {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 7px 0;
  color: var(--muted);
  background: rgba(255,255,255,0.025);
  font-size: 0.75rem;
}

.scale button.is-selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #071a17;
  font-weight: 800;
}

.scale-legend {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  color: #6f8499;
  font-size: 0.61rem;
}

.result-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.result-badge {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--accent);
  font-size: 0.65rem;
  white-space: nowrap;
}

.result-layout { display: grid; gap: 24px; }

.dna-chart { display: grid; gap: 10px; }

.chart-row {
  display: grid;
  grid-template-columns: 125px 1fr 36px;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
}

.chart-row > span:first-child { color: #c8d5e1; }
.chart-row > span:last-child { text-align: right; color: var(--accent); }
.chart-track { height: 6px; border-radius: 99px; background: rgba(255,255,255,0.07); overflow: hidden; }
.chart-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-strong), var(--accent)); }

.recommendation {
  padding: 21px;
  border-left: 3px solid var(--accent);
  background: rgba(108, 230, 196, 0.055);
  border-radius: 0 14px 14px 0;
}

.recommendation-label {
  color: var(--accent);
  margin: 0 0 9px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
}

.recommendation > p:nth-child(2) {
  margin: 0;
  color: #dbe6ef;
  font-size: 0.83rem;
}

.next-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.next-route span { color: var(--muted); font-size: 0.7rem; }
.next-route strong { color: var(--warm); font-size: 0.75rem; }
.privacy-note { color: var(--muted); font-size: 0.7rem; margin: 20px 0 0; }

.registration-grid { display: grid; gap: 16px; }
.registration-grid label > span { display: block; margin-bottom: 7px; color: #cad7e3; font-size: 0.72rem; }

.registration-grid input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  background: rgba(255,255,255,0.035);
  color: var(--text);
}

.registration-grid input:focus { border-color: var(--accent); }
.registration-grid input::placeholder { color: #60758b; }
.honeypot { position: absolute; left: -9999px; }

.consent {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.67rem;
}

.consent input { accent-color: var(--accent-strong); margin-top: 3px; }

.success-step { text-align: center; padding-top: 95px; }
.success-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 23px;
  border-radius: 50%;
  background: var(--accent);
  color: #071a17;
  font-size: 1.5rem;
  font-weight: 800;
}
.success-step > p:not(.step-kicker) { max-width: 440px; margin: 0 auto 28px; color: var(--muted); }

footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 25px 0 40px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 24px;
  color: #6f8499;
  font-size: 0.68rem;
}
footer a { margin-left: auto; text-decoration: none; }

@media (max-width: 920px) {
  .shell { grid-template-columns: 1fr; padding-top: 50px; }
  .intro { position: static; padding-top: 0; }
  .intro h1 { max-width: 720px; }
}

@media (max-width: 620px) {
  .topbar, .shell, footer { width: min(100% - 24px, 1180px); }
  .topbar-meta { display: none; }
  .shell { padding: 36px 0 48px; gap: 34px; }
  .intro h1 { font-size: 2.65rem; }
  .experience { border-radius: 19px; }
  .progress-wrap { padding: 20px 20px 0; }
  .step { padding: 34px 20px 24px; }
  .choice-grid.roles { grid-template-columns: 1fr; }
  .goals .choice-card { grid-template-columns: 1fr; gap: 5px; }
  .chart-row { grid-template-columns: 105px 1fr 30px; }
  .actions { align-items: stretch; }
  .actions .primary-button { flex: 1; }
  footer { flex-wrap: wrap; }
  footer a { margin-left: 0; }
}
