:root {
  --bg: #040815;
  --bg-soft: #081326;
  --surface: rgba(10, 16, 36, 0.72);
  --surface-strong: rgba(15, 22, 48, 0.9);
  --surface-light: rgba(255, 255, 255, 0.08);
  --ink: #eff8ff;
  --muted: #b4c8db;
  --line: rgba(124, 212, 255, 0.18);
  --teal: #33ccff;
  --teal-soft: rgba(51, 204, 255, 0.12);
  --teal-glow: rgba(51, 204, 255, 0.42);
  --violet: #7b61ff;
  --violet-soft: rgba(123, 97, 255, 0.26);
  --pink: #ff63d4;
  --gold: #ffd166;
  --shadow: 0 30px 90px rgba(2, 7, 24, 0.48);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --max-width: 1240px;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
  --font-heading: "Poppins", "Inter", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--font-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(circle at 15% 18%, rgba(255, 99, 212, 0.18), transparent 24%),
    radial-gradient(circle at 85% 16%, rgba(51, 204, 255, 0.14), transparent 28%),
    radial-gradient(circle at 50% 0%, rgba(123, 97, 255, 0.18), transparent 40%),
    linear-gradient(180deg, #050816 0%, #060b1a 24%, #070d1f 54%, #050914 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background-image:
    radial-gradient(circle at 12% 22%, rgba(255, 255, 255, 0.85) 0 1px, transparent 1.8px),
    radial-gradient(circle at 28% 68%, rgba(255, 255, 255, 0.9) 0 1.4px, transparent 2px),
    radial-gradient(circle at 56% 16%, rgba(51, 204, 255, 0.75) 0 1.2px, transparent 2px),
    radial-gradient(circle at 74% 34%, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.8px),
    radial-gradient(circle at 88% 74%, rgba(255, 99, 212, 0.7) 0 1.2px, transparent 2px),
    radial-gradient(circle at 16% 84%, rgba(123, 97, 255, 0.65) 0 1px, transparent 1.8px);
  opacity: 0.88;
}

body::after {
  background:
    linear-gradient(90deg, transparent 0%, rgba(51, 204, 255, 0.05) 48%, transparent 100%),
    linear-gradient(180deg, transparent 0%, rgba(255, 99, 212, 0.04) 100%);
  mix-blend-mode: screen;
}

button,
a {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    opacity 180ms ease;
}

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

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(51, 204, 255, 0.38);
  outline-offset: 3px;
}

img {
  max-width: 100%;
}

.hidden {
  display: none !important;
}

.page-shell {
  width: min(100%, calc(var(--max-width) + 48px));
  margin: 0 auto;
  padding: 20px 24px 80px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 26px 32px 42px;
  border-radius: 40px;
  background:
    linear-gradient(145deg, rgba(8, 13, 31, 0.82), rgba(9, 15, 36, 0.94)),
    radial-gradient(circle at top, rgba(51, 204, 255, 0.08), transparent 55%);
  border: 1px solid rgba(112, 206, 255, 0.14);
  box-shadow: var(--shadow);
  isolation: isolate;
}

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

.hero::before {
  background:
    linear-gradient(115deg, rgba(4, 8, 21, 0.88), rgba(4, 8, 21, 0.48)),
    url("hero-vibe.png") center center / cover no-repeat;
  opacity: 0.28;
  filter: saturate(1.12) contrast(1.04);
  z-index: -2;
}

.hero::after {
  background:
    radial-gradient(circle at 20% 24%, rgba(255, 255, 255, 0.08), transparent 15%),
    radial-gradient(circle at 78% 12%, rgba(51, 204, 255, 0.18), transparent 18%),
    radial-gradient(circle at 64% 58%, rgba(255, 99, 212, 0.14), transparent 22%),
    linear-gradient(180deg, transparent 0%, rgba(123, 97, 255, 0.08) 100%);
  z-index: -1;
}

.topbar,
.hero-grid,
.section-block,
.assessment-shell {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 44px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  width: 66px;
  height: 66px;
  object-fit: contain;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 14px 34px rgba(51, 204, 255, 0.18);
}

.brand-copy {
  display: grid;
  gap: 4px;
}

.brand-text {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.08;
}

.brand-subtext {
  color: rgba(231, 245, 255, 0.74);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  position: relative;
  color: rgba(235, 247, 255, 0.82);
  text-decoration: none;
  font-weight: 700;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 32px;
  align-items: center;
}

.hero-copy {
  padding: 10px 0 20px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(135, 216, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  color: #dff7ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.assessment-intro h2,
.question-card h3,
.type-summary h2 {
  margin: 0;
}

.hero h1 {
  max-width: 8.6ch;
  font-family: var(--font-heading);
  font-size: clamp(3.1rem, 7vw, 5.9rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-shadow:
    0 0 14px rgba(51, 204, 255, 0.34),
    0 0 38px rgba(123, 97, 255, 0.25),
    0 0 68px rgba(255, 99, 212, 0.12);
}

.hero-lead,
.section-heading p,
.assessment-intro p,
.question-hint,
.type-copy p,
.dimension-card p,
.intro-panel li,
.metric-card p,
.sample-note {
  color: var(--muted);
  line-height: 1.74;
}

.hero-lead {
  max-width: 61ch;
  margin: 24px 0 30px;
  font-size: 1.04rem;
}

.hero-actions,
.question-nav,
.results-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
}

.primary-button {
  background: linear-gradient(135deg, #38d5ff, #1f7dff 72%, #9d4dff 100%);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 14px 32px rgba(51, 204, 255, 0.26),
    0 0 26px rgba(51, 204, 255, 0.26);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.08);
  color: #f2faff;
  border-color: rgba(133, 214, 255, 0.16);
  backdrop-filter: blur(12px);
}

.large-button {
  min-width: 220px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.hero-stats li,
.dimension-card,
.intro-panel,
.metric-card,
.results-hero,
.assessment-shell {
  background: var(--surface);
  border: 1px solid rgba(137, 215, 255, 0.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-stats li {
  padding: 18px;
  border-radius: var(--radius-md);
}

.hero-stats strong {
  display: block;
  margin-bottom: 6px;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.56rem;
}

.hero-stats span {
  color: rgba(226, 239, 249, 0.8);
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
  min-height: 640px;
}

.hero-stage {
  position: absolute;
  inset: 24px 0 0 0;
  border-radius: 38px;
}

.hero-glow,
.hero-orbit,
.hero-spark {
  position: absolute;
  pointer-events: none;
}

.hero-glow {
  border-radius: 50%;
  filter: blur(18px);
  animation: pulseGlow 7s ease-in-out infinite;
}

.glow-a {
  top: 10%;
  left: 8%;
  width: 190px;
  height: 190px;
  background: rgba(255, 99, 212, 0.18);
}

.glow-b {
  right: 6%;
  bottom: 18%;
  width: 240px;
  height: 240px;
  background: rgba(51, 204, 255, 0.2);
  animation-delay: 0.6s;
}

.hero-orbit {
  border-radius: 999px;
  border: 2px solid rgba(255, 209, 102, 0.34);
  box-shadow: 0 0 26px rgba(255, 209, 102, 0.12);
}

.orbit-a {
  top: 18%;
  left: 14%;
  width: 410px;
  height: 180px;
  transform: rotate(-10deg);
  opacity: 0.72;
}

.orbit-b {
  top: 40%;
  left: 18%;
  width: 360px;
  height: 150px;
  transform: rotate(8deg);
  opacity: 0.46;
}

.hero-spark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.9);
  animation: twinkle 3.8s ease-in-out infinite;
}

.spark-a {
  top: 7%;
  left: 26%;
}

.spark-b {
  right: 14%;
  top: 24%;
  animation-delay: 0.8s;
}

.stage-beams {
  position: absolute;
  inset: 44% 2% 2% 2%;
  background:
    linear-gradient(180deg, rgba(51, 204, 255, 0), rgba(51, 204, 255, 0.18)),
    repeating-linear-gradient(
      102deg,
      rgba(51, 204, 255, 0.32) 0 2px,
      transparent 2px 72px
    ),
    repeating-linear-gradient(
      78deg,
      rgba(123, 97, 255, 0.24) 0 2px,
      transparent 2px 68px
    );
  clip-path: polygon(0 26%, 100% 26%, 100% 100%, 0 100%);
  filter: drop-shadow(0 -10px 30px rgba(51, 204, 255, 0.18));
}

.skyline {
  position: absolute;
  left: 50%;
  bottom: 18%;
  width: min(78%, 420px);
  height: 160px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(130, 70, 255, 0.12));
  clip-path: polygon(0 100%, 0 78%, 8% 78%, 8% 58%, 14% 58%, 14% 70%, 18% 70%, 18% 36%, 24% 36%, 24% 62%, 31% 62%, 31% 18%, 37% 18%, 37% 54%, 43% 54%, 43% 0, 51% 0, 51% 68%, 58% 68%, 58% 24%, 63% 24%, 63% 58%, 70% 58%, 70% 10%, 76% 10%, 76% 72%, 84% 72%, 84% 42%, 90% 42%, 90% 80%, 100% 80%, 100% 100%);
  opacity: 0.82;
  filter: drop-shadow(0 0 24px rgba(255, 99, 212, 0.32));
}

.light-path {
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: min(86%, 520px);
  height: 210px;
  transform: translateX(-50%);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.02) 64%),
    linear-gradient(90deg, rgba(255, 99, 212, 0.12), rgba(255, 255, 255, 0.8), rgba(51, 204, 255, 0.14));
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
  opacity: 0.82;
  filter: blur(0.6px) drop-shadow(0 0 28px rgba(255, 255, 255, 0.28));
}

.summary-card {
  position: absolute;
  top: 22%;
  right: 4%;
  width: min(100%, 420px);
  padding: 26px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(13, 20, 45, 0.82), rgba(10, 17, 38, 0.72)),
    linear-gradient(135deg, rgba(51, 204, 255, 0.08), rgba(255, 99, 212, 0.08));
  border: 1px solid rgba(146, 221, 255, 0.16);
  box-shadow:
    0 24px 60px rgba(3, 8, 26, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.card-kicker,
.progress-label,
.question-index {
  font-size: 0.79rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #91e7ff;
}

.sample-type {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  margin-top: 14px;
}

.sample-badge,
.type-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 12px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(51, 204, 255, 0.2), rgba(123, 97, 255, 0.2));
  border: 1px solid rgba(133, 213, 255, 0.16);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sample-type strong {
  color: #ffffff;
}

.sample-type p,
.sample-note {
  margin: 8px 0 0;
}

.mini-meters {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.mini-meter {
  display: grid;
  grid-template-columns: 18px 1fr 18px;
  gap: 10px;
  align-items: center;
  font-weight: 800;
  color: #dff8ff;
}

.mini-meter div,
.meter-track {
  position: relative;
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.mini-meter i,
.meter-track i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff67d5 0%, #ffd166 18%, #33ccff 72%, #7b61ff 100%);
  box-shadow: 0 0 18px rgba(51, 204, 255, 0.28);
}

.sample-note {
  margin-top: 18px;
  font-size: 0.94rem;
}

.floating-chip {
  position: absolute;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(144, 221, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  color: #effaff;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(2, 9, 28, 0.3);
  animation: drift 6.6s ease-in-out infinite;
}

.chip-a {
  top: 9%;
  right: 7%;
}

.chip-b {
  left: 0;
  bottom: 22%;
  animation-delay: 0.5s;
}

.chip-c {
  right: 6%;
  bottom: 6%;
  animation-delay: 1s;
}

.section-block {
  margin-top: 34px;
  padding: 34px;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(8, 13, 31, 0.76), rgba(8, 13, 31, 0.88)),
    radial-gradient(circle at top right, rgba(51, 204, 255, 0.08), transparent 35%);
  border: 1px solid rgba(118, 206, 255, 0.12);
  box-shadow: var(--shadow);
}

.section-heading {
  max-width: 780px;
}

.section-heading h2,
.assessment-intro h2,
.type-summary h2 {
  font-family: var(--font-heading);
  color: #ffffff;
  line-height: 1.1;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 16px;
}

.dimension-grid,
.intro-grid,
.results-grid {
  display: grid;
  gap: 18px;
}

.dimension-grid {
  margin-top: 28px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dimension-card,
.intro-panel,
.metric-card {
  padding: 22px;
  border-radius: var(--radius-lg);
}

.dimension-code {
  color: #91e7ff;
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.dimension-card h3,
.intro-panel strong,
.metric-card h3 {
  margin: 12px 0 10px;
  color: #ffffff;
  font-family: var(--font-heading);
}

.assessment-shell {
  padding: 32px;
  border-radius: 32px;
}

.assessment-intro {
  max-width: 920px;
}

.assessment-intro h2,
.type-summary h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.intro-grid {
  margin: 28px 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel-list {
  margin: 14px 0 0;
  padding-left: 20px;
}

.panel-list li + li {
  margin-top: 9px;
}

.question-screen {
  max-width: 940px;
  margin: 0 auto;
}

.question-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.dimension-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(140, 219, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #def7ff;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff67d5 0%, #ffd166 22%, #33ccff 60%, #7b61ff 100%);
  box-shadow: 0 0 18px rgba(51, 204, 255, 0.3);
}

.question-card {
  padding: 34px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(12, 19, 43, 0.94), rgba(10, 16, 34, 0.88)),
    radial-gradient(circle at top right, rgba(51, 204, 255, 0.08), transparent 24%);
  border: 1px solid rgba(138, 218, 255, 0.14);
  box-shadow: 0 24px 54px rgba(3, 7, 24, 0.46);
}

.question-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 36px;
  margin-bottom: 16px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(51, 204, 255, 0.1);
  border: 1px solid rgba(138, 218, 255, 0.12);
}

.question-card h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.18;
  color: #ffffff;
}

.question-hint {
  margin: 14px 0 0;
  font-size: 0.96rem;
}

kbd {
  padding: 2px 8px;
  border-radius: 8px;
  border: 1px solid rgba(140, 219, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
}

.scale-shell {
  margin-top: 34px;
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: rgba(228, 242, 250, 0.8);
  font-weight: 700;
}

.scale-options {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.scale-option {
  --button-size: 42px;
  width: var(--button-size);
  height: var(--button-size);
  border-radius: 50%;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 22px rgba(1, 7, 23, 0.36);
  cursor: pointer;
}

.scale-option[data-tone="negative"] {
  border-color: rgba(255, 99, 212, 0.34);
}

.scale-option[data-tone="positive"] {
  border-color: rgba(51, 204, 255, 0.34);
}

.scale-option[data-tone="neutral"] {
  border-color: rgba(255, 255, 255, 0.18);
}

.scale-option::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  transform: scale(0.54);
  transition: transform 180ms ease, background-color 180ms ease;
}

.scale-option[data-tone="negative"]::before {
  background: linear-gradient(145deg, rgba(255, 99, 212, 0.72), rgba(255, 180, 105, 0.35));
}

.scale-option[data-tone="positive"]::before {
  background: linear-gradient(145deg, rgba(51, 204, 255, 0.9), rgba(123, 97, 255, 0.45));
}

.scale-option[data-tone="neutral"]::before {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(154, 185, 207, 0.3));
}

.scale-option.is-selected {
  transform: translateY(-3px);
  box-shadow:
    0 18px 28px rgba(2, 8, 24, 0.42),
    0 0 24px rgba(51, 204, 255, 0.16);
}

.scale-option.is-selected::before {
  transform: scale(0.78);
}

.question-nav {
  justify-content: space-between;
  margin-top: 20px;
}

.question-nav .secondary-button[disabled],
.question-nav .primary-button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.results-screen {
  display: grid;
  gap: 20px;
}

.results-hero {
  padding: 28px;
  border-radius: 30px;
}

.type-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
}

.type-copy p {
  margin: 12px 0 0;
}

.type-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(136, 217, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #effaff;
  font-weight: 700;
}

.results-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

.metrics-column,
.profile-column {
  display: grid;
  gap: 18px;
}

.metric-card h3 {
  margin-top: 0;
}

.axis-header,
.axis-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.axis-header strong {
  font-size: 1.08rem;
}

.axis-header span {
  color: #91e7ff;
  font-weight: 700;
}

.axis-footer {
  margin-top: 10px;
  color: rgba(219, 238, 250, 0.7);
  font-weight: 700;
  font-size: 0.9rem;
}

.metric-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.72;
}

.metric-list li + li {
  margin-top: 10px;
}

.results-actions {
  justify-content: center;
  margin-top: 6px;
}

.detail-cta-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-top: 4px;
  padding: 24px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(51, 204, 255, 0.22), rgba(123, 97, 255, 0.18)),
    linear-gradient(180deg, rgba(12, 19, 43, 0.96), rgba(9, 15, 34, 0.92));
  border: 1px solid rgba(145, 231, 255, 0.28);
  box-shadow:
    0 24px 60px rgba(3, 7, 24, 0.44),
    0 0 42px rgba(51, 204, 255, 0.16);
}

.detail-cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.12), transparent 36%),
    radial-gradient(circle at top right, rgba(255, 99, 212, 0.18), transparent 34%);
  pointer-events: none;
}

.detail-cta-copy,
.detail-cta-button {
  position: relative;
  z-index: 1;
}

.detail-cta-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: #91e7ff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-cta-copy h3 {
  margin: 0;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.15;
}

.detail-cta-copy p {
  max-width: 72ch;
  margin: 10px 0 0;
  color: rgba(226, 239, 249, 0.82);
  line-height: 1.7;
}

.detail-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  padding: 0 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #33ccff, #1f7dff 54%, #ff63d4);
  color: #ffffff;
  text-decoration: none;
  font-weight: 900;
  box-shadow:
    0 18px 34px rgba(51, 204, 255, 0.24),
    0 0 30px rgba(255, 99, 212, 0.2);
  white-space: nowrap;
}

.detail-cta-button:hover {
  transform: translateY(-2px) scale(1.01);
}

.site-footer {
  margin-top: 34px;
}

.footer-shell {
  position: relative;
  overflow: hidden;
  padding: 30px 30px 24px;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(248, 251, 255, 0.96), rgba(241, 246, 255, 0.93)),
    radial-gradient(circle at top right, rgba(103, 167, 255, 0.18), transparent 30%);
  border: 1px solid rgba(202, 225, 255, 0.9);
  box-shadow: 0 24px 56px rgba(5, 11, 33, 0.26);
  color: #23314c;
  animation: footerRise 0.7s ease both;
}

.footer-shell::before,
.footer-shell::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 50%;
  pointer-events: none;
}

.footer-shell::before {
  top: -72px;
  right: -36px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(91, 181, 255, 0.24), transparent 68%);
}

.footer-shell::after {
  left: -40px;
  bottom: -88px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(162, 135, 255, 0.2), transparent 70%);
}

.footer-note,
.footer-columns,
.footer-bottom {
  position: relative;
  z-index: 1;
}

.footer-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(89, 188, 255, 0.16), rgba(167, 123, 255, 0.14));
  color: #2a5eaf;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-note {
  max-width: 760px;
  margin: 0 0 24px;
  color: #5a6b84;
  line-height: 1.7;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(193, 219, 255, 0.86);
}

.footer-column h3 {
  margin: 0 0 14px;
  color: #1f2f4d;
  font-family: var(--font-heading);
  font-size: 1rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-column a {
  color: #4b78ae;
  text-decoration: none;
  line-height: 1.5;
}

.footer-column a:hover {
  color: #1e61d3;
}

.footer-links,
.footer-mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.footer-links a,
.footer-mini-links a {
  color: #305f97;
  text-decoration: none;
  font-weight: 700;
}

.footer-links a:hover,
.footer-mini-links a:hover,
.footer-email:hover {
  color: #174fd1;
}

.footer-email {
  display: inline-flex;
  color: #305f97;
  text-decoration: none;
  font-weight: 700;
  word-break: break-word;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(193, 219, 255, 0.9);
  color: #61718a;
  box-shadow: none;
}

.social-links a:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #59bbff, #817bff);
  box-shadow: 0 12px 22px rgba(110, 146, 255, 0.18);
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
  padding-top: 2px;
}

.footer-bottom p {
  margin: 0;
  color: #4e6078;
  font-weight: 600;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.info-page-body {
  color: #22314c;
  background:
    radial-gradient(circle at 10% 12%, rgba(89, 188, 255, 0.14), transparent 24%),
    radial-gradient(circle at 86% 18%, rgba(167, 123, 255, 0.14), transparent 24%),
    linear-gradient(180deg, #f9fbff 0%, #f2f6ff 100%);
}

.info-page-shell {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 24px 24px 72px;
}

.info-page-body .brand-text {
  color: #1f2f4d;
}

.info-page-body .brand-subtext {
  color: #6c7f99;
}

.info-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.info-back {
  color: #2f5f96;
  text-decoration: none;
  font-weight: 700;
}

.info-card {
  padding: 30px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(205, 226, 255, 0.92);
  box-shadow: 0 22px 44px rgba(102, 146, 214, 0.12);
}

.info-hero {
  margin-bottom: 20px;
}

.info-hero h1,
.info-section h2,
.info-section h3 {
  margin: 0;
  color: #20314c;
  font-family: var(--font-heading);
}

.info-hero h1 {
  margin-top: 14px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
}

.info-hero p,
.info-section p,
.info-section li {
  color: #53657f;
  line-height: 1.76;
}

.info-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-section {
  padding: 22px;
  border-radius: 22px;
  background: rgba(245, 249, 255, 0.86);
  border: 1px solid rgba(204, 226, 255, 0.88);
}

.info-section h2,
.info-section h3 {
  margin-bottom: 12px;
}

.info-section ul {
  margin: 0;
  padding-left: 18px;
}

.info-section li + li {
  margin-top: 10px;
}

.stacked-sections {
  display: grid;
  gap: 18px;
}

.hero-emblem {
  position: absolute;
  inset: 12% 10% 18% 10%;
  display: grid;
  place-items: center;
}

.hero-emblem::before {
  content: "";
  position: absolute;
  width: min(72%, 380px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.2) 0 12%, rgba(51, 204, 255, 0.14) 12% 38%, transparent 64%),
    radial-gradient(circle at 50% 50%, rgba(255, 99, 212, 0.24), transparent 62%);
  box-shadow:
    0 0 38px rgba(51, 204, 255, 0.22),
    0 0 90px rgba(123, 97, 255, 0.16);
}

.hero-emblem-core {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(100%, 320px);
  aspect-ratio: 1;
  padding: 34px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.2), transparent 32%),
    linear-gradient(180deg, rgba(12, 18, 40, 0.92), rgba(8, 14, 34, 0.78));
  border: 1px solid rgba(152, 224, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 30px 64px rgba(2, 7, 23, 0.46);
  text-align: center;
}

.hero-emblem-core::before,
.hero-emblem-core::after {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1px solid rgba(255, 209, 102, 0.28);
}

.hero-emblem-core::after {
  inset: -12%;
  border-color: rgba(255, 255, 255, 0.1);
  transform: rotate(12deg);
}

.hero-emblem-mark {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: clamp(4rem, 10vw, 6.2rem);
  font-weight: 800;
  line-height: 0.9;
  text-shadow:
    0 0 18px rgba(51, 204, 255, 0.34),
    0 0 40px rgba(123, 97, 255, 0.26);
}

.hero-emblem-core small {
  color: rgba(227, 243, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.hero-satellites {
  position: absolute;
  inset: 0;
}

.hero-satellite {
  position: absolute;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid rgba(151, 224, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 16px 28px rgba(2, 9, 26, 0.3);
  backdrop-filter: blur(14px);
}

.satellite-a {
  top: 4%;
  left: 14%;
}

.satellite-b {
  top: 18%;
  right: 4%;
}

.satellite-c {
  left: 2%;
  bottom: 26%;
}

.satellite-d {
  right: 12%;
  bottom: 20%;
}

.hero-type-marquee {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 10%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.hero-type-marquee span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(143, 221, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #eaf8ff;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.types-page-shell {
  width: min(100%, calc(var(--max-width) + 48px));
  margin: 0 auto;
  padding: 20px 24px 80px;
}

.types-page-body,
.personality-page-body {
  color: var(--ink);
}

.types-hero,
.personality-hero,
.group-section {
  position: relative;
  overflow: hidden;
  border-radius: 40px;
  border: 1px solid rgba(112, 206, 255, 0.14);
  box-shadow: var(--shadow);
}

.types-hero,
.personality-hero {
  padding: 26px 32px 42px;
  background:
    linear-gradient(145deg, rgba(8, 13, 31, 0.82), rgba(9, 15, 36, 0.94)),
    radial-gradient(circle at top, rgba(51, 204, 255, 0.08), transparent 55%);
}

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

.types-hero::before,
.personality-hero::before {
  background:
    linear-gradient(115deg, rgba(4, 8, 21, 0.9), rgba(4, 8, 21, 0.42)),
    url("hero-vibe.png") center center / cover no-repeat;
  opacity: 0.24;
}

.types-hero::after,
.personality-hero::after {
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.06), transparent 18%),
    radial-gradient(circle at 80% 16%, rgba(51, 204, 255, 0.14), transparent 20%),
    radial-gradient(circle at 72% 62%, rgba(255, 99, 212, 0.16), transparent 22%);
}

.types-hero-grid,
.personality-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 32px;
  align-items: center;
}

.types-hero-copy h1,
.personality-copy h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2.9rem, 6vw, 5rem);
  line-height: 0.98;
  color: #ffffff;
  text-shadow:
    0 0 14px rgba(51, 204, 255, 0.28),
    0 0 36px rgba(123, 97, 255, 0.18);
}

.types-hero-copy p,
.personality-lead {
  max-width: 62ch;
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.78;
}

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

.types-main,
.personality-main {
  display: grid;
  gap: 34px;
  margin-top: 34px;
}

.types-stage,
.persona-stage {
  position: relative;
  min-height: 500px;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(10, 16, 38, 0.76), rgba(8, 13, 30, 0.94)),
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.08), transparent 22%);
  border: 1px solid rgba(144, 221, 255, 0.12);
  overflow: hidden;
}

.types-stage::before,
.persona-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.08), transparent 16%),
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(51, 204, 255, 0.04));
}

.types-stage-glow,
.persona-stage-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(16px);
  animation: pulseGlow 7s ease-in-out infinite;
}

.types-stage .glow-a,
.persona-stage .glow-a {
  width: 220px;
  height: 220px;
  top: 6%;
  left: 8%;
  background: rgba(255, 99, 212, 0.18);
}

.types-stage .glow-b,
.persona-stage .glow-b {
  width: 250px;
  height: 250px;
  right: 2%;
  bottom: 10%;
  background: rgba(51, 204, 255, 0.18);
}

.types-stage-core,
.persona-core {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  width: min(82%, 360px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 34px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(17, 24, 52, 0.9), rgba(8, 14, 33, 0.88));
  border: 1px solid rgba(154, 226, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 34px 72px rgba(2, 8, 23, 0.48);
}

.types-stage-core::before,
.persona-core::before,
.types-stage-core::after,
.persona-core::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.types-stage-core::before,
.persona-core::before {
  inset: -12%;
  border: 1px solid rgba(255, 209, 102, 0.26);
  transform: rotate(-10deg);
}

.types-stage-core::after,
.persona-core::after {
  inset: 10%;
  border: 1px solid rgba(151, 224, 255, 0.12);
}

.types-stage-core span,
.persona-code {
  display: block;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: clamp(4rem, 10vw, 6.4rem);
  font-weight: 800;
  line-height: 0.9;
}

.types-stage-core small {
  color: rgba(229, 244, 255, 0.76);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.types-stage-rings,
.persona-badges {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 8%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.types-stage-rings span,
.persona-badge {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(143, 221, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #effaff;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.types-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.universe-pill {
  display: grid;
  gap: 6px;
  padding: 18px 18px 20px;
  border-radius: 24px;
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(10, 16, 36, 0.86), rgba(8, 14, 31, 0.94)),
    radial-gradient(circle at top right, var(--group-soft), transparent 40%);
  border: 1px solid rgba(136, 218, 255, 0.12);
  box-shadow: var(--shadow);
}

.universe-pill strong,
.type-card-copy h3,
.detail-card h3,
.related-card strong,
.letter-card strong,
.persona-core strong,
.persona-group {
  color: #ffffff;
  font-family: var(--font-heading);
}

.universe-pill strong {
  font-size: 1rem;
}

.universe-pill span {
  color: rgba(227, 241, 252, 0.76);
  font-size: 0.92rem;
  line-height: 1.6;
}

.group-stack {
  display: grid;
  gap: 30px;
}

.group-section {
  padding: 32px;
  background:
    linear-gradient(180deg, rgba(8, 13, 31, 0.8), rgba(8, 13, 31, 0.92)),
    radial-gradient(circle at top right, rgba(51, 204, 255, 0.06), transparent 34%);
}

.group-header {
  max-width: 780px;
  margin-bottom: 24px;
}

.group-kicker,
.type-card-kicker,
.detail-kicker {
  margin: 0 0 10px;
  color: #91e7ff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.group-header h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  line-height: 1.08;
}

.group-header p,
.type-card-copy p,
.detail-card p,
.letter-card p,
.related-card p,
.persona-core p,
.persona-foot p {
  color: var(--muted);
  line-height: 1.74;
}

.type-card-grid,
.detail-grid,
.related-grid {
  display: grid;
  gap: 18px;
}

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

.type-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding: 20px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(12, 19, 43, 0.92), rgba(9, 15, 34, 0.9)),
    radial-gradient(circle at top right, var(--group-soft), transparent 36%);
  border: 1px solid rgba(138, 218, 255, 0.12);
  box-shadow: 0 24px 54px rgba(3, 7, 24, 0.42);
}

.type-card-stage {
  position: relative;
  min-height: 220px;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(17, 24, 52, 0.92), rgba(9, 15, 34, 0.84)),
    radial-gradient(circle at top, var(--group-soft), transparent 44%);
  border: 1px solid rgba(146, 221, 255, 0.12);
}

.type-card-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 8, 21, 0.08), rgba(4, 8, 21, 0.72)),
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.16), transparent 34%);
  z-index: 1;
}

.type-card-character {
  position: absolute;
  inset: 10px 8px 0;
  z-index: 0;
  width: calc(100% - 16px);
  height: calc(100% - 10px);
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 20px 26px rgba(0, 0, 0, 0.32));
}

.type-card-aura {
  position: absolute;
  inset: 18% 18%;
  z-index: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 58%),
    radial-gradient(circle at 50% 50%, var(--group-glow), transparent 68%);
  filter: blur(2px);
}

.type-card-code,
.type-card-alias {
  position: absolute;
  left: 18px;
  right: 18px;
  z-index: 2;
}

.type-card-code {
  top: 22px;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.type-card-alias {
  bottom: 22px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  color: #effaff;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.type-card-copy {
  display: grid;
  align-content: start;
}

.type-card-copy h3,
.detail-card h3,
.related-card strong {
  margin: 0;
  font-size: 1.32rem;
  line-height: 1.14;
}

.type-card-points,
.detail-list {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.72;
}

.type-card-points li + li,
.detail-list li + li {
  margin-top: 9px;
}

.type-card-link,
.related-card {
  margin-top: 18px;
  text-decoration: none;
}

.type-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--group-accent-alt), var(--group-accent));
  color: #ffffff;
  font-weight: 800;
  width: fit-content;
}

.career-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: start;
  margin-top: 22px;
  padding: 22px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(12, 19, 43, 0.92), rgba(9, 15, 34, 0.9)),
    radial-gradient(circle at top right, var(--group-soft), transparent 38%);
  border: 1px solid rgba(138, 218, 255, 0.12);
  box-shadow: 0 24px 54px rgba(3, 7, 24, 0.34);
}

.career-panel h3 {
  margin: 0;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.28rem;
  line-height: 1.2;
}

.career-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.career-list li {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(143, 221, 255, 0.14);
  color: #eaf8ff;
  font-weight: 700;
  line-height: 1.4;
}

.persona-core {
  top: 22px;
  left: 22px;
  z-index: 2;
  width: min(58%, 320px);
  aspect-ratio: auto;
  transform: none;
  place-items: start;
  padding: 20px;
  border-radius: 24px;
  text-align: left;
}

.persona-core strong {
  margin-top: 10px;
  font-size: 1.2rem;
}

.persona-core p {
  margin: 10px 0 0;
}

.persona-core::before,
.persona-core::after {
  display: none;
}

.persona-character {
  position: absolute;
  left: 50%;
  bottom: -8px;
  z-index: 1;
  width: min(92%, 520px);
  height: 92%;
  object-fit: contain;
  object-position: center bottom;
  transform: translateX(-50%);
  filter:
    drop-shadow(0 34px 40px rgba(0, 0, 0, 0.44))
    drop-shadow(0 0 28px rgba(51, 204, 255, 0.14));
}

.persona-badges,
.persona-foot {
  z-index: 2;
}

.persona-foot {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 20%;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(143, 221, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.persona-group {
  display: block;
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.letters-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.letter-card,
.detail-card,
.related-card {
  padding: 22px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(12, 19, 43, 0.92), rgba(9, 15, 34, 0.9)),
    radial-gradient(circle at top right, var(--page-accent-soft, rgba(51, 204, 255, 0.08)), transparent 38%);
  border: 1px solid rgba(138, 218, 255, 0.12);
  box-shadow: 0 24px 54px rgba(3, 7, 24, 0.42);
}

.career-detail-card {
  background:
    linear-gradient(180deg, rgba(12, 19, 43, 0.94), rgba(9, 15, 34, 0.92)),
    radial-gradient(circle at top right, var(--page-accent-soft, rgba(51, 204, 255, 0.08)), transparent 44%);
}

.compact-career-list {
  margin-top: 16px;
}

.letter-card-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 58px;
  margin-bottom: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--page-accent-alt, #33ccff), var(--page-accent, #7b61ff));
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
}

.detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
}

.related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.related-card {
  display: grid;
  gap: 10px;
}

.related-card span {
  color: #91e7ff;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .types-hero-grid,
  .personality-hero-grid,
  .type-card,
  .detail-grid,
  .career-panel,
  .detail-cta-card {
    grid-template-columns: 1fr;
  }

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

  .type-card-grid {
    grid-template-columns: 1fr;
  }

  .hero-emblem {
    inset: 10% 12% 18% 12%;
  }
}

@media (max-width: 760px) {
  .types-page-shell {
    padding: 12px 14px 56px;
  }

  .types-hero,
  .personality-hero,
  .group-section {
    padding: 22px;
  }

  .types-hero-stats,
  .types-rail,
  .letters-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .types-stage,
  .persona-stage {
    min-height: 390px;
  }

  .types-stage-core,
  .persona-core {
    width: min(84%, 270px);
    padding: 24px;
  }

  .persona-core {
    left: 16px;
    right: 16px;
    width: auto;
    padding: 18px;
  }

  .persona-character {
    width: min(98%, 420px);
    height: 76%;
  }

  .types-stage-rings,
  .persona-badges {
    left: 4%;
    right: 4%;
    bottom: 6%;
  }

  .hero-emblem {
    inset: 12% 4% 22% 4%;
  }

  .hero-satellite {
    padding: 9px 12px;
    font-size: 0.74rem;
  }

  .hero-type-marquee {
    left: 2%;
    right: 2%;
    bottom: 6%;
  }

  .hero-type-marquee span,
  .persona-badge,
  .types-stage-rings span {
    min-height: 36px;
    padding: 0 14px;
    font-size: 0.82rem;
  }

  .detail-cta-card {
    padding: 20px;
  }

  .detail-cta-button {
    width: 100%;
    white-space: normal;
    text-align: center;
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes footerRise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(1);
  }
  50% {
    opacity: 0.74;
    transform: scale(1.06);
  }
}

@media (max-width: 1100px) {
  .hero-grid,
  .results-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-top: 0;
  }

  .hero-visual {
    min-height: 560px;
  }

  .summary-card {
    top: 18%;
    right: 6%;
  }

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

  .footer-columns,
  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding: 12px 14px 56px;
  }

  .hero,
  .section-block,
  .assessment-shell,
  .question-card,
  .results-hero {
    padding: 22px;
  }

  .topbar,
  .question-head,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-links {
    gap: 14px;
    flex-wrap: wrap;
  }

  .brand-logo {
    width: 58px;
    height: 58px;
  }

  .brand-text {
    font-size: 0.88rem;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2.5rem, 14vw, 4rem);
  }

  .hero-stats,
  .dimension-grid,
  .intro-grid,
  .footer-columns,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 470px;
  }

  .summary-card {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    margin-top: 110px;
  }

  .orbit-a {
    width: 290px;
    height: 132px;
    left: 6%;
  }

  .orbit-b {
    width: 250px;
    height: 118px;
    left: 16%;
  }

  .chip-b {
    left: auto;
    right: 0;
    bottom: 19%;
  }

  .scale-options {
    gap: 8px;
  }

  .scale-option {
    --button-size: 34px !important;
  }

  .type-summary {
    grid-template-columns: 1fr;
  }

  .footer-shell {
    padding: 22px;
  }

  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .info-page-shell {
    padding: 16px 14px 56px;
  }

  .info-card {
    padding: 22px;
  }
}

@media (max-width: 560px) {
  .page-shell,
  .types-page-shell,
  .info-page-shell {
    width: 100%;
    max-width: 100%;
    padding: 10px 10px 44px;
  }

  .hero-grid,
  .types-hero-grid,
  .personality-hero-grid,
  .results-grid,
  .type-card,
  .detail-grid,
  .related-grid,
  .career-panel,
  .intro-grid,
  .dimension-grid,
  .footer-columns {
    min-width: 0;
    max-width: 100%;
  }

  .hero-grid > *,
  .types-hero-grid > *,
  .personality-hero-grid > *,
  .hero-copy,
  .section-heading,
  .assessment-intro,
  .question-screen,
  .results-screen,
  .type-card-copy,
  .metric-card,
  .detail-card,
  .footer-column,
  .footer-note {
    min-width: 0;
    max-width: 100%;
  }

  .hero,
  .types-hero,
  .personality-hero,
  .group-section {
    border-radius: 26px;
    padding: 18px;
  }

  .section-block {
    margin-top: 18px;
    padding: 16px;
    border-radius: 24px;
  }

  .assessment.section-block {
    padding: 12px;
  }

  .assessment-shell,
  .question-card,
  .results-hero,
  .metric-card,
  .intro-panel,
  .dimension-card,
  .footer-shell,
  .detail-cta-card {
    padding: 16px;
    border-radius: 22px;
  }

  .topbar {
    gap: 16px;
    margin-bottom: 28px;
  }

  .brand {
    min-width: 0;
    width: 100%;
  }

  .brand-logo {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 18px;
  }

  .brand-copy {
    min-width: 0;
  }

  .brand-text {
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    overflow-wrap: anywhere;
  }

  .brand-subtext {
    font-size: 0.66rem;
    letter-spacing: 0.08em;
  }

  .topbar-links {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    overflow: visible;
    padding: 0;
  }

  .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(140, 219, 255, 0.12);
    white-space: normal;
    text-align: center;
    font-size: 0.88rem;
  }

  .nav-link::after {
    display: none;
  }

  .eyebrow {
    margin-bottom: 14px;
    padding: 8px 12px;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    line-height: 1.45;
    white-space: normal;
  }

  .hero h1,
  .types-hero-copy h1,
  .personality-copy h1 {
    max-width: 9.8ch;
    font-size: clamp(1.9rem, 9.4vw, 2.55rem);
    line-height: 1.04;
    letter-spacing: -0.025em;
    overflow-wrap: break-word;
  }

  .hero-lead,
  .types-hero-copy p,
  .personality-lead,
  .section-heading p,
  .assessment-intro p,
  .question-hint,
  .metric-card p,
  .group-header p,
  .type-card-copy p,
  .detail-card p,
  .footer-note {
    max-width: 100%;
    font-size: 0.94rem;
    line-height: 1.68;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .hero-actions,
  .question-nav,
  .results-actions {
    width: 100%;
  }

  .primary-button,
  .secondary-button,
  .type-card-link,
  .detail-cta-button {
    width: 100%;
    min-height: 50px;
    padding: 0 18px;
    text-align: center;
    white-space: normal;
  }

  .hero-stats li {
    padding: 14px;
  }

  .hero-visual {
    min-height: 330px;
    margin-top: 10px;
    overflow: hidden;
  }

  .hero-stage {
    inset: 0;
    border-radius: 24px;
  }

  .hero-emblem-core {
    width: min(100%, 230px);
    padding: 22px;
  }

  .hero-emblem-mark {
    font-size: clamp(3.25rem, 18vw, 4.6rem);
  }

  .floating-chip,
  .hero-type-marquee {
    display: none;
  }

  .section-heading h2,
  .assessment-intro h2,
  .type-summary h2,
  .group-header h2 {
    font-size: clamp(1.55rem, 8vw, 2.2rem);
    line-height: 1.12;
  }

  .intro-grid {
    margin: 20px 0;
  }

  .question-head {
    gap: 12px;
  }

  .dimension-pill {
    width: 100%;
    justify-content: center;
    text-align: center;
    line-height: 1.35;
    white-space: normal;
  }

  .progress-track {
    margin: 14px 0 18px;
  }

  .question-card h3 {
    font-size: clamp(1.28rem, 6.4vw, 1.75rem);
    line-height: 1.24;
  }

  .question-index {
    min-width: 52px;
    min-height: 32px;
    margin-bottom: 12px;
    font-size: 0.72rem;
  }

  .scale-shell {
    margin-top: 24px;
  }

  .scale-labels {
    margin-bottom: 12px;
    font-size: 0.82rem;
  }

  .scale-options {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    justify-items: center;
    gap: 4px;
  }

  .scale-option {
    --button-size: clamp(24px, 7vw, 31px) !important;
    box-shadow: 0 8px 16px rgba(1, 7, 23, 0.3);
  }

  .question-nav {
    gap: 10px;
  }

  .type-summary,
  .axis-header,
  .axis-footer,
  .footer-meta,
  .footer-mini-links {
    align-items: flex-start;
  }

  .axis-header,
  .axis-footer {
    flex-wrap: wrap;
  }

  .meta-chip {
    width: 100%;
    min-height: 34px;
    justify-content: center;
    text-align: center;
  }

  .detail-cta-copy h3 {
    font-size: 1.35rem;
  }

  .type-card {
    gap: 14px;
    padding: 14px;
    border-radius: 22px;
  }

  .type-card-stage {
    min-height: 250px;
  }

  .type-card-code {
    font-size: clamp(2.25rem, 13vw, 3rem);
  }

  .career-list li {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .persona-stage,
  .types-stage {
    min-height: 360px;
  }

  .persona-foot {
    left: 5%;
    right: 5%;
    bottom: 16%;
    padding: 14px;
  }

  .site-footer {
    margin-top: 28px;
  }
}

@media (max-width: 380px) {
  .page-shell,
  .types-page-shell,
  .info-page-shell {
    padding-inline: 8px;
  }

  .hero,
  .section-block,
  .types-hero,
  .personality-hero,
  .group-section {
    padding: 14px;
  }

  .assessment.section-block {
    padding: 10px;
  }

  .assessment-shell,
  .question-card,
  .results-hero,
  .metric-card,
  .footer-shell {
    padding: 14px;
  }

  .brand-logo {
    width: 46px;
    height: 46px;
  }

  .brand-text {
    font-size: 0.76rem;
  }

  .brand-subtext {
    font-size: 0.6rem;
  }

  .hero h1,
  .types-hero-copy h1,
  .personality-copy h1 {
    font-size: clamp(1.85rem, 10.5vw, 2.45rem);
  }

  .question-card h3 {
    font-size: clamp(1.16rem, 6.6vw, 1.48rem);
  }

  .scale-option {
    --button-size: clamp(22px, 6.8vw, 27px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
