:root {
  color-scheme: dark;
  --bg: #070812;
  --bg-2: #0f1020;
  --panel: rgba(18, 20, 38, 0.76);
  --panel-strong: rgba(25, 27, 48, 0.94);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f8eff8;
  --muted: #b9adbf;
  --soft: #f5b7ce;
  --rose: #ff7dab;
  --violet: #9c8cff;
  --cyan: #70e6ff;
  --gold: #f4d58d;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 125, 171, 0.22), transparent 28rem),
    radial-gradient(circle at 82% 16%, rgba(112, 230, 255, 0.16), transparent 24rem),
    linear-gradient(180deg, #070812 0%, #11101f 46%, #080812 100%);
  color: var(--text);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  padding: 28px clamp(20px, 5vw, 72px) 80px;
  border-bottom: 1px solid var(--line);
}

.cosmic-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 40% 28%, rgba(255, 255, 255, 0.95) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 62%, rgba(255, 255, 255, 0.72) 0 1px, transparent 1px);
  background-size: 90px 90px, 130px 130px;
  mask-image: linear-gradient(180deg, black, transparent 88%);
  opacity: 0.32;
}

.star,
.orbit {
  position: absolute;
  display: block;
}

.star {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 20px 6px rgba(255, 255, 255, 0.4);
}

.star-a { top: 22%; left: 13%; }
.star-b { top: 35%; right: 22%; }
.star-c { bottom: 30%; left: 48%; }
.star-d { bottom: 22%; right: 9%; }

.orbit {
  width: min(68vw, 860px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.orbit-a { top: 12%; right: -22%; }
.orbit-b { bottom: -36%; left: -22%; }

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.topbar nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--soft) 0 3px, transparent 4px),
    conic-gradient(from 45deg, var(--rose), var(--cyan), var(--violet), var(--rose));
  box-shadow: 0 0 28px rgba(255, 125, 171, 0.38);
}

.topbar nav {
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.topbar nav a {
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
}

.topbar nav a:hover {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.62fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  max-width: 1180px;
  min-height: calc(92vh - 86px);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3.15rem, 8vw, 7.3rem);
  line-height: 0.93;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  letter-spacing: 0;
}

.hero-text {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.26rem);
  line-height: 1.7;
}

.hero-actions,
.form-actions,
.unlock-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 20px;
  color: var(--text);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.28);
}

.button.primary {
  border-color: rgba(255, 125, 171, 0.46);
  background: linear-gradient(135deg, rgba(255, 125, 171, 0.9), rgba(156, 140, 255, 0.86));
  box-shadow: 0 16px 50px rgba(255, 125, 171, 0.18);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.055);
}

.signal-panel,
.test-card,
.progress-panel,
.preview-lock,
.report-card,
.architecture-grid article {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.045));
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.signal-panel {
  display: grid;
  gap: 22px;
  padding: 24px;
  border-radius: 28px;
}

.signal-ring,
.score-orb {
  display: grid;
  place-items: center;
  align-content: center;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(7, 8, 18, 0.94) 0 54%, transparent 55%),
    conic-gradient(var(--rose), var(--cyan), var(--gold), var(--violet), var(--rose));
  box-shadow: 0 0 70px rgba(112, 230, 255, 0.12);
}

.signal-ring span,
.score-orb span {
  font-size: clamp(3.4rem, 8vw, 5.6rem);
  font-weight: 820;
  line-height: 0.9;
}

.signal-ring small,
.score-orb small {
  color: var(--muted);
  text-align: center;
}

.signal-list {
  display: grid;
  gap: 12px;
}

.signal-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.signal-list span {
  color: var(--muted);
}

.experience,
.results,
.report,
.architecture {
  padding: 84px clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 900px;
  margin: 0 auto 34px;
}

.test-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 780px);
  gap: 18px;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
}

.progress-panel,
.test-card {
  border-radius: 22px;
}

.progress-panel {
  position: sticky;
  top: 18px;
  padding: 22px;
}

.progress-count {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 20px;
}

.progress-count span {
  font-size: 3.2rem;
  font-weight: 820;
}

.progress-count small,
.progress-panel p {
  color: var(--muted);
}

.progress-track {
  height: 6px;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

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

.test-card {
  min-height: 430px;
  padding: clamp(22px, 4vw, 40px);
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 28px;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  font-weight: 780;
  line-height: 1;
}

.step {
  display: none;
}

.step.active {
  display: block;
}

.form-grid,
.choice-grid {
  display: grid;
  gap: 16px;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.single-field {
  max-width: 560px;
}

.checkbox-label {
  align-self: end;
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.045);
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--rose);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  padding: 14px 15px;
  color: var(--text);
  background: rgba(4, 5, 12, 0.58);
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(112, 230, 255, 0.58);
  box-shadow: 0 0 0 4px rgba(112, 230, 255, 0.08);
}

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

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

.choice-grid label {
  min-height: 86px;
  cursor: pointer;
}

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

.choice-grid span {
  display: flex;
  align-items: center;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  padding: 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.choice-grid input:checked + span {
  border-color: rgba(255, 125, 171, 0.72);
  background: linear-gradient(135deg, rgba(255, 125, 171, 0.2), rgba(112, 230, 255, 0.12));
}

.form-actions {
  justify-content: flex-end;
  margin-top: 34px;
}

.generating {
  display: grid;
  min-height: 310px;
  place-items: center;
  align-content: center;
  gap: 14px;
  text-align: center;
}

.generating h3 {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
}

.generating p {
  margin: 0;
  color: var(--muted);
}

.signal-ring.mini {
  width: 132px;
}

.signal-ring.mini span {
  font-size: 2.5rem;
}

.hidden {
  display: none !important;
}

.results {
  max-width: 1180px;
  margin: 0 auto;
}

.result-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 280px);
  gap: 28px;
  align-items: center;
  margin-bottom: 20px;
}

.result-hero p {
  color: var(--muted);
  line-height: 1.7;
}

.keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.keyword-row span {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 10px 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.preview-lock {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  border-radius: 24px;
  padding: clamp(22px, 4vw, 34px);
}

.preview-lock p,
.report-card p,
.architecture-grid p {
  color: var(--muted);
  line-height: 1.65;
}

.report {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.report-grid,
.architecture-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.report-card,
.architecture-grid article {
  min-height: 240px;
  border-radius: 20px;
  padding: 22px;
}

.report-card span,
.architecture-grid span {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--cyan);
  font-weight: 780;
}

.report-card.locked {
  position: relative;
  overflow: hidden;
}

.report-card.locked::after {
  content: "Locked";
  position: absolute;
  inset: auto 18px 18px auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--soft);
  background: rgba(7, 8, 18, 0.82);
}

.muted {
  opacity: 0.72;
}

.architecture-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 920px) {
  .hero-grid,
  .test-shell,
  .result-hero,
  .preview-lock {
    grid-template-columns: 1fr;
  }

  .progress-panel {
    position: static;
  }

  .report-grid,
  .architecture-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    min-height: auto;
    padding-top: 70px;
  }

  .form-grid,
  .choice-grid,
  .report-grid,
  .architecture-grid {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .unlock-actions {
    width: 100%;
  }
}
