@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&family=Syne:wght@600;700;800&display=swap');

:root {
  --bg: #070a12;
  --panel: #0d111c;
  --panel-2: #101622;
  --line: rgba(255, 255, 255, .13);
  --line-strong: rgba(255, 255, 255, .22);
  --text: #f6f7fb;
  --muted: #9ca6b4;
  --acid: #b8ff42;
  --cyan: #55e6ff;
  --purple: #a78bfa;
  --pad: clamp(18px, 4vw, 64px);
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 78% 10%, rgba(85, 230, 255, .08), transparent 27rem),
    var(--bg);
  color: var(--text);
  font-family: Manrope, system-ui, sans-serif;
  overflow-x: hidden;
}

button,
a {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

.grid-light {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .45;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 55px 55px;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}

.diagnostic-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 88px;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 10, 18, .84);
  backdrop-filter: blur(18px);
}

.diagnostic-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.diagnostic-brand-mark {
  font: 800 28px/1 Syne;
  letter-spacing: -.12em;
}

.diagnostic-brand-mark span {
  color: var(--acid);
}

.diagnostic-brand-copy strong,
.diagnostic-brand-copy small {
  display: block;
}

.diagnostic-brand-copy strong {
  font: 600 12px DM Mono;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.diagnostic-brand-copy small {
  margin-top: 4px;
  color: #778291;
  font-size: 12px;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 17px;
  border: 1px solid var(--line);
  font: 500 12px DM Mono;
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: border-color .25s, color .25s;
}

.header-contact:hover {
  border-color: var(--acid);
  color: var(--acid);
}

.diagnostic-main {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 70px) var(--pad) 36px;
}

.diagnostic-intro {
  display: grid;
  grid-template-columns: minmax(120px, .22fr) minmax(0, 1fr) minmax(270px, .42fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(30px, 4vw, 48px);
}

.intro-index {
  align-self: start;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #87919f;
  font: 500 12px DM Mono;
  letter-spacing: .1em;
}

.intro-index span:first-child {
  color: var(--acid);
}

.intro-index i {
  width: 34px;
  height: 1px;
  background: var(--line);
}

.intro-kicker {
  margin: 0 0 14px;
  color: var(--cyan);
  font: 500 12px DM Mono;
  letter-spacing: .1em;
}

.diagnostic-intro h1 {
  margin: 0;
  max-width: 850px;
  font: 700 clamp(2.7rem, 5.2vw, 5.7rem)/.94 Syne;
  letter-spacing: -.06em;
}

.diagnostic-intro h1 em {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .62);
  font-style: normal;
}

.diagnostic-intro > p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.diagnostic-workspace {
  display: grid;
  grid-template-columns: minmax(245px, 310px) minmax(0, 1fr);
  min-height: 670px;
  border: 1px solid var(--line);
  background: rgba(10, 14, 23, .78);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .25);
}

.quiz-progress-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 38px;
  padding: clamp(28px, 3vw, 44px);
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at 30% 20%, rgba(184, 255, 66, .07), transparent 15rem),
    rgba(6, 10, 17, .72);
}

.progress-eyebrow,
.question-number,
.result-topline span,
.result-label {
  margin: 0;
  color: var(--cyan);
  font: 500 12px DM Mono;
  letter-spacing: .1em;
}

#progress-copy {
  display: block;
  margin-top: 15px;
  font: 700 clamp(1.25rem, 2vw, 1.65rem)/1.2 Syne;
}

.progress-track {
  width: 100%;
  height: 3px;
  margin-top: 20px;
  background: rgba(255, 255, 255, .09);
  overflow: hidden;
}

.progress-track span {
  display: block;
  width: 25%;
  height: 100%;
  background: var(--acid);
  box-shadow: 0 0 18px rgba(184, 255, 66, .45);
  transition: width .35s cubic-bezier(.16, 1, .3, 1);
}

.progress-list {
  list-style: none;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
}

.progress-list li {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 54px;
  color: #65707f;
  transition: color .25s;
}

.progress-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 41px;
  width: 1px;
  height: 26px;
  background: var(--line);
}

.progress-list span {
  position: relative;
  z-index: 1;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #090d15;
  font: 500 12px DM Mono;
  transition: border-color .25s, background .25s, color .25s;
}

.progress-list p {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.progress-list li.is-current {
  color: var(--text);
}

.progress-list li.is-current span {
  border-color: var(--acid);
  color: #080b12;
  background: var(--acid);
}

.progress-list li.is-complete {
  color: #b8c1cd;
}

.progress-list li.is-complete span {
  border-color: rgba(184, 255, 66, .4);
  color: var(--acid);
}

.progress-note {
  margin: 0;
  color: #7e8998;
  font-size: 14px;
  line-height: 1.65;
}

.quiz-main {
  position: relative;
  min-width: 0;
  padding: clamp(28px, 4vw, 58px);
  background:
    radial-gradient(circle at 95% 0, rgba(167, 139, 250, .1), transparent 28rem),
    var(--panel-2);
  overflow: hidden;
}

.quiz-main::after {
  content: "MD";
  position: absolute;
  right: -28px;
  bottom: -45px;
  color: rgba(255, 255, 255, .022);
  font: 800 13rem/1 Syne;
  pointer-events: none;
}

#business-diagnostic,
.result-content {
  position: relative;
  z-index: 1;
}

.quiz-step {
  animation: step-in .35s cubic-bezier(.16, 1, .3, 1);
}

.quiz-step h2 {
  max-width: 760px;
  margin: 14px 0 10px;
  font: 700 clamp(2rem, 3.6vw, 4.2rem)/1 Syne;
  letter-spacing: -.05em;
  outline: 0;
}

.question-help {
  max-width: 670px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.answer-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.answer-option {
  width: 100%;
  min-height: 104px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 24px;
  gap: 14px;
  align-items: center;
  padding: 17px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .018);
  text-align: left;
  transition: border-color .22s, background .22s, transform .22s;
}

.answer-option:hover {
  transform: translateY(-2px);
  border-color: rgba(85, 230, 255, .5);
  background: rgba(85, 230, 255, .035);
}

.answer-code {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: #82909f;
  font: 500 13px DM Mono;
  transition: .22s;
}

.answer-option strong,
.answer-option small {
  display: block;
}

.answer-option strong {
  font-size: 16px;
  line-height: 1.35;
}

.answer-option small {
  margin-top: 6px;
  color: #87919f;
  font-size: 13px;
  line-height: 1.45;
}

.answer-option i {
  opacity: 0;
  color: var(--acid);
  font: 700 15px DM Mono;
  font-style: normal;
  transform: scale(.7);
  transition: .22s;
}

.answer-option.is-selected {
  border-color: var(--acid);
  background: linear-gradient(90deg, rgba(184, 255, 66, .1), rgba(184, 255, 66, .025));
}

.answer-option.is-selected .answer-code {
  border-color: var(--acid);
  background: var(--acid);
  color: #080b12;
}

.answer-option.is-selected i {
  opacity: 1;
  transform: scale(1);
}

.quiz-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.back-button,
.next-button,
.restart-button {
  min-height: 52px;
  border: 0;
  font-weight: 800;
}

.back-button {
  padding: 12px 4px;
  background: transparent;
  color: #aeb7c3;
}

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

.next-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 38px;
  min-width: 190px;
  padding: 14px 18px;
  background: var(--acid);
  color: #080b12;
  transition: opacity .2s, transform .2s;
}

.next-button:not(:disabled):hover {
  transform: translateY(-2px);
}

.next-button:disabled {
  cursor: not-allowed;
  opacity: .32;
}

.result-content {
  max-width: 880px;
  animation: step-in .42s cubic-bezier(.16, 1, .3, 1);
}

.result-topline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.result-topline i {
  color: #737e8d;
  font: 500 12px DM Mono;
  font-style: normal;
}

.result-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 28px 0 22px;
  border: 1px solid rgba(184, 255, 66, .48);
  background: rgba(184, 255, 66, .07);
  color: var(--acid);
  font: 600 18px DM Mono;
}

.result-label {
  color: var(--cyan);
}

.result-content h2 {
  max-width: 760px;
  margin: 12px 0 0;
  font: 700 clamp(2.4rem, 4.7vw, 5.2rem)/.94 Syne;
  letter-spacing: -.06em;
  outline: 0;
}

.result-description {
  max-width: 760px;
  margin: 20px 0 26px;
  color: #aeb7c4;
  font-size: 16px;
  line-height: 1.7;
}

.result-reasons {
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
}

.result-reasons h3 {
  margin: 0 0 14px;
  font: 600 18px Syne;
}

.result-reasons ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin: 0;
  padding: 0;
}

.result-reasons li {
  position: relative;
  padding-left: 22px;
  color: #d1d6df;
  font-size: 14px;
  line-height: 1.55;
}

.result-reasons li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--acid);
  font: 500 12px DM Mono;
}

.result-investment {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 20px;
  align-items: end;
  margin-top: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.result-investment span {
  color: #8c96a4;
  font: 500 12px DM Mono;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.result-investment strong {
  grid-row: 1 / 3;
  grid-column: 2;
  color: var(--text);
  font: 700 clamp(1.55rem, 2.5vw, 2.4rem) Syne;
  text-align: right;
}

.result-investment small {
  color: #7f8997;
  font-size: 13px;
}

.result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}

.result-actions a {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 17px;
  font-size: 14px;
  font-weight: 800;
}

.result-primary {
  background: var(--acid);
  color: #080b12;
}

.result-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
}

.result-secondary:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.restart-button {
  margin-top: 18px;
  padding: 8px 0;
  background: transparent;
  color: #9aa5b3;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

.result-disclaimer {
  max-width: 700px;
  margin: 13px 0 0;
  color: #717c8b;
  font-size: 13px;
  line-height: 1.55;
}

.noscript-message {
  margin: 20px 0 0;
  padding: 18px;
  border: 1px solid #f0b85a;
  color: #ffd28a;
  font-size: 15px;
}

.diagnostic-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 0 0;
  color: #7d8795;
  font: 500 12px DM Mono;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.diagnostic-footer a {
  color: #cfd5de;
}

.diagnostic-footer a:hover {
  color: var(--acid);
}

@keyframes step-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

@media (max-width: 1050px) {
  .diagnostic-intro {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .intro-index {
    margin-bottom: 0;
  }

  .diagnostic-intro > p {
    max-width: 720px;
  }

  .diagnostic-workspace {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .quiz-progress-panel {
    padding: 28px 24px;
  }

  .answer-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .diagnostic-workspace {
    grid-template-columns: 1fr;
  }

  .quiz-progress-panel {
    display: block;
    padding: 22px var(--pad);
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .progress-list,
  .progress-note {
    display: none;
  }

  .quiz-main {
    min-height: 640px;
    padding: 30px var(--pad);
  }
}

@media (max-width: 560px) {
  .diagnostic-header {
    height: 76px;
  }

  .diagnostic-brand-copy small {
    display: none;
  }

  .header-contact {
    gap: 9px;
    padding: 11px 12px;
    font-size: 11px;
  }

  .diagnostic-main {
    padding-top: 32px;
  }

  .diagnostic-intro {
    margin-bottom: 28px;
  }

  .intro-kicker {
    margin-bottom: 10px;
  }

  .diagnostic-intro h1 {
    font-size: clamp(2.35rem, 11.5vw, 3.35rem);
  }

  .diagnostic-intro > p {
    font-size: 15px;
  }

  .diagnostic-workspace {
    margin-right: calc(var(--pad) * -1);
    margin-left: calc(var(--pad) * -1);
    border-right: 0;
    border-left: 0;
  }

  .quiz-step h2 {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }

  .question-help {
    font-size: 15px;
  }

  .answer-list {
    gap: 9px;
    margin-top: 24px;
  }

  .answer-option {
    min-height: 92px;
    grid-template-columns: 32px minmax(0, 1fr) 18px;
    gap: 11px;
    padding: 14px 12px;
  }

  .answer-code {
    width: 30px;
    height: 30px;
  }

  .answer-option strong {
    font-size: 15px;
  }

  .answer-option small {
    font-size: 12px;
  }

  .quiz-controls {
    align-items: stretch;
  }

  .next-button {
    min-width: 0;
    flex: 1;
  }

  .result-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .result-content h2 {
    font-size: clamp(2.4rem, 11vw, 3.45rem);
  }

  .result-reasons ul {
    grid-template-columns: 1fr;
  }

  .result-investment {
    grid-template-columns: 1fr;
  }

  .result-investment strong {
    grid-row: auto;
    grid-column: auto;
    text-align: left;
  }

  .result-actions {
    grid-template-columns: 1fr;
  }

  .diagnostic-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .quiz-main::after {
    font-size: 8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
