/* ========================================
   AUTO IN ITALIA - Main Stylesheet
   Modern, colorful, gamified design
   ======================================== */

/* --- CSS Variables --- */
:root {
  --primary: #00B894;
  --primary-dark: #00997A;
  --secondary: #FF6B35;
  --secondary-dark: #E55A2B;
  --accent: #6C5CE7;
  --accent-light: #A29BFE;
  --blue: #0984E3;
  --blue-light: #74B9FF;
  --yellow: #FDCB6E;
  --yellow-dark: #F0B429;
  --red: #E17055;
  --pink: #FD79A8;
  --bg: #F8F9FC;
  --bg-alt: #EDF2F7;
  --card: #FFFFFF;
  --text: #2D3436;
  --text-light: #636E72;
  --text-muted: #B2BEC3;
  --border: #DFE6E9;
  --shadow: 0 4px 15px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --header-height: 70px;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #00B894, #00CEC9);
  --grad-secondary: linear-gradient(135deg, #FF6B35, #FD79A8);
  --grad-accent: linear-gradient(135deg, #6C5CE7, #A29BFE);
  --grad-blue: linear-gradient(135deg, #0984E3, #74B9FF);
  --grad-hero: linear-gradient(135deg, #00B894 0%, #0984E3 50%, #6C5CE7 100%);
  --grad-dark: linear-gradient(135deg, #2D3436, #636E72);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--secondary); }

img { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  line-height: 1.3;
  font-weight: 700;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--grad-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: white;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-xs);
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.93rem;
  transition: all var(--transition);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-dark);
  background: rgba(0, 184, 148, 0.08);
}

.nav-links a.active {
  font-weight: 600;
}

/* XP Badge in header */
.xp-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--grad-accent);
  color: white;
  padding: 6px 14px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform var(--transition);
}

.xp-badge:hover { transform: scale(1.05); }

.xp-badge .xp-icon { font-size: 1.1rem; }

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
}

/* --- Hero Section --- */
.hero {
  background: var(--grad-hero);
  padding: 80px 24px 100px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
  animation: heroFloat 20s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 16px;
  font-weight: 800;
}

.hero .subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: white;
  color: var(--primary-dark);
}
.btn-primary:hover {
  background: var(--yellow);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: rgba(255,255,255,0.2);
  color: white;
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--grad-accent);
  color: white;
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-green {
  background: var(--grad-primary);
  color: white;
}
.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-orange {
  background: var(--grad-secondary);
  color: white;
}
.btn-orange:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  padding: 50px 24px 60px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 12px;
}

.page-hero .lead {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.page-hero.green { background: var(--grad-primary); }
.page-hero.blue { background: var(--grad-blue); }
.page-hero.purple { background: var(--grad-accent); }
.page-hero.orange { background: var(--grad-secondary); }

/* --- Section --- */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 12px;
  color: var(--text);
}

.section-title p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-title .emoji-big {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 16px;
}

/* --- Progress Roadmap (Homepage) --- */
.roadmap {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.roadmap::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--border);
  border-radius: 2px;
}

.roadmap-step {
  position: relative;
  padding-left: 80px;
  padding-bottom: 40px;
  cursor: pointer;
}

.roadmap-step:last-child { padding-bottom: 0; }

.step-number {
  position: absolute;
  left: 12px;
  top: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  z-index: 2;
  transition: all var(--transition);
  background: var(--border);
  color: var(--text-muted);
}

.roadmap-step.completed .step-number {
  background: var(--grad-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 184, 148, 0.4);
}

.roadmap-step.current .step-number {
  background: var(--grad-secondary);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.step-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 2px solid transparent;
}

.step-card:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.roadmap-step.completed .step-card {
  border-color: rgba(0, 184, 148, 0.2);
}

.step-card h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.step-card .step-meta {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.step-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
}

.step-tag.time {
  background: rgba(9, 132, 227, 0.1);
  color: var(--blue);
}

.step-tag.xp {
  background: rgba(108, 92, 231, 0.1);
  color: var(--accent);
}

.step-tag.done {
  background: rgba(0, 184, 148, 0.1);
  color: var(--primary);
}

/* --- Cards Grid --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
}

.card-icon.green { background: rgba(0, 184, 148, 0.12); }
.card-icon.blue { background: rgba(9, 132, 227, 0.12); }
.card-icon.purple { background: rgba(108, 92, 231, 0.12); }
.card-icon.orange { background: rgba(255, 107, 53, 0.12); }
.card-icon.yellow { background: rgba(253, 203, 110, 0.2); }
.card-icon.pink { background: rgba(253, 121, 168, 0.12); }

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 0.95rem;
}

.card .card-link:hover {
  gap: 10px;
  color: var(--secondary);
}

/* --- Phase Content Cards --- */
.phase-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 36px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
  position: relative;
}

.phase-card .phase-number {
  position: absolute;
  top: -14px;
  left: 28px;
  background: var(--grad-primary);
  color: white;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
}

.phase-card.blue .phase-number { background: var(--grad-blue); }
.phase-card.purple .phase-number { background: var(--grad-accent); }
.phase-card.orange .phase-number { background: var(--grad-secondary); }

.phase-card h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  margin-top: 8px;
}

.phase-card h3 {
  font-size: 1.15rem;
  margin: 20px 0 10px;
  color: var(--text);
}

.phase-card p, .phase-card li {
  color: var(--text-light);
  font-size: 0.95rem;
}

.phase-card ul, .phase-card ol {
  padding-left: 20px;
  margin-bottom: 12px;
}

.phase-card li {
  margin-bottom: 6px;
}

/* Checklist inside phases */
.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-xs);
  transition: background var(--transition);
  cursor: pointer;
}

.checklist li:hover {
  background: var(--bg);
}

.checklist li .check-box {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}

.checklist li.checked .check-box {
  background: var(--grad-primary);
  border-color: var(--primary);
  color: white;
}

.checklist li.checked {
  color: var(--text-muted);
  text-decoration: line-through;
}

/* --- Info Boxes --- */
.info-box {
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 20px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.info-box .info-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.info-box.tip {
  background: rgba(0, 184, 148, 0.08);
  border-left: 4px solid var(--primary);
}

.info-box.warning {
  background: rgba(253, 203, 110, 0.15);
  border-left: 4px solid var(--yellow-dark);
}

.info-box.important {
  background: rgba(225, 112, 85, 0.08);
  border-left: 4px solid var(--red);
}

.info-box.info {
  background: rgba(9, 132, 227, 0.08);
  border-left: 4px solid var(--blue);
}

.info-box p {
  font-size: 0.93rem;
  color: var(--text);
}

.info-box strong {
  display: block;
  margin-bottom: 4px;
}

/* --- Cost Table --- */
.cost-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 20px 0;
  box-shadow: var(--shadow);
}

.cost-table thead {
  background: var(--grad-primary);
  color: white;
}

.cost-table th {
  padding: 14px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
}

.cost-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.93rem;
}

.cost-table tbody tr {
  background: var(--card);
  transition: background var(--transition);
}

.cost-table tbody tr:hover {
  background: var(--bg);
}

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

/* --- Timeline Table --- */
.timeline-table thead { background: var(--grad-blue); }
.timeline-table.purple thead { background: var(--grad-accent); }

/* --- Quiz Section --- */
.quiz-container {
  max-width: 700px;
  margin: 0 auto;
}

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

.quiz-progress-bar {
  flex: 1;
  height: 12px;
  background: var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: var(--grad-primary);
  border-radius: 6px;
  transition: width 0.5s ease;
  width: 0%;
}

.quiz-progress-text {
  font-weight: 700;
  color: var(--text-light);
  font-size: 0.9rem;
  white-space: nowrap;
}

.quiz-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  text-align: center;
}

.quiz-card .question-number {
  display: inline-block;
  background: var(--grad-accent);
  color: white;
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.quiz-card h2 {
  font-size: 1.4rem;
  margin-bottom: 28px;
  line-height: 1.5;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.quiz-option {
  padding: 16px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
}

.quiz-option:hover {
  border-color: var(--accent-light);
  background: rgba(108, 92, 231, 0.04);
}

.quiz-option .option-letter {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--bg);
  color: var(--text-light);
  flex-shrink: 0;
  transition: all var(--transition);
}

.quiz-option:hover .option-letter {
  background: var(--accent-light);
  color: white;
}

.quiz-option.correct {
  border-color: var(--primary);
  background: rgba(0, 184, 148, 0.06);
  animation: correctPop 0.4s ease;
}

.quiz-option.correct .option-letter {
  background: var(--primary);
  color: white;
}

.quiz-option.wrong {
  border-color: var(--red);
  background: rgba(225, 112, 85, 0.06);
  animation: shake 0.4s ease;
}

.quiz-option.wrong .option-letter {
  background: var(--red);
  color: white;
}

.quiz-option.disabled {
  pointer-events: none;
  opacity: 0.7;
}

@keyframes correctPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.quiz-feedback {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: none;
}

.quiz-feedback.show { display: block; }

.quiz-feedback.correct {
  background: rgba(0, 184, 148, 0.1);
  color: var(--primary-dark);
}

.quiz-feedback.wrong {
  background: rgba(225, 112, 85, 0.1);
  color: var(--red);
}

.quiz-next {
  margin-top: 24px;
  display: none;
}

.quiz-next.show { display: inline-flex; }

/* Quiz Results */
.quiz-results {
  text-align: center;
  padding: 40px;
}

.quiz-results .score-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-weight: 800;
  color: white;
}

.quiz-results .score-circle.great { background: var(--grad-primary); }
.quiz-results .score-circle.good { background: var(--grad-blue); }
.quiz-results .score-circle.okay { background: var(--grad-secondary); }

.quiz-results .score-number {
  font-size: 2.5rem;
  line-height: 1;
}

.quiz-results .score-label {
  font-size: 0.85rem;
  opacity: 0.9;
}

.quiz-results h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.quiz-results p {
  color: var(--text-light);
  margin-bottom: 24px;
  font-size: 1.05rem;
}

/* --- Achievement Toast --- */
.achievement-toast {
  position: fixed;
  top: 90px;
  right: 24px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 9999;
  transform: translateX(120%);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-left: 4px solid var(--yellow-dark);
  max-width: 350px;
}

.achievement-toast.show {
  transform: translateX(0);
}

.achievement-toast .toast-icon {
  font-size: 2rem;
}

.achievement-toast .toast-text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
}

.achievement-toast .toast-text span {
  font-size: 0.82rem;
  color: var(--text-light);
}

.achievement-toast .toast-xp {
  font-weight: 800;
  color: var(--accent);
  font-size: 0.85rem;
  background: rgba(108, 92, 231, 0.1);
  padding: 4px 10px;
  border-radius: 50px;
  white-space: nowrap;
}

/* --- Progress Widget (floating) --- */
.progress-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
}

.progress-fab {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--grad-accent);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
}

.progress-fab:hover { transform: scale(1.1); }

.progress-panel {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 320px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  display: none;
  animation: panelSlideUp 0.3s ease;
}

.progress-panel.open { display: block; }

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

.progress-panel h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.progress-panel .level-info {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.progress-bar-container {
  margin-bottom: 20px;
}

.progress-bar-bg {
  height: 10px;
  background: var(--border);
  border-radius: 5px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--grad-primary);
  border-radius: 5px;
  transition: width 0.8s ease;
}

.progress-bar-label {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.mini-achievements {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: var(--bg);
  transition: all var(--transition);
  cursor: help;
  position: relative;
}

.mini-badge.earned {
  background: rgba(253, 203, 110, 0.2);
  box-shadow: 0 2px 8px rgba(253, 203, 110, 0.3);
}

.mini-badge.locked {
  filter: grayscale(1);
  opacity: 0.4;
}

/* --- Stats Row --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.stat-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.stat-card:hover { transform: translateY(-4px); }

.stat-card .stat-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
}

.stat-card .stat-label {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* --- Comparison Box --- */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 24px 0;
}

.comparison-box {
  border-radius: var(--radius-sm);
  padding: 24px;
}

.comparison-box.pro {
  background: rgba(0, 184, 148, 0.06);
  border: 2px solid rgba(0, 184, 148, 0.15);
}

.comparison-box.con {
  background: rgba(225, 112, 85, 0.06);
  border: 2px solid rgba(225, 112, 85, 0.15);
}

.comparison-box h4 {
  font-size: 1rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.comparison-box ul {
  list-style: none;
  padding: 0;
}

.comparison-box li {
  padding: 6px 0;
  font-size: 0.93rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--grad-hero);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  color: white;
  margin: 40px 0;
}

.cta-banner h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.cta-banner p {
  opacity: 0.9;
  margin-bottom: 24px;
  font-size: 1.05rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer-col h4 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  padding: 4px 0;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

.footer-lang {
  display: flex;
  gap: 12px;
}

.footer-lang button {
  background: rgba(255,255,255,0.1);
  border: none;
  color: rgba(255,255,255,0.7);
  padding: 6px 14px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.82rem;
  transition: all var(--transition);
}

.footer-lang button:hover,
.footer-lang button.active {
  background: var(--primary);
  color: white;
}

/* --- Bilingual Tooltip --- */
.en-hint {
  color: var(--blue);
  font-size: 0.82rem;
  font-style: italic;
  display: block;
  margin-top: 2px;
}

/* --- Animations on Scroll --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* --- Nav breadcrumb --- */
.breadcrumb {
  padding: 12px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-light);
}

.breadcrumb span { margin: 0 6px; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .comparison-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 999;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    padding: 14px 16px;
    font-size: 1.1rem;
  }

  .menu-toggle { display: block; }

  .hero { padding: 50px 24px 70px; }

  .section { padding: 50px 0; }

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

  .stats-row {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

  .cta-banner { padding: 32px 24px; }

  .progress-panel { width: 280px; right: -10px; }

  .quiz-card { padding: 24px; }

  .phase-card { padding: 24px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .stats-row { grid-template-columns: 1fr; }
  .roadmap-step { padding-left: 64px; }
  .roadmap::before { left: 24px; }
  .step-number { left: 4px; width: 36px; height: 36px; font-size: 0.85rem; }
}

/* --- Skeleton loading --- */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, var(--bg) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-xs);
}

/* --- SVG Icon System --- */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  flex-shrink: 0;
}

.icon svg {
  width: 100%;
  height: 100%;
}

.card-icon .icon,
.stat-card .stat-icon .icon {
  width: 1.6rem;
  height: 1.6rem;
}

.step-card h3 .icon,
.phase-card h2 .icon {
  width: 1.2em;
  height: 1.2em;
}

.info-box .info-icon .icon {
  width: 1.4rem;
  height: 1.4rem;
}

.logo-icon .icon {
  width: 1.4rem;
  height: 1.4rem;
  color: white;
}

.icon-inline {
  display: inline-flex;
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.15em;
  margin-right: 4px;
}

.icon-inline svg {
  width: 100%;
  height: 100%;
}

/* --- Language Selector --- */
.lang-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lang-option {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  padding: 5px 12px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 500;
  transition: all var(--transition);
  font-family: inherit;
}

.lang-option:hover {
  background: rgba(255,255,255,0.2);
  color: white;
}

.lang-option.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Header language selector */
.header-lang .lang-selector {
  gap: 4px;
}

.header-lang .lang-option {
  background: var(--bg);
  border-color: var(--border);
  color: var(--text-light);
  padding: 4px 10px;
  font-size: 0.72rem;
}

.header-lang .lang-option:hover {
  background: var(--bg-alt);
  color: var(--text);
}

.header-lang .lang-option.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* --- Print --- */
@media print {
  .site-header, .site-footer, .progress-widget, .achievement-toast, .menu-toggle { display: none !important; }
  .hero, .page-hero { background: #333 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { font-size: 12pt; }
}
