:root {
  --bg: #07070c;
  --bg-card: #101018;
  --border: #232332;
  --text: #f5f5fa;
  --text-dim: #9a9ab0;
  --accent: #7c5cff;
  --accent-2: #22d3a0;
  --gradient: linear-gradient(135deg, #7c5cff 0%, #5b8dff 100%);
  --radius: 20px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  max-width: 180vw;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.25) 0%, rgba(124, 92, 255, 0) 65%);
  pointer-events: none;
  z-index: 0;
}

.top-bar {
  position: relative;
  z-index: 1;
  padding: 24px 24px 0;
  display: flex;
  justify-content: center;
}

.logo {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.quiz-wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px 60px;
}

.screen {
  display: none;
  width: 100%;
  max-width: 560px;
}

.screen.active {
  display: block;
  animation: fadeIn 0.35s ease;
}

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(34, 211, 160, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

h1 {
  font-size: 28px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

h2 {
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
}

.sub {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 28px;
}

.intro-stats {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.intro-stat {
  display: flex;
  flex-direction: column;
}

.intro-stat strong {
  font-size: 22px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.intro-stat span {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  padding: 16px 28px;
  width: 100%;
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(124, 92, 255, 0.45);
}

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

.progress-wrap {
  margin-bottom: 20px;
  padding: 0 4px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 8px;
  font-weight: 500;
}

.progress-bar {
  height: 8px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.question-card h2 {
  text-align: left;
}

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

.option-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  background: #16161f;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 18px 20px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.1s ease, background 0.15s ease;
}

.option-btn:hover {
  border-color: var(--accent);
  background: #1a1a26;
  transform: translateY(-1px);
}

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

.option-btn .arrow {
  color: var(--accent);
  font-weight: 700;
  margin-left: 12px;
}

.loading-card {
  padding: 56px 32px;
}

.spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  margin: 0 auto 24px;
  animation: spin 0.8s linear infinite;
}

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

.result-card h1 {
  text-align: center;
}

.badge-check {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #0a0a0a;
  background: var(--accent-2);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.offer-recap {
  text-align: left;
  background: #0c0c14;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.offer-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
}

.offer-item span {
  color: var(--accent-2);
  font-weight: 700;
}

.fine-print {
  color: var(--text-dim);
  font-size: 13px;
  margin: 16px 0 0;
  line-height: 1.5;
}

.lead-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-intro {
  color: var(--text-dim);
  font-size: 14px;
  margin: 0 0 4px;
  text-align: center;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
}

.field input {
  background: #0c0c14;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s ease;
}

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

.field input:invalid:not(:placeholder-shown) {
  border-color: #ff5c5c;
}

.hidden {
  display: none;
}

@media (max-width: 480px) {
  .card { padding: 32px 22px; }
  h1 { font-size: 24px; }
  h2 { font-size: 19px; }
  .intro-stats { gap: 18px; }
}
