@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #f5f4f1;
  --surface: #ffffff;
  --surface2: #f0efeb;
  --border: #e2e0da;
  --border-strong: #c8c5bc;
  --ink: #1a1916;
  --ink2: #5a584f;
  --ink3: #9a9890;
  --accent: #2a6fff;
  --accent-light: #ebf0ff;
  --accent-dark: #1a4fcc;
  --success: #1a9966;
  --success-light: #e6f5ef;
  --warn: #cc7700;
  --danger: #cc2200;
  --danger-light: #ffeee9;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 12px 48px rgba(0, 0, 0, 0.08);
}
body {
  font-family: "DM Sans", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 15px; cursor: pointer; transition: all 0.2s ease;
  border: none; text-decoration: none; gap: 8px; font-family: inherit;
}
.btn-primary { background: var(--ink); color: white; }
.btn-primary:hover { background: #000; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--surface2); }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* Header */
.header {
  padding: 20px 0; background: var(--surface); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 20px; font-weight: 700; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 36px; height: 36px; background: var(--accent-light); color: var(--accent); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.logo-img { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-link { color: var(--ink2); text-decoration: none; font-weight: 500; font-size: 15px; transition: color 0.2s; }
.nav-link:hover { color: var(--ink); }

/* Micro-animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; }
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }

/* Landing specific */
.hero { padding: 100px 0 80px; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
  background: var(--accent-light); color: var(--accent-dark);
  border-radius: 100px; font-size: 13px; font-weight: 600; margin-bottom: 24px;
}
.hero-title { font-size: 64px; font-weight: 700; letter-spacing: -2px; line-height: 1.1; margin-bottom: 24px; color: var(--ink); }
.hero-title span { color: var(--accent); }
.hero-subtitle { font-size: 20px; color: var(--ink2); max-width: 600px; margin: 0 auto 40px; line-height: 1.6; }
.hero-actions { display: flex; gap: 16px; justify-content: center; }

/* Features */
.features { padding: 80px 0; background: var(--surface); }
.section-title { text-align: center; font-size: 36px; font-weight: 700; margin-bottom: 64px; letter-spacing: -1px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.feature-icon { width: 48px; height: 48px; background: var(--accent-light); color: var(--accent); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 24px; }
.feature-title { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.feature-desc { color: var(--ink2); line-height: 1.6; }

/* Pricing */
.pricing { padding: 100px 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 32px; max-width: 800px; margin: 0 auto; }
.price-card { padding: 48px; display: flex; flex-direction: column; }
.price-card.pro { border: 2px solid var(--ink); position: relative; }
.price-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--ink); color: white; padding: 4px 12px; border-radius: 100px; font-size: 12px; font-weight: 600; }
.price-name { font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.price-amount { font-size: 48px; font-weight: 700; letter-spacing: -1px; margin-bottom: 24px; display: flex; align-items: baseline; }
.price-amount span { font-size: 16px; color: var(--ink3); font-weight: 500; margin-left: 4px; letter-spacing: 0; }
.price-features { margin-bottom: 32px; flex: 1; list-style: none; }
.price-features li { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: var(--ink2); }
.price-features li svg { color: var(--success); flex-shrink: 0; }

.contact { padding: 100px 0; background: var(--surface2); }
.contact-card { padding: 40px; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.contact-copy { max-width: 520px; }
.contact-form { display: grid; gap: 18px; }
.contact-field { display: grid; gap: 8px; }
.contact-label { font-weight: 600; color: var(--ink); }
.contact-input,
.contact-textarea { width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; padding: 16px; }
.contact-textarea { min-height: 170px; resize: vertical; }
.contact-actions { display: flex; flex-direction: column; gap: 14px; }
.contact-status { font-size: 15px; min-height: 22px; color: var(--ink2); }
.contact-status.success { color: var(--success); }
.contact-status.error { color: var(--danger); }

/* Footer */
.footer { padding: 60px 0; text-align: center; border-top: 1px solid var(--border); background: var(--surface); color: var(--ink3); font-size: 14px; }

/* Mobile adaptations */
@media (max-width: 768px) {
  .hero-title { font-size: 42px; }
  .hero-actions { flex-direction: column; }
  .nav-links { display: none; }
}

/* Quiz Participant View */
.quiz-wrapper { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.quiz-header { padding: 16px 24px; background: var(--surface); border-bottom: 1px solid var(--border); text-align: center; font-weight: 600; font-size: 15px; }
.quiz-main { flex: 1; padding: 32px 24px; max-width: 600px; margin: 0 auto; width: 100%; display: flex; flex-direction: column; justify-content: center; }
.quiz-question { font-size: 28px; font-weight: 700; line-height: 1.3; margin-bottom: 40px; letter-spacing: -0.5px; text-align: center; }
.quiz-options { display: flex; flex-direction: column; gap: 16px; }
.quiz-option { 
  padding: 20px 24px; background: var(--surface); border: 2px solid var(--border); 
  border-radius: var(--radius); font-size: 18px; font-weight: 500; cursor: pointer;
  transition: all 0.2s; display: flex; align-items: center; gap: 16px;
}
.quiz-option:hover { border-color: var(--accent); background: var(--accent-light); transform: scale(1.01); }
.quiz-option.selected { border-color: var(--accent); background: var(--accent); color: white; }
.quiz-option-letter { width: 32px; height: 32px; background: var(--surface2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: var(--ink2); transition: all 0.2s; }
.quiz-option:hover .quiz-option-letter { background: white; color: var(--accent); }
.quiz-option.selected .quiz-option-letter { background: white; color: var(--accent); }

/* Toast */
.toast {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(100px);
  background: var(--ink); color: white; padding: 12px 24px; border-radius: 100px;
  font-weight: 500; box-shadow: var(--shadow-md); opacity: 0; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
