/* =====================
   VeloStack Landing Page
   Design: Warm, sharp, editorial. Not generic SaaS.
   ===================== */

:root {
  --bg: #FAFAF8;
  --bg-alt: #F2F0EC;
  --fg: #1A1A1A;
  --fg-muted: #6B6B6B;
  --accent: #F59E0B;
  --accent-dark: #D97706;
  --border: #E5E3DD;
  --card-bg: #FFFFFF;
  --quiz-card-bg: #1A1A1A;
  --quiz-fg: #FAFAF8;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.15;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--fg);
}

.nav-tagline {
  font-size: 13px;
  color: var(--fg-muted);
  font-weight: 400;
}

/* SECTION SETUP */
.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-headline {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 48px;
}

/* HERO */
.hero {
  padding: 80px 0 100px;
  background: var(--bg);
}

.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero-headline {
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--fg);
  margin-bottom: 24px;
  line-height: 1.08;
}

.hero-sub {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--fg);
  color: var(--bg);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(26,26,26,0.15);
  cursor: pointer;
  border: none;
}

.hero-cta:hover {
  background: #333;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26,26,26,0.2);
}

.hero-cta:active {
  transform: translateY(0);
}

.hero-cta svg {
  flex-shrink: 0;
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-avatars {
  display: flex;
}

.hero-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  background: var(--accent);
  margin-left: -8px;
  overflow: hidden;
}

.hero-avatars .hero-avatar:first-child {
  margin-left: 0;
}

.hero-proof-text {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.4;
}

.hero-proof-text strong {
  color: var(--fg);
  font-weight: 600;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

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

.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--fg);
}

.stat-label {
  font-size: 12px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* QUIZ CARD */
.quiz-card {
  background: var(--quiz-card-bg);
  color: var(--quiz-fg);
  border-radius: 20px;
  padding: 36px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 4px 12px rgba(0,0,0,0.1);
}

.quiz-card-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(250,250,248,0.5);
  margin-bottom: 10px;
  font-weight: 600;
}

.quiz-model {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
  line-height: 1.2;
}

.quiz-reason {
  font-size: 14px;
  color: rgba(250,250,248,0.65);
  line-height: 1.5;
  margin-bottom: 28px;
}

.quiz-metrics {
  border-top: 1px solid rgba(250,250,248,0.12);
  padding-top: 20px;
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

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

.qmetric-label {
  font-size: 13px;
  color: rgba(250,250,248,0.5);
}

.qmetric-val {
  font-size: 13px;
  font-weight: 600;
  color: rgba(250,250,248,0.9);
  font-family: 'Syne', sans-serif;
}

.quiz-badge {
  font-size: 11px;
  color: rgba(250,250,248,0.35);
  text-align: center;
  border-top: 1px solid rgba(250,250,248,0.08);
  padding-top: 16px;
  letter-spacing: 0.5px;
}

/* PROBLEM */
.problem {
  padding: 100px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.problem-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

.problem-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.problem-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.problem-headline {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.5px;
}

.problem-text {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 20px;
}

.problem-text em { color: var(--fg); font-style: normal; font-weight: 500; }

/* HOW IT WORKS */
.how {
  padding: 100px 0;
  background: var(--bg);
}

.how-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step-num {
  font-family: 'Syne', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -2px;
}

.step-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* MODELS GRID */
.models-section {
  padding: 100px 0;
  background: var(--fg);
}

.models-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

.models-section .section-label {
  color: rgba(250,250,248,0.5);
}

.models-section .section-headline {
  color: var(--bg);
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(250,250,248,0.08);
  border-radius: 16px;
  overflow: hidden;
}

.model-card {
  background: #252525;
  padding: 28px 28px 32px;
  transition: background 0.2s;
}

.model-card:hover {
  background: #2e2e2e;
}

.model-name {
  font-family: 'Syne', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--bg);
  margin-bottom: 8px;
}

.model-meta {
  font-size: 13px;
  color: rgba(250,250,248,0.5);
  margin-bottom: 6px;
}

.model-margin {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}

/* MANIFESTO */
.manifesto {
  padding: 100px 0;
  background: var(--accent);
}

.manifesto-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}

.manifesto-quote {
  font-family: 'Syne', sans-serif;
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1.4;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.manifesto-attribution {
  font-size: 14px;
  color: rgba(26,26,26,0.5);
  font-style: italic;
}

/* CLOSING */
.closing {
  padding: 100px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.closing-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}

.closing-headline {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -1px;
  margin-bottom: 24px;
  line-height: 1.15;
}

.closing-sub {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto;
}

/* FOOTER */
.footer {
  padding: 60px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}

.footer-logo {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 10px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--fg-muted);
  margin-bottom: 24px;
}

.footer-copy {
  font-size: 12px;
  color: rgba(26,26,26,0.3);
}

/* =====================
   QUIZ CARD — INTERACTIVE
   ===================== */
.quiz-card-interactive {
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.quiz-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(250,250,248,0.15);
  border-radius: 100px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 100px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}

.progress-text {
  font-size: 12px;
  color: rgba(250,250,248,0.4);
  white-space: nowrap;
  min-width: 90px;
  text-align: right;
  font-weight: 500;
}

.quiz-question {
  margin-bottom: 24px;
}

.question-number {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(250,250,248,0.35);
  margin-bottom: 8px;
  font-weight: 600;
}

.question-prompt {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--quiz-fg);
  margin-bottom: 8px;
  line-height: 1.25;
}

.question-sub {
  font-size: 13px;
  color: rgba(250,250,248,0.5);
  line-height: 1.5;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.quiz-option {
  background: rgba(250,250,248,0.07);
  border: 1.5px solid rgba(250,250,248,0.12);
  color: rgba(250,250,248,0.85);
  padding: 13px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.12s;
  opacity: 0;
  animation: quizFadeIn 0.35s ease forwards;
}

.quiz-option:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fff;
}

.quiz-option:active {
  transform: scale(0.98);
}

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

.quiz-result {
  display: flex;
  flex-direction: column;
}

.quiz-result .quiz-card-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(250,250,248,0.5);
  margin-bottom: 10px;
  font-weight: 600;
}

.quiz-result .quiz-model {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
  line-height: 1.2;
}

.quiz-result .quiz-reason {
  font-size: 14px;
  color: rgba(250,250,248,0.65);
  line-height: 1.55;
  margin-bottom: 28px;
}

.quiz-result .quiz-metrics {
  border-top: 1px solid rgba(250,250,248,0.12);
  padding-top: 20px;
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.quiz-result .qmetric {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quiz-result .qmetric-label {
  font-size: 13px;
  color: rgba(250,250,248,0.5);
}

.quiz-result .qmetric-val {
  font-size: 13px;
  font-weight: 600;
  color: rgba(250,250,248,0.9);
  font-family: 'Syne', sans-serif;
}

.quiz-actions {
  border-top: 1px solid rgba(250,250,248,0.08);
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.quiz-start-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.quiz-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #1A1A1A;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 100px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.quiz-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.quiz-cta:active {
  transform: translateY(0);
}

.quiz-reset {
  background: none;
  border: none;
  color: rgba(250,250,248,0.35);
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}

.quiz-reset:hover {
  color: rgba(250,250,248,0.65);
}

.quiz-badge-quiz {
  font-size: 11px;
  color: rgba(250,250,248,0.35);
  text-align: center;
  border-top: 1px solid rgba(250,250,248,0.08);
  padding-top: 16px;
  letter-spacing: 0.5px;
  margin-top: auto;
}

/* Email capture */
.quiz-email-capture {
  border-top: 1px solid rgba(250,250,248,0.12);
  padding-top: 16px;
  margin-bottom: 0;
}

.quiz-email-label {
  font-size: 12px;
  color: rgba(250,250,248,0.5);
  margin-bottom: 10px;
  line-height: 1.4;
}

.quiz-email-form {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.quiz-email-input {
  flex: 1;
  background: rgba(250,250,248,0.07);
  border: 1.5px solid rgba(250,250,248,0.15);
  color: var(--quiz-fg);
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.2s;
  min-width: 0;
}

.quiz-email-input::placeholder {
  color: rgba(250,250,248,0.35);
}

.quiz-email-input:focus {
  border-color: rgba(245, 158, 11, 0.5);
}

.quiz-email-submit {
  background: var(--accent);
  color: #1A1A1A;
  border: none;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.12s;
}

.quiz-email-submit:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

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

.quiz-email-success {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #4ade80;
  font-weight: 500;
}

.quiz-email-error {
  font-size: 12px;
  color: #f87171;
}

/* Fade transitions */
.fade-out { opacity: 0; transition: opacity 0.2s ease; }
.fade-in { opacity: 0; animation: quizFadeIn 0.3s ease forwards; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .problem-content { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .models-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .hero { padding: 60px 0 80px; }
  .problem, .how, .models-section, .manifesto, .closing { padding: 60px 0; }
  .section-headline { margin-bottom: 32px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero-headline { letter-spacing: -1px; }
  .quiz-card { padding: 28px; }
  .nav-inner { padding: 0 20px; }
  .hero-inner, .problem-inner, .how-inner, .models-inner, .closing-inner { padding: 0 20px; }
  .footer-inner { padding: 0 20px; }
}