:root {
  --ink: #07111f;
  --muted: #5f6f82;
  --line: #dce5ee;
  --paper: #f6f9fc;
  --blue: #176bff;
  --cyan: #22d3c5;
  --night: #061323;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 62px 24px 80px;
}

.ambient {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  filter: blur(2px);
  opacity: .6;
}

.ambient-one {
  width: 520px;
  height: 520px;
  top: -250px;
  left: -190px;
  background: radial-gradient(circle, rgba(34, 211, 197, .26), transparent 68%);
}

.ambient-two {
  width: 660px;
  height: 660px;
  top: 140px;
  right: -310px;
  background: radial-gradient(circle, rgba(23, 107, 255, .2), transparent 68%);
}

.hero,
.survey,
.risk {
  width: min(100%, 900px);
  margin-inline: auto;
}

.hero { text-align: center; }

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin: 0 auto 22px;
  border-radius: 24px;
  background: var(--night);
  box-shadow: 0 18px 40px rgba(6, 19, 35, .2);
  transform: rotate(8deg);
}

.brand-core {
  color: white;
  font-weight: 900;
  font-size: 25px;
  letter-spacing: -2px;
  transform: rotate(-8deg);
}

.brand-orbit {
  position: absolute;
  width: 54px;
  height: 23px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  transform: rotate(-24deg);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}

h1 {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(36px, 6vw, 66px);
  line-height: .98;
  letter-spacing: -.055em;
}

.hero-copy {
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
}

.survey {
  position: relative;
  margin-top: 52px;
  min-height: 430px;
}

.form-visual {
  width: min(100%, 560px);
  margin: 44px auto 0;
  padding: 0;
}

.form-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 22px 54px rgba(6, 19, 35, .2);
}

.state-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.survey-card {
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 30px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 30px 80px rgba(28, 55, 86, .13);
  backdrop-filter: blur(18px);
}

.step-two { display: none; }

#q1-yes:checked ~ .step-one,
#q1-no:checked ~ .step-one { display: none; }

#q1-yes:checked ~ .step-two,
#q1-no:checked ~ .step-two {
  display: block;
  animation: card-in .45s ease both;
}

.step-meta {
  display: flex;
  justify-content: space-between;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.progress {
  height: 4px;
  margin: 15px 0 32px;
  overflow: hidden;
  border-radius: 99px;
  background: #e7edf4;
}

.progress span {
  display: block;
  width: 50%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.progress-complete span { width: 100%; }

.survey h2 {
  max-width: 720px;
  margin: 0 0 32px;
  font-size: clamp(25px, 4vw, 38px);
  line-height: 1.12;
  letter-spacing: -.035em;
}

.options { display: grid; gap: 14px; }

.option {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: white;
  color: #213247;
  font-size: 17px;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.option:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
  box-shadow: 0 14px 30px rgba(23, 107, 255, .12);
}

.option-key {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #edf4ff;
  color: var(--blue);
  font-weight: 900;
}

.option-arrow {
  color: var(--blue);
  font-size: 25px;
}

.completion {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(4, 13, 26, .76);
  backdrop-filter: blur(9px);
}

#q2-short:checked ~ .completion,
#q2-long:checked ~ .completion {
  display: grid;
  animation: fade-in .35s ease both;
}

.completion-panel {
  width: min(100%, 550px);
  padding: 46px;
  border-radius: 28px;
  background: white;
  text-align: center;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .3);
  animation: card-in .45s ease both;
}

.checkmark {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: white;
  font-size: 34px;
  font-weight: 900;
}

.completion-panel h2 { margin-bottom: 14px; }

.completion-panel > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
}

.primary-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 26px 0 14px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--night);
  color: white;
  font-weight: 800;
  text-decoration: none;
}

.primary-action span { color: var(--cyan); font-size: 23px; }
.completion-panel small { color: #7b8998; }

.product-preview {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 56px;
  align-items: center;
  margin-top: 110px;
}

.product-preview h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -.045em;
}

.preview-copy > p:not(.eyebrow) { color: var(--muted); line-height: 1.7; }

.preview-copy ul {
  display: grid;
  gap: 13px;
  padding: 0;
  list-style: none;
}

.preview-copy li { font-weight: 750; }
.preview-copy li span { margin-right: 12px; color: var(--blue); font-size: 11px; }

.dashboard {
  overflow: hidden;
  min-height: 360px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  background: var(--night);
  box-shadow: 0 28px 60px rgba(6, 19, 35, .25);
}

.dash-top {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 48px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.dash-top i { width: 8px; height: 8px; border-radius: 50%; background: #25364b; }
.dash-top i:first-child { background: var(--cyan); }
.dash-top span { margin-left: auto; color: #6d829c; font-size: 10px; letter-spacing: .14em; }

.dash-grid {
  display: grid;
  grid-template-columns: 1.5fr .8fr;
  gap: 12px;
  padding: 18px;
}

.chart-panel,
.signal-list {
  min-height: 275px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 15px;
  background-color: #09192c;
}

.chart-panel {
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 42px 42px;
}

.chart-line {
  position: absolute;
  left: 7%;
  right: 7%;
  top: 34%;
  height: 34%;
  border-top: 4px solid var(--cyan);
  border-radius: 50% 22% 0 0;
  transform: skewY(-12deg) rotate(-5deg);
  filter: drop-shadow(0 0 8px rgba(34,211,197,.7));
}

.chart-label {
  position: absolute;
  left: 18px;
  bottom: 18px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
}

.signal-list { display: grid; align-content: center; padding: 10px; }
.signal-list span { display: flex; justify-content: space-between; padding: 15px 8px; border-bottom: 1px solid rgba(255,255,255,.07); color: #dbe8f6; font-size: 11px; }
.signal-list b { color: var(--cyan); font-size: 9px; }

.risk {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  margin-top: 90px;
  padding: 28px;
  border: 1px solid #efdca9;
  border-radius: 20px;
  background: #fffaf0;
}

.risk-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f5bc36;
  font-weight: 900;
}

.risk h2 { margin: 3px 0 8px; font-size: 17px; }
.risk p { margin: 0; color: #6d624a; font-size: 13px; line-height: 1.65; }

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 28px max(24px, calc((100% - 900px) / 2));
  background: var(--night);
  color: #7f93aa;
  font-size: 12px;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to { opacity: 1; transform: none; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 720px) {
  .page-shell { padding: 40px 16px 60px; }
  .survey { min-height: 455px; margin-top: 38px; }
  .form-visual { width: min(100%, 520px); margin-top: 28px; }
  .form-visual img { border-radius: 16px; }
  .survey-card { border-radius: 22px; }
  .option { grid-template-columns: 42px 1fr auto; padding: 10px 13px; font-size: 15px; }
  .option-key { width: 36px; height: 36px; }
  .product-preview { grid-template-columns: 1fr; gap: 30px; margin-top: 70px; }
  .dashboard { min-height: 310px; }
  .dash-grid { grid-template-columns: 1fr; }
  .signal-list { display: none; }
  .chart-panel { min-height: 245px; }
  .completion-panel { padding: 34px 24px; }
  footer { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .page-shell { padding-inline: 14px; }
  .brand-mark { width: 66px; height: 66px; border-radius: 20px; }
  .hero-copy { margin-top: 18px; line-height: 1.55; }
  .survey-card { padding: 24px 18px; }
  .survey h2 { margin-bottom: 24px; }
  .option { grid-template-columns: 38px 1fr auto; gap: 10px; min-height: 68px; }
  .option-key { width: 34px; height: 34px; }
  .risk { grid-template-columns: 1fr; gap: 12px; margin-top: 52px; padding: 20px; }
  .completion { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
