:root {
  --bg-ink: #0b1218;
  --bg-card: #101c26cc;
  --bg-soft: #152534;
  --line: #2e4b62;
  --text: #e7f2fb;
  --muted: #9cb7cc;
  --accent: #6ce2ff;
  --accent-strong: #20b7df;
  --ok: #8ce99a;
  --warn: #ffd174;
  --danger: #ff8f9b;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, #1c384f 0%, transparent 36%),
    radial-gradient(circle at 90% 3%, #153746 0%, transparent 28%),
    linear-gradient(135deg, #061016 0%, var(--bg-ink) 52%, #051017 100%);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  line-height: 1.45;
}

.bg-orb {
  position: fixed;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.16;
  z-index: -1;
}

.bg-orb-1 {
  top: -8rem;
  left: -8rem;
  background: #17b4c8;
}

.bg-orb-2 {
  bottom: -12rem;
  right: -8rem;
  background: #4f89f0;
}

.container {
  width: min(1080px, calc(100% - 2rem));
  margin-inline: auto;
}

.hero {
  padding: 3.5rem 0 2rem;
  animation: riseIn 560ms ease-out;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
}

h1,
h2 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 18ch;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.1rem, 4.8vw, 4.4rem);
  font-weight: 400;
}

.hero-copy {
  max-width: 58ch;
  margin: 1rem 0 1.4rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 0.7rem;
  padding: 0.72rem 1.1rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 130ms ease, background-color 130ms ease, border-color 130ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(120deg, #17b4c8, #38b6ff);
}

.btn-secondary {
  background: var(--bg-soft);
  border-color: var(--line);
}

.stats {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1.2rem 0 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 0.9rem 1rem;
}

.stat-card h2 {
  font-size: 1.7rem;
  font-weight: 700;
}

.stat-card p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.1rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(8px);
}

.panel-heading p {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.panel-heading h2 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.question-list {
  margin: 1rem 0 0.8rem;
  display: grid;
  gap: 0.72rem;
}

.question-card {
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 0.7rem;
  background: #10202ca3;
}

.question-card legend {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.choice-row {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.choice-row label {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  color: var(--muted);
}

.choice-row input[type="radio"] {
  accent-color: var(--accent-strong);
}

.result-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.result-card {
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 0.8rem;
  background: #0d1c27;
}

.result-card-wide {
  grid-column: 1 / -1;
}

.label {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.72rem;
}

.score {
  margin: 0.35rem 0 0;
  font-size: 2rem;
  font-weight: 700;
}

.tier {
  margin: 0.5rem 0 0;
  font-size: 1.35rem;
  font-weight: 700;
}

.tier-high {
  color: var(--danger);
}

.tier-moderate {
  color: var(--warn);
}

.tier-strong {
  color: var(--ok);
}

.result-card ol {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.lead-form {
  margin-top: 1rem;
  display: grid;
  gap: 0.7rem;
}

.lead-form label {
  display: grid;
  gap: 0.3rem;
  color: var(--muted);
}

.lead-form input {
  border-radius: 0.6rem;
  border: 1px solid var(--line);
  background: #0c1a23;
  color: var(--text);
  padding: 0.66rem 0.7rem;
}

.lead-form input:focus {
  outline: 2px solid #35baf7;
  outline-offset: 1px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  min-height: 1.4rem;
}

.footer {
  padding: 0.7rem 0 2.5rem;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(8px);
  animation: riseIn 520ms ease-out forwards;
}

.reveal:nth-of-type(2) {
  animation-delay: 70ms;
}

.reveal:nth-of-type(3) {
  animation-delay: 110ms;
}

.reveal:nth-of-type(4) {
  animation-delay: 150ms;
}

@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 780px) {
  .stats {
    grid-template-columns: 1fr;
  }

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