/* ============================================================
   The Talking AI — Agency Website Styles
   ============================================================ */

/* --- Google Fonts (Loaded in HTML) --- */

/* --- CSS Variables --- */
:root {
  /* Colors */
  --bg-primary: #0a0b0f;
  --bg-secondary: #12131a;
  --bg-card: #161722;
  --bg-card-hover: #1c1d2e;
  --bg-glass: rgba(22, 23, 34, 0.7);

  --text-primary: #f0f0f5;
  --text-secondary: #a0a3b5;
  --text-muted: #6b6f82;

  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.25);
  --accent-gradient: linear-gradient(135deg, #6366f1, #8b5cf6);

  --success: #34d399;
  --success-glow: rgba(52, 211, 153, 0.2);

  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(99, 102, 241, 0.3);

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-pad: 100px 0;
  --container-width: 1140px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--text-primary);
}

img {
  max-width: 100%;
  display: block;
}

/* --- Container --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Background Effects --- */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.glow-orb--1 {
  width: 500px;
  height: 500px;
  background: var(--accent);
  top: -150px;
  right: -100px;
  opacity: 0.15;
}

.glow-orb--2 {
  width: 400px;
  height: 400px;
  background: #8b5cf6;
  bottom: 20%;
  left: -100px;
  opacity: 0.1;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 11, 15, 0.8);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.nav__logo span {
  color: var(--accent-light);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav__links a:hover {
  color: var(--text-primary);
}

.nav__cta {
  padding: 10px 24px;
  background: var(--accent-gradient);
  color: #fff !important;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
}

/* Mobile nav controls */
.nav__mobile-controls {
  display: none;
}

/* --- Hero --- */
.hero {
  padding: 160px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-light);
  margin-top: 0;
  margin-bottom: 28px;
  line-height: inherit;
}

.hero__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.3);
  }
}

.hero__title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero__title .gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: var(--font);
}

.btn--primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

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

#quizBtnHero {
  border-color: var(--border-accent);
  color: var(--text-primary);
  box-shadow: inset 0 0 10px rgba(99, 102, 241, 0.05);
  transition: all 0.3s ease;
}

#quizBtnHero:hover {
  background: rgba(99, 102, 241, 0.1);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.2), inset 0 0 10px rgba(99, 102, 241, 0.1);
  color: #fff;
  border-color: var(--accent-light);
}

/* Mobile Header CTA Override */
.nav__mobile-controls .nav__mobile-cta {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: none;
}

/* --- Section Common --- */
.section {
  padding: var(--section-pad);
  position: relative;
}

.section__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-light);
  margin-bottom: 16px;
}

.section__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section__desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

.section--center {
  text-align: center;
}

.section--center .section__desc {
  margin: 0 auto;
}

/* --- How It Works --- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.step {
  text-align: center;
  padding: 40px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  transition: all 0.3s ease;
}

.step:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-4px);
}

.step__number {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  border-radius: 14px;
  margin-bottom: 20px;
}

.step__icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Features --- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.feature {
  padding: 36px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  text-align: center;
}

.feature:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.feature__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 14px;
  font-size: 22px;
  margin: 0 auto 20px;
}

.feature h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: 100px 0;
}

.cta-card {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: 72px 48px;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

.cta-card h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.cta-card p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Footer --- */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer__links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer__links a {
  font-size: 13px;
  color: var(--text-muted);
}

.footer__links a:hover {
  color: var(--text-primary);
}

/* --- Demo Page --- */
.demo-hero {
  padding: 140px 0 40px;
  text-align: center;
}

.demo-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}

.demo-hero p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* --- Form --- */
.form-section {
  padding: 40px 0 100px;
}

.form-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  position: relative;
}

.form-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row--3 {
  grid-template-columns: 2fr 1fr 1fr;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group label .required {
  color: var(--accent-light);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 15px;
  font-family: var(--font);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6f82' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.consent-text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-sm);
}

.consent-text a {
  color: var(--accent-light);
}

.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Form states */
.form-success {
  display: none;
  text-align: center;
  padding: 60px 32px;
}

.form-success.visible {
  display: block;
}

.form-success__icon {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--success-glow);
  border-radius: 50%;
  font-size: 36px;
  margin-bottom: 24px;
  animation: scale-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scale-in {
  from {
    transform: scale(0);
  }

  to {
    transform: scale(1);
  }
}

.form-success h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
}

.form-success p {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 400px;
  margin: 0 auto;
}

.form-error {
  display: none;
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-sm);
  color: #f87171;
  font-size: 14px;
  margin-bottom: 20px;
}

.form-error.visible {
  display: block;
}

/* --- Legal pages --- */
.legal {
  padding: 140px 0 80px;
}

.legal .container {
  max-width: 800px;
}

.legal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 56px;
}

.legal-content h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.legal-content .subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.legal-content .dates {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.legal-content h2 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 14px;
}

.legal-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.legal-content p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.legal-content ul {
  padding-left: 24px;
  margin-bottom: 14px;
}

.legal-content li {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.legal-content li strong {
  color: var(--text-primary);
}

.legal-content .highlight {
  background: rgba(99, 102, 241, 0.06);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 16px 0;
}

.legal-content .highlight p {
  margin-bottom: 0;
  color: var(--text-primary);
}

.legal-content .contact-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 16px 0;
}

.legal-content .contact-box p {
  margin-bottom: 6px;
}

.legal-content .keyword-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  margin: 12px 0;
  font-size: 15px;
  color: var(--text-primary);
}

.legal-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

/* --- Stats Bar --- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}

.stat-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.stat-card__number {
  font-size: 2.8rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-card__label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.stat-card__source {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-style: italic;
}

/* --- Pain Points --- */
.pain-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.pain-card {
  background: var(--bg-card);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  transition: border-color 0.3s, transform 0.3s;
}

.pain-card:hover {
  border-color: rgba(239, 68, 68, 0.35);
  transform: translateY(-2px);
}

.pain-card__icon {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.pain-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.pain-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.pain-card__stat {
  margin-top: 12px;
  font-size: 0.85rem;
  color: #f87171;
  font-weight: 600;
}

/* --- Response Time Race --- */
.race-container {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 40px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.race-lane {
  background: rgba(10, 11, 15, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.race-lane--agent {
  border-color: rgba(239, 68, 68, 0.2);
}

.race-lane--ai {
  border: 2px solid var(--accent-light);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.15) 0%, rgba(10, 11, 15, 0.8) 100%);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.3), inset 0 0 20px rgba(99, 102, 241, 0.2);
  transform: scale(1.02);
  z-index: 2;
}

.race-lane__label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.race-lane--agent .race-lane__label {
  color: #f87171;
}

.race-lane--ai .race-lane__label {
  color: #fff;
  text-shadow: 0 0 10px var(--accent-light);
  font-size: 1rem;
}

.race-clock {
  font-size: 3.2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 16px;
  min-height: 3.2rem;
}

.race-lane--agent .race-clock {
  color: #f87171;
}

.race-lane--ai .race-clock {
  color: #fff;
  text-shadow: 0 0 20px var(--accent-light), 0 0 40px var(--accent);
  font-size: 3.8rem;
}

.race-status {
  font-size: 14px;
  color: var(--text-secondary);
  height: 40px;
  margin-bottom: 24px;
}

.race-lane--ai .race-status {
  color: #fff;
  font-weight: 500;
}

.status-done {
  color: var(--text-primary);
  font-weight: 700;
}

.race-lane--agent .status-done {
  color: #f87171;
}

.race-lane--ai .status-done {
  color: #fff;
  text-shadow: 0 0 8px var(--accent-light);
}

.race-bar {
  height: 6px;
  background: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.race-bar__fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 4px;
  transition: width 0.1s linear;
}

.race-lane--agent .race-bar__fill {
  background: #f87171;
}

.race-lane--ai .race-bar {
  height: 8px;
  background: rgba(99, 102, 241, 0.1);
}

.race-lane--ai .race-bar__fill {
  background: var(--accent-gradient);
  box-shadow: 0 0 20px var(--accent-light), 0 0 10px #fff;
}

.race-verdict {
  margin-top: 32px;
  text-align: center;
  font-size: 1.15rem;
  color: var(--text-primary);
  line-height: 1.7;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s, transform 0.5s;
}

.race-verdict.visible {
  opacity: 1;
  transform: translateY(0);
}

.race-verdict strong {
  color: var(--accent-light);
}

.race-replay {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 24px;
  background: transparent;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  color: var(--accent-light);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  font-family: var(--font);
}

.race-replay:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--accent);
}

/* --- ROI Calculator --- */
.calc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  margin-top: 48px;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.calc-slider-group label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.calc-slider-value {
  float: right;
  font-weight: 800;
  color: var(--accent-light);
  font-size: 1rem;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-card);
  box-shadow: 0 0 12px var(--accent-glow);
  cursor: pointer;
  transition: transform 0.15s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-card);
  box-shadow: 0 0 12px var(--accent-glow);
  cursor: pointer;
}

.calc-results {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  text-align: center;
}

.calc-results__label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 8px;
}

.calc-results__amount {
  font-size: 3.4rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 6px;
  transition: transform 0.2s;
}

.calc-results__amount.pulse {
  animation: calcPulse 0.3s ease;
}

@keyframes calcPulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

.calc-results__period {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.calc-breakdown {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  text-align: left;
}

.calc-breakdown__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.calc-breakdown__row:last-child {
  border-bottom: none;
}

.calc-breakdown__label {
  color: var(--text-secondary);
}

.calc-breakdown__value {
  color: var(--text-primary);
  font-weight: 600;
}

.calc-breakdown__value--lost {
  color: #f87171;
}

.calc-breakdown__value--recovered {
  color: var(--success);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 640px) {
  .nav__links {
    display: none;
  }

  .nav__mobile-controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }

  .nav__toggle {
    display: block;
  }

  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 11, 15, 0.95);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }

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

  .hero {
    padding: 120px 0 60px;
  }

  .hero__title {
    letter-spacing: -1px;
  }

  .form-card {
    padding: 32px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-row--3 {
    grid-template-columns: 1fr;
  }

  .cta-card {
    padding: 48px 24px;
  }

  .legal-content {
    padding: 32px 24px;
  }

  .stats-bar {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .stat-card__number {
    font-size: 2rem;
  }

  .pain-points {
    grid-template-columns: 1fr;
  }

  .race-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .race-clock {
    font-size: 2.4rem;
  }

  .calc-card {
    padding: 28px 20px;
  }

  .calc-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .calc-results__amount {
    font-size: 2.4rem;
  }
}

@media (max-width: 400px) {
  .stats-bar {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ============================================================
   Lead Qualification Quiz Widget
   ============================================================ */

/* --- Body scroll lock when quiz is open --- */
body.quiz-open {
  overflow: hidden;
}

/* --- Full-screen overlay --- */
.quiz-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 11, 15, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.quiz-overlay--visible {
  opacity: 1;
}

.quiz-overlay--closing {
  opacity: 0;
}

/* --- Quiz Card --- */
.quiz-card {
  position: relative;
  width: 100%;
  max-width: 600px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 40px 36px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 60px var(--accent-glow);
  animation: quizCardIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.quiz-card::-webkit-scrollbar {
  width: 6px;
}

.quiz-card::-webkit-scrollbar-track {
  background: transparent;
}

.quiz-card::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
}

.quiz-card::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.2);
}

.quiz-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

@keyframes quizCardIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* --- Close button --- */
.quiz-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  line-height: 1;
  font-family: var(--font);
}

.quiz-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

/* --- Progress indicator --- */
.quiz-progress {
  margin-bottom: 32px;
}

.quiz-progress__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

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

.quiz-progress__fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Step container & transitions --- */
.quiz-step {
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.quiz-step--enter-right {
  transform: translateX(24px);
}

.quiz-step--enter-left {
  transform: translateX(-24px);
}

.quiz-step--active {
  opacity: 1;
  transform: translateX(0);
}

/* --- Question text --- */
.quiz-question {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.quiz-hint {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* --- Options --- */
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 0 32px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  line-height: 1.45;
}

.quiz-option:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-1px);
}

.quiz-option--selected {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.quiz-option--selected:hover {
  background: rgba(99, 102, 241, 0.14);
}

/* Multi-select checkmark */
.quiz-option__check {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid var(--border);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.quiz-option--selected .quiz-option__check {
  background: var(--accent);
  border-color: var(--accent);
}

.quiz-option--selected .quiz-option__check::after {
  content: '✓';
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

/* --- Pre-fill note --- */
.quiz-prefill-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--accent-light);
  margin-top: 8px;
  line-height: 1.5;
}

/* --- Navigation buttons --- */
.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.quiz-nav__next,
.quiz-nav__back {
  min-width: 120px;
}

.quiz-nav__next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* --- Contact form (Step 5) --- */
.quiz-contact {
  margin: 20px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quiz-contact__group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quiz-contact__group label .required {
  color: var(--accent-light);
}

.quiz-contact__optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
  font-size: 12px;
}

.quiz-contact__group input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 15px;
  font-family: var(--font);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.quiz-contact__group input::placeholder {
  color: var(--text-muted);
}

.quiz-contact__group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.quiz-input--error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

.quiz-smallprint {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  padding: 14px 16px;
  background: rgba(99, 102, 241, 0.04);
  border: 1px solid rgba(99, 102, 241, 0.08);
  border-radius: var(--radius-sm);
  margin-top: 4px;
}

/* --- Results screen --- */
.quiz-results {
  text-align: center;
}

.quiz-results__badge {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 28px;
  margin-bottom: 24px;
  animation: scale-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.quiz-results__badge--a {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.quiz-results__badge--b {
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.quiz-results__badge--c {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.quiz-results__headline {
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.quiz-results__body {
  text-align: left;
  margin-bottom: 24px;
}

.quiz-results__body p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.quiz-results__body p:last-child {
  margin-bottom: 0;
}

.quiz-results__body strong {
  color: var(--success);
  font-weight: 700;
}

.quiz-results__confirm {
  font-size: 14px;
  font-weight: 600;
  color: var(--success);
  margin-bottom: 28px;
  padding: 14px 16px;
  background: var(--success-glow);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: var(--radius-sm);
}

.quiz-results__contact {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.quiz-results__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* --- Calculator-to-Quiz Bridge CTA --- */
.calc-quiz-bridge {
  margin-top: 40px;
  text-align: center;
  padding: 32px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(139, 92, 246, 0.06));
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: var(--radius-lg);
}

.calc-quiz-bridge__text {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
  font-style: italic;
}

/* --- Quiz Responsive --- */
@media (max-width: 640px) {
  .quiz-card {
    padding: 28px 20px 24px;
    border-radius: var(--radius-lg);
    max-height: 95vh;
  }

  .quiz-question {
    font-size: 20px;
  }

  .quiz-option {
    padding: 14px 16px;
    font-size: 14px;
  }

  .quiz-nav__next,
  .quiz-nav__back {
    min-width: 100px;
    padding: 12px 20px;
    font-size: 14px;
  }

  .quiz-results__headline {
    font-size: 20px;
  }

  .calc-quiz-bridge {
    padding: 24px 20px;
  }

  .calc-quiz-bridge__text {
    font-size: 15px;
  }
}