/* ============================================
   1. RESET & BASE
   ============================================ */
*, *::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: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { list-style: none; }

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}

button { cursor: pointer; }

/* ============================================
   2. CSS VARIABLES (design tokens)
   ============================================ */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-tertiary: #1a1a24;
  --border: #ffffff0f;
  --border-hover: #ffffff1a;

  --text-primary: #f0f0f5;
  --text-secondary: #9090a8;
  --text-muted: #50505f;

  --accent: #00e5a0;
  --accent-hover: #00c988;
  --accent-dim: #00e5a015;
  --accent-glow: #00e5a030;

  --danger: #ff4d6a;
  --warning: #ffb547;
  --success: #00e5a0;

  --gradient-hero: radial-gradient(ellipse 80% 50% at 50% -10%, #00e5a018, transparent);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 100px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);

  --nav-height: 64px;
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --max-width-quiz: 600px;
}

/* ============================================
   3. TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }

/* ============================================
   4. LAYOUT UTILITIES
   ============================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.text-center { text-align: center; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* ============================================
   5. NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 1000;
  transition: background 0.3s, backdrop-filter 0.3s;
}

.nav.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-cta {
  display: inline-flex;
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-mobile-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-mobile-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-mobile-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   6. BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

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

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  padding: 0.875rem 2rem;
  font-size: 1rem;
  border: 1px solid var(--border-hover);
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  background: var(--bg-tertiary);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

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

.btn:disabled,
.btn.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ============================================
   7. CARDS
   ============================================ */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

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

.card-lg {
  padding: 2rem;
  border-radius: var(--radius-xl);
}

.card-accent {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent-dim), var(--bg-secondary));
}

.card-flat {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.card-flat:hover {
  border-color: var(--border-hover);
}

/* ============================================
   8. BADGES & PILLS
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--bg-tertiary);
}

.badge-accent {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.badge-danger {
  border-color: var(--danger);
  color: var(--danger);
  background: rgba(255, 77, 106, 0.08);
}

.badge-warning {
  border-color: var(--warning);
  color: var(--warning);
  background: rgba(255, 181, 71, 0.08);
}

.badge-sm {
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
}

.affiliate-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: help;
  position: relative;
}

.affiliate-badge .tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.affiliate-badge:hover .tooltip {
  opacity: 1;
}

/* ============================================
   9. HERO
   ============================================ */
.hero {
  padding: calc(var(--nav-height) + 5rem) 0 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  pointer-events: none;
}

.hero-badge {
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin-bottom: 1.25rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-social-proof {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ============================================
   10. FORM ELEMENTS
   ============================================ */
.input {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
  color: var(--text-primary);
  font-size: 1rem;
  width: 100%;
  transition: border-color 0.2s;
}

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

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

.input-group {
  display: flex;
  gap: 0;
}

.input-group .input {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.input-group .btn {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  flex-shrink: 0;
}

/* Range slider */
.range-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: 2px;
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 1px var(--accent);
  transition: transform 0.15s;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.range-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 1px var(--accent);
}

/* ============================================
   11. QUIZ / FUNNEL
   ============================================ */
.quiz-page {
  min-height: 100vh;
  background: var(--bg-primary);
}

.quiz-trust-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 0.625rem 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.quiz-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  z-index: 1001;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz-progress-text {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.quiz-container {
  max-width: var(--max-width-quiz);
  margin: 0 auto;
  padding: calc(var(--nav-height) + 3rem) 1.5rem 3rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.quiz-step {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
}

.quiz-step-number {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.quiz-step h2 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.quiz-step-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.quiz-option:hover {
  border-color: var(--border-hover);
  background: rgba(26, 26, 36, 0.8);
}

.quiz-option.selected {
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: scale(1.02);
}

.quiz-option-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}

.quiz-option-content {
  flex: 1;
}

.quiz-option-label {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.quiz-option-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.125rem;
}

.quiz-micro-feedback {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--accent-dim);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.85rem;
  color: var(--accent);
  animation: fadeInUp 0.3s ease;
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* Quiz email gate */
.quiz-gate {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.quiz-gate h2 {
  margin-bottom: 0.75rem;
}

.quiz-gate p {
  margin-bottom: 1.5rem;
}

.quiz-gate-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.quiz-gate-skip {
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
}

.quiz-gate-skip:hover {
  color: var(--text-secondary);
}

/* Quiz loading animation */
.quiz-loading {
  text-align: center;
  padding: 3rem 0;
}

.quiz-loading-bar {
  width: 200px;
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: 2px;
  margin: 1.5rem auto;
  overflow: hidden;
}

.quiz-loading-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  animation: loadingProgress 2.5s ease forwards;
}

@keyframes loadingProgress {
  0% { width: 0%; }
  30% { width: 45%; }
  60% { width: 70%; }
  80% { width: 85%; }
  100% { width: 100%; }
}

/* ============================================
   12. RESULTS DASHBOARD
   ============================================ */
.results-section {
  padding: 2rem 0 5rem;
}

.result-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: relative;
  transition: border-color 0.2s;
}

.result-card:hover {
  border-color: var(--border-hover);
}

.result-card.best-match {
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-dim);
}

.result-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.result-card-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  object-fit: contain;
  background: var(--bg-tertiary);
  padding: 8px;
}

.result-card-info {
  flex: 1;
}

.result-card-name {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
}

.result-card-score {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: var(--accent);
}

.result-card-score span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.result-revenue-estimate {
  background: var(--accent-dim);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--accent);
  text-align: center;
}

.result-pros, .result-cons {
  margin-bottom: 1rem;
}

.result-pros li, .result-cons li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.result-pros li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.result-cons li::before {
  content: '⚠';
  flex-shrink: 0;
}

.result-card-cta {
  margin-top: 1.5rem;
}

.result-others {
  margin-top: 2rem;
}

.result-others-toggle {
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}

.result-others-toggle:hover {
  color: var(--text-secondary);
}

.result-others-content {
  display: none;
  margin-top: 1rem;
}

.result-others-content.open {
  display: block;
}

/* ============================================
   13. CALCULATOR
   ============================================ */
.calc-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  align-items: start;
}

.calc-inputs {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: sticky;
  top: calc(var(--nav-height) + 1rem);
}

.calc-input-group {
  margin-bottom: 1.75rem;
}

.calc-input-group:last-child {
  margin-bottom: 0;
}

.calc-input-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.calc-input-label span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.calc-input-value {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--accent);
  font-size: 1rem;
}

.calc-manual-input {
  width: 90px;
  text-align: right;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.375rem 0.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--accent);
  font-size: 1rem;
}

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

.calc-results {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.calc-results-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
}

.calc-table {
  width: 100%;
  border-collapse: collapse;
}

.calc-table th {
  text-align: left;
  padding: 1rem 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.calc-table td {
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.calc-table tr:last-child td {
  border-bottom: none;
}

.calc-table .platform-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.calc-table .platform-cell img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
  background: var(--bg-tertiary);
  padding: 4px;
}

.calc-table tr.best-row {
  background: var(--accent-dim);
}

.calc-table tr.best-row td {
  color: var(--text-primary);
}

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

.calc-table .amount-fees {
  color: var(--danger);
}

.calc-savings {
  padding: 1.25rem 2rem;
  background: var(--accent-dim);
  font-size: 0.9rem;
  color: var(--accent);
  text-align: center;
}

.calc-disclaimer {
  padding: 1rem 2rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* ============================================
   14. PLATFORM TABLE (Home mini-preview)
   ============================================ */
.platform-table-wrapper {
  overflow-x: auto;
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.platform-table-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40px;
  background: linear-gradient(to left, var(--bg-primary), transparent);
  pointer-events: none;
}

.platform-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.platform-table th {
  text-align: left;
  padding: 1rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
}

.platform-table td {
  padding: 0.875rem 1.25rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--bg-secondary);
}

.platform-table tr:last-child td {
  border-bottom: none;
}

.platform-table .platform-name-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--text-primary);
}

.platform-table .platform-name-cell img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.score-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.score-dots {
  display: flex;
  gap: 3px;
}

.score-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg-tertiary);
}

.score-dot.active {
  background: var(--accent);
}

.score-dot.active.warning {
  background: var(--warning);
}

.score-dot.active.danger {
  background: var(--danger);
}

.feature-check {
  color: var(--accent);
}

.feature-cross {
  color: var(--text-muted);
}

/* ============================================
   15. BLOG
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.blog-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

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

.blog-card-image {
  height: 180px;
  position: relative;
  overflow: hidden;
}

.blog-card-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-primary));
}

.blog-card-image-placeholder.gradient-1 {
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
}

.blog-card-image-placeholder.gradient-2 {
  background: linear-gradient(135deg, #1a1a24, #2d1b3d, #1a1a24);
}

.blog-card-image-placeholder.gradient-3 {
  background: linear-gradient(135deg, #0f1a0f, #1a2e1a, #0f1a0f);
}

.blog-card-image-placeholder.gradient-4 {
  background: linear-gradient(135deg, #1a1510, #2e2415, #1a1510);
}

.blog-card-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
}

.blog-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.blog-card-excerpt {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Blog article */
.article {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: calc(var(--nav-height) + 3rem) 1.5rem 5rem;
}

.article-header {
  margin-bottom: 3rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.article h1 {
  margin-bottom: 1rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.article-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.article-content h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.article-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-content p {
  margin-bottom: 1.25rem;
}

.article-content ul, .article-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }

.article-content li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.article-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.article-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-content a:hover {
  color: var(--accent-hover);
}

.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--text-secondary);
  font-style: italic;
}

.article-cta-box {
  background: var(--bg-secondary);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
}

.article-cta-box h3 {
  margin-bottom: 0.5rem;
}

.article-cta-box p {
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

/* ============================================
   16. FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-logo {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1rem;
}

.footer-logo span {
  color: var(--accent);
}

.footer-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 400px;
  line-height: 1.6;
}

.footer-text a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-right {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================
   17. ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.2s; }

/* ============================================
   18. RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .calc-layout {
    grid-template-columns: 1fr;
  }
  .calc-inputs {
    position: static;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-mobile-toggle {
    display: flex;
  }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    padding: 2rem;
    gap: 1.5rem;
    z-index: 999;
    animation: fadeIn 0.2s ease;
  }

  .nav-links.mobile-open a {
    font-size: 1.25rem;
    color: var(--text-primary);
  }

  .nav-cta.mobile-open {
    display: inline-flex;
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    z-index: 999;
    justify-content: center;
  }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  .hero {
    padding: calc(var(--nav-height) + 2rem) 0 2rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

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

  .quiz-step {
    padding: 1.5rem;
  }

  .quiz-step h2 {
    font-size: 1.35rem;
  }

  .section {
    padding: 3rem 0;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .result-card {
    padding: 1.5rem;
  }

  .calc-table th,
  .calc-table td {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }

  .quiz-option {
    padding: 0.875rem 1rem;
  }

  h1 { font-size: 1.5rem; }
}
