:root {
  --bg: #0d0b09;
  --bg-card: #1a1714;
  --border: rgba(180, 155, 120, 0.1);
  --border-hover: rgba(180, 155, 120, 0.22);
  --text-primary: #ede7dd;
  --text-body: #b8afa3;
  --text-muted: #6e6560;
  --accent: #c9a96e;
  --accent-soft: rgba(201, 169, 110, 0.08);
  --error: #c97a6e;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(201, 169, 110, 0.04), transparent 40%), var(--bg);
  color: var(--text-primary);
  font-family: "Outfit", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(201, 169, 110, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 169, 110, 0.012) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 60%);
}

.page {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

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

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: 50%;
  background: var(--bg);
  color: var(--accent);
  font-family: "Cormorant Garamond", serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.nav-name {
  color: var(--text-primary);
  font-family: "Cormorant Garamond", serif;
  font-size: 16px;
  font-weight: 500;
}

.nav-back {
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-back:hover {
  color: var(--accent);
}

.intro {
  margin-bottom: 36px;
  text-align: center;
}

.intro-label {
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.intro h1 {
  margin-bottom: 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 500;
  line-height: 1.15;
}

.intro-detail {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
}

.quiz-wrap,
.panel,
.insights,
.cta-panel,
.rr-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-card);
}

.quiz-wrap::before,
.panel::before,
.insights::before,
.cta-panel::before,
.rr-panel::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.12), transparent);
  content: "";
}

.quiz-wrap {
  border-radius: 24px;
}

.gate-card,
.panel,
.insights,
.cta-panel,
.rr-panel {
  padding: 24px;
}

.gate-card {
  padding: 40px 24px;
  text-align: center;
}

.gate-title {
  margin-bottom: 12px;
}

.gate-desc {
  max-width: 380px;
  margin: 0 auto 28px;
}

.gate-form {
  max-width: 340px;
  margin: 0 auto;
}

.gate-input {
  width: 100%;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: transparent;
  color: var(--text-primary);
  font: 300 14px "Outfit", sans-serif;
  outline: none;
  padding: 13px 16px;
  transition: border-color 0.3s;
}

.gate-input:last-of-type {
  margin-bottom: 16px;
}

.gate-input:focus {
  border-color: var(--accent);
}

.gate-submit {
  width: 100%;
}

.gate-submit.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

.gate-error {
  margin-top: 10px;
  color: var(--error);
  font-size: 12px;
}

.gate-note {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 11px;
  opacity: 0.6;
}

.progress-wrap {
  padding: 20px 24px 0;
}

.progress-bar-bg {
  overflow: hidden;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: rgba(201, 169, 110, 0.08);
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
  transition: width 0.4s ease;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 11px;
}

.progress-area {
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.quiz-viewport {
  overflow: hidden;
}

.quiz-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.quiz-slide {
  min-width: 100%;
  padding: 28px 24px 32px;
}

.q-area-tag {
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.q-text {
  margin-bottom: 24px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 400;
  line-height: 1.3;
}

.q-options {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.q-option,
.q-multi {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: transparent;
  color: var(--text-body);
  cursor: pointer;
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.5;
  padding: 12px 16px;
  text-align: left;
  transition: all 0.2s;
}

.q-option:hover,
.q-multi:hover {
  border-color: var(--border-hover);
  background: rgba(201, 169, 110, 0.03);
  color: var(--text-primary);
}

.q-option.selected,
.q-multi.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text-primary);
}

.result-wrap {
  display: none;
}

.result-wrap.visible {
  display: block;
}

.result-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.result-tag::before {
  width: 24px;
  height: 1px;
  background: var(--border-hover);
  content: "";
}

.result-tag span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.r-badge {
  display: inline-block;
  margin-bottom: 16px;
  border: 1px solid rgba(201, 169, 110, 0.15);
  border-radius: 100px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  padding: 6px 12px;
  text-transform: uppercase;
}

.r-name {
  margin-bottom: 16px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 500;
  line-height: 1.1;
}

.r-desc,
.combo-text,
.shadow-desc,
.ins-card p,
.cta-panel > p {
  color: var(--text-body);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
}

.pattern-panel,
.panel-stack,
.shadow-panel,
.readiness-wrap,
.ss-box,
.insights {
  margin-bottom: 24px;
}

.profile-label {
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-align: center;
  text-transform: uppercase;
}

.profile-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.scores-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radar-wrap {
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
}

.radar-wrap canvas {
  width: 100%;
  height: 100%;
}

.s-row:last-child {
  margin-bottom: 0;
}

.s-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.s-row-name {
  color: var(--text-body);
  font-size: 13px;
  font-weight: 400;
}

.s-row-val {
  color: var(--text-primary);
  font-size: 13px;
}

.s-row-lvl {
  margin-right: 4px;
  color: var(--text-muted);
  font-size: 11px;
}

.s-row-bar {
  overflow: hidden;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: rgba(201, 169, 110, 0.08);
}

.s-row-fill {
  width: 0%;
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
  transition: width 1.2s ease;
}

.s-row-note {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.4;
}

.insights {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ins-card {
  border: 1px solid rgba(201, 169, 110, 0.06);
  border-radius: 14px;
  background: rgba(201, 169, 110, 0.03);
  padding: 14px 16px;
}

.ins-card strong {
  color: var(--text-primary);
  font-weight: 500;
}

.ss-box-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(201, 169, 110, 0.02);
  padding: 14px 20px;
}

.ss-icon {
  font-size: 16px;
}

.ss-box-inner > span:nth-child(2) {
  color: var(--text-muted);
  font-size: 13px;
}

.share-btn {
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: 100px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  transition: all 0.3s;
  white-space: nowrap;
}

.share-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.share-copied {
  border-color: var(--accent) !important;
  background: var(--accent-soft) !important;
  color: var(--text-primary) !important;
}

.shadow-panel {
  padding: 28px 24px;
}

.shadow-label,
.combo-label {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.shadow-name {
  margin-bottom: 16px;
  color: var(--text-primary);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(22px, 3.5vw, 28px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.2;
}

.cta-panel h3 {
  margin-bottom: 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  font-weight: 500;
}

.cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-p,
.btn-g,
.q-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  cursor: pointer;
  font-family: "Outfit", sans-serif;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-p {
  border: none;
  background: var(--accent);
  color: var(--bg);
  font-size: 14px;
  font-weight: 500;
  padding: 13px 28px;
}

.btn-p:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(201, 169, 110, 0.25);
}

.btn-g {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-body);
  font-size: 14px;
  font-weight: 400;
  padding: 13px 28px;
}

.btn-g:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.cta-sec {
  margin-top: 16px;
  text-align: center;
}

.cta-sec a {
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.3s;
}

.cta-sec a:hover {
  color: var(--accent);
}

.r-slider-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.r-slider-wrap span {
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
}

.r-slider-wrap input[type="range"] {
  flex: 1;
  accent-color: var(--accent);
}

.r-slider-val {
  margin-bottom: 20px;
  text-align: center;
}

.r-slider-val .big {
  color: var(--accent);
  font-family: "Cormorant Garamond", serif;
  font-size: 36px;
  font-weight: 500;
}

.q-multi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.readiness-hint {
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 12px;
}

.q-next {
  margin-top: 20px;
  border: none;
  background: var(--accent);
  color: var(--bg);
  font-size: 14px;
  font-weight: 500;
  opacity: 0.4;
  padding: 12px 32px;
  pointer-events: none;
}

.q-next.enabled {
  opacity: 1;
  pointer-events: auto;
}

.q-next:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(201, 169, 110, 0.25);
}

.rr-panel {
  margin-bottom: 16px;
  padding: 28px 24px;
}

.rr-desc {
  margin-bottom: 20px;
}

.rr-note {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 12px;
}

.page-footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  padding: 40px 0 0;
  text-align: center;
}

.page-footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.page-footer-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(201, 169, 110, 0.15);
  border-radius: 50%;
  color: var(--accent);
  font-family: "Cormorant Garamond", serif;
  font-size: 8px;
}

.page-footer-name {
  color: var(--text-muted);
  font-family: "Cormorant Garamond", serif;
  font-size: 13px;
}

.page-footer p {
  color: var(--text-muted);
  font-size: 11px;
  opacity: 0.5;
}

.page-footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.page-footer a:hover {
  color: var(--accent);
}

@media (max-width: 600px) {
  .profile-split {
    grid-template-columns: 1fr;
  }

  .radar-wrap {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
  }

  .cta-btns {
    flex-direction: column;
  }

  .btn-p,
  .btn-g {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .r-name {
    font-size: 26px;
  }

  .q-multi-grid {
    grid-template-columns: 1fr;
  }

  .ss-box-inner {
    flex-direction: column;
    gap: 8px;
  }

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