/* ==========================================================================
   ARQUIVO DE ORIGEM — Experience Layer
   Cinematic dossier · obsidian + gold · disruptive motion
   ========================================================================== */

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

:root {
  --void: #030304;
  --deep: #0a0b10;
  --surface: rgba(18, 19, 26, 0.72);
  --surface-border: rgba(212, 168, 83, 0.15);
  --gold: #d4a853;
  --gold-bright: #f2d08a;
  --gold-dim: rgba(212, 168, 83, 0.35);
  --cyan: #7ecfc4;
  --text: #ece8df;
  --text-muted: #7a7770;
  --text-dim: #4a4844;
  --danger: #c45c4a;
  --font-display: 'Bodoni Moda', 'Georgia', serif;
  --font-ui: 'Outfit', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --header-h: 64px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  background: var(--void);
  color: var(--text);
  font-family: var(--font-ui);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Ambient layers --- */
#atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.scan-sweep {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(212, 168, 83, 0.03) 50%,
    transparent 100%
  );
  background-size: 100% 200%;
  animation: scanSweep 8s linear infinite;
  opacity: 0;
  transition: opacity 0.6s;
}

body.is-analyzing .scan-sweep {
  opacity: 1;
}

@keyframes scanSweep {
  0% { background-position: 0 -100%; }
  100% { background-position: 0 100%; }
}

.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 3;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}

@media (hover: hover) and (pointer: fine) {
  .cursor-glow { opacity: 1; }
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(3, 3, 4, 0.9) 0%, transparent 100%);
  backdrop-filter: blur(8px);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-icon {
  color: var(--gold);
  font-size: 1.1rem;
  animation: brandPulse 3s ease-in-out infinite;
}

@keyframes brandPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.brand-name {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.sound-toggle {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--surface-border);
  border-radius: 50%;
  background: rgba(8, 9, 14, 0.6);
  color: var(--text-dim);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.25s,
    color 0.25s,
    box-shadow 0.25s,
    transform 0.25s var(--ease-out-expo);
}

.sound-toggle:hover {
  border-color: var(--gold-dim);
  color: var(--gold-bright);
}

.sound-toggle--on {
  border-color: var(--gold-dim);
  color: var(--gold-bright);
  box-shadow: 0 0 16px rgba(212, 168, 83, 0.2);
}

.sound-toggle__icon {
  font-size: 0.85rem;
  line-height: 1;
}

.sound-toggle__icon--on {
  display: none;
}

.sound-toggle--on .sound-toggle__icon--off {
  display: none;
}

.sound-toggle--on .sound-toggle__icon--on {
  display: inline;
}

.ambient-loop {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: statusBlink 2s ease-in-out infinite;
}

@keyframes statusBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* --- App shell --- */
.app {
  position: relative;
  z-index: 10;
  min-height: 100dvh;
  padding-top: var(--header-h);
  isolation: isolate;
}

.screen {
  position: absolute;
  inset: 0;
  top: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 4rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(24px) scale(0.98);
  transition:
    opacity 0.7s var(--ease-out-expo),
    transform 0.7s var(--ease-out-expo),
    visibility 0.7s;
}

.screen--active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.screen--exit {
  opacity: 0;
  transform: translateY(-20px) scale(1.02);
}

.screen-inner {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

/* --- Landing --- */
.landing-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.landing-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) 0.2s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero-line {
  display: block;
}

.hero-line--accent {
  font-style: italic;
  color: var(--gold-bright);
}

.hero-title .word {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(20px);
}

.hero-title .word--visible {
  animation: wordReveal 0.9s var(--ease-out-expo) forwards;
}

@keyframes wordReveal {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-muted);
  max-width: 28em;
  margin: 0 auto 2.5rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) 1.2s forwards;
}

.hero-actions {
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) 1.5s forwards;
}

.hero-meta {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.trust-line {
  margin-top: 3rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) 1.8s forwards;
}

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

.landing-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(90vw, 500px);
  height: min(90vw, 500px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.orbit-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(212, 168, 83, 0.08);
  border-radius: 50%;
}

.orbit-ring--1 {
  animation: orbitSpin 40s linear infinite;
}

.orbit-ring--2 {
  inset: 15%;
  animation: orbitSpin 25s linear infinite reverse;
}

.orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%);
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 40px var(--gold), 0 0 80px rgba(212, 168, 83, 0.3);
}

@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* --- Buttons --- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border: none;
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s;
}

.btn--primary {
  padding: 1.1rem 2.2rem;
  background: linear-gradient(135deg, var(--gold) 0%, #a8842f 100%);
  color: var(--void);
  border-radius: 2px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(212, 168, 83, 0.3),
    0 8px 32px rgba(212, 168, 83, 0.25);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(212, 168, 83, 0.5),
    0 16px 48px rgba(212, 168, 83, 0.35);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 60%
  );
  transform: translateX(-100%);
  animation: btnShine 4s ease-in-out infinite;
}

@keyframes btnShine {
  0%, 80%, 100% { transform: translateX(-100%); }
  40% { transform: translateX(100%); }
}

.btn-arrow {
  transition: transform 0.3s var(--ease-out-expo);
}

.btn--primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn--wide {
  width: 100%;
  margin-top: 1.5rem;
}

.btn--ghost {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.btn--ghost:hover {
  color: var(--text);
}

.btn--pulse {
  animation: ctaPulse 2.5s ease-in-out infinite;
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(212, 168, 83, 0.3), 0 8px 32px rgba(212, 168, 83, 0.2); }
  50% { box-shadow: 0 0 0 1px rgba(212, 168, 83, 0.6), 0 8px 48px rgba(212, 168, 83, 0.4); }
}

/* --- Quiz --- */
.quiz-inner {
  animation: fadeUp 0.8s var(--ease-out-expo);
}

.step-indicator {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--gold-dim);
  margin-bottom: 1.5rem;
}

.step-current {
  color: var(--gold-bright);
  font-size: 1.1rem;
}

.quiz-promise {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 3vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
  padding-left: 1rem;
  border-left: 2px solid var(--gold-dim);
  line-height: 1.5;
}

.quiz-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 400;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.field-wrap {
  position: relative;
  margin-bottom: 0.5rem;
}

.field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.field-input {
  width: 100%;
  padding: 1.2rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--surface-border);
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2rem);
  outline: none;
  transition: border-color 0.3s;
}

.field-input--hero {
  letter-spacing: 0.02em;
}

.field-input--date {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
}

.field-input:focus {
  border-color: var(--gold);
}

.field-input:focus + .field-glow {
  opacity: 1;
}

.field-glow {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.4s;
  box-shadow: 0 0 20px var(--gold-dim);
}

.field-hint {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.field-error {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--danger);
}

/* --- Analysis stage --- */
#screen-analysis.screen--active {
  align-items: stretch;
}

.analysis-stage {
  width: 100%;
  max-width: 520px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - var(--header-h) - 4rem);
  gap: 2.5rem;
}

.analysis-core {
  position: relative;
  width: 220px;
  height: 220px;
}

.core-rings {
  position: absolute;
  inset: 0;
}

.core-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(212, 168, 83, 0.2);
  border-radius: 50%;
}

.core-ring--a {
  animation: coreSpin 6s linear infinite;
  border-top-color: var(--gold);
}

.core-ring--b {
  inset: 12%;
  animation: coreSpin 4s linear infinite reverse;
  border-right-color: var(--cyan);
}

.core-ring--c {
  inset: 24%;
  animation: coreSpin 8s linear infinite;
  border-bottom-color: var(--gold-dim);
}

@keyframes coreSpin {
  to { transform: rotate(360deg); }
}

.core-center {
  position: absolute;
  inset: 30%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.core-symbol {
  position: absolute;
  font-size: 1.5rem;
  color: var(--gold);
  animation: symbolPulse 1.5s ease-in-out infinite;
}

@keyframes symbolPulse {
  0%, 100% { opacity: 0.5; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
}

.core-progress {
  position: relative;
  width: 100%;
  height: 100%;
}

.progress-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-ring__bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 2;
}

.progress-ring__fill {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 276.46;
  stroke-dashoffset: 276.46;
  transition: stroke-dashoffset 0.4s var(--ease-out-expo);
  filter: drop-shadow(0 0 6px var(--gold-dim));
}

.progress-percent {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--gold-bright);
}

.analysis-name-block {
  text-align: center;
}

.analysis-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--text-dim);
  display: block;
  margin-bottom: 0.5rem;
}

.analysis-name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--text);
}

.analysis-name-scramble {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--gold-dim);
  letter-spacing: 0.15em;
  min-height: 1.5em;
  margin-top: 0.25rem;
}

.name-char {
  display: inline-block;
  opacity: 0;
  animation: charPop 0.4s var(--ease-out-expo) forwards;
}

@keyframes charPop {
  from { opacity: 0; transform: translateY(8px); color: var(--gold); }
  to { opacity: 1; transform: translateY(0); color: var(--text-muted); }
}

.analysis-log {
  width: 100%;
  min-height: 120px;
}

.log-line {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  padding: 0.35rem 0;
  opacity: 0;
  transform: translateX(-8px);
  animation: logIn 0.5s var(--ease-out-expo) forwards;
}

.log-line--active {
  color: var(--gold-bright);
}

.log-line--done {
  color: var(--text-muted);
}

@keyframes logIn {
  to { opacity: 1; transform: translateX(0); }
}

/* --- Reveal pipeline (entrega passo a passo) --- */
#screen-reveal.screen--active {
  align-items: stretch;
  padding: clamp(1rem, 3vw, 2rem);
}

body.is-revealing .site-footer {
  display: none;
}

.reveal-pipeline {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  min-height: calc(100dvh - var(--header-h) - 2rem);
  display: flex;
  flex-direction: column;
  padding-bottom: 2rem;
}

.reveal-track {
  margin-bottom: 2rem;
  flex-shrink: 0;
}

.reveal-track__labels {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.reveal-track__title {
  color: var(--text-dim);
}

.reveal-track__pct {
  color: var(--gold-bright);
  font-size: 0.85rem;
}

.reveal-track__rail {
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.reveal-track__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-bright));
  box-shadow: 0 0 12px var(--gold-dim);
  transition: width 0.8s var(--ease-out-expo);
}

.reveal-track__hint {
  margin-top: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  min-height: 1.2em;
  transition: opacity 0.4s;
}

.reveal-stage {
  flex: 1;
  position: relative;
  min-height: 320px;
}

.reveal-step {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(20px);
  filter: blur(6px);
  transition:
    opacity 0.55s var(--ease-out-expo),
    transform 0.55s var(--ease-out-expo),
    filter 0.55s var(--ease-out-expo);
  pointer-events: none;
}

.reveal-step--active {
  opacity: 1;
  transform: none;
  filter: none;
  pointer-events: auto;
}

.reveal-step--exit {
  opacity: 0;
  transform: translateY(-16px) scale(0.98);
  filter: blur(4px);
}

.reveal-step--enter {
  opacity: 0;
}

.rs-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.25rem;
}

.rs-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.rs-title span {
  font-style: italic;
  color: var(--gold-bright);
}

.rs-body {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.rs-stat {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--gold-dim);
  padding: 0.75rem 1rem;
  border: 1px solid var(--surface-border);
  background: rgba(212, 168, 83, 0.04);
}

.rs-pulse {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold-bright);
  letter-spacing: 0.06em;
}

.rs-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 16px var(--gold);
  animation: pulseDot 1.2s ease-in-out infinite;
}

.rs-signals {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.25rem;
}

.rs-signal {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(126, 207, 196, 0.18);
  background: rgba(126, 207, 196, 0.05);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.rs-signal-mark {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(126, 207, 196, 0.12);
  color: var(--cyan);
  font-size: 0.7rem;
  font-weight: 600;
}

@keyframes pulseDot {
  0%, 100% { opacity: 0.4; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}

.rs-quote {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3.2vw, 1.45rem);
  font-style: italic;
  line-height: 1.55;
  color: var(--text);
  border-left: 2px solid var(--gold-dim);
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
}

.rs-quote--hook {
  border-left-color: var(--cyan);
  min-height: 4.5em;
}

.rs-quote--full {
  font-size: clamp(1.05rem, 2.8vw, 1.3rem);
}

.rs-question {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  font-style: italic;
}

.rs-ellipsis {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold-dim);
  letter-spacing: 0.15em;
}

.rs-kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.rs-trait-reveal {
  margin-bottom: 1.25rem;
}

.rs-trait-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--gold-bright);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gold-dim);
  animation: traitGlow 2s ease-in-out infinite;
}

@keyframes traitGlow {
  0%, 100% { text-shadow: 0 0 20px transparent; }
  50% { text-shadow: 0 0 24px rgba(212, 168, 83, 0.35); }
}

.rs-trait-locked {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: 0.85rem 1rem;
  border: 1px dashed var(--surface-border);
  margin-bottom: 0.75rem;
}

.rs-lock-icon {
  color: var(--gold-dim);
  font-size: 0.9rem;
}

.rs-muted {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.rs-blur-box {
  position: relative;
  padding: 1.25rem;
  border: 1px solid var(--surface-border);
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
  margin-top: 0.5rem;
}

.rs-blur-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
}

.rs-blur-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(
    180deg,
    rgba(5, 5, 8, 0.3) 0%,
    rgba(5, 5, 8, 0.85) 100%
  );
  text-align: center;
  padding: 1rem;
}

.rs-blur-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.rs-blur-cta {
  font-size: 0.8rem;
  color: var(--gold-bright);
  font-style: italic;
}

.rs-dominant-number {
  text-align: center;
  padding: 2rem 1rem;
  margin: 1rem 0;
  border: 1px solid var(--gold-dim);
  background: radial-gradient(circle at 50% 50%, rgba(212, 168, 83, 0.08) 0%, transparent 70%);
  animation: dominantPulse 3s ease-in-out infinite;
}

@keyframes dominantPulse {
  0%, 100% { box-shadow: inset 0 0 40px rgba(212, 168, 83, 0.05); }
  50% { box-shadow: inset 0 0 60px rgba(212, 168, 83, 0.12); }
}

.rs-dominant-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(4rem, 15vw, 6rem);
  line-height: 1;
  color: var(--gold-bright);
  text-shadow: 0 0 40px rgba(212, 168, 83, 0.4);
}

.rs-dominant-label {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.rs-vault-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.rs-vault-card {
  position: relative;
  padding: 1rem 0.75rem;
  border: 1px solid var(--surface-border);
  background: rgba(8, 9, 14, 0.9);
  text-align: center;
  overflow: hidden;
}

.rs-vault-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 8px,
    rgba(255, 255, 255, 0.02) 8px,
    rgba(255, 255, 255, 0.02) 9px
  );
  pointer-events: none;
}

.rs-vault-lock {
  font-size: 0.75rem;
  color: var(--gold-dim);
  margin-bottom: 0.35rem;
}

.rs-vault-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--text-dim);
  letter-spacing: 0.2em;
  filter: blur(2px);
}

.rs-vault-label {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0.35rem 0;
}

.rs-vault-teaser {
  font-size: 0.65rem;
  color: var(--text-dim);
  line-height: 1.4;
  font-style: italic;
}

.rs-includes {
  padding: 1rem 1.25rem;
  border-left: 2px solid var(--gold-dim);
  background: rgba(212, 168, 83, 0.03);
}

.rs-includes-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.rs-includes ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rs-includes li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}

.rs-includes li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold-dim);
  font-size: 0.75rem;
}

.rs-urgency {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--cyan);
  margin: 1rem 0;
  padding: 0.75rem;
  border: 1px solid rgba(126, 207, 196, 0.2);
  background: rgba(126, 207, 196, 0.04);
}

.rs-disclaimer {
  font-size: 0.65rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin: 1rem 0;
}

.rs-restart {
  margin-top: 0.5rem;
}

.reveal-nav {
  flex-shrink: 0;
  padding-top: 1.5rem;
  margin-top: auto;
  transition: opacity 0.4s var(--ease-out-expo);
}

.reveal-nav--locked .btn--primary {
  opacity: 0.45;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

.reveal-nav--locked .btn--primary .btn-shine {
  animation: none;
}

.reveal-step--active .rs-stagger {
  animation: rsStaggerIn 0.7s var(--ease-out-expo) forwards;
  opacity: 0;
}

.reveal-step--active .rs-stagger--2 { animation-delay: 0.12s; }
.reveal-step--active .rs-stagger--3 { animation-delay: 0.24s; }
.reveal-step--active .rs-stagger--4 { animation-delay: 0.36s; }

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

.reveal-step--active .rs-badge {
  animation: badgeIn 0.6s var(--ease-out-expo) forwards;
}

@keyframes badgeIn {
  from { opacity: 0; letter-spacing: 0.4em; }
  to { opacity: 1; letter-spacing: 0.28em; }
}

.reveal-step--active .rs-title {
  animation: titleIn 0.65s var(--ease-out-expo) 0.08s forwards;
  opacity: 0;
}

@keyframes titleIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.reveal-nav__micro {
  text-align: center;
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.rs-life-mirror {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  padding-left: 0.75rem;
  border-left: 2px solid var(--gold-dim);
}

.rs-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.rs-choice {
  flex: 1 1 140px;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--surface-border);
  border-radius: 2px;
  background: rgba(12, 13, 18, 0.6);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  cursor: pointer;
  transition:
    border-color 0.3s var(--ease-out-expo),
    background 0.3s var(--ease-out-expo),
    box-shadow 0.3s var(--ease-out-expo);
}

.rs-choice:hover {
  border-color: var(--gold-dim);
  background: rgba(212, 168, 83, 0.06);
}

.rs-choice--selected {
  border-color: var(--gold);
  background: rgba(212, 168, 83, 0.1);
  box-shadow: 0 0 20px rgba(212, 168, 83, 0.12);
}

.rs-validation-feedback {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--cyan);
  line-height: 1.5;
}

.reveal-flash {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(212, 168, 83, 0.18) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  z-index: 50;
}

.reveal-flash.is-active {
  animation: flashFade 1.2s var(--ease-out-expo) forwards;
}

@keyframes flashFade {
  0% { opacity: 0; }
  20% { opacity: 1; }
  100% { opacity: 0; }
}

/* Legacy reveal (unused) — kept minimal */
.reveal-inner { max-width: 680px; }

@media (max-width: 480px) {
  .rs-vault-grid { grid-template-columns: 1fr; }
  .reveal-stage { min-height: 280px; }
}

/* --- Footer --- */
.site-footer {
  position: relative;
  z-index: 10;
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 3rem;
  text-align: center;
}

.site-footer p {
  font-size: 0.65rem;
  color: var(--text-dim);
  max-width: 36em;
  margin: 0 auto;
  line-height: 1.5;
}

/* --- Utilities --- */
.hide { display: none !important; }

@media (max-width: 480px) {
  .hero-title { font-size: 2.1rem; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .analysis-core { width: 180px; height: 180px; }
}
