/* 
  Patente Facile - Premium Minimalist Stylesheet
  Inspired by the premium visual rhythm and motion language of tryalcove.com
*/

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

:root {
  /* Premium Design Tokens */
  --bg-cream: #faf7f2;
  --bg-cream-light: #fefcf9;
  --bg-cream-dark: #ede7de;
  --text-dark: #1c1917;
  --text-muted: #57534e;
  --text-light: #a8a29e;
  
  --accent-purple: #6d28d9; /* Alcove style violet */
  --accent-purple-hover: #5b21b6;
  --accent-purple-rgb: 109, 40, 217;
  --accent-navy: #1e3a8a;
  
  --border-color: #ede7de;
  --container-width: 1200px;
  
  /* Typography System */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  
  /* Layout Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-xxl: 96px;
  --section-gap: clamp(100px, 9vw, 170px);
  
  /* Radii & Shadows */
  --radius-pill: 9999px;
  --radius-xxl: 36px;
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  
  --shadow-sm: 0 2px 8px rgba(28, 25, 23, 0.02);
  --shadow-md: 0 12px 36px rgba(28, 25, 23, 0.04);
  --shadow-lg: 0 28px 72px rgba(28, 25, 23, 0.08);
  --shadow-premium: 0 40px 96px rgba(28, 25, 23, 0.12);
  
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-cream);
}

body {
  background-color: var(--bg-cream);
  color: var(--text-dark);
  font-family: var(--font-sans);
  line-height: 1.5;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-cream);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-cream-dark);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: #d7cfc5;
}

/* Typography Scales */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-dark);
}

h1 {
  font-size: clamp(3rem, 7.5vw, 6.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h3 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  letter-spacing: -0.02em;
  font-weight: 600;
}

p {
  font-size: clamp(1rem, 1.05vw, 1.15rem);
  color: var(--text-muted);
  line-height: 1.6;
}

p.lead {
  font-size: clamp(1.15rem, 1.3vw, 1.45rem);
  line-height: 1.5;
  color: var(--text-muted);
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-purple);
  margin-bottom: var(--space-sm);
  display: block;
}

/* Common Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

section {
  padding: var(--section-gap) 0;
  position: relative;
}

/* Scroll Entrance Reveals */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Interactive Buttons */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background-color: var(--bg-cream-dark);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dark);
  border: 1px solid rgba(28, 25, 23, 0.08);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 16px 30px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
  outline: none;
}

.btn-primary {
  background-color: var(--text-dark);
  color: var(--bg-cream);
}

.btn-primary:hover {
  background-color: #2e2a27;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--bg-cream-light);
  color: var(--text-dark);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--text-dark);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.86rem;
}

/* Frosted Glass Floating Navbar */
.navbar-wrapper {
  position: fixed;
  top: 24px;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 var(--space-md);
  transition: var(--transition-smooth);
}

.navbar-wrapper.scrolled {
  top: 12px;
}

.navbar {
  max-width: 900px;
  margin: 0 auto;
  background-color: rgba(254, 252, 249, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(237, 231, 222, 0.7);
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.navbar-wrapper.scrolled .navbar {
  padding: 8px 20px;
  box-shadow: var(--shadow-lg);
  background-color: rgba(254, 252, 249, 0.92);
  border-color: rgba(237, 231, 222, 0.9);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.nav-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: var(--space-md);
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.nav-links a:hover {
  color: var(--text-dark);
}

/* Burger Mobile Menu Trigger */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
  outline: none;
}

.burger-menu span {
  width: 100%;
  height: 2px;
  background-color: var(--text-dark);
  border-radius: var(--radius-pill);
  transition: var(--transition-fast);
}

/* ==========================================================================
   1. Hero Section Layout
   ========================================================================== */
.hero-section {
  padding-top: calc(var(--section-gap) + 80px);
  padding-bottom: calc(var(--section-gap) * 0.6);
  text-align: center;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
}

.hero-content {
  max-width: 860px;
}

.hero-content h1 {
  margin-bottom: var(--space-md);
}

.hero-content p {
  margin-bottom: var(--space-lg);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  margin-bottom: var(--space-md);
}

/* Minimal subtle idle motion preview */
.hero-visual-preview {
  position: relative;
  width: 220px;
  height: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: var(--space-md);
}

.avatar-glow-ring {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109, 40, 217, 0.06) 0%, rgba(109, 40, 217, 0) 70%);
  animation: glowPulse 4s infinite ease-in-out;
}

.avatar-glow-ring-outer {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109, 40, 217, 0.03) 0%, rgba(109, 40, 217, 0) 70%);
  animation: glowPulseOuter 4s infinite ease-in-out;
}

.avatar-dots-fallback {
  display: flex;
  gap: 14px;
  align-items: center;
  z-index: 2;
}

.avatar-dots-fallback .dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--text-dark);
  animation: dotBob 2s infinite ease-in-out;
}

.avatar-dots-fallback .dot.middle {
  width: 18px;
  height: 18px;
  animation-delay: 0.3s;
}

.avatar-dots-fallback .dot:last-child {
  animation-delay: 0.6s;
}

@keyframes dotBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes glowPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
}

@keyframes glowPulseOuter {
  0%, 100% { transform: scale(0.95); opacity: 0.3; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

/* ==========================================================================
   2. Editorial Value Statement
   ========================================================================== */
.value-statement-section {
  padding: var(--space-xxl) 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-cream-light);
}

.value-statement-section blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-dark);
  max-width: 980px;
  margin: 0 auto;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   3. Cinematic Sa3doun Canvas Section
   ========================================================================== */
.sa3doun-cinematic-section {
  background-color: var(--bg-cream);
  text-align: center;
  overflow: hidden;
}

.sa3doun-container {
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sa3doun-header {
  max-width: 720px;
  margin-bottom: var(--space-xl);
}

.sa3doun-header h2 {
  margin-bottom: var(--space-sm);
}

.sa3doun-interactive-target {
  position: relative;
  width: 100%;
  max-width: 440px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--radius-xl);
  padding: var(--space-md);
  cursor: pointer;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 5;
}

/* Elegant focus indicator for keyboard navigation */
.sa3doun-interactive-target:focus-visible {
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.4);
}

/* Hover scales up slightly with active glow */
.sa3doun-interactive-target:hover {
  transform: scale(1.035);
}

.sa3doun-interactive-target:hover .sa3doun-pulse-bg {
  transform: scale(1.15);
  opacity: 0.8;
}

/* Active scale compression */
.sa3doun-interactive-target:active {
  transform: scale(0.965);
}

.sa3doun-pulse-bg {
  position: absolute;
  width: 280px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109, 40, 217, 0.07) 0%, rgba(109, 40, 217, 0) 70%);
  animation: glowPulse 5s infinite ease-in-out;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.canvas-container {
  position: relative;
  width: 100%;
  height: 220px;
  max-width: 400px;
  z-index: 2;
}

.sa3doun-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Fixed height Spoken Text Output container preventing jumps */
.sa3doun-text-container {
  min-height: 140px;
  width: min(90vw, 580px);
  margin-inline: auto;
  margin-top: var(--space-md);
  margin-bottom: var(--space-sm);
  display: block;
  text-align: center;
  z-index: 3;
}

/* Progressive Word Reveal styling matching Flutter ImageFiltered blur text */
.reveal-word {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  line-height: 1.35;
  margin: 2px 4px;
  transition: opacity 0.12s linear, transform 0.12s cubic-bezier(0.16, 1, 0.3, 1), filter 0.12s linear;
}

.sa3doun-title {
  font-family: var(--font-sans);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  line-height: 1.35;
}

.sa3doun-subtitle {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-muted);
  display: block;
  margin-top: 8px;
}

.sa3doun-lesson-image {
  max-height: 160px;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto var(--space-sm);
  display: block;
  border-radius: var(--radius-sm);
}

.sa3doun-lesson-title {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: var(--space-xs);
}

.sa3doun-lesson-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.sa3doun-lesson-text {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: var(--space-xs);
}

.sa3doun-hint {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-top: var(--space-xs);
  transition: opacity 0.4s ease;
  z-index: 3;
}

.sa3doun-hint.hidden {
  opacity: 0;
}

/* ==========================================================================
   4. Minimal Features Grid
   ========================================================================== */
.features-minimal-section {
  background-color: var(--bg-cream-light);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.features-header {
  max-width: 720px;
  margin-bottom: var(--space-xl);
}

.features-editorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  width: 100%;
}

.feature-editorial-card {
  border-top: 1px solid var(--border-color);
  padding-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-purple);
  line-height: 1;
}

.feature-editorial-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.feature-editorial-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   5. Real Driving Theory Exam Simulation
   ========================================================================== */
.exam-section {
  background-color: var(--bg-cream);
  padding: var(--space-xxl) 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.exam-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Exam Start Screen */
.exam-start-screen {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.exam-rotating-message {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: var(--space-lg) auto;
  width: 100%;
  max-width: 600px;
  min-height: 60px; /* Stable layout to prevent jumping */
  text-align: center;
}

.exam-rule {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.5;
  margin: 0;
  opacity: 1;
  transform: none;
  filter: none;
}

.exam-rule strong {
  font-weight: 700;
  color: var(--primary-color);
}

/* Premium Exam Simulator Container Card - Free Floating Layout */
.exam-simulator-container {
  background-color: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  position: relative;
  overflow: visible;
}

/* Exam Header */
.exam-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
  margin-bottom: 4px;
}

.exam-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(28, 25, 23, 0.04);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-dark);
  transition: background-color var(--transition-fast);
}

.exam-close-btn:hover {
  background-color: rgba(28, 25, 23, 0.08);
}

.exam-timer-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(28, 25, 23, 0.04);
  border-radius: 20px;
  padding: 8px 16px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-dark);
  letter-spacing: 0.05em;
}

.timer-icon {
  color: var(--text-light);
}

.exam-submit-btn {
  height: 32px;
  padding: 0 16px;
  border-radius: 16px;
  background-color: var(--accent-purple);
  border: none;
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.8rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(109, 40, 217, 0.2);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.exam-submit-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

/* Metadata Row (Progress and Language Switch) */
.exam-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}



/* Segmented Range Control selector styling */
.exam-range-selector {
  display: flex;
  background-color: var(--bg-cream-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 4px;
  width: 100%;
  margin-bottom: 4px;
}

.range-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 10px 0;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-light);
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-align: center;
}

.range-tab.active {
  background-color: #ffffff;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
}

/* Horizontal single row dots navigator container */
.exam-navigator-row-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  background-color: var(--bg-cream-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 8px 12px;
  margin-bottom: var(--space-sm);
}

.exam-navigator-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.exam-navigator-row::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .exam-navigator-row {
    justify-content: center;
    overflow-x: hidden;
  }
}

.nav-chevron-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-light);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.nav-chevron-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Dot Navigator Button */
.dot-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background-color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.dot-btn.answered {
  border-color: #b7e4c7;
  background-color: #eaf8ef;
  color: #2f7b3e;
}

.dot-btn.current {
  border-color: var(--accent-purple);
  background-color: var(--accent-purple);
  color: #ffffff;
}

/* Question Card */
.exam-question-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  margin-top: 4px;
}

.exam-question-image-container {
  width: 100%;
  height: 180px;
  border-radius: 18px;
  background-color: var(--bg-cream-light);
  border: 1px solid var(--border-color);
  padding: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.exam-question-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.exam-speak-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #f5f9ff;
  border: 1px solid #eaf2ff;
  border-radius: 18px;
  padding: 6px 14px;
  cursor: pointer;
  color: #4a8bff;
  transition: background-color var(--transition-fast);
}

.exam-speak-btn:hover {
  background-color: #ebf3ff;
}

.speaker-icon {
  color: #4a8bff;
}

.exam-question-texts {
  text-align: center;
  width: 100%;
}

.question-text-it {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.35;
}



/* Premium Vero / Falso buttons layout */
.exam-actions {
  display: flex;
  gap: var(--space-md);
  margin-top: 8px;
}

.exam-action-btn {
  flex: 1;
  height: 60px;
  border-radius: 16px;
  border: 1.2px solid transparent;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.1rem;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-vero {
  background-color: #22c55e;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.18);
}

.btn-falso {
  background-color: #ef4444;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.18);
}

/* Faded/unselected state */
.exam-action-btn.unselected {
  background-color: #f8fafc;
  border-color: #f1f5f9;
  color: var(--text-light);
  box-shadow: none;
}

.exam-action-btn.unselected svg {
  color: var(--text-light);
}

/* Next / Prev Bottom Navigation */
.exam-bottom-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-sm);
  border-top: 1px solid var(--border-color);
  padding-top: var(--space-md);
}

/* Modal overlays (Confirmations) */
.exam-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(28, 25, 23, 0.25);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.exam-modal {
  background-color: #ffffff;
  border-radius: 24px;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
  padding: var(--space-xl) var(--space-lg);
  max-width: 420px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  animation: modalScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.exam-modal h3 {
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-dark);
}

.exam-modal p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.exam-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}

/* Result and Correction Screen */
.exam-result-screen {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.result-header-card {
  background-color: #ffffff;
  border-radius: 24px;
  border: 1px solid var(--border-color);
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.result-icon-box {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-icon-box.passed {
  background-color: #eaf8ef;
  color: #2f7b3e;
}

.result-icon-box.failed {
  background-color: #ffecec;
  color: #e53935;
}

.result-text-box h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.result-text-box p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.result-stats-grid {
  display: flex;
  gap: 16px;
}

.stat-card {
  flex: 1;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
}

.stat-value {
  font-family: var(--font-sans);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-dark);
}

.stat-errors .stat-value {
  color: #e53935;
}

.stat-correct .stat-value {
  color: #2f7b3e;
}

.result-actions {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

/* Correction Details List */
.correction-section {
  border-top: 1px solid var(--border-color);
  padding-top: var(--space-lg);
  margin-top: var(--space-md);
}

.correction-section h3 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: var(--space-md);
}

.correction-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.correction-card {
  background-color: #ffffff;
  border-radius: 24px;
  border: 1.5px solid var(--border-color);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  box-shadow: var(--shadow-sm);
}

.correction-card.correct {
  border-color: #b7e4c7;
}

.correction-card.incorrect {
  border-color: #ffc2c2;
}

.correction-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.correction-badge {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 12px;
}

.correction-badge.correct {
  background-color: #eaf8ef;
  color: #2f7b3e;
}

.correction-badge.incorrect {
  background-color: #ffecec;
  color: #e53935;
}

.correction-text-q {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.35;
}

.correction-answers-compare {
  display: flex;
  gap: var(--space-md);
  background-color: var(--bg-cream-light);
  border-radius: 16px;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
}

.compare-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.compare-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
}

.compare-value {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--text-dark);
}

.compare-value.correct-val {
  color: #2f7b3e;
}

.compare-value.wrong-val {
  color: #e53935;
}

.correction-explanation-box {
  background-color: #f5f9ff;
  border: 1px solid #eaf2ff;
  border-radius: 16px;
  padding: 14px;
}

.explanation-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.9rem;
  color: #4a8bff;
  margin-bottom: 6px;
}

.explanation-text {
  font-size: 0.88rem;
  color: var(--text-dark);
  line-height: 1.4;
}

/* ==========================================================================
   6. FAQ Accordions Layout
   ========================================================================== */
.faq-section {
  background-color: var(--bg-cream-light);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.faq-container {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.faq-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.faq-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border-color);
  background-color: var(--bg-cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--text-light);
}

.faq-trigger {
  width: 100%;
  background: transparent;
  border: none;
  padding: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  cursor: pointer;
  outline: none;
}

.faq-trigger h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.faq-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background-color: var(--text-dark);
  transition: var(--transition-fast);
}

/* Horizontal line */
.faq-icon::before {
  top: 7px;
  left: 0;
  width: 100%;
  height: 2px;
}

/* Vertical line */
.faq-icon::after {
  top: 0;
  left: 7px;
  width: 2px;
  height: 100%;
}

.faq-item.active {
  border-color: var(--text-dark);
  background-color: var(--bg-cream-light);
}

.faq-item.active .faq-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-content-inner {
  padding: 0 var(--space-md) var(--space-md);
}

.faq-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   7. Final Premium Download Section & Footer
   ========================================================================== */
.footer-cta-section {
  background-color: #0c0a09; /* Deep charcoal/black */
  color: #ffffff;
  padding-top: var(--space-xxl);
  padding-bottom: var(--space-xl);
  text-align: center;
}

.footer-cta-section h2 {
  color: #ffffff;
  margin-bottom: var(--space-sm);
}

.footer-cta-section p {
  color: var(--text-light);
}

.footer-cta-content {
  max-width: 600px;
  margin: 0 auto var(--space-xxl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.download-badges {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: #1c1917;
  color: #ffffff;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-fast);
}

.store-button:hover {
  background-color: #2e2a27;
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
}

.store-subtitle {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
}

.store-title {
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.footer-brand-meta {
  border-top: 1px solid #2e2a27;
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.footer-logo-block {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: #ffffff;
}

.footer-legal-links {
  list-style: none;
  display: flex;
  gap: var(--space-md);
}

.footer-legal-links a {
  color: var(--text-light);
  font-size: 0.88rem;
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-legal-links a:hover {
  color: #ffffff;
}

.footer-copyright {
  border-top: 1px solid #2e2a27;
  padding-top: var(--space-md);
  font-size: 0.78rem;
  color: #57534e;
}

/* ==========================================================================
   Responsive Viewports Media Queries
   ========================================================================== */
@media (max-width: 868px) {
  .translations-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .translations-text {
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 768px) {
  :root {
    --section-gap: 80px;
  }
  
  .navbar-wrapper {
    top: 12px;
  }
  
  .navbar {
    padding: 10px 20px;
  }
  
  .nav-links,
  .nav-actions {
    display: none; /* Mobile Drawer overrides this */
  }
  
  .burger-menu {
    display: flex;
  }
  
  /* Mobile links drawer overlay */
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 24px;
    right: 24px;
    background-color: rgba(254, 252, 249, 0.98);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    box-shadow: var(--shadow-lg);
    gap: var(--space-md);
    animation: slideDownFade 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  
  @keyframes slideDownFade {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .burger-menu.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .burger-menu.active span:nth-child(2) {
    opacity: 0;
  }
  
  .burger-menu.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  
  .footer-brand-meta {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .footer-legal-links {
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
  }
}

@media (max-width: 480px) {
  :root {
    --section-gap: 64px;
  }
  
  .hero-content h1 {
    font-size: 2.3rem;
  }
  
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  
  .reveal-word {
    font-size: 1.15rem;
  }
}

/* ==========================================================================
   Reduced Motion Styling Override
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-delay: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
  
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  
  .avatar-glow-ring,
  .avatar-glow-ring-outer,
  .avatar-dots-fallback .dot,
  .sa3doun-pulse-bg {
    animation: none !important;
  }
}
