:root {
  --bg: #0d1014;
  --surface: rgba(20, 24, 31, 0.92);
  --surface-strong: #1a2029;
  --text: #fff8ef;
  --muted: #c6b9aa;
  --line: rgba(255, 248, 239, 0.1);
  --gold: #f0bf73;
  --gold-strong: #ff9e50;
  --rose: #de7c73;
  --green: #90c89d;
  --blue: #8db3d8;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  --radius: 24px;
  --container: min(1160px, calc(100vw - 32px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(circle at top left, rgba(222, 124, 115, 0.18), transparent 26%),
    radial-gradient(circle at top right, rgba(240, 191, 115, 0.16), transparent 28%),
    linear-gradient(180deg, #0b0d11 0%, #11161d 44%, #0c0f13 100%);
}

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

button {
  cursor: pointer;
}

button,
input {
  font: inherit;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.is-hidden {
  display: none !important;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 999px;
  color: #1b130b;
  background: var(--gold);
  font-weight: 800;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 11, 15, 0.84);
  backdrop-filter: blur(18px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  color: #1d120b;
  background: linear-gradient(145deg, var(--gold), var(--gold-strong));
  font-weight: 900;
}

.brand__text {
  display: grid;
  gap: 1px;
}

.brand__text small,
.top-nav {
  color: var(--muted);
}

.top-nav {
  display: none;
  align-items: center;
  gap: 16px;
  font-size: 0.92rem;
}

.hero,
.section {
  padding: clamp(56px, 9vw, 92px) 0;
}

.hero {
  position: relative;
  overflow: clip;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  filter: blur(16px);
  pointer-events: none;
}

.hero::before {
  left: -130px;
  top: 90px;
  background: rgba(222, 124, 115, 0.18);
}

.hero::after {
  right: -130px;
  bottom: 20px;
  background: rgba(240, 191, 115, 0.16);
}

.hero__grid,
.section-grid,
.tool-grid,
.cards-grid,
.result-grid {
  display: grid;
  gap: 20px;
}

.hero__copy,
.hero-card,
.tool-card,
.result-card,
.side-card,
.content-card,
.score-shell {
  position: relative;
  z-index: 1;
}

.hero__copy {
  max-width: 760px;
}

h1,
h2,
h3,
.brand__text strong,
.eyebrow {
  font-family: Georgia, "Times New Roman", serif;
}

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

h1 {
  max-width: 12ch;
  font-size: clamp(2.35rem, 8vw, 4.75rem);
}

h2 {
  font-size: clamp(1.9rem, 5.5vw, 3.2rem);
}

h3 {
  font-size: 1.28rem;
}

p {
  margin: 14px 0 0;
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lead {
  max-width: 68ch;
  color: rgba(255, 248, 239, 0.86);
  font-size: 1.06rem;
}

.hero-actions,
.result-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: var(--text);
  background: transparent;
  font-weight: 800;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

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

.btn--primary {
  color: #21140d;
  background: linear-gradient(135deg, var(--gold), var(--gold-strong));
  box-shadow: 0 16px 34px rgba(255, 158, 80, 0.24);
}

.btn--ghost,
.btn--secondary {
  border-color: rgba(255, 248, 239, 0.12);
  background: rgba(255, 255, 255, 0.035);
}

.btn--full {
  width: 100%;
}

.hero-card,
.tool-card,
.result-card,
.side-card,
.content-card,
.score-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at top right, rgba(240, 191, 115, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.018)),
    var(--surface);
  box-shadow: var(--shadow);
}

.hero-card,
.tool-card,
.result-card,
.side-card,
.content-card,
.score-shell {
  padding: 22px;
}

.hero-card__meter {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.meter-line {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.meter-line span {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--gold), var(--rose));
}

.pill-row,
.badges,
.score-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill,
.badge,
.score-tab {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  color: rgba(255, 248, 239, 0.84);
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.82rem;
  font-weight: 800;
}

.section--soft {
  background: rgba(255, 255, 255, 0.018);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.tool-card {
  overflow: hidden;
}

.progress-top {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.progress-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--gold), var(--rose));
  transition: width 260ms ease;
}

.stage-map {
  display: grid;
  gap: 10px;
  margin: 16px 0 20px;
}

.stage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 248, 239, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.stage.is-active,
.stage.is-done {
  color: var(--text);
  border-color: rgba(240, 191, 115, 0.28);
  background: rgba(240, 191, 115, 0.08);
}

.question {
  min-height: 150px;
}

.question small {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.question h3 {
  font-size: clamp(1.45rem, 4.8vw, 2.1rem);
}

.options {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(255, 248, 239, 0.1);
  border-radius: 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
}

.option:hover,
.option.is-selected {
  border-color: rgba(240, 191, 115, 0.34);
  background: rgba(240, 191, 115, 0.08);
}

.option__letter {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #21140d;
  background: linear-gradient(135deg, var(--gold), var(--gold-strong));
  font-weight: 900;
}

.tool-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}

.score-shell {
  display: grid;
  gap: 16px;
  align-self: start;
}

.score-ring {
  --score: 0deg;
  display: grid;
  place-items: center;
  width: min(220px, 70vw);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle, #14181f 58%, transparent 60%),
    conic-gradient(var(--gold) var(--score), rgba(255, 255, 255, 0.08) 0);
}

.score-ring strong {
  display: block;
  font-size: 3rem;
  line-height: 1;
}

.score-ring span {
  color: var(--muted);
  font-size: 0.86rem;
}

.result-card {
  border-color: rgba(240, 191, 115, 0.18);
}

.result-card[data-tone="low"] {
  border-color: rgba(144, 200, 157, 0.24);
}

.result-card[data-tone="high"] {
  border-color: rgba(222, 124, 115, 0.28);
}

.result-title {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
}

.diagnostic-note {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 248, 239, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.diagnostic-note strong {
  display: block;
  margin-bottom: 6px;
}

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

.dimension-list {
  display: grid;
  gap: 12px;
  margin: 14px 0 20px;
}

.dimension {
  display: grid;
  gap: 6px;
}

.dimension__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 248, 239, 0.9);
  font-size: 0.92rem;
}

.dimension__bar {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.dimension__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--rose));
}

.dimension small {
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.67em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

.microcopy {
  color: rgba(255, 248, 239, 0.66);
  font-size: 0.9rem;
}

.footer {
  padding: 26px 0 40px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer__inner {
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
}

@media (min-width: 720px) {
  .top-nav {
    display: flex;
  }

  .hero-actions,
  .result-actions {
    flex-direction: row;
  }

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

  .stage-map {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .hero__grid,
  .tool-grid,
  .section-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    align-items: center;
  }

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