* { box-sizing: border-box; }
:root {
  --primary: #2D3748;
  --secondary: #4A5568;
  --accent: #3182CE;
  --success: #38A169;
  --background: #F7FAFC;
  --surface: #FFFFFF;
  --text-primary: #1A202C;
  --text-secondary: #4A5568;
  --text-muted: #718096;
  --border: #E2E8F0;
}
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; color: var(--text-primary); background: var(--background); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-small { max-width: 800px; margin: 0 auto; padding: 0 24px; }

.hero { padding: 80px 0 100px; text-align: center; background: linear-gradient(180deg, var(--surface) 0%, var(--background) 100%); }
.hero-badge { display:inline-block; padding:8px 20px; background:#EBF8FF; color: var(--accent); border-radius: 999px; font-weight:600; margin-bottom: 16px; }
.hero-title { font-size: 48px; font-weight: 800; margin: 0 0 16px; }
.gradient-text { background: linear-gradient(135deg, var(--accent) 0%, #667EEA 100%); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.hero-subtitle { color: var(--text-secondary); max-width: 720px; margin: 0 auto 22px; }
.cta-button { display:inline-flex; align-items:center; gap:8px; padding: 14px 26px; background: var(--primary); color: #fff; border:0; border-radius: 12px; font-weight:700; cursor:pointer; }
.cta-button:hover { background: var(--secondary); }

.test-container { padding: 60px 0 100px; min-height: 80vh; }
.progress-bar { width:100%; height:8px; background: var(--border); border-radius:10px; overflow:hidden; margin-bottom: 12px; }
.progress-fill { height:100%; background: linear-gradient(90deg, var(--accent) 0%, #667EEA 100%); width:0; transition: width .3s ease; }
.progress-text { text-align:center; color: var(--text-muted); font-weight:600; margin-bottom: 24px; }

.question-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px; box-shadow: 0 4px 24px rgba(0,0,0,.06); }
.question-text { font-size: 22px; font-weight: 800; margin: 0 0 6px; }
.pair-instruction { color: var(--text-secondary); margin: 0 0 18px; }

.pair-grid { display:grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; }
.pair-option { padding: 18px; text-align:left; background: #F8FAFC; border: 2px solid var(--border); border-radius: 14px; cursor: pointer; transition: transform .08s ease, border-color .15s ease, background .15s ease; }
.pair-option:hover { border-color: var(--accent); background: #EBF8FF; }
.pair-or { align-self:center; color: var(--text-muted); font-weight:700; padding: 0 8px; }

.pair-steps { margin-top: 12px; text-align:center; color: var(--text-muted); font-size: 0.9rem; }

.navigation-buttons { display:flex; justify-content:center; gap: 12px; margin-top: 16px; }
.btn-secondary { padding: 10px 18px; border-radius: 10px; border: 2px solid var(--border); background: var(--surface); cursor: pointer; font-weight: 600; }
.btn-secondary:hover { background: #F8FAFC; }

/* Results */
.result-section { padding: 60px 0 100px; }
.result-header { text-align:center; margin-bottom: 28px; }
.result-card { background: var(--surface); border:1px solid var(--border); border-radius: 16px; padding: 24px; box-shadow: 0 4px 24px rgba(0,0,0,.06); }
.score-bar { margin-bottom: 14px; }
.score-label { display:flex; justify-content:space-between; font-weight:600; margin-bottom:6px; }
.score-bar-bg { height:12px; background: var(--border); border-radius:10px; overflow:hidden; }
.score-bar-fill { height:100%; background: var(--accent); border-radius:10px; }

.footer { padding: 40px 0; background: var(--primary); color: #fff; text-align:center; margin-top: 32px; }
.footer-links { display:flex; gap: 24px; justify-content:center; margin-top: 8px; }
.footer-links a { color: #fff; opacity:.9; text-decoration:none; }

@media (max-width: 768px) {
  .hero-title { font-size: 34px; }
  .question-card { padding: 20px; }
  .pair-grid { grid-template-columns: 1fr; }
  .pair-or { display:none; }
}
