:root {
  --bg: #efe4cf;
  --bg-strong: #d7c3a2;
  --surface: rgba(255, 249, 239, 0.92);
  --surface-strong: #fff7ea;
  --ink: #1c2a1c;
  --muted: #58634f;
  --line: rgba(28, 42, 28, 0.14);
  --accent: #d84a2f;
  --accent-dark: #a9301f;
  --pitch: #2f6a45;
  --gold: #efb84a;
  --shadow: 0 24px 70px rgba(50, 37, 15, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans SC", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(239, 184, 74, 0.24), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(216, 74, 47, 0.16), transparent 25%),
    linear-gradient(160deg, var(--bg) 0%, #f7f0e4 48%, var(--bg-strong) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(47, 106, 69, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 106, 69, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), transparent 85%);
}

.page-shell {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

.hero {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 247, 234, 0.78);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero::after {
  content: "4-3-3";
  position: absolute;
  right: 20px;
  top: 8px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 120px;
  line-height: 1;
  color: rgba(47, 106, 69, 0.08);
  letter-spacing: 2px;
}

.eyebrow,
.result-kicker,
.panel-label,
.question-category,
.card-topline,
.section-heading p {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--muted);
}

.hero h1,
.quiz-card h2,
.result-header h2 {
  margin: 10px 0 0;
  line-height: 1.05;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(42px, 9vw, 82px);
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 1px;
}

.hero-copy {
  max-width: 700px;
  margin: 18px 0 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
}

.hero-actions,
.quiz-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
}

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

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.primary-button {
  color: #fffaf2;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  box-shadow: 0 18px 38px rgba(169, 48, 31, 0.26);
}

.ghost-button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
}

.card-stack {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 28px;
  backdrop-filter: blur(8px);
}

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.intro-card h2 {
  margin: 14px 0 8px;
  font-size: clamp(28px, 5vw, 44px);
}

.intro-card p,
.disclaimer,
#analysis-copy,
#one-liner,
.role-summary {
  margin: 0;
  line-height: 1.8;
  color: var(--muted);
}

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

.feature-list li {
  position: relative;
  padding-left: 18px;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

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

.progress-bar {
  height: 14px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(47, 106, 69, 0.11);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pitch) 0%, var(--gold) 100%);
  transition: width 240ms ease;
}

.question-block {
  margin-top: 24px;
}

.quiz-card h2 {
  font-size: clamp(26px, 4vw, 42px);
}

.options {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.option-button {
  width: 100%;
  text-align: left;
  border-radius: 22px;
  padding: 18px 18px 18px 20px;
  border: 1px solid rgba(47, 106, 69, 0.12);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(28, 42, 28, 0.06);
}

.option-button strong {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
}

.option-button span {
  display: block;
  color: var(--muted);
  line-height: 1.65;
}

.option-button.is-selected {
  border-color: rgba(216, 74, 47, 0.5);
  background: linear-gradient(135deg, rgba(216, 74, 47, 0.12), rgba(239, 184, 74, 0.16));
  box-shadow: 0 16px 30px rgba(216, 74, 47, 0.12);
}

.result-header h2 {
  font-size: clamp(36px, 7vw, 72px);
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 1px;
}

.role-summary {
  max-width: 720px;
  margin-top: 10px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.result-panel {
  min-height: 100%;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  padding: 20px;
}

.accent-panel {
  background:
    radial-gradient(circle at top right, rgba(239, 184, 74, 0.16), transparent 40%),
    linear-gradient(135deg, rgba(47, 106, 69, 0.08), rgba(255, 247, 234, 1));
}

.full-width {
  grid-column: 1 / -1;
}

.big-line {
  margin: 6px 0 16px;
  font-size: clamp(20px, 4vw, 30px);
  font-weight: 800;
  line-height: 1.2;
}

.dimension-section {
  margin-top: 28px;
}

.section-heading h3 {
  margin: 0;
  font-size: 24px;
}

.dimension-bars {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.dimension-row {
  display: grid;
  gap: 8px;
}

.dimension-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.dimension-track {
  overflow: hidden;
  height: 14px;
  border-radius: 999px;
  background: rgba(28, 42, 28, 0.08);
}

.dimension-value {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pitch), var(--gold));
}

.hidden {
  display: none;
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 980px);
    padding-top: 20px;
    padding-bottom: 28px;
  }

  .hero,
  .card {
    padding: 20px;
    border-radius: 22px;
  }

  .hero::after {
    font-size: 82px;
    right: 12px;
  }

  .card-topline,
  .progress-row,
  .dimension-meta {
    flex-direction: column;
    align-items: flex-start;
  }

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