/* ============================
   Light Theme - Educational Site
   ============================ */
:root {
  --bg: #f0f4ff;
  --bg-white: #ffffff;
  --bg-alt: #e8eef8;
  --surface: #f7f9fc;
  --border: #dce3f0;
  --text: #1a2035;
  --text-dim: #5a6580;
  --text-muted: #8a95aa;
  --accent: #4f6ef7;
  --accent-hover: #3a56d4;
  --accent-light: #e8edfe;
  --accent-glow: rgba(79, 110, 247, 0.15);
  --green: #22c55e;
  --green-light: #dcfce7;
  --red: #ef4444;
  --red-light: #fee2e2;
  --orange: #f59e0b;
  --gold: #fbbf24;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 4px 24px rgba(30, 40, 80, 0.08);
  --shadow-lg: 0 12px 48px rgba(30, 40, 80, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 14px 32px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-weight: 800;
  font-size: 18px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav-burger {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 16px 32px;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-burger {
    display: block;
  }
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 120px 24px 80px;
  background: linear-gradient(180deg, #e8edfe 0%, var(--bg) 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, var(--accent) 50%, transparent 100%),
    radial-gradient(2px 2px at 80% 20%, #22c55e 50%, transparent 100%),
    radial-gradient(1px 1px at 50% 60%, var(--accent) 50%, transparent 100%),
    radial-gradient(1px 1px at 70% 80%, #f59e0b 50%, transparent 100%),
    radial-gradient(2px 2px at 30% 70%, var(--accent) 50%, transparent 100%);
  opacity: 0.3;
  animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
  from {
    opacity: 0.2;
  }

  to {
    opacity: 0.5;
  }
}

.hero-globe {
  position: absolute;
  right: -80px;
  bottom: -60px;
  width: 400px;
  height: 400px;
  opacity: 0.08;
}

.globe-sphere {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--accent);
  animation: spin 20s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-light);
  border: 1px solid rgba(79, 110, 247, 0.2);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 24px;
  animation: fadeUp .8s ease both;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  animation: fadeUp .8s ease .15s both;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent), #22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
  animation: fadeUp .8s ease .3s both;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: white;
  padding: 16px 36px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 24px var(--accent-glow);
  animation: fadeUp .8s ease .45s both;
}

.hero-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.hero-btn .arrow {
  transition: transform .2s;
}

.hero-btn:hover .arrow {
  transform: translateX(4px);
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeUp 1s ease .6s both;
}

.scroll-mouse {
  width: 28px;
  height: 44px;
  border: 2px solid var(--text-muted);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-dot {
  width: 4px;
  height: 10px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateY(10px);
    opacity: 0.3;
  }
}

.scroll-indicator span {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 1px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== SECTIONS ===== */
.section {
  padding: 100px 0;
  position: relative;
}

.section-alt {
  background: var(--bg-white);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 12px;
  background: var(--accent-light);
  padding: 6px 16px;
  border-radius: 100px;
}

.section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== FLIP CARDS ===== */
.flip-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .flip-cards {
    grid-template-columns: 1fr;
  }
}

.flip-card {
  perspective: 1000px;
  cursor: pointer;
  height: 260px;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-inner {
  transform: rotateY(180deg);
}

.flip-front,
.flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.flip-front {
  background: var(--bg-white);
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
}

.flip-front:hover {
  border-color: var(--accent);
}

.flip-back {
  background: linear-gradient(135deg, var(--accent), #6366f1);
  color: white;
  transform: rotateY(180deg);
}

.flip-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.flip-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.flip-hint {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.flip-back p {
  font-size: 15px;
  line-height: 1.6;
}

/* ===== TOGGLE COMPARE ===== */
.toggle-switch-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}

.toggle-label {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-dim);
  transition: color .3s;
}

#tl-flat {
  color: var(--text);
}

.toggle-switch {
  position: relative;
  width: 56px;
  height: 30px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--red);
  border-radius: 30px;
  transition: .3s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: .3s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

input:checked+.toggle-slider {
  background: var(--green);
}

input:checked+.toggle-slider::before {
  transform: translateX(26px);
}

.compare-panels {
  position: relative;
}

.compare-panel {
  display: none;
  border-radius: var(--radius);
  overflow: hidden;
  border: none;
  box-shadow: var(--shadow-lg);
  animation: fadeIn .4s ease;
}

.compare-panel.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

@media (max-width: 768px) {
  .compare-panel.active {
    grid-template-columns: 1fr;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.panel-visual {
  position: relative;
  overflow: hidden;
  background: #0d1117;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.panel-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .6s ease;
}

.panel-visual:hover img {
  transform: scale(1.05);
}

.panel-text {
  padding: 44px;
  background: var(--bg-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 300px;
}

@media (max-width: 768px) {
  .panel-text {
    padding: 28px;
    min-height: auto;
  }
}

.panel-text h3 {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 12px;
}

.panel-text p {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.8;
}

/* ===== ANCIENT CARDS ===== */
.ancient-cards {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.ancient-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform .4s ease, box-shadow .4s ease;
}

.ancient-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(30, 40, 80, 0.15);
}

.ancient-card:nth-child(2) {
  direction: rtl;
}

.ancient-card:nth-child(2)>* {
  direction: ltr;
}

.ancient-card-img {
  background: #0d1117;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}

.ancient-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}

.ancient-card:hover .ancient-card-img img {
  transform: scale(1.06);
}

.ancient-card-body {
  padding: 36px;
  background: var(--bg-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ancient-icon {
  font-size: 44px;
  margin-bottom: 12px;
}

.ancient-card h3 {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 10px;
}

.ancient-card p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.8;
}

@media (max-width: 768px) {

  .ancient-card,
  .ancient-card:nth-child(2) {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .ancient-card-img {
    min-height: 200px;
  }

  .ancient-card-body {
    padding: 24px;
  }
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent-light), var(--accent), var(--green));
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -33px;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.timeline-dot.dot-success {
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-light);
}

.timeline-content {
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: all .3s;
}

.timeline-content:hover {
  transform: translateX(8px);
  border-color: var(--accent);
}

.timeline-date {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.timeline-date.success {
  color: var(--green);
  background: var(--green-light);
}

.timeline-content h4 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ===== PROOF CARDS ===== */
.proof-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.proof-card {
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: all .3s;
  box-shadow: var(--shadow);
}

.proof-card:hover {
  border-color: var(--accent);
}

.proof-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  font-weight: 700;
}

.proof-num {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  flex-shrink: 0;
}

.proof-header h3 {
  flex: 1;
  font-size: 18px;
  font-weight: 700;
}

.proof-toggle {
  font-size: 24px;
  color: var(--accent);
  font-weight: 300;
  transition: transform .3s;
}

.proof-card.open .proof-toggle {
  transform: rotate(45deg);
}

.proof-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s;
  padding: 0 28px;
}

.proof-card.open .proof-body {
  max-height: 200px;
  padding: 0 28px 24px;
}

.proof-body p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ===== GLOBE SECTION ===== */
.globe-section {
  max-width: 800px;
  margin: 0 auto;
}

.globe-info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 600px) {
  .globe-info-cards {
    grid-template-columns: 1fr;
  }
}

.globe-info-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 28px;
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
}

.globe-info-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.globe-info-card h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.globe-info-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 16px;
}

.globe-bar {
  width: 100%;
  height: 32px;
  background: var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.globe-bar-fill {
  height: 100%;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: white;
  transition: width 1.5s ease;
}

.water-fill {
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
}

.land-fill {
  background: linear-gradient(90deg, #22c55e, #84cc16);
}

.globe-fact {
  background: linear-gradient(135deg, var(--accent-light), #dcfce7);
  border-radius: var(--radius);
  padding: 24px 32px;
  border: 1px solid var(--border);
}

.globe-fact p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}

/* ===== SUN SECTION ===== */
.sun-facts {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 768px) {
  .sun-facts {
    grid-template-columns: 1fr;
  }
}

.sun-orbit-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.orbit-ring {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 2px dashed var(--border);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sun-center {
  font-size: 56px;
}

.earth-orbit {
  position: absolute;
  width: 100%;
  height: 100%;
  animation: orbitSpin 8s linear infinite;
}

.earth-dot {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 28px;
}

@keyframes orbitSpin {
  to {
    transform: rotate(360deg);
  }
}

.sun-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sun-card {
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow);
  transition: all .3s;
}

.sun-card:hover {
  transform: translateX(8px);
  border-color: var(--accent);
}

.sun-card.highlight {
  border-color: var(--gold);
  background: #fffbeb;
}

.sun-card-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.sun-card h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
}

.sun-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ===== RIDDLES ===== */
.riddles-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .riddles-container {
    grid-template-columns: 1fr;
  }
}

.riddle-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow);
}

.riddle-text {
  background: var(--bg-white);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.riddle-text p {
  font-size: 17px;
  line-height: 1.8;
  font-style: italic;
  color: var(--text);
}

.riddle-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .3s;
  font-family: 'Inter', sans-serif;
}

.riddle-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.riddle-answer {
  margin-top: 16px;
  font-size: 24px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(10px);
  transition: all .3s;
}

.riddle-answer.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== QUIZ ===== */
.quiz-container {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--border);
}

.quiz-progress {
  width: 100%;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  margin-bottom: 8px;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--green));
  border-radius: 4px;
  transition: width .5s ease;
}

.quiz-counter {
  text-align: right;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.quiz-question {
  display: none;
}

.quiz-question.active {
  display: block;
  animation: fadeIn .4s ease;
}

.quiz-question h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 24px;
  text-align: center;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-opt {
  width: 100%;
  padding: 18px 24px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all .3s;
  text-align: left;
  font-family: 'Inter', sans-serif;
  color: var(--text);
}

.quiz-opt:hover:not(.selected) {
  border-color: var(--accent);
  background: var(--accent-light);
  transform: translateX(8px);
}

.quiz-opt.correct {
  border-color: var(--green);
  background: var(--green-light);
  color: #166534;
}

.quiz-opt.wrong {
  border-color: var(--red);
  background: var(--red-light);
  color: #991b1b;
}

.quiz-opt.selected {
  pointer-events: none;
}

.quiz-result {
  display: none;
  text-align: center;
  animation: fadeIn .5s ease;
}

.quiz-result.active {
  display: block;
}

.result-emoji {
  font-size: 72px;
  margin-bottom: 16px;
}

.quiz-result h3 {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 8px;
}

.quiz-result p {
  font-size: 16px;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.result-score {
  font-size: 18px;
  color: var(--text);
  padding: 16px 24px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 24px;
}

.quiz-restart {
  background: var(--accent);
  color: white;
  border: none;
  padding: 16px 36px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all .3s;
  font-family: 'Inter', sans-serif;
}

.quiz-restart:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}


/* ===== FACTS GRID ===== */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .facts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .facts-grid {
    grid-template-columns: 1fr;
  }
}

.fact-card {
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all .3s ease;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.fact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #22c55e);
  opacity: 0;
  transition: opacity .3s;
}

.fact-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.fact-card:hover::before {
  opacity: 1;
}

.fact-icon {
  font-size: 40px;
  margin-bottom: 14px;
}

.fact-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.fact-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 40px 24px;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}