@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f7f5ff;
  --surface: #ffffff;
  --text: #202037;
  --muted: #6f7087;
  --line: #e8e5f1;
  --primary: #6f52d9;
  --primary-dark: #5039b3;
  --primary-soft: #eee9ff;
  --accent: #f39a63;
  --green: #34a37b;
  --shadow: 0 18px 50px rgba(61, 45, 117, .10);
  --radius-lg: 28px;
  --radius-md: 20px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.container {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(232, 229, 241, .85);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(145deg, var(--primary), #9d75ea);
  box-shadow: 0 8px 20px rgba(111, 82, 217, .25);
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text strong { font-size: 15px; }
.brand-text small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .13em;
}

.header-link {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  font-weight: 600;
}

.header-link:hover { color: var(--primary); }

.screen { display: none; }
.screen.is-active { display: block; }

.cover-screen {
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 8%, rgba(205, 191, 255, .58), transparent 26%),
    radial-gradient(circle at 8% 32%, rgba(255, 218, 199, .55), transparent 25%),
    linear-gradient(180deg, #fbfaff 0%, var(--bg) 100%);
}

.hero-grid {
  min-height: 660px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(440px, .98fr);
  align-items: center;
  gap: 70px;
  padding-block: 64px 76px;
}

.eyebrow, .section-kicker {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
}

.hero-copy h1 {
  margin: 14px 0 20px;
  font-size: clamp(42px, 5.2vw, 68px);
  line-height: 1.12;
  letter-spacing: -.035em;
}

.hero-copy h1 span {
  color: var(--primary);
  font-size: .76em;
}

.hero-lead {
  max-width: 630px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.quick-facts {
  width: fit-content;
  margin: 32px 0 30px;
  padding: 15px 18px;
  display: flex;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 10px 30px rgba(61, 45, 117, .05);
}

.quick-facts div {
  min-width: 100px;
  padding: 0 18px;
  display: grid;
  text-align: center;
}

.quick-facts div + div { border-left: 1px solid var(--line); }

.quick-facts strong {
  font-size: 22px;
  line-height: 1.2;
}

.quick-facts span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.primary-btn, .secondary-btn, .text-btn {
  border: 0;
  cursor: pointer;
}

.primary-btn {
  min-height: 56px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #8464e5);
  box-shadow: 0 14px 30px rgba(111, 82, 217, .28);
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(111, 82, 217, .34);
}

.micro-copy {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.hero-art {
  position: relative;
  min-height: 500px;
  isolation: isolate;
}

.orbit {
  position: absolute;
  border: 1px dashed rgba(111, 82, 217, .22);
  border-radius: 50%;
  inset: 50%;
  transform: translate(-50%, -50%);
}

.orbit-one { width: 390px; height: 390px; }
.orbit-two { width: 280px; height: 280px; }

.center-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 190px;
  height: 190px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(145deg, #6f52d9, #8e6de4);
  box-shadow: 0 30px 70px rgba(82, 55, 166, .32);
}

.badge-code {
  font-size: 38px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .04em;
}

.center-badge span:last-child {
  margin-top: 9px;
  font-size: 12px;
  opacity: .86;
}

.persona-card {
  position: absolute;
  z-index: 2;
  width: 200px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 22px;
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.persona-card strong,
.persona-card small { display: block; }

.persona-card strong { margin-top: 8px; font-size: 16px; }
.persona-card small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.persona-icon { font-size: 25px; }

.card-a { top: 35px; right: 20px; transform: rotate(4deg); }
.card-b { left: -10px; top: 190px; transform: rotate(-4deg); }
.card-c { right: 15px; bottom: 26px; transform: rotate(3deg); }

.card-a .persona-icon { color: #6f52d9; }
.card-b .persona-icon { color: #e26d85; }
.card-c .persona-icon { color: #e58a46; }

.floating-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  opacity: .72;
}

.dot-1 { width: 16px; height: 16px; left: 20%; top: 14%; }
.dot-2 { width: 10px; height: 10px; right: 20%; top: 42%; background: var(--green); }
.dot-3 { width: 13px; height: 13px; left: 30%; bottom: 12%; background: var(--primary); }

.about-panel {
  margin-bottom: 80px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
}

.about-heading {
  max-width: 620px;
  margin-bottom: 28px;
}

.about-heading h2 {
  margin: 7px 0 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.25;
}

.trait-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.trait-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfaff;
}

.trait-code {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.trait-card h3 {
  margin: 8px 0 6px;
  font-size: 16px;
}

.trait-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.test-screen, .analyzing-screen {
  min-height: calc(100vh - 72px);
  padding: 54px 16px 80px;
  background:
    radial-gradient(circle at 50% 0%, rgba(211, 199, 255, .5), transparent 35%),
    var(--bg);
}

.test-shell {
  width: min(100%, 900px);
  margin: 0 auto;
}

.test-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}

.text-btn {
  padding: 0;
  color: var(--muted);
  background: transparent;
}

.progress-track {
  height: 7px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4e0ef;
}

.progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #9f78e8);
  transition: width .28s ease;
}

.question-card {
  margin-top: 22px;
  padding: 54px 48px 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.question-number {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.question-card h2 {
  max-width: 720px;
  min-height: 120px;
  margin: 18px auto 38px;
  display: grid;
  place-items: center;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.45;
}

.answer-scale {
  display: grid;
  grid-template-columns: auto repeat(7, auto) auto;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.answer-option {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid #b9abc9;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.answer-option span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.answer-option.strength-3 { width: 54px; height: 54px; }
.answer-option.strength-2 { width: 48px; height: 48px; }
.answer-option.neutral { border-color: #c5c5cf; }

.answer-option[data-value^="-"] { border-color: #8c78b7; }
.answer-option[data-value="1"],
.answer-option[data-value="2"],
.answer-option[data-value="3"] { border-color: #65a98d; }

.answer-option:hover { transform: scale(1.08); }
.answer-option.is-selected {
  border-width: 4px;
  transform: scale(1.06);
}

.answer-option[data-value^="-"].is-selected { background: #8c78b7; box-shadow: inset 0 0 0 5px #fff; }
.answer-option[data-value="0"].is-selected { background: #a9a9b1; box-shadow: inset 0 0 0 5px #fff; }
.answer-option[data-value="1"].is-selected,
.answer-option[data-value="2"].is-selected,
.answer-option[data-value="3"].is-selected { background: #65a98d; box-shadow: inset 0 0 0 5px #fff; }

.scale-label {
  max-width: 82px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.scale-label-left { text-align: right; }
.scale-label-right { text-align: left; }

.mobile-scale-labels { display: none; }

.test-actions {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.secondary-btn {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--text);
  background: #fff;
  font-weight: 700;
}

.secondary-btn:disabled { opacity: .45; cursor: not-allowed; }
.autosave-note { color: var(--muted); font-size: 12px; }

.analyzing-screen.is-active {
  display: grid;
  place-items: center;
}

.analyzing-card {
  width: min(calc(100% - 32px), 560px);
  padding: 52px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.analyzing-card h2 { margin: 22px 0 8px; font-size: 28px; }
.analyzing-card p { margin: 0; color: var(--muted); }

.analyzing-orb {
  width: 92px;
  height: 92px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 50%;
  background: var(--primary-soft);
}

.analyzing-orb span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  animation: bounce 1.05s infinite ease-in-out;
}

.analyzing-orb span:nth-child(2) { animation-delay: .12s; }
.analyzing-orb span:nth-child(3) { animation-delay: .24s; }

@keyframes bounce {
  0%, 70%, 100% { transform: translateY(0); opacity: .45; }
  35% { transform: translateY(-9px); opacity: 1; }
}

.result-screen {
  padding: 54px 0 90px;
  background:
    radial-gradient(circle at 50% -10%, rgba(211, 199, 255, .65), transparent 34%),
    var(--bg);
}

.result-wrap { max-width: 980px; }

.result-hero {
  padding: 54px;
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(circle at 90% 0%, rgba(255,255,255,.18), transparent 27%),
    linear-gradient(145deg, #5d43c2, #7959d5);
  box-shadow: 0 24px 60px rgba(76, 50, 158, .25);
  text-align: center;
}

.result-label {
  font-size: 15px;
  font-weight: 700;
  opacity: .8;
}

.result-code {
  margin-top: 8px;
  font-size: clamp(58px, 10vw, 96px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: .04em;
}

.result-hero h1 {
  margin: 14px 0 26px;
  font-size: clamp(25px, 4vw, 38px);
}

.four-line-summary {
  max-width: 760px;
  margin: auto;
  padding: 22px 24px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  background: rgba(255,255,255,.10);
  font-size: 17px;
  line-height: 1.75;
  text-align: left;
}

.four-line-summary p { margin: 0; }
.four-line-summary p + p { margin-top: 7px; }

.result-restart {
  margin-top: 24px;
  color: #fff;
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.10);
}

.result-menu {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid #dcd5f4;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.result-menu-title {
  display: block;
  margin-bottom: 13px;
  color: #29213f;
  font-size: 18px;
}

.result-menu-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.result-menu-links a {
  min-width: 0;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  border: 1px solid #e4def5;
  border-radius: 14px;
  color: #3e3261;
  background: #faf9ff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.result-menu-links a:hover {
  border-color: #a992e8;
  background: #f2eeff;
  transform: translateY(-1px);
}

.result-menu-links a:focus-visible {
  outline: 3px solid rgba(116, 84, 190, .28);
  outline-offset: 2px;
}

.result-menu-links span {
  flex: 0 0 auto;
  font-size: 19px;
}

.dimension-card, .result-section {
  margin-top: 24px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.dimension-card h2 {
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
}

.result-heading-icon {
  flex: 0 0 auto;
  font-size: .9em;
  line-height: 1;
}

.dimension-bars { display: grid; gap: 20px; }

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

.dimension-guide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.dimension-guide[hidden] { display: none; }

.dimension-guide-card {
  min-width: 0;
  padding: 19px;
  border: 1px solid #ded7f5;
  border-radius: 16px;
  background: #f8f6ff;
}

.dimension-guide-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
}

.dimension-guide-heading h3 {
  min-width: 0;
  margin: 0;
  color: var(--primary-dark);
  font-size: 18px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.dimension-guide-letter {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  background: var(--primary);
  box-shadow: 0 7px 16px rgba(111, 82, 217, .2);
}

.dimension-guide-card p { margin: 0; }

.dimension-guide-quick {
  color: #34344d;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.65;
}

.dimension-guide-detail {
  margin-top: 8px !important;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.dimension-labels {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  font-weight: 700;
}

.dimension-track {
  position: relative;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #ece8f5;
}

.dimension-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #9e77e8);
}

.result-section {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 24px;
}

.section-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #d95f79;
  background: #fff0f3;
  font-size: 25px;
}

.section-copy h2 {
  margin: 6px 0 16px;
  font-size: 28px;
}

.section-summary {
  margin-bottom: 20px;
  padding: 20px;
  border-left: 4px solid var(--primary);
  border-radius: 0 15px 15px 0;
  background: #f8f6ff;
font-size: 16px;
line-height: 1.75;
}

.section-summary p { margin: 0; }
.section-summary p + p { margin-top: 6px; }

details {
  border-top: 1px solid var(--line);
  padding: 0;
}

details:last-child { border-bottom: 1px solid var(--line); }

summary {
  padding: 18px 2px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 800;
  list-style: none;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  float: right;
  color: var(--primary);
  font-size: 21px;
}

details[open] summary::after { content: "−"; }
details p {
  margin: -4px 0 20px;
  color: var(--muted);
font-size: 16px;
line-height: 1.75;
}

.site-footer {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  text-align: center;
}

.site-footer p { margin: 0; }

@media (max-width: 900px) {
  .hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 48px;
  }

  .hero-art { min-height: 430px; }
  .trait-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 24px), var(--container)); }
  .site-header { position: relative; }
  .header-inner { min-height: 62px; }
  .header-link { display: none; }

  .hero-grid {
    padding: 34px 0 48px;
    gap: 28px;
  }

  .hero-copy h1 {
    margin-top: 10px;
    font-size: 39px;
  }

  .hero-copy h1 span {
    display: inline-block;
    margin-top: 7px;
    font-size: .67em;
    line-height: 1.3;
  }

  .hero-lead { font-size: 15px; }

  .quick-facts {
    width: 100%;
    margin: 24px 0;
    padding: 13px 6px;
  }

  .quick-facts div { min-width: 0; flex: 1; padding: 0 9px; }
  .primary-btn { width: 100%; }

  .hero-art { min-height: 360px; }
  .orbit-one { width: 315px; height: 315px; }
  .orbit-two { width: 225px; height: 225px; }
  .center-badge { width: 150px; height: 150px; }
  .badge-code { font-size: 31px; }
  .persona-card { width: 155px; padding: 13px; border-radius: 17px; }
  .persona-card strong { font-size: 13px; }
  .persona-card small { font-size: 10px; }
  .card-a { right: 0; top: 18px; }
  .card-b { left: 0; top: 155px; }
  .card-c { right: 2px; bottom: 18px; }

  .about-panel {
    margin-bottom: 48px;
    padding: 24px 18px;
    border-radius: 22px;
  }

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

  .test-screen, .analyzing-screen { padding: 28px 12px 54px; }

  .question-card {
    margin-top: 16px;
    padding: 34px 15px 28px;
    border-radius: 22px;
  }

  .question-card h2 {
    min-height: 130px;
    margin: 15px auto 27px;
    font-size: 24px;
  }

  .answer-scale {
    grid-template-columns: repeat(7, 1fr);
    gap: 7px;
  }

  .scale-label { display: none; }

  .answer-option,
  .answer-option.strength-1,
  .answer-option.strength-2,
  .answer-option.strength-3 {
    width: 100%;
    max-width: 42px;
    aspect-ratio: 1;
    height: auto;
    justify-self: center;
  }

  .answer-option.strength-3 { max-width: 48px; }

  .mobile-scale-labels {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 10px;
  }

  .autosave-note { display: none; }
  .test-actions { justify-content: flex-start; }

  .result-screen { padding-top: 24px; }
  .result-hero { padding: 38px 18px; border-radius: 22px; }
  .four-line-summary { padding: 18px 16px; font-size: 16px; }

  .dimension-card, .result-section {
    padding: 23px 18px;
    border-radius: 22px;
  }

  .dimension-guide {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 22px;
  }

  .dimension-guide-card { padding: 17px 16px; }

  .result-section {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .section-copy h2 { font-size: 24px; }
  .section-summary { padding: 16px; font-size: 16px; }
}
/* Mockup-aligned production cover */
.site-header {
  border-bottom: 1px solid rgba(154, 129, 255, .18);
  background: rgba(5, 9, 39, .94);
  box-shadow: 0 10px 35px rgba(0, 0, 0, .14);
}

.header-inner {
  min-height: 76px;
}

.brand {
  flex: 0 0 auto;
  color: #fff;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, #ff5eae, #8a68ff 64%, #4c8fff);
  box-shadow: 0 8px 24px rgba(145, 92, 255, .34);
  font-size: 13px;
  letter-spacing: 0;
}

.brand-text strong {
  color: #fff;
  font-size: 20px;
  letter-spacing: 0;
}

.brand-text strong b {
  color: #c9b6ff;
  font-weight: 800;
}

.brand-text small {
  color: #a9acd1;
  font-size: 10px;
  letter-spacing: .12em;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  margin-left: auto;
}

.main-nav a {
  position: relative;
  padding: 27px 0 24px;
  color: #c8cae1;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}

.main-nav a:hover,
.main-nav a.is-current {
  color: #fff;
}

.main-nav a.is-current::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 16px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff62b1, #956dff);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-tools select {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 11px;
  color: #fff;
  background: #121943;
  padding: 7px 32px 7px 11px;
}

.header-tools select option {
  color: #202037;
  background: #fff;
}

.cover-screen {
  overflow: hidden;
  color: #fff;
  background: #070c2d;
}

.hero-stage {
  position: relative;
  min-height: 680px;
  isolation: isolate;
  background: #070c2d;
}

.hero-stage::before,
.hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-stage::before {
  z-index: -2;
  background: url("../../images/hero-clean.webp") center center / cover no-repeat;
}

.hero-stage::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 9, 39, .99) 0%, rgba(5, 9, 39, .93) 29%, rgba(5, 9, 39, .48) 52%, rgba(5, 9, 39, .08) 76%),
    linear-gradient(180deg, rgba(5, 9, 39, .12) 62%, #070c2d 100%);
}

.hero-grid {
  position: relative;
  min-height: 680px;
  grid-template-columns: minmax(0, 560px) 1fr;
  align-items: center;
  gap: 24px;
  padding-block: 54px 78px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  width: fit-content;
  padding: 8px 14px;
  border: 1px solid rgba(185, 155, 255, .24);
  border-radius: 999px;
  color: #ece7ff;
  background: rgba(125, 83, 220, .15);
  font-size: 14px;
  letter-spacing: 0;
}

.eyebrow span {
  margin-right: 4px;
  color: #ff78bc;
}

.hero-copy h1 {
  margin: 20px 0 20px;
  color: #fff;
  font-size: clamp(52px, 5.3vw, 74px);
  line-height: 1.12;
  letter-spacing: 0;
  text-shadow: 0 8px 32px rgba(0, 0, 0, .28);
}

.hero-copy h1 span {
  color: #d6c6ff;
  background: linear-gradient(90deg, #9fb5ff, #d482ff 52%, #ff72b5);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1em;
}

.hero-lead {
  max-width: 540px;
  color: #c6c9e0;
  font-size: 21px;
  line-height: 1.8;
}

.quick-facts {
  width: min(100%, 540px);
  margin: 26px 0 28px;
  padding: 13px 10px;
  border-color: rgba(174, 157, 233, .25);
  border-radius: 16px;
  background: rgba(13, 18, 63, .68);
  box-shadow: 0 14px 38px rgba(0, 0, 0, .16);
  backdrop-filter: blur(12px);
}

.quick-facts div {
  min-width: 0;
  flex: 1;
  padding: 0 14px;
}

.quick-facts div + div {
  border-left-color: rgba(255, 255, 255, .14);
}

.quick-facts strong {
  color: #fff;
  font-size: 22px;
}

.quick-facts span {
  color: #aeb2d1;
  font-size: 15px;
}

.primary-btn {
  min-width: 285px;
  min-height: 62px;
  border-radius: 18px;
  background: linear-gradient(100deg, #f65ca8 0%, #a567f4 54%, #668bff 100%);
  box-shadow: 0 16px 36px rgba(199, 83, 213, .34);
  font-size: 17px;
}

.primary-btn:hover {
  box-shadow: 0 20px 42px rgba(199, 83, 213, .44);
}

.micro-copy {
  color: #9196ba;
  font-size: 14px;
}

.hero-type-tags {
  position: absolute;
  inset: 0 0 0 47%;
  pointer-events: none;
}

.type-tag {
  position: absolute;
  z-index: 2;
  padding: 5px 13px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  color: #fff;
  background: rgba(99, 68, 188, .78);
  box-shadow: 0 8px 24px rgba(7, 9, 40, .28);
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(6px);
}

.type-tag-a { top: 12%; left: 47%; }
.type-tag-b { top: 30%; left: 12%; background: rgba(70, 126, 89, .84); }
.type-tag-c { top: 55%; left: 5%; background: rgba(187, 123, 37, .88); }
.type-tag-d { bottom: 13%; left: 35%; background: rgba(45, 113, 189, .85); }
.type-tag-e { right: 15%; bottom: 20%; background: rgba(177, 65, 78, .84); }
.type-tag-f { right: 1%; top: 43%; background: rgba(94, 76, 205, .86); }

.trust-strip {
  position: relative;
  z-index: 3;
  margin-top: -42px;
  padding: 22px 26px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(154, 129, 255, .27);
  border-radius: 18px;
  background: rgba(15, 21, 69, .94);
  box-shadow: 0 22px 54px rgba(0, 0, 0, .25);
  backdrop-filter: blur(16px);
}

.trust-strip > div {
  min-width: 0;
  padding: 3px 20px;
  display: flex;
  align-items: center;
  gap: 13px;
}

.trust-strip > div + div {
  border-left: 1px solid rgba(255, 255, 255, .12);
}

.trust-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffd26f;
  background: rgba(255, 187, 76, .13);
  font-size: 20px;
}

.trust-strip > div:nth-child(2) .trust-icon {
  color: #75d8ff;
  background: rgba(73, 181, 229, .14);
}

.trust-strip > div:nth-child(3) .trust-icon {
  color: #ff82be;
  background: rgba(247, 94, 169, .14);
}

.trust-strip > div:nth-child(4) .trust-icon {
  color: #83e0c6;
  background: rgba(59, 191, 153, .14);
}

.trust-strip p {
  min-width: 0;
  margin: 0;
  line-height: 1.35;
}

.trust-strip strong,
.trust-strip small {
  display: block;
}

.trust-strip strong {
  color: #fff;
  font-size: 16px;
}

.trust-strip small {
  margin-top: 4px;
  color: #999fbe;
  font-size: 14px;
}

.about-panel {
  margin-top: 38px;
  margin-bottom: 66px;
  border-color: rgba(154, 129, 255, .20);
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(129, 72, 215, .15), transparent 28%),
    #0d123d;
  box-shadow: 0 20px 54px rgba(0, 0, 0, .22);
}

.section-kicker {
  color: #c5a8ff;
  letter-spacing: 0;
}

.about-heading h2 {
  color: #fff;
}

.trait-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(159, 143, 218, .20);
  background: #131947;
}

.trait-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: #a471ff;
}

.trait-card:nth-child(2)::before { background: #54c3d8; }
.trait-card:nth-child(3)::before { background: #f281b4; }
.trait-card:nth-child(4)::before { background: #f1b85a; }
.trait-card:nth-child(2) .trait-code { color: #79d8e9; }
.trait-card:nth-child(3) .trait-code { color: #ff9bc7; }
.trait-card:nth-child(4) .trait-code { color: #f7ca78; }

.trait-card h3 {
  color: #fff;
}

.trait-card p {
  color: #aeb2cd;
}

.result-persona-image {
  width: min(100%, 620px);
  height: auto;
  aspect-ratio: 3 / 2;
  margin: 20px auto 22px;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.30);
  border-radius: 22px;
  box-shadow: 0 18px 38px rgba(20, 13, 68, .28);
}

.result-section-card {
  margin-top: 24px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.dimension-card,
.result-section-card {
  scroll-margin-top: 92px;
}

.result-section-card h2 {
  margin: 0 0 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.result-section-card .section-summary { margin-bottom: 18px; }
.result-section-card details { border-top: 1px solid var(--line); }
.result-section-card summary { padding: 17px 0; font-weight: 800; cursor: pointer; }
.result-section-card details p { color: var(--muted); }

@media (max-width: 980px) {
  .main-nav { gap: 20px; }
  .main-nav a { font-size: 14px; }

  .hero-stage,
  .hero-grid {
    min-height: 640px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 500px) 1fr;
  }

  .hero-copy h1 { font-size: 54px; }
  .type-tag-a { left: 54%; }
}

@media (max-width: 760px) {
  .site-header { position: relative; }
  .header-inner { min-height: 66px; }
  .main-nav { display: none; }
  .brand-text strong { font-size: 17px; }
  .brand-text small { font-size: 10px; }
  .brand-mark { width: 40px; height: 40px; }

  .result-menu {
    padding: 16px;
    border-radius: 18px;
  }

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

  .result-menu-links a {
    min-height: 56px;
    padding: 10px;
    font-size: 14px;
  }

  .hero-stage {
    min-height: 790px;
  }

  .hero-stage::before {
    background-position: 63% 100%;
    background-size: auto 58%;
    background-repeat: no-repeat;
  }

  .hero-stage::after {
    background:
      linear-gradient(180deg, rgba(5, 9, 39, .98) 0%, rgba(5, 9, 39, .92) 47%, rgba(5, 9, 39, .30) 72%, #070c2d 100%);
  }

  .hero-grid {
    min-height: 790px;
    grid-template-columns: 1fr;
    align-items: start;
    padding: 42px 0 310px;
  }

  .hero-copy {
    max-width: 600px;
  }

  .hero-copy h1 {
    margin-top: 16px;
    font-size: clamp(42px, 12vw, 58px);
  }

  .hero-lead {
    font-size: 18px;
    line-height: 1.75;
  }

  .hero-type-tags {
    display: none;
  }

  .quick-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .quick-facts div {
    padding: 0 6px;
  }

  .quick-facts strong { font-size: 19px; }
  .quick-facts span { font-size: 13px; }

  .trust-strip {
    margin-top: -25px;
    padding: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-strip > div {
    padding: 12px 10px;
  }

  .trust-strip > div + div {
    border-left: 0;
  }

  .trust-strip > div:nth-child(even) {
    border-left: 1px solid rgba(255, 255, 255, .10);
  }

  .trust-strip > div:nth-child(n+3) {
    border-top: 1px solid rgba(255, 255, 255, .10);
  }

  .about-panel {
    margin-top: 26px;
  }
}

@media (max-width: 520px) {
  .container { width: min(calc(100% - 24px), var(--container)); }
  .header-tools select { max-width: 76px; padding-right: 24px; }

  .hero-stage,
  .hero-grid {
    min-height: 750px;
  }

  .hero-grid {
    padding-top: 34px;
    padding-bottom: 285px;
  }

  .eyebrow {
    padding: 7px 11px;
    font-size: 13px;
  }

  .hero-copy h1 {
    font-size: clamp(39px, 12vw, 50px);
  }

  .hero-copy h1 br {
    display: none;
  }

  .quick-facts {
    margin: 22px 0;
  }

  .primary-btn {
    width: 100%;
    min-width: 0;
  }

  .micro-copy {
    text-align: center;
  }

  .trust-strip {
    border-radius: 16px;
  }

  .trust-strip > div {
    align-items: flex-start;
    gap: 9px;
  }

  .trust-icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    border-radius: 10px;
    font-size: 16px;
  }

  .trust-strip strong { font-size: 15px; }
  .trust-strip small { font-size: 13px; }

  .about-panel {
    padding: 26px 18px;
  }

  .result-section-card {
    padding: 23px 18px;
    border-radius: 22px;
  }
}


.language-switch { display:flex; align-items:center; gap:5px; flex-wrap:wrap; justify-content:flex-end; }
.language-switch a, .language-switch strong { min-height:36px; display:inline-flex; align-items:center; padding:6px 9px; border:1px solid rgba(255,255,255,.18); border-radius:9px; color:#fff; font-size:14px; line-height:1; text-decoration:none; white-space:nowrap; }
.language-switch a:hover { background:rgba(255,255,255,.1); }
.language-switch strong { border-color:#ff79bd; background:rgba(255,98,177,.16); }
@media (max-width:520px) { .language-switch { gap:3px; } .language-switch a, .language-switch strong { min-height:32px; padding:5px 6px; font-size:12px; } }

/* Keep the supporting copy readable against the full-bleed hero. */
.micro-copy {
  font-size: 16px;
  line-height: 1.7;
}

.about-heading .section-kicker {
  font-size: 17px;
  line-height: 1.5;
}

.trait-code {
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: 0;
}

.trait-card h3 {
  font-size: 18px;
}

.trait-card p {
  font-size: 15px;
  line-height: 1.65;
}

/* Keep essential labels and answer guidance readable on every screen. */
.eyebrow { font-size: 16.5px; }
.brand-text small { font-size: 12px; }
.quick-facts span { font-size: 14px; }
.trust-strip small { font-size: 14px; }
.test-topbar { font-size: 14px; }
.question-number { font-size: 15px; }
.scale-label { font-size: 15px; }
.mobile-scale-labels { font-size: 14px; }
.autosave-note { font-size: 13px; }
.result-menu-links a { font-size: 15px; }
.site-footer { font-size: 13px; }

@media (max-width: 520px) {
  .eyebrow { font-size: 15.5px; }
}

[dir="rtl"] body { direction: rtl; }
[dir="rtl"] .main-nav, [dir="rtl"] .language-switch, [dir="rtl"] .result-menu { direction: rtl; }
[dir="rtl"] .scale-label-left { text-align: left; }
[dir="rtl"] .scale-label-right { text-align: right; }
