﻿:root {
  color-scheme: dark;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #f7f2ea;
  background: #08050e;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(249, 184, 23, 0.1), transparent 18%),
    linear-gradient(180deg, #070407 0%, #060305 100%);
  color: #f7f2ea;
  line-height: 1.7;
}

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

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

button {
  font: inherit;
  cursor: pointer;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

h1 em {
  font-style: italic;
  color: #f9b817;
}

.btn-icon {
  font-size: 0.75em;
  margin-right: 0.2rem;
}

.hero-tag-dot {
  font-size: 0.6em;
  margin-right: 0.2rem;
  vertical-align: middle;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(5, 5, 5, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar-inner {
  display: grid;
  grid-template-columns: minmax(180px, max-content) 1fr minmax(120px, max-content);
  align-items: center;
  gap: 1rem;
  min-height: 72px;
}

.brand-wrap,
.footer-masthead {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #f3e4c6;
  font-weight: 600;
}

.brand-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: #f9b817;
  box-shadow: 0 0 18px rgba(249, 184, 23, 0.5);
}

.brand-name,
.grade-label,
.footer-title {
  letter-spacing: 0.05em;
}

.topnav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.topnav a {
  color: rgba(247, 242, 234, 0.76);
  font-size: 0.97rem;
  transition: color 0.2s ease;
}

.topnav a:hover,
.topnav a:focus-visible {
  color: #f9b817;
}

.grade-label {
  color: rgba(247, 242, 234, 0.78);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-section {
  position: relative;
  min-height: calc(100vh - 72px);
  padding: 4rem 0 3rem;
  background-image: linear-gradient(to right, rgba(5, 3, 2, 0.92) 40%, rgba(5, 3, 2, 0.45) 100%), url('kora-hero.jpg');
  background-size: cover;
  background-position: center right;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 22% 40%, rgba(249, 184, 23, 0.24), transparent 28%),
    radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.05), transparent 22%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 680px;
}

.hero-meta {
  max-width: 680px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f9b817;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.78rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}

.hero-meta h1 {
  margin: 0;
  font-size: clamp(3.6rem, 5vw + 1.2rem, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero-meta h1 em {
  color: #f9b817;
  font-style: italic;
}

.hero-meta p {
  font-size: 1.05rem;
  max-width: 640px;
  margin: 1.8rem 0 2.3rem;
  color: rgba(247, 242, 234, 0.86);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.8rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.button-primary {
  background: #f9b817;
  color: #0f0a07;
  box-shadow: 0 20px 60px rgba(249, 184, 23, 0.22);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f7f2ea;
}

.button:hover {
  transform: translateY(-2px);
}

.hero-stat-block {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.hero-stat {
  text-align: left;
}

.hero-stat span {
  display: block;
  font-size: 2.7rem;
  font-weight: 700;
  color: #f9b817;
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1;
}

.hero-stat p {
  margin: 0.5rem 0 0;
  color: rgba(247, 242, 234, 0.78);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.scroll-hint {
  text-align: center;
  margin-top: 2.5rem;
  color: rgba(247, 242, 234, 0.52);
  letter-spacing: 0.35em;
  font-size: 0.8rem;
}

.section {
  position: relative;
}

.section-padded {
  padding: 6rem 0;
}

.dark-section {
  background: rgba(255, 255, 255, 0.015);
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

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

.section-heading-left {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.section-mini {
  color: #f9b817;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.section-heading-left h2 {
  font-size: clamp(3rem, 4vw + 1rem, 4.2rem);
  margin: 0;
  line-height: 1.02;
}

.section-content-right p {
  margin: 0 0 1.6rem;
  color: rgba(247, 242, 234, 0.86);
  font-size: 1rem;
}

.section-intro {
  max-width: 720px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.info-card {
  padding: 1.75rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.info-card h3 {
  margin: 0 0 0.85rem;
  color: #f9b817;
}

.info-card p {
  margin: 0;
  color: rgba(247, 242, 234, 0.82);
}

.map-card {
  margin-top: 2.5rem;
  padding: 1rem;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.map-card img {
  border-radius: 24px;
}

.country-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.country-grid article {
  padding: 1.6rem 1.5rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.country-grid h3 {
  margin: 0 0 0.7rem;
}

.features-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  padding: 1.8rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.feature-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: rgba(249, 184, 23, 0.18);
  color: #f9b817;
  font-weight: 700;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin: 0 0 0.85rem;
}

.feature-card p {
  margin: 0;
  color: rgba(247, 242, 234, 0.84);
}

.griot-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.griot-image {
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.25);
}

.griot-image img {
  width: 100%;
  height: auto;
  display: block;
}

.griot-copy h2 {
  margin-top: 0;
}

.griot-copy p {
  margin: 1.4rem 0;
  color: rgba(247, 242, 234, 0.86);
}

blockquote {
  margin: 0;
  padding: 1.5rem 1.7rem;
  border-left: 3px solid #f9b817;
  color: rgba(247, 242, 234, 0.9);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 18px;
  font-style: italic;
}

.quiz-card-block {
  padding: 2.2rem;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.quiz-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 2.25rem;
}

.quiz-note {
  color: rgba(247, 242, 234, 0.7);
  max-width: 320px;
}

.quiz-grid {
  display: grid;
  gap: 1.4rem;
}

.quiz-card {
  padding: 1.75rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
}

.quiz-question {
  margin: 0 0 1rem;
  font-weight: 600;
}

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

.quiz-option {
  width: 100%;
  padding: 1rem 1.2rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f7f2ea;
  text-align: left;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.quiz-option:hover {
  transform: translateY(-1px);
  background: rgba(249, 184, 23, 0.12);
}

.quiz-option.correct {
  border-color: rgba(48, 142, 57, 0.5);
  background: rgba(48, 142, 57, 0.16);
}

.quiz-option.wrong {
  border-color: rgba(214, 59, 59, 0.5);
  background: rgba(214, 59, 59, 0.16);
}

.quiz-result {
  margin-top: 1.8rem;
  padding: 1.4rem 1.5rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(247, 242, 234, 0.92);
}

.glossary-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.glossary-mini {
  color: rgba(247, 242, 234, 0.68);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.glossary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.glossary-column dl {
  display: grid;
  gap: 1rem;
}

.glossary-item {
  display: grid;
  gap: 0.35rem;
}

.glossary-item dt {
  color: #f9b817;
  font-weight: 700;
}

.glossary-item dd {
  margin: 0;
  color: rgba(247, 242, 234, 0.82);
}

.footer-section {
  padding: 4rem 0 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  align-items: start;
}

.footer-title {
  margin: 0 0 0.9rem;
  color: #f9b817;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.footer-links li {
  color: rgba(247, 242, 234, 0.78);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  color: rgba(247, 242, 234, 0.64);
  flex-wrap: wrap;
}

@media (max-width: 1040px) {
  .topbar-inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .topnav {
    justify-content: flex-start;
    gap: 1.25rem;
  }

  .section-grid,
  .griot-grid,
  .country-grid,
  .features-grid,
  .glossary-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-section {
    padding-top: 3rem;
  }
}

@media (max-width: 720px) {
  .hero-meta h1 {
    font-size: 3.4rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .quiz-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .quiz-options {
    grid-template-columns: 1fr;
  }
}
