:root {
  color-scheme: dark;
  --in-oklab: ;
  --bg-midnight: #020617;
  --bg-deep: #070a12;
  --surface-glass: rgba(15, 23, 42, 0.72);
  --surface-card: rgba(15, 23, 42, 0.88);
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-amber: rgba(251, 191, 36, 0.28);
  --amber-primary: #fbbf24;
  --amber-nur: #f59e0b;
  --amber-soft: #fde68a;
  --indigo-depth: #6366f1;
  --emerald-peace: #10b981;
  --text-main: #f8fafc;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
  --ease-kowalski: cubic-bezier(0.23, 1, 0.32, 1);
}

@supports (background: linear-gradient(in oklab, white, black)) {
  :root {
    --in-oklab: in oklab;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(5.25rem + env(safe-area-inset-top, 0px));
  background-color: var(--bg-midnight);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-block-size: 100vh;
  min-block-size: 100dvh;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(99, 102, 241, 0.2) 0%, transparent 65%),
    radial-gradient(ellipse 70% 45% at 85% 28%, rgba(245, 158, 11, 0.11) 0%, transparent 62%),
    radial-gradient(ellipse 65% 50% at 15% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 65%),
    var(--bg-midnight);
  color: var(--text-main);
  line-height: 1.65;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-inline-size: 100%;
  block-size: auto;
}

:where(a, code) {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.skip-link:focus-visible {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--amber-primary);
  color: #020617;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(251, 191, 36, 0.35);
}

:where(a:any-link, button, summary):focus-visible {
  outline: 3px solid var(--amber-primary);
  outline-offset: 3px;
}

.ambient-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.05;
  background-image: url('/assets/motif-pattern.webp');
  background-size: 420px 420px;
  background-repeat: repeat;
  mask-image: radial-gradient(circle at 50% 30%, #000 10%, transparent 78%);
}

.page-shell {
  position: relative;
  z-index: 1;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: max(18px, env(safe-area-inset-left, 0px)) max(18px, env(safe-area-inset-right, 0px));
}

/* Header & Responsive Navigation */
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 40;
  padding-block-start: env(safe-area-inset-top, 0px);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(2, 6, 23, 0.84);
  border-bottom: 1px solid var(--border-subtle);
}

.site-header.is-measuring * {
  transition: none !important;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-block-size: 68px;
  padding-block: 10px;
}

.header-inner > * {
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  min-block-size: 44px;
  min-inline-size: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 13px;
  padding: 4px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid var(--border-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(251, 191, 36, 0.16);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.brand-tag {
  font-size: 0.72rem;
  color: var(--amber-soft);
  font-weight: 500;
}

.site-nav {
  display: flex;
  align-items: center;
  order: 3;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
  order: 2;
}

.site-header:not(.is-wide) .desktop-cta {
  display: none;
}

.menu-button {
  anchor-name: --menu-button;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-block-size: 44px;
  min-inline-size: 44px;
  padding: 8px 14px;
  border-radius: 13px;
  border: 1px solid var(--border-amber);
  background: rgba(251, 191, 36, 0.1);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-kowalski), border-color 0.2s var(--ease-kowalski), transform 0.2s var(--ease-kowalski);
}

.menu-button:active {
  transform: scale(0.97);
}

.menu-icon {
  color: var(--amber-primary);
  flex-shrink: 0;
}

@supports not selector(:popover-open) {
  [popover]:not(.\:popover-open) {
    display: none;
  }
}

.site-menu {
  list-style: none;
  margin: 0;
  position: fixed;
  inset: auto;
  inset-block-start: calc(4.75rem + env(safe-area-inset-top, 0px));
  inset-block-start: anchor(--menu-button bottom);
  inset-inline-end: max(1rem, env(safe-area-inset-right, 0px));
  inline-size: min(86dvw, 21rem);
  max-inline-size: calc(100dvw - 2rem);
  block-size: fit-content;
  max-block-size: calc(100dvh - 6.5rem - env(safe-area-inset-top, 0px));
  margin-block-start: 0.5rem;
  padding: 12px;
  border-radius: 22px;
  border: 1px solid var(--border-amber);
  background: rgba(15, 23, 42, 0.96);
  color: var(--text-main);
  box-shadow: 0 24px 56px -12px rgba(0, 0, 0, 0.78), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: auto;
  opacity: 0;
  translate: 0 -8px;
  transition:
    opacity 0.22s var(--ease-kowalski),
    translate 0.22s var(--ease-kowalski),
    display 0.22s var(--ease-kowalski),
    overlay 0.22s var(--ease-kowalski);
  transition-behavior: allow-discrete;
}

.site-menu::backdrop {
  background: rgba(2, 6, 23, 0.52);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.site-menu:is(:popover-open, .\:popover-open) {
  display: grid;
  gap: 6px;
  opacity: 1;
  translate: 0 0;
}

@starting-style {
  .site-menu:is(:popover-open, .\:popover-open) {
    opacity: 0;
    translate: 0 -8px;
  }
}

.site-menu .nav-link {
  display: flex;
  align-items: center;
  width: 100%;
  min-block-size: 46px;
  padding: 10px 14px;
  border-radius: 14px;
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: color 0.2s var(--ease-kowalski), background-color 0.2s var(--ease-kowalski), border-color 0.2s var(--ease-kowalski);
}

.site-menu .nav-link[aria-current="page"] {
  color: #fff;
  background: rgba(251, 191, 36, 0.14);
  border-color: var(--border-amber);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.menu-cta-item {
  margin-block-start: 6px;
  padding-block-start: 10px;
  border-top: 1px solid var(--border-subtle);
}

.menu-cta-item .btn {
  width: 100%;
}

/* Wide Layout: Inline Navigation */
.site-header.is-wide .site-nav {
  order: 2;
}

.site-header.is-wide .header-actions {
  order: 3;
  margin-inline-start: 0;
}

.site-header.is-wide .desktop-cta {
  display: inline-flex;
}

.site-header.is-wide .menu-button,
.site-header.is-wide .menu-cta-item {
  display: none;
}

.site-header.is-wide .site-menu {
  position: static;
  display: flex;
  align-items: center;
  gap: 6px;
  inline-size: auto;
  max-inline-size: none;
  block-size: auto;
  max-block-size: none;
  overflow: visible;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 1;
  translate: none;
}

.site-header.is-wide .site-menu::backdrop {
  display: none;
}

.site-header.is-wide .site-menu .nav-link {
  display: inline-flex;
  width: auto;
  min-block-size: 44px;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 0.94rem;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 48px;
  min-block-size: 44px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: var(--amber-soft);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-kowalski), border-color 0.2s var(--ease-kowalski);
}

@media (hover: hover) and (pointer: fine) {
  .site-menu .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
  }

  .menu-button:hover {
    background: rgba(251, 191, 36, 0.18);
  }

  .lang-toggle:hover {
    background: rgba(251, 191, 36, 0.12);
    border-color: var(--border-amber);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 18px;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform 0.24s var(--ease-kowalski),
    box-shadow 0.24s var(--ease-kowalski),
    background-color 0.24s var(--ease-kowalski),
    border-color 0.24s var(--ease-kowalski);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #020617;
  box-shadow: 0 10px 30px -6px rgba(251, 191, 36, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px -6px rgba(251, 191, 36, 0.58);
  }

  .btn-secondary:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(251, 191, 36, 0.36);
  }
}

.btn-sm {
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 14px;
  font-size: 0.9rem;
}

/* Specular Glass Surface */
.glass-card {
  position: relative;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 20px 48px -12px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.78), transparent);
  pointer-events: none;
}

/* Hero Section */
.hero {
  padding-block: 56px 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 36px;
  align-items: center;
}

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid var(--border-amber);
  color: var(--amber-soft);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber-primary);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.85);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(1.85rem, 1.25rem + 2.8vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.hero h1 .accent-word {
  color: var(--amber-primary);
}

.hero-lead {
  margin: 0 0 28px;
  font-size: 1.08rem;
  color: var(--text-body);
  max-width: 58ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-check {
  color: var(--emerald-peace);
  font-weight: 800;
}

/* Hero Visual Showcase */
.hero-showcase {
  padding: 18px;
}

.showcase-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.22);
  background: #070a12;
}

.showcase-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 2048 / 1362;
  object-fit: cover;
  display: block;
}

.verse-overlay-card {
  margin-top: 14px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(7, 10, 18, 0.86);
  border: 1px solid rgba(99, 102, 241, 0.28);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.arabic-verse {
  font-family: 'Noto Naskh Arabic', 'Amiri', 'Scheherazade New', serif;
  font-weight: 700;
  font-size: clamp(1.45rem, 1.1rem + 1.5vw, 2.05rem);
  line-height: 1.7;
  color: #ffffff;
  direction: rtl;
  text-align: right;
  margin: 0;
}

.arabic-verse .kandil-highlight {
  color: var(--amber-primary);
}

.verse-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.verse-ref {
  color: var(--amber-soft);
  font-weight: 600;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-float {
    animation: gentleFloat 7s ease-in-out infinite alternate;
  }

  @keyframes gentleFloat {
    from {
      transform: translate3d(0, 0, 0);
    }
    to {
      transform: translate3d(0, -6px, 0);
    }
  }
}

/* Sections */
.section {
  padding-block: 52px;
}

.section-header {
  max-width: 68ch;
  margin-bottom: 30px;
}

.section-kicker {
  display: inline-block;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--amber-primary);
  margin-bottom: 8px;
}

.section-header h2 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 1.1rem + 1.6vw, 2.2rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.section-header p {
  margin: 0;
  color: var(--text-body);
}

/* Pillars Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 860px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }
}

.pillar-card {
  padding: 24px;
  border-radius: 26px;
  transition: transform 0.25s var(--ease-kowalski), border-color 0.25s var(--ease-kowalski);
}

@media (hover: hover) and (pointer: fine) {
  .pillar-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-amber);
  }
}

.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.35rem;
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: var(--amber-primary);
}

.pillar-icon.indigo {
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
}

.pillar-icon.emerald {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.32);
  color: #6ee7b7;
}

.pillar-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.pillar-card p {
  margin: 0;
  color: var(--text-body);
  font-size: 0.96rem;
}

/* Cities Showcase */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 960px) {
  .cities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 379px) {
  .cities-grid {
    grid-template-columns: 1fr;
  }
}

.city-card {
  padding: 12px;
  border-radius: 24px;
  transition: transform 0.25s var(--ease-kowalski), border-color 0.25s var(--ease-kowalski);
}

@media (hover: hover) and (pointer: fine) {
  .city-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-amber);
  }
}

.city-thumb {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #070a12;
}

.city-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.city-body {
  padding: 12px 6px 6px;
}

.city-body h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.city-body p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* FAQ Accordion (Native details/summary) */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 820px;
}

.faq-item {
  border-radius: 20px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  padding: 4px 20px;
  transition: border-color 0.2s var(--ease-kowalski);
}

.faq-item[open] {
  border-color: var(--border-amber);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding-block: 12px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1.02rem;
  color: #ffffff;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--amber-primary);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-answer {
  padding: 0 0 16px;
  color: var(--text-body);
  font-size: 0.96rem;
}

.faq-answer p {
  margin: 0;
}

.faq-answer a {
  color: var(--amber-primary);
  text-decoration: none;
  font-weight: 600;
}

.faq-answer a:hover {
  text-decoration: underline;
}

/* Bottom Banner CTA */
.cta-banner {
  padding: 36px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-banner h2 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 2.8vw, 1.95rem);
  font-weight: 800;
  color: #ffffff;
}

.cta-banner p {
  margin: 0;
  color: var(--text-body);
  max-width: 56ch;
}

/* Footer */
.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(2, 6, 23, 0.85);
  padding-block: 36px max(44px, calc(28px + env(safe-area-inset-bottom, 0px)));
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-meta {
  max-width: 44ch;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

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

/* Legal Document Pages */
.legal-wrap {
  padding-block: 40px 64px;
}

.legal-card {
  max-width: 860px;
  margin-inline: auto;
  padding: 32px 28px;
}

.legal-card h1 {
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #ffffff;
}

.legal-card h2 {
  margin: 28px 0 10px;
  font-size: 1.16rem;
  font-weight: 700;
  color: var(--amber-primary);
  scroll-margin-top: 86px;
}

.legal-card h3 {
  margin: 18px 0 6px;
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
}

.legal-card p,
.legal-card li {
  color: var(--text-body);
  font-size: 0.96rem;
  line-height: 1.72;
}

.legal-card ul:not(.legal-toc-list),
.legal-card ol {
  margin: 8px 0 14px;
  padding-inline-start: 20px;
  display: grid;
  gap: 8px;
}

.legal-card a {
  color: var(--amber-primary);
  text-decoration: none;
  font-weight: 600;
}

.legal-card a:hover {
  text-decoration: underline;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 18px;
}

.legal-lang-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
}

.legal-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.55);
  color: #e2e8f0 !important;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.legal-pill:hover,
.legal-pill--active {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.12);
  color: #fde68a !important;
}

.legal-toc {
  margin: 18px 0 24px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(2, 6, 23, 0.42);
}

.legal-toc-title {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-primary);
}

.legal-card .legal-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.legal-toc-list a {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 500;
}

.legal-toc-list a:hover {
  border-color: rgba(251, 191, 36, 0.35);
  color: #fde68a;
  text-decoration: none;
}

.legal-callout {
  margin: 16px 0 20px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(251, 191, 36, 0.24);
  background: rgba(251, 191, 36, 0.06);
}

.legal-callout p {
  margin: 0;
  font-size: 0.92rem;
  color: #f1f5f9;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 20px;
  font-size: 0.89rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(2, 6, 23, 0.38);
}

.legal-table th,
.legal-table td {
  text-align: start;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  vertical-align: top;
  line-height: 1.55;
  color: var(--text-body);
}

.legal-table th {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fde68a;
  background: rgba(255, 255, 255, 0.04);
}

.legal-table tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 680px) {
  .legal-table thead {
    display: none;
  }

  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table td {
    display: block;
    width: 100%;
  }

  .legal-table tr {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  }

  .legal-table tr:last-child {
    border-bottom: 0;
  }

  .legal-table td {
    padding: 4px 0;
    border-bottom: 0;
  }

  .legal-table td::before {
    content: attr(data-label) ": ";
    font-weight: 700;
    color: #fde68a;
  }
}

.legal-divider {
  margin: 44px 0 34px;
  border: 0;
  border-top: 1px solid var(--border-subtle);
}

@media (pointer: coarse) {
  .site-menu .nav-link,
  .menu-button,
  .btn,
  .lang-toggle,
  .footer-links a {
    min-block-size: 48px;
  }
}

/* Mobile Ergonomics & Compact Rhythm */
@media (max-width: 640px) {
  .header-inner {
    min-block-size: 64px;
    gap: 8px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .brand-tag {
    font-size: 0.68rem;
  }

  .menu-button {
    padding: 8px 12px;
    font-size: 0.86rem;
  }

  .hero {
    padding-block: 28px 32px;
  }

  .hero-grid {
    gap: 24px;
  }

  .pill-badge {
    font-size: 0.8rem;
    padding: 6px 12px;
    margin-bottom: 14px;
  }

  .hero-lead {
    font-size: 1rem;
    margin-bottom: 22px;
  }

  .cta-row {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
  }

  .cta-row .btn {
    width: 100%;
    min-block-size: 50px;
  }

  .trust-list {
    flex-direction: column;
    gap: 8px;
    font-size: 0.88rem;
  }

  .hero-showcase {
    padding: 12px;
    border-radius: 22px;
  }

  .showcase-frame {
    border-radius: 16px;
  }

  .verse-overlay-card {
    margin-top: 10px;
    padding: 14px 16px;
    border-radius: 16px;
  }

  .section {
    padding-block: 36px;
  }

  .section-header {
    margin-bottom: 22px;
  }

  .pillar-card {
    padding: 20px;
    border-radius: 22px;
  }

  .city-card {
    padding: 10px;
    border-radius: 20px;
  }

  .city-thumb {
    border-radius: 14px;
  }

  .city-body {
    padding: 10px 4px 4px;
  }

  .city-body h3 {
    font-size: 0.96rem;
  }

  .city-body p {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .faq-item {
    padding: 2px 16px;
    border-radius: 18px;
  }

  .faq-item summary {
    font-size: 0.96rem;
    gap: 12px;
  }

  .cta-banner {
    padding: 24px 20px;
    gap: 18px;
    border-radius: 24px;
  }

  .cta-banner .cta-row {
    width: 100%;
  }

  .site-footer {
    margin-top: 32px;
    padding-block-start: 28px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 18px;
  }

  .footer-links {
    flex-direction: column;
    gap: 4px;
  }

  .legal-wrap {
    padding-block: 24px 48px;
  }

  .legal-card {
    padding: 22px 18px;
    border-radius: 22px;
  }
}

@media (max-width: 360px) {
  .brand-tag {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-menu {
    transition: none;
  }
}

@media (forced-colors: active) {
  .site-menu .nav-link[aria-current="page"],
  .menu-button,
  .glass-card,
  .frosted-panel,
  .metric-glass {
    border: 1px solid CanvasText;
  }
}

/* ==========================================================================
   TESLA-STYLE FULL-BLEED CINEMATIC HOMEPAGE (.cinematic-home)
   ========================================================================== */

body.cinematic-home {
  background: var(--bg-midnight);
}

.site-header--overlay {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  background: linear-gradient(
    to bottom var(--in-oklab),
    rgba(2, 6, 23, 0.62) 0%,
    rgba(2, 6, 23, 0.18) 70%,
    transparent 100%
  );
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition:
    background-color 0.32s var(--ease-kowalski),
    border-color 0.32s var(--ease-kowalski),
    backdrop-filter 0.32s var(--ease-kowalski);
}

.site-header--overlay.is-scrolled {
  background: rgba(2, 6, 23, 0.72);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.site-header--overlay .site-menu .nav-link {
  color: rgba(248, 250, 252, 0.92);
  text-shadow: 0 1px 10px rgba(2, 6, 23, 0.6);
}

.site-header--overlay .lang-toggle {
  background: rgba(2, 6, 23, 0.42);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header--overlay .menu-button {
  background: rgba(2, 6, 23, 0.48);
  border-color: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Full-Viewport Visual Stage Bands */
.stage-band {
  position: relative;
  min-block-size: 100vh;
  min-block-size: 100svh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  overflow: clip;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stage-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--bg-midnight);
}

.stage-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
}

.stage-media--map img {
  object-position: center 45%;
  transform: scale(1.06);
  filter: saturate(0.72) contrast(1.05) brightness(0.68);
}

.stage-band--istanbul .stage-media img {
  object-position: center 36%;
}

.stage-band--medina .stage-media img {
  object-position: center 38%;
}

.stage-band--konya .stage-media img {
  object-position: center 40%;
}

.about-manifesto {
  width: min(100%, 780px);
  text-align: center;
  padding: 22px 26px;
}

.about-manifesto p {
  margin: 0;
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.06rem);
  line-height: 1.72;
  color: rgba(241, 245, 249, 0.94);
}

.stage-band--cordoba .stage-media img {
  object-position: center 44%;
}

/* Semi-Transparent Atmospheric Scrims (High-Contrast Text + Luminous Center) */
.stage-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.stage-scrim--hero {
  background:
    radial-gradient(ellipse 75% 40% at 50% 18%, rgba(2, 6, 23, 0.45) 0%, transparent 72%),
    linear-gradient(
      to bottom var(--in-oklab),
      rgba(2, 6, 23, 0.72) 0%,
      rgba(2, 6, 23, 0.34) 28%,
      rgba(2, 6, 23, 0.14) 50%,
      rgba(2, 6, 23, 0.56) 76%,
      rgba(2, 6, 23, 0.92) 100%
    );
}

.stage-scrim--atlas {
  background:
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(251, 191, 36, 0.08) 0%, transparent 70%),
    linear-gradient(
      to bottom var(--in-oklab),
      rgba(2, 6, 23, 0.84) 0%,
      rgba(7, 10, 18, 0.42) 34%,
      rgba(7, 10, 18, 0.38) 62%,
      rgba(2, 6, 23, 0.9) 100%
    );
}

.stage-scrim--warm {
  background:
    linear-gradient(
      to bottom var(--in-oklab),
      rgba(2, 6, 23, 0.76) 0%,
      rgba(2, 6, 23, 0.24) 36%,
      rgba(2, 6, 23, 0.34) 60%,
      rgba(2, 6, 23, 0.92) 100%
    );
}

.stage-scrim--cool {
  background:
    linear-gradient(
      to bottom var(--in-oklab),
      rgba(2, 6, 23, 0.74) 0%,
      rgba(15, 23, 42, 0.22) 38%,
      rgba(2, 6, 23, 0.38) 64%,
      rgba(2, 6, 23, 0.92) 100%
    );
}

.stage-scrim--finale {
  background:
    linear-gradient(
      to bottom var(--in-oklab),
      rgba(2, 6, 23, 0.78) 0%,
      rgba(2, 6, 23, 0.48) 32%,
      rgba(2, 6, 23, 0.84) 72%,
      rgba(2, 6, 23, 0.96) 100%
    );
}

/* Tesla-Style Vertical Split: Monumental Header Top, Open Visual Middle, Floating Glass Bottom */
.stage-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  gap: 32px;
  padding-block: calc(6.5rem + env(safe-area-inset-top, 0px)) max(3rem, calc(2rem + env(safe-area-inset-bottom, 0px)));
}

.stage-content--faq {
  justify-content: center;
  gap: 28px;
}

.stage-top {
  max-width: 780px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stage-kicker {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--amber-soft);
  background: rgba(2, 6, 23, 0.46);
  border: 1px solid rgba(251, 191, 36, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.stage-title {
  margin: 0 0 14px;
  font-size: clamp(2rem, 1.35rem + 3.2vw, 3.85rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-shadow: 0 4px 28px rgba(2, 6, 23, 0.65);
}

.stage-title .accent-word {
  color: var(--amber-primary);
}

.stage-heading {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 1.25rem + 2.4vw, 3.15rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: #ffffff;
  text-shadow: 0 4px 24px rgba(2, 6, 23, 0.65);
}

.stage-subtitle {
  margin: 0;
  max-width: 56ch;
  font-size: clamp(0.98rem, 0.9rem + 0.45vw, 1.18rem);
  font-weight: 500;
  color: rgba(241, 245, 249, 0.92);
  text-shadow: 0 2px 16px rgba(2, 6, 23, 0.72);
}

.stage-bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Semi-Transparent Verse Glass Ribbon */
.stage-verse-glass {
  width: min(100%, 580px);
  padding: 16px 22px;
  border-radius: 22px;
  background: rgba(2, 6, 23, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(251, 191, 36, 0.25);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stage-verse-glass .arabic-verse {
  text-align: center;
  font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.1rem);
  line-height: 1.65;
}

.stage-verse-glass .verse-meta {
  justify-content: center;
  gap: 8px 16px;
  color: rgba(226, 232, 240, 0.88);
}

/* Tesla-Style Dual Bottom CTA Bar */
.stage-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  width: 100%;
}

.stage-actions--contact {
  margin-top: 22px;
}

.stage-btn {
  min-inline-size: 236px;
  min-block-size: 50px;
  border-radius: 16px;
}

.btn-frosted {
  background: rgba(15, 23, 42, 0.58);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.34);
}

@media (hover: hover) and (pointer: fine) {
  .btn-frosted:hover {
    transform: translateY(-2px);
    background: rgba(15, 23, 42, 0.76);
    border-color: rgba(251, 191, 36, 0.52);
  }
}

/* Floating Translucent Metrics Bar (Atlas Band) */
.stage-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(100%, 820px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.metric-glass {
  padding: 20px 18px;
  border-radius: 22px;
  background: rgba(2, 6, 23, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(251, 191, 36, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.metric-value {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--amber-primary);
}

.metric-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(241, 245, 249, 0.92);
}

/* Semi-Transparent Glass Feature Strip (Istanbul & Medina Bands) */
.stage-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(100%, 1040px);
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.stage-pillars--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 820px);
}

.frosted-panel {
  position: relative;
  padding: 22px 22px;
  border-radius: 22px;
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.frosted-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 14%;
  right: 14%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.7), transparent);
  pointer-events: none;
}

.frosted-panel h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: 700;
  color: #ffffff;
}

.frosted-panel p {
  margin: 0;
  font-size: 0.93rem;
  color: rgba(226, 232, 240, 0.9);
  line-height: 1.58;
}

/* Glass FAQ inside Cordoba Finale */
.stage-faq-wrap {
  width: min(100%, 1060px);
  text-align: left;
}

.faq-list--glass {
  max-width: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px 16px;
}

@media (max-width: 900px) {
  .faq-list--glass {
    grid-template-columns: 1fr;
  }
}

.faq-list--glass .faq-item {
  background: rgba(2, 6, 23, 0.68);
  border-color: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.faq-list--glass .faq-item[open] {
  border-color: rgba(251, 191, 36, 0.45);
}

.site-footer--minimal {
  margin-top: 0;
  background: var(--bg-midnight);
  padding-block: 26px max(34px, calc(22px + env(safe-area-inset-bottom, 0px)));
}

.site-footer--minimal .footer-inner {
  align-items: center;
}

/* Gentle non-trapping desktop scroll snap */
@media (min-width: 960px) and (prefers-reduced-motion: no-preference) {
  html:has(body.cinematic-home) {
    scroll-snap-type: y proximity;
  }

  .stage-band {
    scroll-snap-align: start;
  }
}

/* Mobile & Tablet Stage Adaptations */
@media (max-width: 860px) {
  .stage-pillars,
  .stage-pillars--two {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stage-metrics {
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: 440px;
  }

  .metric-glass {
    flex-direction: row;
    justify-content: space-between;
    padding: 14px 18px;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .stage-content {
    gap: 24px;
    padding-block: calc(5.25rem + env(safe-area-inset-top, 0px)) max(2.25rem, calc(1.5rem + env(safe-area-inset-bottom, 0px)));
  }

  .stage-verse-glass {
    padding: 14px 16px;
    border-radius: 18px;
  }

  .stage-actions {
    flex-direction: column;
    gap: 10px;
  }

  .stage-btn {
    width: 100%;
    min-inline-size: 0;
  }

  .frosted-panel {
    padding: 18px 18px;
    border-radius: 18px;
  }
}

/* ==========================================================================
   RICH CINEMATIC ADDITIONS: PROGRESS BAR, KEN BURNS, DEMO, CAROUSEL,
   5-STAGE CURRICULUM, 7 FLAGS, MUSEUM RELICS & CHAPTER RAIL
   ========================================================================== */

/* Top Hairline Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  block-size: 2.5px;
  z-index: 60;
  background: linear-gradient(90deg, var(--amber-nur), var(--amber-primary), var(--amber-soft));
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.7);
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    @keyframes sefaary-scroll-progress {
      from { transform: scaleX(0); }
      to { transform: scaleX(1); }
    }

    .scroll-progress-bar {
      animation: sefaary-scroll-progress auto linear;
      animation-timeline: scroll(root);
    }
  }

  /* Subtle Cinematic Hero Ken Burns Breathing */
  @keyframes sefaary-kenburns {
    from { transform: scale(1); }
    to { transform: scale(1.06); }
  }

  .stage-media--kenburns img {
    animation: sefaary-kenburns 22s ease-in-out infinite alternate;
  }

  /* Scroll-Driven Compositor Reveal (opacity + transform only) */
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes sefaary-reveal-up {
      from {
        opacity: 0.15;
        transform: translate3d(0, 26px, 0);
      }
      to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
      }
    }

    .reveal-card {
      animation: sefaary-reveal-up auto linear backwards;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }
}

/* Desktop Floating Chapter Dots Rail */
.chapter-rail {
  display: none;
}

@media (min-width: 1180px) {
  .chapter-rail {
    position: fixed;
    inset-inline-end: 20px;
    inset-block-start: 50%;
    transform: translateY(-50%);
    z-index: 35;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 6px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .chapter-rail a {
    display: block;
    width: 24px;
    height: 24px;
    border: 7px solid transparent;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
    background-clip: padding-box;
    transition: transform 0.22s var(--ease-kowalski), background-color 0.22s var(--ease-kowalski);
  }

  .chapter-rail a[aria-current="true"] {
    background: var(--amber-primary);
    background-clip: padding-box;
    transform: scale(1.3);
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.75);
  }
}

.stage-content--balanced {
  justify-content: center;
  gap: 28px;
}

.stage-band--jerusalem .stage-media img {
  object-position: center 42%;
}

.stage-band--library .stage-media img {
  object-position: center 50%;
}

.stage-scrim--library {
  background:
    linear-gradient(
      to bottom var(--in-oklab),
      rgba(2, 6, 23, 0.8) 0%,
      rgba(2, 6, 23, 0.42) 38%,
      rgba(2, 6, 23, 0.62) 68%,
      rgba(2, 6, 23, 0.94) 100%
    );
}

/* Interactive Verse Cloze Demo Showcase */
.demo-frame-wrap {
  width: min(100%, 760px);
  padding: 1.5px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.65), rgba(99, 102, 241, 0.55), rgba(245, 158, 11, 0.65));
  box-shadow: 0 28px 64px -12px rgba(0, 0, 0, 0.65);
}

.demo-showcase {
  padding: 26px 26px;
  border-radius: 26.5px;
  background: rgba(7, 10, 18, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
}

.demo-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.demo-prompt {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--amber-soft);
}

.demo-counter {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.demo-verse-box {
  padding: 20px 22px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.demo-arabic {
  text-align: center;
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.45rem);
  line-height: 1.75;
}

.demo-slot {
  display: inline-block;
  min-inline-size: 4.2rem;
  padding: 0 12px;
  margin-inline: 4px;
  border-radius: 12px;
  border: 1.5px dashed rgba(251, 191, 36, 0.65);
  background: rgba(251, 191, 36, 0.1);
  color: var(--amber-primary);
  transition: background-color 0.25s var(--ease-kowalski), box-shadow 0.25s var(--ease-kowalski), border-color 0.25s var(--ease-kowalski);
}

.demo-slot.is-solved {
  border-style: solid;
  border-color: var(--amber-primary);
  background: rgba(251, 191, 36, 0.22);
  color: #fde68a;
  box-shadow: 0 0 28px rgba(251, 191, 36, 0.55);
}

.demo-verse-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 0.9rem;
  color: var(--text-body);
  text-align: center;
}

.demo-options-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.demo-option-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-block-size: 86px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  transition:
    transform 0.22s var(--ease-kowalski),
    border-color 0.22s var(--ease-kowalski),
    background-color 0.22s var(--ease-kowalski),
    box-shadow 0.22s var(--ease-kowalski);
}

.demo-option-card:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .demo-option-card:hover {
    transform: translateY(-2px);
    border-color: rgba(251, 191, 36, 0.5);
    background: rgba(251, 191, 36, 0.1);
  }
}

.demo-option-card.is-correct {
  border-color: #fbbf24;
  background: rgba(251, 191, 36, 0.18);
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.55);
}

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

.demo-option-card.is-wrong {
  border-color: #f43f5e;
  background: rgba(244, 63, 94, 0.18);
  box-shadow: 0 0 26px rgba(244, 63, 94, 0.55);
  animation: sefaary-shake 0.36s ease-in-out;
}

.demo-option-ar {
  font-family: 'Noto Naskh Arabic', 'Amiri', 'Scheherazade New', serif;
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1.45;
  color: #fff;
}

.demo-option-latin {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.demo-deep-info {
  padding-top: 14px;
  border-top: 1px solid rgba(251, 191, 36, 0.28);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.demo-deep-info[hidden] {
  display: none;
}

.deep-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.deep-cell {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.deep-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--amber-primary);
  margin-bottom: 4px;
}

.deep-cell p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-body);
}

.demo-next-row {
  display: flex;
  justify-content: flex-end;
}

/* Swipeable City Showcase Carousel */
.city-carousel {
  position: relative;
  width: 100%;
  max-width: 1080px;
}

.carousel-controls {
  position: absolute;
  inset-inline: -8px;
  inset-block-start: 44%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 5;
}

.carousel-arrow {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 48px;
  block-size: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(2, 6, 23, 0.72);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s var(--ease-kowalski), border-color 0.2s var(--ease-kowalski), background-color 0.2s var(--ease-kowalski);
}

.carousel-arrow:active {
  transform: scale(0.94);
}

@media (hover: hover) and (pointer: fine) {
  .carousel-arrow:hover {
    border-color: var(--amber-primary);
    background: rgba(15, 23, 42, 0.9);
  }
}

.carousel-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  touch-action: manipulation;
  scrollbar-width: none;
  padding-block: 6px 12px;
  padding-inline: 8px;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .carousel-track {
    scroll-behavior: smooth;
  }
}

.city-slide {
  position: relative;
  flex: 0 0 min(82%, 340px);
  aspect-ratio: 4 / 5;
  scroll-snap-align: center;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #070a12;
  box-shadow: 0 22px 48px -12px rgba(0, 0, 0, 0.65);
  text-align: left;
}

.city-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.city-slide-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background: linear-gradient(
    to top var(--in-oklab),
    rgba(2, 6, 23, 0.92) 0%,
    rgba(2, 6, 23, 0.52) 45%,
    transparent 100%
  );
}

.city-slide-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--amber-primary);
  margin-bottom: 4px;
}

.city-slide-overlay h3 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.city-slide-overlay p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(226, 232, 240, 0.92);
}

.carousel-markers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.carousel-marker {
  inline-size: 24px;
  block-size: 24px;
  padding: 0;
  border: 7px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  background-clip: padding-box;
  cursor: pointer;
  transition: inline-size 0.25s var(--ease-kowalski), background-color 0.25s var(--ease-kowalski);
}

.carousel-marker[aria-current="true"] {
  inline-size: 38px;
  background: var(--amber-primary);
  background-clip: padding-box;
}

/* 5-Stage Curriculum Roadmap + 7-Language Flag Strip */
.curriculum-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.stage-step {
  padding: 20px 18px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 34px;
  min-block-size: 28px;
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #020617;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.lang-strip-glass {
  width: 100%;
  padding: 16px 20px;
  border-radius: 22px;
  background: rgba(2, 6, 23, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lang-strip-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--amber-soft);
}

.lang-flags-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lang-flags-row li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.86rem;
  font-weight: 600;
  color: #fff;
}

.lang-flags-row img {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
}

/* Museum Relic Cards (Andalusian Library Band) */
.relic-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.relic-card {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.relic-media {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #070a12;
  aspect-ratio: 4 / 3;
}

.relic-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.relic-body {
  padding: 0 6px 6px;
}

.relic-meta {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--amber-primary);
  margin-bottom: 4px;
}

/* Responsive Breakpoints for Rich Modules */
@media (max-width: 1040px) {
  .curriculum-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .relic-showcase-grid,
  .deep-info-grid {
    grid-template-columns: 1fr;
  }

  .carousel-controls {
    display: none;
  }
}

@media (max-width: 640px) {
  .curriculum-track {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .demo-showcase {
    padding: 18px 16px;
  }

  .demo-verse-box {
    padding: 16px 14px;
  }

  .demo-options-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .demo-option-card {
    flex-direction: row;
    justify-content: space-between;
    min-block-size: 60px;
    padding: 10px 18px;
  }

  .city-slide {
    flex: 0 0 86%;
  }
}

/* ==========================================================================
   SEAMLESS INTER-SECTION DISSOLVES & ULTRA-SOFT GLASS / BUTTON REFINEMENT
   ========================================================================== */

/* 1. Seamless Cross-Band Atmospheric Dissolve (Zero Hard Horizontal Seams) */
body.cinematic-home .stage-band {
  border-bottom: 0;
  margin-block-start: -1px;
}

body.cinematic-home .stage-media {
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.65) 11%,
    #000 22%,
    #000 78%,
    rgba(0, 0, 0, 0.65) 89%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.65) 11%,
    #000 22%,
    #000 78%,
    rgba(0, 0, 0, 0.65) 89%,
    transparent 100%
  );
}

body.cinematic-home .stage-band--hero .stage-media {
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 76%,
    rgba(0, 0, 0, 0.6) 89%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 76%,
    rgba(0, 0, 0, 0.6) 89%,
    transparent 100%
  );
}

body.cinematic-home .stage-band--cordoba .stage-media {
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.65) 12%,
    #000 24%,
    #000 84%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.65) 12%,
    #000 24%,
    #000 84%,
    transparent 100%
  );
}

/* Velvety Multi-Stop Scrims Anchored to Pure Midnight (#020617) at Top & Bottom */
body.cinematic-home .stage-scrim--hero {
  background:
    radial-gradient(ellipse 68% 36% at 50% 24%, rgba(2, 6, 23, 0.34) 0%, transparent 74%),
    linear-gradient(
      to bottom var(--in-oklab),
      rgba(2, 6, 23, 0.68) 0%,
      rgba(2, 6, 23, 0.24) 28%,
      rgba(2, 6, 23, 0.08) 50%,
      rgba(2, 6, 23, 0.42) 76%,
      #020617 100%
    );
}

body.cinematic-home .stage-scrim--warm {
  background:
    radial-gradient(ellipse 72% 40% at 50% 22%, rgba(2, 6, 23, 0.32) 0%, transparent 74%),
    linear-gradient(
      to bottom var(--in-oklab),
      #020617 0%,
      rgba(2, 6, 23, 0.38) 18%,
      rgba(2, 6, 23, 0.16) 46%,
      rgba(2, 6, 23, 0.46) 80%,
      #020617 100%
    );
}

body.cinematic-home .stage-scrim--atlas {
  background:
    radial-gradient(ellipse 70% 45% at 50% 48%, rgba(251, 191, 36, 0.06) 0%, transparent 72%),
    linear-gradient(
      to bottom var(--in-oklab),
      #020617 0%,
      rgba(7, 10, 18, 0.46) 18%,
      rgba(7, 10, 18, 0.30) 50%,
      rgba(2, 6, 23, 0.56) 82%,
      #020617 100%
    );
}

body.cinematic-home .stage-scrim--library {
  background:
    linear-gradient(
      to bottom var(--in-oklab),
      #020617 0%,
      rgba(2, 6, 23, 0.46) 18%,
      rgba(2, 6, 23, 0.28) 48%,
      rgba(2, 6, 23, 0.56) 82%,
      #020617 100%
    );
}

body.cinematic-home .stage-scrim--cool {
  background:
    linear-gradient(
      to bottom var(--in-oklab),
      #020617 0%,
      rgba(15, 23, 42, 0.38) 18%,
      rgba(15, 23, 42, 0.16) 48%,
      rgba(2, 6, 23, 0.52) 82%,
      #020617 100%
    );
}

body.cinematic-home .stage-scrim--finale {
  background:
    linear-gradient(
      to bottom var(--in-oklab),
      #020617 0%,
      rgba(2, 6, 23, 0.48) 20%,
      rgba(2, 6, 23, 0.44) 52%,
      rgba(2, 6, 23, 0.82) 84%,
      #020617 100%
    );
}

/* 2. Whisper-Soft Floating Header & Controls */
body.cinematic-home .site-header--overlay.is-scrolled {
  background: rgba(2, 6, 23, 0.46);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(28px) saturate(135%);
  -webkit-backdrop-filter: blur(28px) saturate(135%);
}

body.cinematic-home .site-header--overlay .site-menu .nav-link {
  border-radius: 999px;
}

body.cinematic-home .site-header--overlay .lang-toggle,
body.cinematic-home .site-header--overlay .menu-button {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  box-shadow: 0 8px 24px -8px rgba(2, 6, 23, 0.35);
}

body.cinematic-home .site-header:not(.is-wide) .site-menu {
  border-radius: 26px;
  background: rgba(6, 11, 26, 0.76);
  border-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(30px) saturate(140%);
  -webkit-backdrop-filter: blur(30px) saturate(140%);
}

/* 3. Ultra-Soft Ethereal Text Backgrounds & Frosted Glass Surfaces */
body.cinematic-home .pill-badge,
body.cinematic-home .stage-kicker {
  background: rgba(6, 11, 26, 0.28);
  border: 1px solid rgba(253, 230, 138, 0.22);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  box-shadow: 0 8px 24px -10px rgba(2, 6, 23, 0.4);
}

body.cinematic-home .stage-verse-glass {
  padding: 20px 28px;
  border-radius: 30px;
  background: rgba(6, 11, 26, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  box-shadow:
    0 24px 60px -18px rgba(2, 6, 23, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.cinematic-home .demo-frame-wrap {
  padding: 1px;
  border-radius: 32px;
  background: linear-gradient(
    135deg,
    rgba(253, 230, 138, 0.28),
    rgba(129, 140, 248, 0.22),
    rgba(251, 191, 36, 0.24)
  );
  box-shadow: 0 28px 72px -20px rgba(2, 6, 23, 0.55);
}

body.cinematic-home .demo-showcase {
  padding: 28px;
  border-radius: 31px;
  background: rgba(6, 11, 26, 0.44);
  backdrop-filter: blur(30px) saturate(140%);
  -webkit-backdrop-filter: blur(30px) saturate(140%);
}

body.cinematic-home .demo-verse-box {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.cinematic-home .demo-slot {
  border-radius: 16px;
  border: 1.5px dashed rgba(253, 224, 138, 0.45);
  background: rgba(251, 191, 36, 0.08);
}

body.cinematic-home .demo-slot.is-solved {
  border-color: rgba(253, 224, 138, 0.72);
  background: rgba(251, 191, 36, 0.16);
  box-shadow: 0 0 26px rgba(251, 191, 36, 0.34);
}

body.cinematic-home .demo-option-card {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.cinematic-home .demo-option-card.is-correct {
  border-color: rgba(253, 224, 138, 0.72);
  background: rgba(251, 191, 36, 0.15);
  box-shadow: 0 0 28px rgba(251, 191, 36, 0.32);
}

body.cinematic-home .deep-cell {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

body.cinematic-home .metric-glass,
body.cinematic-home .frosted-panel,
body.cinematic-home .lang-strip-glass {
  border-radius: 28px;
  background: rgba(6, 11, 26, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(26px) saturate(135%);
  -webkit-backdrop-filter: blur(26px) saturate(135%);
  box-shadow:
    0 22px 54px -18px rgba(2, 6, 23, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

body.cinematic-home .frosted-panel::before {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(253, 230, 138, 0.38), transparent);
}

body.cinematic-home .lang-flags-row li {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.1);
}

body.cinematic-home .relic-card {
  border-radius: 28px;
  padding: 16px;
}

body.cinematic-home .relic-media {
  border-radius: 20px;
  border-color: rgba(255, 255, 255, 0.08);
}

body.cinematic-home .city-slide {
  border-radius: 30px;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 56px -18px rgba(2, 6, 23, 0.55);
}

body.cinematic-home .city-slide-overlay {
  background: linear-gradient(
    to top var(--in-oklab),
    rgba(2, 6, 23, 0.86) 0%,
    rgba(2, 6, 23, 0.38) 44%,
    transparent 100%
  );
}

body.cinematic-home .faq-list--glass .faq-item {
  border-radius: 24px;
  background: rgba(6, 11, 26, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(26px) saturate(135%);
  -webkit-backdrop-filter: blur(26px) saturate(135%);
}

body.cinematic-home .faq-list--glass .faq-item[open] {
  background: rgba(6, 11, 26, 0.5);
  border-color: rgba(253, 230, 138, 0.28);
}

/* 4. Velvety Soft Pill Buttons (Calm Champagne-Kandil + Liquid Frosted Glass) */
body.cinematic-home .btn {
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.005em;
}

body.cinematic-home .btn-primary {
  background: linear-gradient(
    135deg var(--in-oklab),
    rgba(253, 230, 138, 0.92) 0%,
    rgba(251, 191, 36, 0.84) 100%
  );
  color: #0b1120;
  border: 1px solid rgba(254, 243, 199, 0.42);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 12px 34px -10px rgba(251, 191, 36, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

body.cinematic-home .btn-frosted {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(248, 250, 252, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow:
    0 12px 34px -12px rgba(2, 6, 23, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

body.cinematic-home .carousel-arrow {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  box-shadow: 0 12px 32px -10px rgba(2, 6, 23, 0.42);
}

@media (hover: hover) and (pointer: fine) {
  body.cinematic-home .btn-primary:hover {
    transform: translateY(-1.5px);
    background: linear-gradient(
      135deg var(--in-oklab),
      rgba(254, 240, 178, 0.96) 0%,
      rgba(251, 191, 36, 0.92) 100%
    );
    box-shadow: 0 16px 40px -10px rgba(251, 191, 36, 0.44);
  }

  body.cinematic-home .btn-frosted:hover {
    transform: translateY(-1.5px);
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(253, 230, 138, 0.36);
  }

  body.cinematic-home .carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(253, 230, 138, 0.42);
  }
}

body.cinematic-home .site-footer--minimal {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile Softness & Readability Fine-Tuning */
@media (max-width: 640px) {
  body.cinematic-home .stage-verse-glass {
    padding: 16px 18px;
    border-radius: 24px;
  }

  body.cinematic-home .demo-frame-wrap {
    border-radius: 26px;
  }

  body.cinematic-home .demo-showcase {
    padding: 20px 16px;
    border-radius: 25px;
  }

  body.cinematic-home .metric-glass,
  body.cinematic-home .frosted-panel,
  body.cinematic-home .lang-strip-glass {
    border-radius: 22px;
  }

  body.cinematic-home .stage-btn {
    min-block-size: 52px;
  }
}

/* ==========================================================================
   HERO MULTI-SCENE SLIDING SHOWCASE (TESLA-STYLE CROSS-SLIDE TRANSITIONS)
   ========================================================================== */

.hero-slider-stage {
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: translate3d(4%, 0, 0) scale(1.07);
  transition:
    opacity 1.25s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
  pointer-events: none;
}

.hero-slide.is-entering-rev {
  transform: translate3d(-4%, 0, 0) scale(1.07);
  transition: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1.01);
  z-index: 2;
}

.hero-slide.is-leaving {
  opacity: 0;
  transform: translate3d(-3.5%, 0, 0) scale(1.06);
  z-index: 1;
}

.hero-slide.is-leaving-rev {
  opacity: 0;
  transform: translate3d(3.5%, 0, 0) scale(1.06);
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transform: none;
    transition: opacity 0.25s ease;
  }

  .hero-slide.is-active,
  .hero-slide.is-leaving,
  .hero-slide.is-leaving-rev {
    transform: none;
  }
}

/* Soft Frosted Side Arrows on Desktop */
.hero-slider-arrows {
  position: absolute;
  inset-inline: 22px;
  inset-block-start: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 4;
}

@media (min-width: 1180px) {
  .hero-slider-arrows {
    inset-inline: 26px 76px;
  }
}

.hero-arrow {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 48px;
  block-size: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(6, 11, 26, 0.28);
  color: rgba(248, 250, 252, 0.92);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  backdrop-filter: blur(20px) saturate(135%);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
  box-shadow: 0 12px 30px -10px rgba(2, 6, 23, 0.45);
  transition: transform 0.22s var(--ease-kowalski), background-color 0.22s var(--ease-kowalski), border-color 0.22s var(--ease-kowalski);
}

.hero-arrow:active {
  transform: scale(0.94);
}

@media (hover: hover) and (pointer: fine) {
  .hero-arrow:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(253, 230, 138, 0.4);
  }
}

/* Soft Translucent Bottom Slideshow Control Bar */
.hero-slider-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(6, 11, 26, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(135%);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
}

.hero-city-caption {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(253, 230, 138, 0.94);
  white-space: nowrap;
}

.hero-slider-dots {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.hero-dot {
  inline-size: 24px;
  block-size: 24px;
  padding: 0;
  border: 8px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  background-clip: padding-box;
  cursor: pointer;
  touch-action: manipulation;
  transition: inline-size 0.3s var(--ease-kowalski), background-color 0.3s var(--ease-kowalski);
}

.hero-dot.is-active {
  inline-size: 36px;
  background: var(--amber-primary);
  background-clip: padding-box;
}

.hero-pause-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 30px;
  block-size: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(248, 250, 252, 0.88);
  font-size: 0.65rem;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.2s var(--ease-kowalski), border-color 0.2s var(--ease-kowalski);
}

@media (max-width: 780px) {
  .hero-slider-arrows {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero-slider-bar {
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 6px 12px;
    max-inline-size: 100%;
  }

  .hero-city-caption {
    font-size: 0.76rem;
  }

  .hero-dot {
    inline-size: 22px;
    block-size: 22px;
    border-width: 7px;
  }

  .hero-dot.is-active {
    inline-size: 30px;
  }
}

/* ==========================================================================
   7-LANGUAGE FLAG POPOVER SWITCHER & RTL (URDU) TYPOGRAPHY SUPPORT
   ========================================================================== */

.lang-toggle {
  anchor-name: --lang-button;
  gap: 7px;
  padding-inline: 10px 12px;
}

.lang-flag-img {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.lang-caret {
  font-size: 0.72rem;
  opacity: 0.78;
}

.lang-menu {
  list-style: none;
  margin: 0;
  position: fixed;
  inset: auto;
  inset-block-start: calc(4.75rem + env(safe-area-inset-top, 0px));
  inset-block-start: anchor(--lang-button bottom);
  inset-inline-end: max(1rem, env(safe-area-inset-right, 0px));
  inline-size: min(86dvw, 16.5rem);
  max-inline-size: calc(100dvw - 2rem);
  block-size: fit-content;
  margin-block-start: 0.5rem;
  padding: 10px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(6, 11, 26, 0.82);
  color: var(--text-main);
  backdrop-filter: blur(30px) saturate(140%);
  -webkit-backdrop-filter: blur(30px) saturate(140%);
  box-shadow: 0 24px 56px -14px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  opacity: 0;
  translate: 0 -8px;
  transition:
    opacity 0.2s var(--ease-kowalski),
    translate 0.2s var(--ease-kowalski),
    display 0.2s var(--ease-kowalski),
    overlay 0.2s var(--ease-kowalski);
  transition-behavior: allow-discrete;
}

.lang-menu::backdrop {
  background: rgba(2, 6, 23, 0.36);
}

.lang-menu:is(:popover-open, .\:popover-open) {
  display: grid;
  gap: 4px;
  opacity: 1;
  translate: 0 0;
}

@starting-style {
  .lang-menu:is(:popover-open, .\:popover-open) {
    opacity: 0;
    translate: 0 -8px;
  }
}

.lang-option-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-block-size: 44px;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(241, 245, 249, 0.92);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: start;
  cursor: pointer;
  transition: background-color 0.18s var(--ease-kowalski), border-color 0.18s var(--ease-kowalski);
}

.lang-option-label {
  flex: 1;
}

.lang-option-code {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
}

.lang-option-btn[aria-current="true"] {
  background: rgba(251, 191, 36, 0.16);
  border-color: rgba(253, 230, 138, 0.38);
  color: #fff;
}

.lang-option-btn[aria-current="true"] .lang-option-code {
  color: var(--amber-primary);
}

@media (hover: hover) and (pointer: fine) {
  .lang-option-btn:hover {
    background: rgba(255, 255, 255, 0.08);
  }
}

/* Clickable Flag Pills in Curriculum Strip */
.lang-flags-row li {
  padding: 0;
  background: transparent;
  border: 0;
}

.lang-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-block-size: 40px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-kowalski), border-color 0.2s var(--ease-kowalski), transform 0.2s var(--ease-kowalski);
}

.lang-pill-btn[aria-pressed="true"] {
  background: rgba(251, 191, 36, 0.18);
  border-color: rgba(253, 230, 138, 0.48);
  color: #fde68a;
}

@media (hover: hover) and (pointer: fine) {
  .lang-pill-btn:hover {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(253, 230, 138, 0.36);
    transform: translateY(-1px);
  }
}

/* Urdu RTL Typography & Logical Alignment Polish */
html[lang="ur"] body {
  font-family: 'Noto Naskh Arabic', 'Outfit', -apple-system, sans-serif;
  line-height: 1.85;
}

html[dir="rtl"] .stage-pillars,
html[dir="rtl"] .curriculum-track,
html[dir="rtl"] .relic-showcase-grid,
html[dir="rtl"] .stage-faq-wrap,
html[dir="rtl"] .demo-showcase,
html[dir="rtl"] .city-slide {
  text-align: right;
}

html[dir="rtl"] .scroll-progress-bar {
  transform-origin: 100% 50%;
}

@media (max-width: 640px) {
  .lang-toggle {
    padding-inline: 8px 10px;
    gap: 5px;
    font-size: 0.82rem;
  }

  .lang-flag-img {
    width: 18px;
    height: 18px;
  }
}

/* ==========================================================================
   ULTRA-COMPACT 3-TAB UNIFIED GLASS FAQ PANEL
   ========================================================================== */

body.cinematic-home .stage-faq-wrap {
  width: min(100%, 700px);
}

.faq-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.faq-tab {
  min-block-size: 38px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(6, 11, 26, 0.34);
  color: rgba(226, 232, 240, 0.88);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background-color 0.2s var(--ease-kowalski), border-color 0.2s var(--ease-kowalski), color 0.2s var(--ease-kowalski);
}

.faq-tab.is-active {
  background: rgba(251, 191, 36, 0.18);
  border-color: rgba(253, 230, 138, 0.48);
  color: #fde68a;
}

@media (hover: hover) and (pointer: fine) {
  .faq-tab:hover:not(.is-active) {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }
}

.faq-list--compact {
  display: block;
  border-radius: 26px;
  background: rgba(6, 11, 26, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(26px) saturate(135%);
  -webkit-backdrop-filter: blur(26px) saturate(135%);
  box-shadow: 0 22px 54px -18px rgba(2, 6, 23, 0.48);
  overflow: hidden;
}

.faq-list--compact .faq-item {
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: transparent;
  padding: 0 20px;
}

.faq-list--compact .faq-item[hidden] {
  display: none;
}

.faq-list--compact .faq-item:last-of-type {
  border-bottom: 0;
}

.faq-list--compact .faq-item[open] {
  background: rgba(255, 255, 255, 0.035);
}

.faq-list--compact .faq-item summary {
  min-block-size: 46px;
  padding-block: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  gap: 12px;
}

.faq-list--compact .faq-item summary::after {
  font-size: 1.12rem;
}

.faq-list--compact .faq-answer {
  padding: 0 0 12px;
  font-size: 0.86rem;
  line-height: 1.56;
}

@media (pointer: coarse) {
  .faq-tab {
    min-block-size: 44px;
  }

  .faq-list--compact .faq-item summary {
    min-block-size: 48px;
  }
}

@media (max-width: 640px) {
  .faq-list--compact {
    border-radius: 22px;
  }

  .faq-list--compact .faq-item {
    padding: 0 15px;
  }

  .faq-list--compact .faq-item summary {
    font-size: 0.88rem;
  }
}

/* ==========================================================================
   PICTURE-FIRST COMPACT HERO, DYNAMIC HEADLINES/AYAH-HADITH & INSTAGRAM
   ========================================================================== */

body.cinematic-home .stage-content--hero-compact {
  padding-block: calc(5.1rem + env(safe-area-inset-top, 0px)) max(1.6rem, calc(1rem + env(safe-area-inset-bottom, 0px)));
  gap: 16px;
}

.stage-top--hero-compact {
  max-width: 680px;
}

.stage-title--compact {
  margin: 0 0 8px;
  font-size: clamp(1.65rem, 1.15rem + 2.2vw, 2.85rem);
  line-height: 1.12;
  transition: opacity 0.28s var(--ease-kowalski), transform 0.28s var(--ease-kowalski);
}

.stage-subtitle--compact {
  font-size: clamp(0.88rem, 0.84rem + 0.25vw, 1.02rem);
  max-width: 50ch;
  color: rgba(241, 245, 249, 0.88);
  transition: opacity 0.28s var(--ease-kowalski), transform 0.28s var(--ease-kowalski);
}

.stage-bottom--compact {
  gap: 11px;
}

body.cinematic-home .stage-verse-glass--compact {
  width: min(100%, 490px);
  padding: 10px 18px 11px;
  border-radius: 22px;
  background: rgba(6, 11, 26, 0.30);
  gap: 4px;
  transition: opacity 0.28s var(--ease-kowalski), transform 0.28s var(--ease-kowalski);
}

body.cinematic-home .stage-verse-glass--compact .arabic-verse {
  font-size: clamp(1.22rem, 1rem + 0.9vw, 1.56rem);
  line-height: 1.55;
}

body.cinematic-home .stage-verse-glass--compact .verse-meta {
  font-size: 0.78rem;
  gap: 4px 10px;
}

.hero-quote-type {
  align-self: center;
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--amber-soft);
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(253, 230, 138, 0.24);
}

.hero-quote-type[data-quote-type="hadith"] {
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(110, 231, 183, 0.28);
}

.is-swapping {
  opacity: 0 !important;
  transform: translate3d(0, 6px, 0) !important;
}

.stage-actions--compact {
  gap: 10px;
}

body.cinematic-home .stage-btn--compact {
  min-inline-size: 176px;
  min-block-size: 42px;
  padding: 9px 18px;
  font-size: 0.86rem;
}

body.cinematic-home .hero-slider-bar {
  padding: 4px 12px;
  gap: 8px;
}

/* Instagram Social Controls */
.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 40px;
  block-size: 40px;
  border-radius: 999px;
  color: rgba(248, 250, 252, 0.9);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-decoration: none;
  transition: background-color 0.2s var(--ease-kowalski), border-color 0.2s var(--ease-kowalski), color 0.2s var(--ease-kowalski), transform 0.2s var(--ease-kowalski);
}

@media (hover: hover) and (pointer: fine) {
  .social-icon-btn:hover {
    background: rgba(251, 191, 36, 0.16);
    border-color: rgba(253, 230, 138, 0.42);
    color: var(--amber-soft);
    transform: translateY(-1px);
  }
}

.footer-instagram {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--amber-soft) !important;
}

@media (max-width: 720px) {
  .desktop-social {
    display: none;
  }
}

@media (max-width: 640px) {
  body.cinematic-home .stage-content--hero-compact {
    padding-block: calc(4.8rem + env(safe-area-inset-top, 0px)) max(1.2rem, calc(0.8rem + env(safe-area-inset-bottom, 0px)));
    gap: 12px;
  }

  .stage-title--compact {
    font-size: clamp(1.48rem, 1.15rem + 2vw, 2rem);
  }

  body.cinematic-home .stage-verse-glass--compact {
    padding: 9px 14px;
    border-radius: 18px;
  }

  body.cinematic-home .stage-verse-glass--compact .arabic-verse {
    font-size: 1.18rem;
  }

  body.cinematic-home .stage-actions--compact {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  body.cinematic-home .stage-actions--compact .stage-btn--compact {
    flex: 1 1 142px;
    width: auto;
    min-inline-size: 0;
    min-block-size: 44px;
    padding: 8px 12px;
    font-size: 0.82rem;
  }
}

/* ==========================================================================
   ULTRA-SOFT SILK & CLOUD-GLASS POLISH (ALL BUTTONS, CARDS & LEGAL SURFACES)
   ========================================================================== */

:root {
  --surface-glass: rgba(15, 23, 42, 0.36);
  --surface-card: rgba(13, 20, 38, 0.48);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-amber: rgba(253, 230, 138, 0.18);
}

/* Whisper-soft Header, Brand & Navigation Pills */
.site-header {
  background: rgba(4, 9, 24, 0.62);
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(28px) saturate(135%);
  -webkit-backdrop-filter: blur(28px) saturate(135%);
}

.site-header--overlay.is-scrolled {
  background: rgba(4, 9, 24, 0.56);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.brand-mark {
  border-radius: 16px;
  background: rgba(253, 230, 138, 0.08);
  border: 1px solid rgba(253, 230, 138, 0.16);
  box-shadow: 0 6px 24px rgba(251, 191, 36, 0.1);
}

.site-header:not(.is-wide) .site-menu {
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 16, 34, 0.78);
  backdrop-filter: blur(34px) saturate(140%);
  -webkit-backdrop-filter: blur(34px) saturate(140%);
  box-shadow: 0 28px 64px -18px rgba(2, 6, 23, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.site-menu .nav-link,
.site-header.is-wide .site-menu .nav-link {
  border-radius: 999px;
  font-weight: 500;
  color: rgba(226, 232, 240, 0.88);
  transition: color 0.28s var(--ease-kowalski), background-color 0.28s var(--ease-kowalski), border-color 0.28s var(--ease-kowalski);
}

.site-menu .nav-link[aria-current="page"] {
  color: #fef3c7;
  background: rgba(253, 230, 138, 0.1);
  border-color: rgba(253, 230, 138, 0.16);
  text-decoration: none;
}

.menu-button,
.lang-toggle,
.site-header--overlay .menu-button,
.site-header--overlay .lang-toggle {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px) saturate(135%);
  -webkit-backdrop-filter: blur(24px) saturate(135%);
  transition: background-color 0.28s var(--ease-kowalski), border-color 0.28s var(--ease-kowalski), transform 0.28s var(--ease-kowalski);
}

.social-icon-btn {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.lang-menu {
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 16, 34, 0.78);
  box-shadow: 0 28px 64px -18px rgba(2, 6, 23, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.lang-option-btn {
  border-radius: 999px;
}

.lang-option-btn[aria-current="true"] {
  background: rgba(253, 230, 138, 0.11);
  border-color: rgba(253, 230, 138, 0.2);
}

/* Site-Wide Velvety Silk Pill Buttons */
.btn,
body.cinematic-home .btn {
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.005em;
  transition:
    transform 0.3s var(--ease-kowalski),
    box-shadow 0.3s var(--ease-kowalski),
    background-color 0.3s var(--ease-kowalski),
    border-color 0.3s var(--ease-kowalski);
}

.btn-primary,
body.cinematic-home .btn-primary {
  background: linear-gradient(
    135deg var(--in-oklab),
    rgba(254, 240, 188, 0.86) 0%,
    rgba(246, 198, 102, 0.78) 100%
  );
  color: #0f172a;
  border: 1px solid rgba(255, 249, 224, 0.28);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow:
    0 12px 36px -14px rgba(251, 191, 36, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.btn-secondary,
.btn-frosted,
body.cinematic-home .btn-frosted {
  background: rgba(255, 255, 255, 0.075);
  color: rgba(248, 250, 252, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  box-shadow:
    0 12px 36px -16px rgba(2, 6, 23, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.11);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover,
  body.cinematic-home .btn-primary:hover {
    transform: translateY(-1.5px);
    background: linear-gradient(
      135deg var(--in-oklab),
      rgba(254, 244, 202, 0.92) 0%,
      rgba(250, 206, 118, 0.86) 100%
    );
    box-shadow:
      0 16px 42px -12px rgba(251, 191, 36, 0.34),
      inset 0 1px 0 rgba(255, 255, 255, 0.5);
  }

  .btn-secondary:hover,
  .btn-frosted:hover,
  body.cinematic-home .btn-frosted:hover {
    transform: translateY(-1.5px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(253, 230, 138, 0.24);
  }
}

/* Soft Pillowy Glass Cards & Containers (Homepage + Legal) */
.glass-card {
  border-radius: 34px;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(255, 255, 255, 0.035), transparent 70%),
    rgba(11, 18, 36, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(32px) saturate(135%);
  -webkit-backdrop-filter: blur(32px) saturate(135%);
  box-shadow:
    0 28px 72px -24px rgba(2, 6, 23, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.glass-card::before {
  height: 1px;
  left: 18%;
  right: 18%;
  background: linear-gradient(90deg, transparent, rgba(253, 230, 138, 0.24), transparent);
}

body.cinematic-home .metric-glass,
body.cinematic-home .frosted-panel,
body.cinematic-home .lang-strip-glass {
  border-radius: 32px;
  background:
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(255, 255, 255, 0.04), transparent 72%),
    rgba(8, 14, 30, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.065);
  backdrop-filter: blur(30px) saturate(140%);
  -webkit-backdrop-filter: blur(30px) saturate(140%);
  box-shadow:
    0 24px 60px -22px rgba(2, 6, 23, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.cinematic-home .frosted-panel::before {
  background: linear-gradient(90deg, transparent, rgba(253, 230, 138, 0.2), transparent);
}

body.cinematic-home .stage-verse-glass,
body.cinematic-home .stage-verse-glass--compact {
  border-radius: 28px;
  background: rgba(8, 14, 30, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.075);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  box-shadow:
    0 20px 50px -20px rgba(2, 6, 23, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.hero-quote-type {
  background: rgba(253, 230, 138, 0.09);
  border-color: rgba(253, 230, 138, 0.16);
}

.hero-quote-type[data-quote-type="hadith"] {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(110, 231, 183, 0.18);
}

.stage-kicker {
  background: rgba(253, 230, 138, 0.07);
  border: 1px solid rgba(253, 230, 138, 0.14);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

body.cinematic-home .hero-slider-bar {
  background: rgba(8, 14, 30, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(24px) saturate(135%);
  -webkit-backdrop-filter: blur(24px) saturate(135%);
}

.hero-arrow,
body.cinematic-home .carousel-arrow {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  box-shadow: 0 14px 36px -14px rgba(2, 6, 23, 0.36);
}

.hero-pause-btn {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.06);
}

/* Interactive Demo, Cities, Relics & FAQ Softening */
body.cinematic-home .demo-frame-wrap {
  border-radius: 36px;
  padding: 1px;
  background: linear-gradient(
    135deg var(--in-oklab),
    rgba(253, 230, 138, 0.24) 0%,
    rgba(129, 140, 248, 0.18) 52%,
    rgba(253, 230, 138, 0.18) 100%
  );
  box-shadow: 0 28px 72px -24px rgba(2, 6, 23, 0.44);
}

body.cinematic-home .demo-showcase {
  border-radius: 35px;
  background: rgba(8, 14, 30, 0.34);
  backdrop-filter: blur(32px) saturate(140%);
  -webkit-backdrop-filter: blur(32px) saturate(140%);
}

body.cinematic-home .demo-verse-box {
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.055);
}

body.cinematic-home .demo-slot {
  border-radius: 999px;
  border: 1px dashed rgba(253, 230, 138, 0.34);
  background: rgba(253, 230, 138, 0.06);
}

body.cinematic-home .demo-option-card {
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.048);
  border: 1px solid rgba(255, 255, 255, 0.075);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

body.cinematic-home .deep-cell {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

body.cinematic-home .city-slide {
  border-radius: 34px;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px -22px rgba(2, 6, 23, 0.46);
}

body.cinematic-home .relic-card {
  border-radius: 32px;
}

body.cinematic-home .relic-media {
  border-radius: 24px;
  border-color: rgba(255, 255, 255, 0.055);
}

.lang-pill-btn,
.faq-tab {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.048);
  border: 1px solid rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: background-color 0.28s var(--ease-kowalski), border-color 0.28s var(--ease-kowalski), color 0.28s var(--ease-kowalski), transform 0.28s var(--ease-kowalski);
}

.lang-pill-btn[aria-pressed="true"],
.faq-tab.is-active {
  background: rgba(253, 230, 138, 0.13);
  border-color: rgba(253, 230, 138, 0.26);
  color: #fef3c7;
}

.faq-list--compact {
  border-radius: 32px;
  background: rgba(8, 14, 30, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.065);
  backdrop-filter: blur(30px) saturate(140%);
  -webkit-backdrop-filter: blur(30px) saturate(140%);
  box-shadow: 0 24px 60px -22px rgba(2, 6, 23, 0.38);
}

.faq-list--compact .faq-item {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

/* Soft, Airy Legal Pages (Privacy, Terms, Delete Account) */
.legal-card {
  padding: 40px 38px;
}

.legal-pill {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(226, 232, 240, 0.9) !important;
  font-weight: 500;
  transition: background-color 0.26s var(--ease-kowalski), border-color 0.26s var(--ease-kowalski), color 0.26s var(--ease-kowalski), transform 0.26s var(--ease-kowalski);
}

.legal-pill:hover,
.legal-pill--active {
  border-color: rgba(253, 230, 138, 0.22);
  background: rgba(253, 230, 138, 0.1);
  color: #fef3c7 !important;
}

.legal-callout {
  margin: 20px 0 24px;
  padding: 18px 22px;
  border-radius: 24px;
  border: 1px solid rgba(253, 230, 138, 0.12);
  background:
    radial-gradient(ellipse 80% 100% at 0% 50%, rgba(251, 191, 36, 0.07), transparent 70%),
    rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.legal-toc {
  margin: 20px 0 28px;
  padding: 20px 22px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.024);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.legal-toc-list a {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(226, 232, 240, 0.86);
  transition: background-color 0.24s var(--ease-kowalski), border-color 0.24s var(--ease-kowalski), color 0.24s var(--ease-kowalski);
}

.legal-toc-list a:hover {
  background: rgba(253, 230, 138, 0.1);
  border-color: rgba(253, 230, 138, 0.2);
  color: #fef3c7;
}

.legal-table {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(255, 255, 255, 0.022);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.legal-table th {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(254, 243, 199, 0.9);
}

.legal-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.legal-divider {
  border-top-color: rgba(255, 255, 255, 0.06);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.045);
  background: rgba(2, 6, 23, 0.72);
}

@media (max-width: 640px) {
  .glass-card,
  .legal-card {
    border-radius: 26px;
    padding: 24px 18px;
  }

  .legal-callout,
  .legal-toc,
  .legal-table {
    border-radius: 20px;
  }

  body.cinematic-home .metric-glass,
  body.cinematic-home .frosted-panel,
  body.cinematic-home .lang-strip-glass,
  .faq-list--compact {
    border-radius: 24px;
  }
}

/* ==========================================================================
   ULTRA-COMPACT INTERACTIVE VERSE QUESTION SHOWCASE (#experience)
   ========================================================================== */

body.cinematic-home #experience .stage-content {
  padding-block: calc(5.2rem + env(safe-area-inset-top, 0px)) max(2rem, calc(1.2rem + env(safe-area-inset-bottom, 0px)));
  gap: 18px;
}

body.cinematic-home #experience .stage-top {
  max-width: 600px;
}

body.cinematic-home #experience .stage-heading {
  font-size: clamp(1.48rem, 1.12rem + 1.65vw, 2.3rem);
  margin-bottom: 6px;
}

body.cinematic-home #experience .stage-subtitle {
  font-size: clamp(0.86rem, 0.82rem + 0.22vw, 0.96rem);
  max-width: 52ch;
}

body.cinematic-home .demo-frame-wrap {
  width: min(100%, 560px);
  border-radius: 30px;
}

body.cinematic-home .demo-showcase {
  padding: 15px 18px;
  border-radius: 29px;
  gap: 10px;
}

body.cinematic-home .demo-header-row {
  gap: 8px;
}

body.cinematic-home .demo-prompt {
  font-size: 0.82rem;
}

body.cinematic-home .demo-counter {
  font-size: 0.74rem;
  padding: 2px 9px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.055);
}

body.cinematic-home .demo-verse-box {
  padding: 11px 15px;
  border-radius: 21px;
  gap: 5px;
}

body.cinematic-home .demo-arabic {
  font-size: clamp(1.42rem, 1.15rem + 1.05vw, 1.82rem);
  line-height: 1.52;
}

body.cinematic-home .demo-slot {
  min-inline-size: 3.1rem;
  padding: 0 10px;
  margin-inline: 3px;
}

body.cinematic-home .demo-verse-sub {
  font-size: 0.8rem;
  gap: 3px 10px;
}

body.cinematic-home .demo-options-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

body.cinematic-home .demo-option-card {
  min-block-size: 56px;
  padding: 6px 10px;
  gap: 1px;
  border-radius: 20px;
}

body.cinematic-home .demo-option-ar {
  font-size: 1.26rem;
  line-height: 1.32;
}

body.cinematic-home .demo-option-latin {
  font-size: 0.73rem;
}

body.cinematic-home .demo-deep-info {
  padding-top: 9px;
  border-top-color: rgba(253, 230, 138, 0.16);
  gap: 9px;
}

body.cinematic-home .deep-info-grid {
  gap: 8px;
}

body.cinematic-home .deep-cell {
  padding: 9px 11px;
  border-radius: 16px;
}

body.cinematic-home .deep-label {
  font-size: 0.72rem;
  margin-bottom: 2px;
}

body.cinematic-home .deep-cell p {
  font-size: 0.78rem;
  line-height: 1.44;
}

body.cinematic-home .demo-next-row .btn-sm {
  min-height: 38px;
  padding: 6px 16px;
  font-size: 0.82rem;
}

@media (pointer: coarse) {
  body.cinematic-home .demo-next-row .btn-sm {
    min-height: 44px;
  }
}

@media (max-width: 640px) {
  body.cinematic-home #experience .stage-content {
    padding-block: calc(4.8rem + env(safe-area-inset-top, 0px)) max(1.5rem, calc(1rem + env(safe-area-inset-bottom, 0px)));
    gap: 14px;
  }

  body.cinematic-home .demo-frame-wrap {
    border-radius: 24px;
  }

  body.cinematic-home .demo-showcase {
    padding: 13px 13px;
    border-radius: 23px;
    gap: 9px;
  }

  body.cinematic-home .demo-verse-box {
    padding: 10px 12px;
    border-radius: 18px;
  }

  body.cinematic-home .demo-arabic {
    font-size: 1.36rem;
    line-height: 1.5;
  }

  body.cinematic-home .demo-options-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  body.cinematic-home .demo-option-card {
    min-block-size: 52px;
    padding: 6px 6px;
    border-radius: 17px;
  }

  body.cinematic-home .demo-option-ar {
    font-size: 1.16rem;
  }

  body.cinematic-home .demo-option-latin {
    font-size: 0.7rem;
  }

  body.cinematic-home .deep-info-grid {
    grid-template-columns: 1fr;
    gap: 7px;
  }
}

/* ==========================================================================
   PREMIUM ALIGNED CLOUD-GLASS FOOTER (.site-footer--premium)
   ========================================================================== */

.site-footer--premium {
  position: relative;
  margin-top: 0;
  border-top: 0;
  background:
    radial-gradient(ellipse 68% 55% at 50% 0%, rgba(251, 191, 36, 0.08) 0%, rgba(99, 102, 241, 0.05) 45%, transparent 75%),
    var(--bg-midnight);
  padding-block: 36px max(40px, calc(26px + env(safe-area-inset-bottom, 0px)));
  overflow: clip;
}

.site-footer--premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(253, 230, 138, 0.24), transparent);
  pointer-events: none;
}

.footer-panel {
  position: relative;
  border-radius: 34px;
  padding: 36px 40px 26px;
  background:
    radial-gradient(ellipse 85% 55% at 50% 0%, rgba(255, 255, 255, 0.035), transparent 70%),
    rgba(10, 16, 34, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.065);
  backdrop-filter: blur(28px) saturate(135%);
  -webkit-backdrop-filter: blur(28px) saturate(135%);
  box-shadow:
    0 28px 72px -26px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.78fr) minmax(0, 0.92fr);
  gap: 32px 44px;
  align-items: start;
  text-align: start;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.footer-brand-mark {
  width: 42px;
  height: 42px;
}

.footer-desc {
  margin: 0;
  max-width: 42ch;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(203, 213, 225, 0.82);
}

.footer-contact-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.footer-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-block-size: 38px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(241, 245, 249, 0.92);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.25s var(--ease-kowalski), border-color 0.25s var(--ease-kowalski), color 0.25s var(--ease-kowalski), transform 0.25s var(--ease-kowalski);
}

.footer-chip--accent {
  border-color: rgba(253, 230, 138, 0.18);
  background: rgba(253, 230, 138, 0.075);
  color: var(--amber-soft);
}

@media (hover: hover) and (pointer: fine) {
  .footer-chip:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(253, 230, 138, 0.28);
    color: #fff;
  }

  .footer-chip--accent:hover {
    background: rgba(253, 230, 138, 0.15);
    border-color: rgba(253, 230, 138, 0.36);
    color: #fef3c7;
  }
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-col-title {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(253, 230, 138, 0.86);
}

.footer-col-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.footer-col-list a {
  display: inline-flex;
  align-items: center;
  min-block-size: 34px;
  padding-block: 2px;
  color: rgba(203, 213, 225, 0.86);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.22s var(--ease-kowalski), transform 0.22s var(--ease-kowalski);
}

@media (hover: hover) and (pointer: fine) {
  .footer-col-list a:hover {
    color: #fef3c7;
    transform: translateX(2px);
  }
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copyright {
  margin: 0;
  font-size: 0.83rem;
  color: rgba(148, 163, 184, 0.9);
}

.footer-bottom-right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-domain {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(148, 163, 184, 0.78);
}

.footer-top-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-block-size: 36px;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(241, 245, 249, 0.9);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.24s var(--ease-kowalski), border-color 0.24s var(--ease-kowalski), color 0.24s var(--ease-kowalski), transform 0.24s var(--ease-kowalski);
}

@media (hover: hover) and (pointer: fine) {
  .footer-top-pill:hover {
    transform: translateY(-1px);
    background: rgba(253, 230, 138, 0.12);
    border-color: rgba(253, 230, 138, 0.26);
    color: #fef3c7;
  }
}

.site-footer--minimal .footer-inner {
  justify-content: center;
  text-align: center;
}

@media (pointer: coarse) {
  .footer-chip,
  .footer-col-list a,
  .footer-top-pill {
    min-block-size: 42px;
  }
}

@media (max-width: 820px) {
  .footer-panel {
    padding: 28px 24px 22px;
    border-radius: 28px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .site-footer--premium {
    padding-block: 24px max(30px, calc(20px + env(safe-area-inset-bottom, 0px)));
  }

  .footer-panel {
    padding: 24px 18px 20px;
    border-radius: 24px;
  }

  .footer-bottom {
    margin-top: 22px;
    padding-top: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-bottom-right {
    width: 100%;
    justify-content: space-between;
  }
}
