/* ============================================
   BEIT KAVKAZ — AZERBAIJAN: LAND OF FIRE
   "Where Fire Meets Faith" Design System
   Warm, dramatic, cinematic — ember & saffron
   ============================================ */

/* --- Design Tokens --- */
:root {
  /* Ember Backgrounds */
  --bg-ember: #1a0a00;
  --bg-deep: #0d0805;
  --bg-warm: #1f1008;
  --bg-raised: #2a1a0e;
  --bg-surface: #332214;

  /* Fire Palette */
  --flame: #E8590C;
  --saffron: #F59E0B;
  --amber: #D4922A;
  --amber-light: #e8b94e;
  --amber-dim: #a06e1a;
  --caspian: #0EA5E9;
  --caspian-dim: #0b7eb3;

  /* Text */
  --text-primary: #f5ebe0;
  --text-secondary: rgba(245, 235, 224, 0.72);
  --text-muted: rgba(245, 235, 224, 0.42);

  /* Ember Glow */
  --glow-warm: rgba(232, 89, 12, 0.12);
  --glow-saffron: rgba(245, 158, 11, 0.1);
  --glow-border: rgba(212, 146, 42, 0.25);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 200ms;
  --duration-base: 400ms;
  --duration-slow: 700ms;

  /* Layout */
  --container-max: 1200px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.15;
}

h1 { font-weight: 800; }
h2 { font-weight: 700; }
h3 { font-weight: 600; }

/* --- Container --- */
.container {
  width: min(var(--container-max), 100% - var(--space-lg) * 2);
  margin-inline: auto;
}

/* --- Section --- */
.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

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

.section__eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--saffron);
  margin-bottom: var(--space-sm);
  display: block;
}

.section__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--amber-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-sm);
}

.section__subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin-inline: auto;
}

/* --- Carpet Pattern Border --- */
.carpet-border {
  position: relative;
}

.carpet-border::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--flame) 0px,
    var(--flame) 8px,
    var(--saffron) 8px,
    var(--saffron) 16px,
    var(--amber) 16px,
    var(--amber) 24px,
    var(--flame) 24px,
    var(--flame) 28px,
    transparent 28px,
    transparent 32px
  );
}

.carpet-border-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--saffron) 0px,
    var(--saffron) 6px,
    var(--flame) 6px,
    var(--flame) 12px,
    var(--amber) 12px,
    var(--amber) 18px,
    transparent 18px,
    transparent 22px
  );
}

/* --- Woven Texture Background --- */
.woven-bg {
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(212, 146, 42, 0.03) 0px,
      rgba(212, 146, 42, 0.03) 1px,
      transparent 1px,
      transparent 20px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(212, 146, 42, 0.03) 0px,
      rgba(212, 146, 42, 0.03) 1px,
      transparent 1px,
      transparent 20px
    );
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 100ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 200ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 300ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 400ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 500ms; opacity: 1; transform: translateY(0); }

/* =============================
   EMBER PARTICLES (CSS-only)
   ============================= */
.ember-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}

.ember-particles span {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: emberRise linear infinite;
  filter: blur(0.5px);
}

/* Particle variations — staggered sizes, positions, speeds */
.ember-particles span:nth-child(1) { left: 8%; width: 3px; height: 3px; background: var(--flame); animation-duration: 7s; animation-delay: 0s; }
.ember-particles span:nth-child(2) { left: 15%; width: 2px; height: 2px; background: var(--saffron); animation-duration: 11s; animation-delay: 1.5s; }
.ember-particles span:nth-child(3) { left: 25%; width: 4px; height: 4px; background: var(--amber); animation-duration: 9s; animation-delay: 3s; }
.ember-particles span:nth-child(4) { left: 35%; width: 2px; height: 2px; background: var(--flame); animation-duration: 13s; animation-delay: 0.8s; }
.ember-particles span:nth-child(5) { left: 45%; width: 3px; height: 3px; background: var(--saffron); animation-duration: 8s; animation-delay: 4s; }
.ember-particles span:nth-child(6) { left: 55%; width: 2px; height: 2px; background: var(--amber); animation-duration: 12s; animation-delay: 2s; }
.ember-particles span:nth-child(7) { left: 65%; width: 5px; height: 5px; background: var(--flame); animation-duration: 10s; animation-delay: 5s; }
.ember-particles span:nth-child(8) { left: 72%; width: 2px; height: 2px; background: var(--saffron); animation-duration: 14s; animation-delay: 1s; }
.ember-particles span:nth-child(9) { left: 82%; width: 3px; height: 3px; background: var(--amber); animation-duration: 9s; animation-delay: 3.5s; }
.ember-particles span:nth-child(10) { left: 90%; width: 2px; height: 2px; background: var(--flame); animation-duration: 11s; animation-delay: 6s; }
.ember-particles span:nth-child(11) { left: 20%; width: 3px; height: 3px; background: var(--saffron); animation-duration: 15s; animation-delay: 2.5s; }
.ember-particles span:nth-child(12) { left: 50%; width: 4px; height: 4px; background: var(--amber); animation-duration: 10s; animation-delay: 7s; }

@keyframes emberRise {
  0% {
    transform: translateY(100vh) translateX(0) scale(0);
    opacity: 0;
  }
  5% {
    opacity: 0.8;
    transform: translateY(90vh) translateX(5px) scale(0.5);
  }
  25% {
    opacity: 0.6;
    transform: translateY(60vh) translateX(-8px) scale(1);
  }
  50% {
    opacity: 0.4;
    transform: translateY(40vh) translateX(12px) scale(0.8);
  }
  75% {
    opacity: 0.3;
    transform: translateY(20vh) translateX(-5px) scale(0.6);
  }
  100% {
    transform: translateY(-10vh) translateX(8px) scale(0);
    opacity: 0;
  }
}

/* =============================
   NAVIGATION
   ============================= */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(13, 8, 5, 0.6);
  border-bottom: 2px solid transparent;
  transition: background var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}

.nav-header.scrolled {
  background: rgba(26, 10, 0, 0.95);
  border-bottom-color: var(--amber-dim);
  box-shadow: 0 4px 30px rgba(232, 89, 12, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav__logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--saffron);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav__logo-flame {
  font-size: 1.3rem;
  filter: drop-shadow(0 0 6px rgba(232, 89, 12, 0.5));
  animation: flameFlicker 2s ease-in-out infinite alternate;
}

@keyframes flameFlicker {
  0% { transform: scale(1) rotate(-2deg); opacity: 0.9; }
  50% { transform: scale(1.1) rotate(2deg); opacity: 1; }
  100% { transform: scale(0.95) rotate(-1deg); opacity: 0.85; }
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav__link {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: color var(--duration-fast), background var(--duration-fast);
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--saffron);
  background: rgba(245, 158, 11, 0.08);
}

.nav__link--home {
  color: var(--caspian);
  font-size: 0.85rem;
}

.nav__link--home:hover {
  color: var(--caspian);
  background: rgba(14, 165, 233, 0.1);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--saffron);
  border-radius: 2px;
  transition: transform var(--duration-base) var(--ease-out),
              opacity var(--duration-fast);
}

.nav__toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =============================
   HERO
   ============================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-ember);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url('../../assets/images/baku_flame_towers.png') center/cover no-repeat;
  transform: scale(1.05);
  will-change: transform;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(26, 10, 0, 0.65) 0%,
      rgba(13, 8, 5, 0.35) 30%,
      rgba(26, 10, 0, 0.5) 60%,
      rgba(13, 8, 5, 0.92) 100%
    ),
    radial-gradient(ellipse at 50% 80%,
      rgba(232, 89, 12, 0.12) 0%,
      transparent 60%
    );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  max-width: 850px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.4rem 1.4rem;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--saffron);
  border: 1px solid rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.08);
  margin-bottom: var(--space-lg);
  animation: fadeInDown 1s var(--ease-out) 0.2s both;
}

.hero__title {
  font-size: clamp(2.75rem, 7vw, 5rem);
  line-height: 1.05;
  margin-bottom: var(--space-md);
  animation: fadeInUp 1s var(--ease-out) 0.4s both;
}

.hero__title-gradient {
  background: linear-gradient(135deg, var(--text-primary) 20%, var(--saffron) 60%, var(--flame) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  font-weight: 400;
  font-style: italic;
  animation: fadeInUp 1s var(--ease-out) 0.6s both;
}

.hero__subtitle em {
  font-style: normal;
  color: var(--saffron);
  font-weight: 500;
}

.hero__subline {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--amber);
  margin-bottom: var(--space-xl);
  animation: fadeInUp 1s var(--ease-out) 0.8s both;
}

.hero__actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s var(--ease-out) 1s both;
}

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

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  transition: all var(--duration-base) var(--ease-out);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn--flame {
  background: linear-gradient(135deg, var(--flame) 0%, var(--amber-dim) 100%);
  color: #fff;
}

.btn--flame:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232, 89, 12, 0.4);
}

.btn--saffron {
  background: linear-gradient(135deg, var(--saffron) 0%, var(--amber) 100%);
  color: var(--bg-deep);
}

.btn--saffron:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--glow-border);
}

.btn--outline:hover {
  background: rgba(245, 158, 11, 0.06);
  border-color: var(--saffron);
  color: var(--saffron);
  transform: translateY(-2px);
}

.btn--caspian {
  background: linear-gradient(135deg, var(--caspian) 0%, var(--caspian-dim) 100%);
  color: #fff;
}

.btn--caspian:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(14, 165, 233, 0.3);
}

/* =============================
   COEXISTENCE
   ============================= */
.coexistence {
  background: var(--bg-deep);
  position: relative;
}

.coexistence::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(232, 89, 12, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.coexistence__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.coexistence__text h3 {
  font-size: 1.5rem;
  color: var(--saffron);
  margin-bottom: var(--space-md);
}

.coexistence__text p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.coexistence__text p:first-of-type {
  font-size: 1.1875rem;
  color: var(--text-primary);
  font-weight: 500;
}

.coexistence__highlight {
  color: var(--saffron) !important;
  font-style: italic;
  font-weight: 500 !important;
}

.coexistence__stats {
  display: grid;
  gap: var(--space-sm);
}

/* Stat Card with Ember Glow */
.stat-card {
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-warm);
  border: 1px solid var(--glow-border);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  transition: transform var(--duration-base) var(--ease-out),
              border-color var(--duration-base);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--saffron);
}

.stat-card__glow {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(232, 89, 12, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.stat-card__value {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--saffron);
  line-height: 1.2;
}

.stat-card__label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-top: 0.35rem;
}

.stat-card__note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* =============================
   RED TOWN — FEATURE
   ============================= */
.redtown {
  background: var(--bg-ember);
  position: relative;
  overflow: hidden;
}

.redtown::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.redtown__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.redtown__image-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 3px solid var(--amber);
  box-shadow: 0 0 40px rgba(212, 146, 42, 0.15),
              0 0 80px rgba(232, 89, 12, 0.05);
}

.redtown__image-frame img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.redtown__image-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(transparent, rgba(13, 8, 5, 0.9));
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  color: var(--amber-light);
  font-style: italic;
}

.redtown__content h3 {
  font-size: 1.35rem;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.redtown__content p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: var(--space-sm);
  line-height: 1.75;
}

.redtown__facts {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin: var(--space-md) 0;
}

.redtown__fact {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.redtown__fact-icon {
  color: var(--saffron);
  flex-shrink: 0;
  margin-top: 2px;
}

.redtown__quote {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  border-left: 3px solid var(--saffron);
  background: rgba(245, 158, 11, 0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.redtown__quote blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--amber-light);
  line-height: 1.6;
}

/* =============================
   SHARED CULTURE — CARD GRID
   ============================= */
.culture {
  background: var(--bg-warm);
}

.culture__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.culture-card {
  background: var(--bg-ember);
  border: 1px solid rgba(212, 146, 42, 0.15);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
  border-top: 3px solid var(--flame);
  transition: transform var(--duration-base) var(--ease-out),
              border-color var(--duration-base),
              box-shadow var(--duration-base);
  position: relative;
  overflow: hidden;
}

.culture-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(180deg, rgba(232, 89, 12, 0.03) 0%, transparent 100%);
  pointer-events: none;
}

.culture-card:hover {
  transform: translateY(-6px);
  border-color: var(--saffron);
  box-shadow: 0 12px 40px rgba(232, 89, 12, 0.1);
}

.culture-card__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
  display: block;
}

.culture-card__title {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.culture-card__phrase {
  font-size: 0.85rem;
  color: var(--saffron);
  font-style: italic;
  margin-bottom: var(--space-sm);
  font-weight: 500;
}

.culture-card__desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

/* =============================
   LEARN JUHURI — VOCABULARY
   ============================= */
.learn {
  background: var(--bg-deep);
  position: relative;
}

.learn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

/* Search */
.learn__search {
  max-width: 500px;
  margin: 0 auto var(--space-md);
  position: relative;
}

.learn__search-input {
  width: 100%;
  padding: 0.85rem 1.2rem 0.85rem 3rem;
  border-radius: 100px;
  border: 1px solid var(--glow-border);
  background: var(--bg-warm);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.learn__search-input::placeholder {
  color: var(--text-muted);
}

.learn__search-input:focus {
  border-color: var(--saffron);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.1);
}

.learn__search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Category Tabs */
.learn__tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.learn__tab {
  padding: 0.6rem 1.5rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all var(--duration-fast) var(--ease-out);
  cursor: pointer;
  background: rgba(245, 158, 11, 0.06);
}

.learn__tab:hover {
  color: var(--text-primary);
  background: rgba(245, 158, 11, 0.12);
}

.learn__tab.active {
  color: var(--bg-deep);
  background: var(--saffron);
  border-color: var(--saffron);
  font-weight: 600;
}

/* Vocabulary Table */
.learn__table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--glow-border);
}

.learn__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.learn__table thead {
  background: var(--bg-warm);
}

.learn__table th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--saffron);
  border-bottom: 2px solid var(--glow-border);
  white-space: nowrap;
}

.learn__table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(212, 146, 42, 0.08);
  color: var(--text-secondary);
  vertical-align: top;
}

.learn__table tbody tr {
  transition: background var(--duration-fast);
}

.learn__table tbody tr:hover {
  background: rgba(245, 158, 11, 0.04);
}

.learn__table .cyrillic {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1.05rem;
}

.learn__table .translit {
  color: var(--saffron);
  font-style: italic;
  font-weight: 500;
}

.learn__table .azerbaijani {
  color: var(--caspian);
  font-weight: 500;
}

.learn__table .cultural-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.learn__table .category-header td {
  background: rgba(232, 89, 12, 0.06);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--flame);
  letter-spacing: 0.05em;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--glow-border);
}

.learn__table tr.hidden {
  display: none;
}

/* No results */
.learn__no-results {
  text-align: center;
  padding: var(--space-xl);
  color: var(--text-muted);
  font-size: 1rem;
  display: none;
}

.learn__no-results.visible {
  display: block;
}

/* Proverbs */
.learn__proverbs {
  margin-top: var(--space-xl);
  display: grid;
  gap: var(--space-sm);
}

.proverb-card {
  padding: var(--space-md) var(--space-lg);
  border-left: 3px solid var(--flame);
  background: rgba(232, 89, 12, 0.03);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.proverb-card__juhuri {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--amber-light);
  margin-bottom: 0.35rem;
}

.proverb-card__english {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* =============================
   FLAME CONTINUES (MISSION)
   ============================= */
.mission {
  background: var(--bg-ember);
  position: relative;
  overflow: hidden;
}

.mission::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(232, 89, 12, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.mission__content {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.mission__content p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.mission__content .highlight {
  color: var(--saffron);
  font-weight: 600;
}

.mission__cta {
  margin-top: var(--space-lg);
}

/* =============================
   CONNECT
   ============================= */
.connect {
  background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg-deep) 100%);
  position: relative;
}

.connect::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glow-border), transparent);
}

.connect__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.connect__info h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.connect__detail {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(212, 146, 42, 0.08);
}

.connect__detail-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--saffron);
  flex-shrink: 0;
}

.connect__detail-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.connect__detail-value {
  font-weight: 500;
  color: var(--text-primary);
}

.connect__detail-value a {
  color: var(--caspian);
  transition: color var(--duration-fast);
}

.connect__detail-value a:hover {
  color: var(--saffron);
}

.connect__proverb {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  border-left: 3px solid var(--saffron);
  background: rgba(245, 158, 11, 0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.connect__proverb blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--amber-light);
  margin-bottom: 0.35rem;
}

.connect__proverb cite {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: normal;
}

/* Email signup */
.connect__signup {
  padding: var(--space-lg);
  background: var(--bg-ember);
  border: 1px solid var(--glow-border);
  border-radius: var(--radius-md);
}

.connect__signup h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}

.connect__signup p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.connect__form {
  display: flex;
  gap: 0.5rem;
}

.connect__input {
  flex: 1;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glow-border);
  background: var(--bg-warm);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--duration-fast);
}

.connect__input::placeholder {
  color: var(--text-muted);
}

.connect__input:focus {
  border-color: var(--saffron);
}

.connect__form-success {
  display: none;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm);
  color: var(--saffron);
  font-weight: 500;
  font-size: 0.95rem;
}

.connect__form-success.visible {
  display: flex;
}

/* =============================
   FOOTER
   ============================= */
.footer {
  background: var(--bg-deep);
  padding: var(--space-xl) 0 var(--space-lg);
  border-top: 1px solid rgba(212, 146, 42, 0.1);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer__brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--saffron);
  margin-bottom: var(--space-xs);
}

.footer__tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer__heading {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  font-family: 'DM Sans', sans-serif;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__link {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--duration-fast);
}

.footer__link:hover {
  color: var(--saffron);
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--duration-fast);
}

.footer__social-link:hover {
  color: var(--caspian);
}

.footer__social-link svg {
  width: 20px;
  height: 20px;
}

.footer__bottom {
  padding-top: var(--space-md);
  border-top: 1px solid rgba(212, 146, 42, 0.08);
  text-align: center;
}

.footer__bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.footer__bottom .bilingual {
  color: var(--amber-dim);
  font-style: italic;
}

/* =============================
   RESPONSIVE — 1024px
   ============================= */
@media (max-width: 1024px) {
  .coexistence__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .coexistence__stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .redtown__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .culture__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

/* =============================
   RESPONSIVE — 768px
   ============================= */
@media (max-width: 768px) {
  :root {
    --space-3xl: 5rem;
    --nav-height: 64px;
  }

  /* Mobile nav */
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    padding: calc(var(--nav-height) + var(--space-lg)) var(--space-lg) var(--space-lg);
    background: rgba(26, 10, 0, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid var(--glow-border);
    transform: translateX(100%);
    transition: transform var(--duration-base) var(--ease-out);
    gap: 0.25rem;
    align-items: stretch;
    z-index: 999;
  }

  .nav__menu.open {
    transform: translateX(0);
  }

  .nav__link {
    padding: 0.85rem 1rem;
    font-size: 1rem;
  }

  /* Sections */
  .coexistence__stats {
    grid-template-columns: 1fr;
  }

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

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

  .connect__form {
    flex-direction: column;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  /* Table scroll */
  .learn__table {
    font-size: 0.85rem;
  }

  .learn__table th,
  .learn__table td {
    padding: 0.6rem 0.75rem;
  }
}

/* =============================
   RESPONSIVE — 480px
   ============================= */
@media (max-width: 480px) {
  .hero__title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    width: 100%;
    justify-content: center;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .section__title {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .learn__tabs {
    gap: 0.35rem;
  }

  .learn__tab {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
  }

  .reveal-stagger > * {
    opacity: 1;
    transform: none;
  }

  .ember-particles span {
    display: none;
  }
}
