/* ============================================
   RAIO-X DA FIDELIDADE — styles.css
   ============================================ */

:root {
  --bg:        #0B0B0F;
  --bg2:       #14141A;
  --card:      #1A1A22;
  --card2:     #1E1E28;
  --text:      #FFFFFF;
  --text2:     #B0B3B8;
  --text3:     #6B6F75;
  --cta:       #E50914;
  --cta-hover: #FF1F1F;
  --alert:     #FF3B30;
  --border:    rgba(255,255,255,0.07);
  --glow:      rgba(229,9,20,0.15);
  --radius:    14px;
  --radius-lg: 20px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes glowPulse {
  0%, 100% { opacity: .5; transform: scale(1); }
  50%       { opacity: .9; transform: scale(1.1); }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229,9,20,.4); }
  50%       { box-shadow: 0 0 0 8px rgba(229,9,20,0); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.animate-in {
  opacity: 0;
  animation: fadeUp .6s ease forwards;
}

/* ── HEADER ── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: linear-gradient(to bottom, rgba(11,11,15,.95), transparent);
  backdrop-filter: blur(4px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: .12em;
  color: var(--text);
}
.logo-icon {
  color: var(--cta);
  font-size: 22px;
}
.header-badge {
  font-size: 12px;
  color: var(--text2);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 100px;
}

/* ── LANDING BG ── */
.landing-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  animation: glowPulse 6s ease-in-out infinite;
}
.bg-glow-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(229,9,20,.12) 0%, transparent 70%);
  top: -100px; left: -100px;
  animation-delay: 0s;
}
.bg-glow-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(229,9,20,.08) 0%, transparent 70%);
  bottom: 0; right: -80px;
  animation-delay: 3s;
}
.bg-noise {
  position: absolute;
  inset: 0;
  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.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: .4;
}

/* ── LANDING MAIN ── */
.landing-main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 60px;
  max-width: 720px;
  margin: 0 auto;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(229,9,20,.12);
  border: 1px solid rgba(229,9,20,.3);
  color: #FF6B6B;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  letter-spacing: .04em;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--cta);
  border-radius: 50%;
  animation: badgePulse 2s ease infinite;
}

.headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
  max-width: 640px;
}
.headline em {
  font-style: italic;
  color: var(--cta);
}

.subheadline {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text2);
  font-weight: 300;
  margin-bottom: 32px;
  line-height: 1.6;
  max-width: 480px;
}

.trust-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 36px;
}
.trust-item {
  font-size: 13px;
  color: var(--text3);
  font-weight: 400;
}
.trust-sep {
  color: var(--text3);
  opacity: .4;
}

.cta-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--cta);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 600;
  padding: 16px 36px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 8px 32px rgba(229,9,20,.35);
  letter-spacing: .01em;
}
.cta-main:hover {
  background: var(--cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(229,9,20,.5);
}
.cta-main:active { transform: translateY(0); }

.cta-sub {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text3);
}

/* ── SOCIAL PROOF ── */
.social-proof {
  position: relative;
  z-index: 1;
  padding: 60px 24px 80px;
  max-width: 1000px;
  margin: 0 auto;
}
.proof-title {
  text-align: center;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 28px;
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.proof-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.proof-stars {
  color: #F5A623;
  font-size: 13px;
  margin-bottom: 12px;
  letter-spacing: 2px;
}
.proof-quote {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text2);
  font-style: italic;
  margin-bottom: 14px;
}
.proof-author {
  font-size: 12px;
  color: var(--text3);
  font-weight: 500;
}

/* ── FOOTER ── */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text3);
  line-height: 2;
}
.footer a {
  color: var(--text3);
  text-decoration: none;
}
.footer a:hover { color: var(--text2); }

/* ══════════════════════════════════════════
   POPUP OVERLAY
   ══════════════════════════════════════════ */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow-y: auto;
}
.popup-overlay.hidden { display: none; }

.popup-container {
  position: relative;
  width: 100%;
  max-width: 560px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 0 40px;
}

.popup-close {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1100;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border);
  color: var(--text2);
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.popup-close:hover { background: rgba(255,255,255,.15); }

/* ── INTRO FLOW ── */
.intro-flow {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0 24px;
}

.intro-progress-wrap {
  padding: 20px 0 0;
}
.intro-progress-track {
  height: 2px;
  background: rgba(255,255,255,.08);
  border-radius: 2px;
  overflow: hidden;
}
.intro-progress-bar {
  height: 100%;
  background: var(--cta);
  border-radius: 2px;
  transition: width .4s ease;
  width: 0%;
}

.intro-slide-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.intro-slide {
  animation: slideIn .35s ease;
  text-align: center;
  max-width: 440px;
}
.intro-slide.slide-big .slide-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 7vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}
.intro-slide.slide-normal .slide-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 5vw, 34px);
  font-style: italic;
  font-weight: 400;
  color: var(--text2);
  line-height: 1.4;
}
.intro-slide.slide-list .slide-text {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.6;
  text-align: left;
}
.intro-slide.slide-cta-screen .slide-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.slide-highlight {
  color: var(--cta);
}
.slide-list-items {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.slide-list-items li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--text2);
}
.slide-list-items li::before {
  content: '▸';
  color: var(--cta);
  font-size: 12px;
  flex-shrink: 0;
}

.intro-nav {
  padding: 24px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.btn-next-intro {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--cta);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
  width: 100%;
  max-width: 360px;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(229,9,20,.3);
}
.btn-next-intro:hover {
  background: var(--cta-hover);
  transform: translateY(-1px);
}

.btn-skip-intro {
  background: none;
  border: none;
  color: var(--text3);
  font-size: 13px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: color .2s;
}
.btn-skip-intro:hover { color: var(--text2); }

/* ── QUIZ SECTION ── */
.quiz-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0;
}
.quiz-section.hidden { display: none; }

.quiz-header {
  padding: 20px 24px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}
.quiz-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: .1em;
  color: var(--cta);
}
.quiz-progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 260px;
  margin-left: auto;
}
.quiz-progress-track {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,.08);
  border-radius: 4px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #E50914, #FF4B55);
  border-radius: 4px;
  transition: width .4s ease;
}
.quiz-progress-text {
  font-size: 12px;
  color: var(--text3);
  white-space: nowrap;
  font-weight: 500;
}

.quiz-body {
  flex: 1;
  padding: 32px 24px 24px;
  display: flex;
  flex-direction: column;
  animation: fadeIn .3s ease;
}

.question-number {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cta);
  font-weight: 600;
  margin-bottom: 16px;
}
.question-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 4.5vw, 28px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 32px;
}

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

.answer-btn {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-align: left;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text2);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 400;
}
.answer-btn:hover {
  background: var(--card2);
  border-color: rgba(229,9,20,.4);
  color: var(--text);
  transform: translateX(4px);
}
.answer-btn.selected {
  background: rgba(229,9,20,.12);
  border-color: var(--cta);
  color: var(--text);
}
.answer-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.answer-btn:hover .answer-dot,
.answer-btn.selected .answer-dot {
  border-color: var(--cta);
  background: rgba(229,9,20,.2);
}
.answer-btn.selected .answer-dot::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cta);
  display: block;
}

/* ── RESULT SECTION ── */
.result-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 32px 24px 40px;
  animation: fadeIn .4s ease;
}
.result-section.hidden { display: none; }

.result-header {
  text-align: center;
  margin-bottom: 28px;
}
.result-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.result-badge.low    { background: rgba(52,199,89,.15); color: #34C759; border: 1px solid rgba(52,199,89,.3); }
.result-badge.medium { background: rgba(255,149,0,.15); color: #FF9500; border: 1px solid rgba(255,149,0,.3); }
.result-badge.high   { background: rgba(255,59,48,.15); color: var(--alert); border: 1px solid rgba(255,59,48,.3); }

.result-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 5.5vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
}
.result-score-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}
.result-score-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 52px;
  line-height: 1;
}
.result-score-num.low    { color: #34C759; }
.result-score-num.medium { color: #FF9500; }
.result-score-num.high   { color: var(--alert); }
.result-score-label {
  font-size: 13px;
  color: var(--text3);
  line-height: 1.4;
}

.result-meter {
  height: 8px;
  background: rgba(255,255,255,.07);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 28px;
}
.result-meter-fill {
  height: 100%;
  border-radius: 8px;
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
}
.result-meter-fill.low    { background: linear-gradient(90deg, #34C759, #30D158); }
.result-meter-fill.medium { background: linear-gradient(90deg, #FF9500, #FFAD30); }
.result-meter-fill.high   { background: linear-gradient(90deg, #E50914, #FF3B30); }

.result-analysis {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  line-height: 1.7;
  font-size: 15px;
  color: var(--text2);
}
.result-analysis strong {
  color: var(--text);
}

.result-signals-preview {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}
.result-signals-title {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 14px;
}
.signal-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text2);
}
.signal-item:last-child { border-bottom: none; }
.signal-icon { color: var(--cta); font-size: 12px; }
.signal-blurred {
  filter: blur(5px);
  user-select: none;
  opacity: .6;
}

.lock-banner {
  background: linear-gradient(135deg, rgba(229,9,20,.1), rgba(229,9,20,.05));
  border: 1px solid rgba(229,9,20,.25);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  margin-bottom: 20px;
}
.lock-icon {
  font-size: 32px;
  margin-bottom: 12px;
}
.lock-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.lock-text {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 20px;
}

.cta-unlock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--cta);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 28px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  width: 100%;
  text-decoration: none;
  transition: background .2s, transform .15s;
  box-shadow: 0 6px 24px rgba(229,9,20,.3);
}
.cta-unlock:hover {
  background: var(--cta-hover);
  transform: translateY(-1px);
}

.unlock-sub {
  text-align: center;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text3);
}

/* ── UTILITY ── */
.hidden { display: none !important; }

/* ── MOBILE ── */
@media (max-width: 480px) {
  .landing-main { padding: 90px 20px 50px; }
  .proof-grid { grid-template-columns: 1fr; }
  .popup-container { max-width: 100%; }
}
