/* ─────────────────────────────────────────────────────────────
   KURTULUŞ — site design system
   Emerald night · gold light · the texts themselves
   ───────────────────────────────────────────────────────────── */

:root {
  --night: #04100c;
  --night-2: #071b16;
  --emerald-950: #08221a;
  --emerald-900: #0b2c21;
  --emerald-800: #0f3a2b;
  --emerald-600: #1a6b46;
  --emerald-400: #2d8a5c;
  --gold: #d4af37;
  --gold-soft: #e8cf85;
  --gold-deep: #b08a32;
  --ivory: #f7f5ef;
  --cream: #dde8df;
  --text: #eef3ef;
  --text-muted: #a9b9b0;
  --text-faint: #7d9186;
  --line: rgba(232, 207, 133, 0.14);
  --line-soft: rgba(238, 243, 239, 0.08);
  --surface: rgba(16, 44, 34, 0.55);
  --surface-strong: rgba(14, 40, 31, 0.86);
  --glass: rgba(10, 30, 23, 0.62);

  --font-ui: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-arabic: "Amiri", "Noto Naskh Arabic", "Geeza Pro", serif;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  --shadow-gold: 0 0 0 1px rgba(212, 175, 55, 0.25), 0 20px 60px -20px rgba(212, 175, 55, 0.25);

  --container: 1200px;
  --gutter: clamp(18px, 4vw, 40px);
  --section-y: clamp(56px, 7vw, 104px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Cg fill='none' stroke='%23d4af37' stroke-width='0.8' opacity='0.55'%3E%3Cpath d='M44 8 54 34 80 44 54 54 44 80 34 54 8 44 34 34Z'/%3E%3Cpath d='M18.5 18.5 44 29 69.5 18.5 59 44 69.5 69.5 44 59 18.5 69.5 29 44Z'/%3E%3Ccircle cx='44' cy='44' r='7'/%3E%3C/g%3E%3C/svg%3E");
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: var(--gold-soft);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--gold);
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: rgba(212, 175, 55, 0.35);
  color: var(--ivory);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--night);
  font-weight: 700;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ── Atmosphere ─────────────────────────────────────────────── */

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(26, 107, 70, 0.28), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(212, 175, 55, 0.07), transparent 60%),
    radial-gradient(1000px 800px at 50% 120%, rgba(15, 58, 43, 0.5), transparent 60%),
    var(--night);
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--pattern);
  background-size: 88px;
  opacity: 0.045;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%);
}

/* ── Typography ─────────────────────────────────────────────── */

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ivory);
  letter-spacing: -0.02em;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  line-height: 1.06;
}

h1 {
  font-size: clamp(2.6rem, 6.2vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.gold-text {
  background: linear-gradient(100deg, var(--gold-soft) 0%, var(--gold) 45%, #f3dea0 70%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 60ch;
}

.arabic {
  font-family: var(--font-arabic);
  direction: rtl;
  color: var(--gold-soft);
  line-height: 1.8;
}

/* ── Buttons ────────────────────────────────────────────────── */

.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--btn-bg);
  font: 700 0.95rem/1 var(--font-ui);
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn-gold {
  color: #1d1706;
  background: linear-gradient(135deg, #f1d98d 0%, var(--gold) 55%, var(--gold-deep) 100%);
  box-shadow: 0 10px 30px -10px rgba(212, 175, 55, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-gold:hover {
  color: #1d1706;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(212, 175, 55, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-ghost {
  color: var(--ivory);
  border-color: rgba(238, 243, 239, 0.2);
  background: rgba(238, 243, 239, 0.04);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  color: var(--ivory);
  border-color: rgba(232, 207, 133, 0.5);
  background: rgba(232, 207, 133, 0.08);
}

.btn-sm {
  min-height: 40px;
  padding: 9px 16px;
  font-size: 0.86rem;
}

/* ── Header ─────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-block: 14px;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), padding 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  padding-block: 10px;
  background: rgba(4, 16, 12, 0.72);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom-color: var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ivory);
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 0.98rem;
}

.brand:hover {
  color: var(--ivory);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.35), 0 8px 20px -8px rgba(0, 0, 0, 0.8);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(10, 30, 23, 0.45);
}

.nav-desktop a {
  white-space: nowrap;
  padding: 8px 15px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.nav-desktop a:hover {
  color: var(--ivory);
}

.nav-desktop a.is-active {
  color: var(--ivory);
  background: rgba(232, 207, 133, 0.12);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(10, 30, 23, 0.45);
}

.lang-switch button {
  min-width: 38px;
  min-height: 32px;
  padding: 4px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font: 700 0.76rem/1 var(--font-ui);
  letter-spacing: 0.08em;
  cursor: pointer;
}

.lang-switch button.active {
  background: var(--gold);
  color: #1d1706;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: rgba(10, 30, 23, 0.6);
  color: var(--ivory);
  cursor: pointer;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
  margin: auto;
}

.mobile-nav {
  display: none;
}

@media (max-width: 1120px) {
  .nav-desktop,
  .nav-actions .btn {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .mobile-nav {
    position: fixed;
    inset: 72px 12px auto;
    display: grid;
    gap: 2px;
    padding: 12px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #061611;
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }

  .mobile-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .mobile-nav a {
    padding: 13px 14px;
    border-radius: 12px;
    color: var(--text);
    font-weight: 600;
  }

  .mobile-nav a.is-active,
  .mobile-nav a:hover {
    background: rgba(232, 207, 133, 0.1);
    color: var(--ivory);
  }

  .mobile-nav .btn {
    margin-top: 8px;
  }
}

/* ── Sections ───────────────────────────────────────────────── */

section {
  position: relative;
  padding-block: var(--section-y);
}

.section-head {
  display: grid;
  gap: 18px;
  max-width: 760px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}

.divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--gold);
  opacity: 0.55;
}

.divider-ornament::before,
.divider-ornament::after {
  content: "";
  height: 1px;
  width: min(220px, 30vw);
  background: linear-gradient(90deg, transparent, currentColor);
}

.divider-ornament::after {
  background: linear-gradient(-90deg, transparent, currentColor);
}

.divider-ornament svg {
  width: 18px;
  height: 18px;
}

/* ── Hero ───────────────────────────────────────────────────── */

.hero {
  padding-top: clamp(28px, 5vw, 56px);
  padding-bottom: clamp(64px, 8vw, 110px);
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: -80px 0 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(4, 16, 12, 0.15) 0%, rgba(4, 16, 12, 0.55) 55%, var(--night) 100%),
    radial-gradient(60% 50% at 70% 40%, rgba(26, 107, 70, 0.35), transparent 70%),
    url("../assets/img/stars_night.jpg") center 70% / cover no-repeat;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero-copy {
  display: grid;
  gap: 24px;
  position: relative;
  z-index: 5;
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 4.4vw, 4.15rem);
  line-height: 1.04;
}

.hero-copy .arabic {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  opacity: 0.9;
  text-align: left;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

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

.hero-trust svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
}

.hero-stage {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
}

.hero-halo {
  position: absolute;
  width: min(560px, 90%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.22), rgba(26, 107, 70, 0.12) 45%, transparent 70%);
  filter: blur(8px);
}

.hero-orbit {
  position: absolute;
  width: min(600px, 96%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.18);
}

.hero-orbit::before {
  content: "";
  position: absolute;
  inset: 44px;
  border-radius: 50%;
  border: 1px dashed rgba(212, 175, 55, 0.14);
  animation: spin 90s linear infinite;
}

.hero-orbit::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 18px 4px rgba(212, 175, 55, 0.6);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.phone-stack {
  position: relative;
  width: 100%;
  height: 620px;
}

.phone-stack .phone {
  position: absolute;
  top: 50%;
  left: 50%;
}

.phone-stack .phone--center {
  z-index: 3;
  transform: translate(-50%, -50%);
  animation: float 7s ease-in-out infinite;
}

.phone-stack .phone--left {
  z-index: 2;
  transform: translate(-112%, -44%) rotate(-7deg);
  opacity: 0.92;
}

.phone-stack .phone--right {
  z-index: 2;
  transform: translate(12%, -54%) rotate(7deg);
  opacity: 0.92;
}

@keyframes float {
  0%,
  100% {
    transform: translate(-50%, -50%);
  }
  50% {
    transform: translate(-50%, calc(-50% - 12px));
  }
}

.chip-float {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(8, 28, 21, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  font-size: 0.84rem;
  line-height: 1.35;
}

.chip-float strong {
  display: block;
  color: var(--ivory);
  font-size: 0.92rem;
}

.chip-float span {
  color: var(--text-muted);
}

.chip-float .chip-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.14);
  color: var(--gold);
}

.chip-float .chip-icon svg {
  width: 20px;
  height: 20px;
}

.chip-float--a {
  top: 12%;
  left: -2%;
  animation: float-soft 8s ease-in-out infinite;
}

.chip-float--b {
  bottom: 12%;
  right: -2%;
  animation: float-soft 9s ease-in-out -3s infinite;
}

@keyframes float-soft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ── Phone frame ────────────────────────────────────────────── */

.phone {
  --w: 270px;
  width: var(--w);
  aspect-ratio: 1206 / 2622;
  padding: calc(var(--w) * 0.035);
  border-radius: calc(var(--w) * 0.17);
  background: linear-gradient(145deg, #2b2f2d, #0c0f0e 40%, #1d2220);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 50px 100px -30px rgba(0, 0, 0, 0.85),
    0 0 80px -30px rgba(212, 175, 55, 0.25);
  position: relative;
}

.phone > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--w) * 0.135);
  background: var(--night-2);
}

.phone::after {
  content: "";
  position: absolute;
  top: calc(var(--w) * 0.058);
  left: 50%;
  width: 30%;
  height: calc(var(--w) * 0.075);
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}

.phone-stack .phone--left,
.phone-stack .phone--right {
  --w: 220px;
}

/* ── Stats ──────────────────────────────────────────────────── */

.stats {
  padding-block: 0;
  margin-top: -20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 44, 34, 0.7), rgba(8, 26, 20, 0.7));
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.stat {
  padding: clamp(22px, 3vw, 34px) clamp(18px, 2.4vw, 30px);
  display: grid;
  gap: 6px;
}

.stat + .stat {
  border-left: 1px solid var(--line-soft);
}

.stat strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1;
  color: var(--ivory);
  font-variant-numeric: tabular-nums;
}

.stat span {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

/* ── Showcase rows ──────────────────────────────────────────── */

.showcase {
  display: grid;
  gap: clamp(80px, 12vw, 150px);
}

.show-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(36px, 6vw, 96px);
}

.show-row.is-reversed .show-media {
  order: -1;
}

.show-copy {
  display: grid;
  gap: 20px;
  align-content: start;
}

.show-copy .lead {
  font-size: 1.06rem;
}

.check-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  color: var(--text);
}

.check-list li::before {
  content: "";
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat,
    rgba(212, 175, 55, 0.13);
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.3);
}

.show-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
  border-radius: var(--radius-xl);
  isolation: isolate;
}

.show-media::before {
  content: "";
  position: absolute;
  inset: 6% 4%;
  z-index: -1;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(70% 60% at 50% 40%, rgba(26, 107, 70, 0.4), transparent 75%),
    linear-gradient(180deg, rgba(16, 44, 34, 0.5), rgba(8, 26, 20, 0.25));
}

.show-media::after {
  content: "";
  position: absolute;
  inset: 6% 4%;
  z-index: -1;
  border-radius: var(--radius-xl);
  background-image: var(--pattern);
  background-size: 64px;
  opacity: 0.08;
  mask-image: radial-gradient(circle at center, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at center, #000, transparent 75%);
}

.show-media .phone {
  --w: 280px;
}

.show-media .phone + .phone {
  position: absolute;
  --w: 220px;
  right: 6%;
  bottom: 8%;
  transform: rotate(6deg);
}

.show-media.has-pair .phone:first-child {
  transform: translateX(-18%) rotate(-3deg);
}

.show-media--photo::before {
  background:
    linear-gradient(180deg, rgba(4, 16, 12, 0.2), rgba(4, 16, 12, 0.85)),
    url("../assets/img/kaaba_cinematic.jpg") center / cover no-repeat;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(212, 175, 55, 0.06);
  color: var(--gold-soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* ── Bento ──────────────────────────────────────────────────── */

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

.tile {
  grid-column: span 4;
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(18, 48, 37, 0.62), rgba(9, 28, 22, 0.62));
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.tile::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.tile:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.tile:hover::after {
  opacity: 1;
}

.tile--wide {
  grid-column: span 8;
}

.tile--tall {
  grid-row: span 2;
}

.tile h3 {
  font-size: 1.14rem;
}

.tile p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.tile-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 6px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.28);
  color: var(--gold);
}

.tile-icon svg {
  width: 23px;
  height: 23px;
}

.tile-meta {
  margin-top: auto;
  padding-top: 8px;
  color: var(--gold-soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ── Gallery ────────────────────────────────────────────────── */

.gallery {
  overflow: hidden;
}

.gallery-track {
  display: flex;
  gap: 28px;
  padding: 20px var(--gutter) 40px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.gallery-item {
  flex: none;
  display: grid;
  justify-items: center;
  gap: 16px;
  scroll-snap-align: center;
}

.gallery-item .phone {
  --w: 236px;
}

.gallery-item figcaption {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.gallery-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.gallery-controls button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(10, 30, 23, 0.6);
  color: var(--ivory);
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.gallery-controls button:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.5);
}

.gallery-controls svg {
  width: 20px;
  height: 20px;
}

/* ── Principles ─────────────────────────────────────────────── */

.principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.principle {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background: rgba(10, 32, 25, 0.45);
}

.principle-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(212, 175, 55, 0.55);
}

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

/* ── Respectful ads band ────────────────────────────────────── */

.ethics {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(32px, 5vw, 64px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(80% 90% at 100% 0%, rgba(212, 175, 55, 0.12), transparent 60%),
    linear-gradient(160deg, rgba(18, 52, 40, 0.85), rgba(7, 24, 18, 0.9));
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.ethics::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--pattern);
  background-size: 72px;
  opacity: 0.05;
  pointer-events: none;
}

.ethics-copy {
  display: grid;
  gap: 18px;
  position: relative;
}

.ethics-list {
  display: grid;
  gap: 12px;
  position: relative;
}

.ethics-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: rgba(4, 16, 12, 0.45);
  border: 1px solid var(--line-soft);
}

.ethics-item .tile-icon {
  width: 42px;
  height: 42px;
  margin: 0;
}

.ethics-item strong {
  display: block;
  color: var(--ivory);
  margin-bottom: 2px;
}

.ethics-item span {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.support-meter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.support-meter i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(238, 243, 239, 0.14);
}

.support-meter i.on {
  background: var(--gold);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
}

.support-meter i.ring {
  box-shadow: inset 0 0 0 2px var(--gold);
}

.support-meter i.on.ring {
  box-shadow: inset 0 0 0 2px var(--gold-soft), 0 0 12px rgba(212, 175, 55, 0.5);
}

.support-meter small {
  margin-left: 8px;
  color: var(--gold-soft);
  font-weight: 700;
}

/* ── Final CTA ──────────────────────────────────────────────── */

.cta-final {
  padding-block: 0 var(--section-y);
}

.cta-panel {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: clamp(56px, 9vw, 110px) clamp(24px, 5vw, 64px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(4, 16, 12, 0.35) 0%, rgba(4, 16, 12, 0.88) 78%),
    url("../assets/img/bg_mosque_night.jpg") center 35% / cover no-repeat;
  box-shadow: var(--shadow);
}

.cta-panel img.cta-logo {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.4), 0 20px 50px -10px rgba(0, 0, 0, 0.8);
}

.cta-panel p {
  max-width: 56ch;
  color: var(--cream);
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 20px 10px 16px;
  border-radius: 16px;
  border: 1px solid rgba(238, 243, 239, 0.18);
  background: rgba(0, 0, 0, 0.62);
  color: var(--ivory);
  text-align: left;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.store-btn:hover {
  color: var(--ivory);
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.6);
  background: rgba(0, 0, 0, 0.8);
}

.store-btn svg {
  width: 28px;
  height: 28px;
  flex: none;
}

.store-btn small {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  line-height: 1.2;
}

.store-btn strong {
  display: block;
  font-size: 1.08rem;
  line-height: 1.2;
}

.store-btn.is-soon {
  opacity: 0.62;
  pointer-events: none;
}

/* ── Subpages ───────────────────────────────────────────────── */

.page-hero {
  padding-block: clamp(48px, 7vw, 96px) clamp(36px, 5vw, 56px);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto;
  height: 140%;
  z-index: -1;
  background: radial-gradient(50% 50% at 50% 30%, rgba(26, 107, 70, 0.32), transparent 70%);
}

.page-hero .container {
  display: grid;
  gap: 18px;
}

.page-hero .container > * {
  max-width: 880px;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
}

.crumb {
  display: flex;
  gap: 8px;
  color: var(--text-faint);
  font-size: 0.86rem;
  font-weight: 600;
}

.crumb a {
  color: var(--text-muted);
}

.page-body {
  padding-top: 0;
}

/* Feature detail */

.module-list {
  display: grid;
  gap: 18px;
}

.module {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px);
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(18, 48, 37, 0.5), rgba(9, 28, 22, 0.5));
}

.module-head {
  display: grid;
  gap: 12px;
  align-content: start;
}

.module-head h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

.module-body {
  display: grid;
  gap: 18px;
}

.module-body > p {
  color: var(--text-muted);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.module-grid li {
  position: relative;
  padding-left: 20px;
  color: var(--text);
  font-size: 0.96rem;
}

.module-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background: var(--gold);
  border-radius: 1px;
}

.module-note {
  font-size: 0.88rem;
  color: var(--text-faint);
  border-left: 2px solid rgba(212, 175, 55, 0.4);
  padding-left: 14px;
}

.jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.jump-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(10, 30, 23, 0.5);
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.jump-nav a:hover {
  color: var(--ivory);
  border-color: var(--line);
}

/* Download */

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.store-card {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(20, 54, 42, 0.7), rgba(8, 26, 20, 0.7));
}

.store-card.is-soon {
  border-color: var(--line-soft);
  background: rgba(10, 30, 23, 0.4);
}

.store-card .badge {
  justify-self: start;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-soft);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-card.is-soon .badge {
  background: rgba(238, 243, 239, 0.08);
  color: var(--text-muted);
}

.store-card p {
  color: var(--text-muted);
}

.req-list {
  display: grid;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.req-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.req-list li strong {
  color: var(--text);
  font-weight: 600;
}

.note {
  margin-top: 28px;
  color: var(--text-faint);
  font-size: 0.92rem;
}

/* Prose (about, legal) */

.prose-card {
  max-width: 880px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background: rgba(9, 28, 22, 0.62);
}

.prose-card > * + * {
  margin-top: 1em;
}

.prose-card h2 {
  margin-top: 2em;
  font-family: var(--font-ui);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.prose-card h2:first-child {
  margin-top: 0;
}

.prose-card h3 {
  margin-top: 1.5em;
  font-size: 1.04rem;
  color: var(--gold-soft);
}

.prose-card p,
.prose-card li {
  color: var(--text-muted);
}

.prose-card strong {
  color: var(--text);
}

.prose-card ul,
.prose-card ol {
  padding-left: 1.2em;
}

.prose-card li + li {
  margin-top: 0.45em;
}

.prose-card code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(238, 243, 239, 0.08);
  font-size: 0.88em;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}

th {
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold-soft);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td {
  color: var(--text-muted);
}

td:first-child {
  color: var(--text);
  font-weight: 600;
}

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

.callout {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(212, 175, 55, 0.06);
}

.callout .tile-icon {
  width: 40px;
  height: 40px;
  margin: 0;
}

.callout p {
  color: var(--cream);
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.value-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background: rgba(12, 36, 28, 0.5);
}

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

/* FAQ */

.faq {
  max-width: 880px;
  display: grid;
  gap: 12px;
}

.faq-group {
  font-family: var(--font-ui);
  line-height: 1.4;
  margin: 28px 0 4px;
  color: var(--gold-soft);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.faq-group:first-child {
  margin-top: 0;
}

.faq details {
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: rgba(10, 32, 25, 0.55);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.faq details[open] {
  border-color: var(--line);
  background: rgba(14, 42, 32, 0.7);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
  color: var(--ivory);
  font-weight: 700;
}

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

.faq summary::after {
  content: "";
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8cf85' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat,
    rgba(212, 175, 55, 0.1);
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 22px 22px;
  color: var(--text-muted);
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.contact-card {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: clamp(26px, 4vw, 40px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background: rgba(10, 32, 25, 0.55);
}

.contact-card p {
  color: var(--text-muted);
}

.contact-mail {
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 700;
  color: var(--ivory);
  word-break: break-all;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  border-radius: 14px;
  border: 1px solid rgba(238, 243, 239, 0.14);
  background: rgba(4, 16, 12, 0.6);
  color: var(--ivory);
  font: 500 1rem/1.4 var(--font-ui);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.14);
}

.form-group select option {
  background: var(--night-2);
}

/* 404 */

.not-found {
  text-align: center;
}

.not-found .container {
  justify-items: center;
}

.not-found .container > * {
  margin-inline: auto;
}

.not-found .arabic {
  font-size: 2.4rem;
}

/* ── Footer ─────────────────────────────────────────────────── */

.site-footer {
  position: relative;
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(4, 16, 12, 0), rgba(7, 27, 22, 0.8));
  padding-top: clamp(56px, 7vw, 88px);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 36px;
}

.footer-brand {
  display: grid;
  gap: 16px;
  align-content: start;
  max-width: 340px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.footer-col {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-col h4 {
  margin-bottom: 6px;
  color: var(--gold-soft);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.footer-col a:hover {
  color: var(--ivory);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 56px;
  padding-block: 24px;
  border-top: 1px solid var(--line-soft);
  color: var(--text-faint);
  font-size: 0.86rem;
}

.footer-bottom a {
  color: var(--text-muted);
}

/* ── Reveal ─────────────────────────────────────────────────── */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .tile {
    grid-column: span 6;
  }

  .tile--wide {
    grid-column: span 12;
  }

  .tile--tall {
    grid-row: auto;
  }

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

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

  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 920px) {
  .hero-grid,
  .show-row,
  .ethics,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy {
    text-align: center;
    justify-items: center;
  }

  .hero-cta,
  .hero-trust {
    justify-content: center;
  }

  .hero-stage {
    min-height: 540px;
  }

  .phone-stack {
    height: 540px;
  }

  .show-row.is-reversed .show-media {
    order: 0;
  }

  .show-media {
    min-height: 500px;
  }

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

  .stat:nth-child(3) {
    border-left: 0;
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line-soft);
  }

  .module {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15.5px;
  }

  .tile {
    grid-column: span 12;
  }

  .principles,
  .download-grid,
  .module-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .hero-stage {
    min-height: 460px;
  }

  .phone-stack {
    height: 460px;
  }

  .phone-stack .phone--center {
    --w: 210px;
  }

  .phone-stack .phone--left,
  .phone-stack .phone--right {
    --w: 160px;
  }

  .phone-stack .phone--left {
    transform: translate(-118%, -44%) rotate(-7deg);
  }

  .phone-stack .phone--right {
    transform: translate(18%, -54%) rotate(7deg);
  }

  .chip-float {
    display: none;
  }

  .show-media {
    min-height: 440px;
  }

  .show-media .phone {
    --w: 220px;
  }

  .show-media .phone + .phone {
    --w: 160px;
    right: 2%;
  }

  .ethics-item {
    grid-template-columns: 1fr;
  }

  .store-btn {
    width: 100%;
    justify-content: center;
  }
}

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

/* ── App screen mockups (drawn in HTML, inside .phone) ──────── */

.screen {
  --u: calc(var(--w) / 270);
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--w) * 0.135);
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(26, 107, 70, 0.45), transparent 60%),
    linear-gradient(180deg, #0a241b 0%, #06170f 100%);
  color: var(--text);
  font-size: calc(var(--u) * 10);
  line-height: 1.35;
  text-align: left;
  user-select: none;
}

.screen * {
  letter-spacing: normal;
}

.scr-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(var(--u) * 15) calc(var(--u) * 24) calc(var(--u) * 6);
  font-size: calc(var(--u) * 9.5);
  font-weight: 700;
  color: var(--ivory);
}

.scr-status i {
  display: inline-block;
  width: calc(var(--u) * 16);
  height: calc(var(--u) * 7.5);
  margin-left: calc(var(--u) * 3);
  border-radius: calc(var(--u) * 2);
  border: calc(var(--u) * 1) solid rgba(247, 245, 239, 0.8);
  box-shadow: inset calc(var(--u) * -3) 0 0 0 rgba(247, 245, 239, 0.8);
}

.scr-body {
  display: grid;
  gap: calc(var(--u) * 9);
  padding: calc(var(--u) * 8) calc(var(--u) * 13) 0;
}

.scr-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.scr-logo {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 6);
  font-weight: 800;
  font-size: calc(var(--u) * 9);
  letter-spacing: 0.12em;
  color: var(--gold-soft);
}

.scr-logo img {
  width: calc(var(--u) * 22);
  height: calc(var(--u) * 22);
  border-radius: calc(var(--u) * 6);
}

.scr-dots {
  display: flex;
  gap: calc(var(--u) * 7);
}

.scr-dots b {
  width: calc(var(--u) * 13);
  height: calc(var(--u) * 13);
  border-radius: 50%;
  border: calc(var(--u) * 1.3) solid rgba(247, 245, 239, 0.75);
}

.scr-greet strong {
  display: block;
  font-size: calc(var(--u) * 15);
  font-weight: 800;
  color: var(--ivory);
}

.scr-greet span {
  color: var(--text-muted);
  font-size: calc(var(--u) * 8.5);
}

.scr-card {
  position: relative;
  padding: calc(var(--u) * 12);
  border-radius: calc(var(--u) * 16);
  border: calc(var(--u) * 0.8) solid rgba(232, 207, 133, 0.2);
  background: linear-gradient(160deg, rgba(92, 72, 34, 0.55), rgba(26, 42, 30, 0.75));
  overflow: hidden;
}

.scr-card.is-green {
  background: linear-gradient(160deg, rgba(22, 64, 48, 0.85), rgba(10, 32, 24, 0.9));
}

.scr-label {
  display: block;
  font-size: calc(var(--u) * 7);
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--gold-soft);
  text-transform: uppercase;
}

.scr-next {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.scr-next h5 {
  margin: calc(var(--u) * 3) 0 0;
  font-size: calc(var(--u) * 21);
  font-weight: 700;
  color: var(--ivory);
  line-height: 1.1;
}

.scr-next .time {
  display: block;
  font-size: calc(var(--u) * 17);
  font-weight: 700;
  color: var(--ivory);
}

.scr-ring {
  position: relative;
  width: calc(var(--u) * 66);
  height: calc(var(--u) * 66);
  border-radius: 50%;
  background: conic-gradient(var(--gold) 0 72%, rgba(247, 245, 239, 0.15) 72% 100%);
  display: grid;
  place-items: center;
}

.scr-ring::before {
  content: "";
  position: absolute;
  inset: calc(var(--u) * 5);
  border-radius: 50%;
  background: #2a2a1c;
}

.scr-ring span {
  position: relative;
  text-align: center;
  font-size: calc(var(--u) * 8);
  font-weight: 800;
  color: var(--ivory);
}

.scr-ring small {
  display: block;
  font-size: calc(var(--u) * 5.5);
  color: var(--gold-soft);
  letter-spacing: 0.1em;
}

.scr-times {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  text-align: center;
  padding: calc(var(--u) * 9) calc(var(--u) * 4);
}

.scr-times div {
  display: grid;
  gap: calc(var(--u) * 2);
  font-size: calc(var(--u) * 6.8);
  color: var(--text-muted);
}

.scr-times b {
  font-size: calc(var(--u) * 8.4);
  color: var(--ivory);
}

.scr-times .on,
.scr-times .on b {
  color: var(--gold-soft);
}

.scr-ar {
  font-family: var(--font-arabic);
  direction: rtl;
  text-align: right;
  color: var(--gold-soft);
  font-size: calc(var(--u) * 14);
  line-height: 1.75;
}

.scr-muted {
  color: var(--text-muted);
  font-size: calc(var(--u) * 8.4);
  line-height: 1.5;
}

.scr-src {
  margin-top: calc(var(--u) * 6);
  font-size: calc(var(--u) * 7);
  color: var(--gold-soft);
  font-weight: 700;
}

.scr-nav {
  position: absolute;
  left: calc(var(--u) * 12);
  right: calc(var(--u) * 12);
  bottom: calc(var(--u) * 14);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: calc(var(--u) * 8) calc(var(--u) * 6);
  border-radius: calc(var(--u) * 22);
  border: calc(var(--u) * 0.8) solid rgba(247, 245, 239, 0.1);
  background: rgba(8, 24, 18, 0.9);
  backdrop-filter: blur(10px);
}

.scr-nav span {
  display: grid;
  justify-items: center;
  gap: calc(var(--u) * 2);
  font-size: calc(var(--u) * 6);
  color: var(--text-muted);
}

.scr-nav span::before {
  content: "";
  width: calc(var(--u) * 12);
  height: calc(var(--u) * 12);
  border-radius: calc(var(--u) * 4);
  border: calc(var(--u) * 1.3) solid currentColor;
}

.scr-nav span.on {
  color: var(--gold);
}

/* Mushaf page */

.screen--mushaf {
  background: linear-gradient(180deg, #0b2119, #07150f);
}

.mushaf-head {
  display: flex;
  justify-content: space-between;
  padding: 0 calc(var(--u) * 16);
  font-size: calc(var(--u) * 7.5);
  color: var(--gold-soft);
  font-weight: 700;
}

.mushaf-frame {
  margin: calc(var(--u) * 8) calc(var(--u) * 12) 0;
  padding: calc(var(--u) * 10) calc(var(--u) * 12);
  border-radius: calc(var(--u) * 8);
  border: calc(var(--u) * 1) solid rgba(212, 175, 55, 0.4);
  box-shadow: inset 0 0 0 calc(var(--u) * 3) rgba(212, 175, 55, 0.08);
}

.surah-banner {
  display: grid;
  place-items: center;
  height: calc(var(--u) * 26);
  margin-bottom: calc(var(--u) * 6);
  border-radius: calc(var(--u) * 6);
  background:
    linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.22), transparent),
    rgba(212, 175, 55, 0.06);
  border: calc(var(--u) * 0.8) solid rgba(212, 175, 55, 0.45);
  font-family: var(--font-arabic);
  font-size: calc(var(--u) * 13);
  color: var(--gold-soft);
}

.mushaf-lines {
  font-family: var(--font-arabic);
  direction: rtl;
  text-align: justify;
  text-align-last: center;
  color: #efe6c9;
  font-size: calc(var(--u) * 13.4);
  line-height: 2.05;
}

.mushaf-lines .ayah-no {
  display: inline-grid;
  place-items: center;
  width: calc(var(--u) * 15);
  height: calc(var(--u) * 15);
  margin: 0 calc(var(--u) * 2);
  border-radius: 50%;
  border: calc(var(--u) * 0.9) solid var(--gold);
  color: var(--gold);
  font-size: calc(var(--u) * 7);
  line-height: 1;
  vertical-align: middle;
}

.mushaf-lines .hl {
  background: rgba(212, 175, 55, 0.18);
  border-radius: calc(var(--u) * 4);
}

.mushaf-meal {
  margin: calc(var(--u) * 10) calc(var(--u) * 12) 0;
  padding: calc(var(--u) * 10) calc(var(--u) * 12);
  border-radius: calc(var(--u) * 12);
  background: rgba(247, 245, 239, 0.05);
  border: calc(var(--u) * 0.8) solid rgba(247, 245, 239, 0.08);
}

.mushaf-meal p {
  margin-top: calc(var(--u) * 4);
  color: var(--text);
  font-size: calc(var(--u) * 8.6);
  line-height: 1.55;
}

.player {
  position: absolute;
  left: calc(var(--u) * 12);
  right: calc(var(--u) * 12);
  bottom: calc(var(--u) * 16);
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 9);
  padding: calc(var(--u) * 9) calc(var(--u) * 11);
  border-radius: calc(var(--u) * 18);
  background: rgba(20, 44, 34, 0.95);
  border: calc(var(--u) * 0.8) solid rgba(232, 207, 133, 0.25);
}

.player .play {
  flex: none;
  display: grid;
  place-items: center;
  width: calc(var(--u) * 26);
  height: calc(var(--u) * 26);
  border-radius: 50%;
  background: var(--gold);
}

.player .play::before {
  content: "";
  width: calc(var(--u) * 3);
  height: calc(var(--u) * 9);
  border-left: calc(var(--u) * 2.4) solid #1d1706;
  border-right: calc(var(--u) * 2.4) solid #1d1706;
}

.player strong {
  display: block;
  font-size: calc(var(--u) * 8.5);
  color: var(--ivory);
}

.player span {
  font-size: calc(var(--u) * 7);
  color: var(--text-muted);
}

.player .bar {
  height: calc(var(--u) * 2.5);
  margin-top: calc(var(--u) * 4);
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold) 38%, rgba(247, 245, 239, 0.15) 38%);
}

/* Qibla */

.compass {
  position: relative;
  width: calc(var(--u) * 200);
  height: calc(var(--u) * 200);
  margin: calc(var(--u) * 20) auto calc(var(--u) * 10);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(10, 36, 27, 1) 55%, transparent 56%),
    repeating-conic-gradient(rgba(247, 245, 239, 0.45) 0 1deg, transparent 1deg 10deg),
    radial-gradient(circle, rgba(26, 107, 70, 0.3), transparent 70%);
  box-shadow: 0 0 0 calc(var(--u) * 1) rgba(212, 175, 55, 0.35), 0 0 calc(var(--u) * 40) rgba(212, 175, 55, 0.15);
}

.compass::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--u) * 4);
  height: calc(var(--u) * 84);
  transform: translate(-50%, -100%) rotate(151deg);
  transform-origin: 50% 100%;
  border-radius: 99px;
  background: linear-gradient(0deg, transparent, var(--gold));
}

.compass-n {
  position: absolute;
  top: calc(var(--u) * 16);
  left: 50%;
  transform: translateX(-50%);
  font-size: calc(var(--u) * 9);
  font-weight: 800;
  color: var(--ivory);
}

.kaaba-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--u) * 22);
  height: calc(var(--u) * 22);
  transform: translate(-50%, -50%) rotate(151deg) translateY(calc(var(--u) * -92)) rotate(-151deg);
  border-radius: calc(var(--u) * 4);
  background: #111;
  box-shadow: inset 0 calc(var(--u) * 6) 0 calc(var(--u) * -3) var(--gold), 0 0 calc(var(--u) * 14) rgba(212, 175, 55, 0.6);
}

.compass-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
}

.compass-center strong {
  display: block;
  font-size: calc(var(--u) * 30);
  font-weight: 700;
  color: var(--ivory);
  line-height: 1;
}

.compass-center span {
  font-size: calc(var(--u) * 7.5);
  color: var(--gold-soft);
  font-weight: 700;
}

.seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 calc(var(--u) * 14);
  padding: calc(var(--u) * 3);
  border-radius: 99px;
  background: rgba(247, 245, 239, 0.07);
  font-size: calc(var(--u) * 7.5);
  text-align: center;
  color: var(--text-muted);
}

.seg span {
  padding: calc(var(--u) * 5);
  border-radius: 99px;
}

.seg .on {
  background: var(--gold);
  color: #1d1706;
  font-weight: 800;
}

/* List rows (hadith, knowledge) */

.scr-h {
  font-family: var(--font-display);
  font-size: calc(var(--u) * 19);
  color: var(--ivory);
  line-height: 1.15;
}

.scr-chips {
  display: flex;
  gap: calc(var(--u) * 5);
  overflow: hidden;
}

.scr-chips span {
  flex: none;
  padding: calc(var(--u) * 4) calc(var(--u) * 9);
  border-radius: 99px;
  border: calc(var(--u) * 0.8) solid rgba(247, 245, 239, 0.14);
  font-size: calc(var(--u) * 7.2);
  color: var(--text-muted);
}

.scr-chips .on {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.scr-row {
  display: grid;
  grid-template-columns: calc(var(--u) * 20) 1fr;
  gap: calc(var(--u) * 8);
  padding: calc(var(--u) * 8) 0;
  border-bottom: calc(var(--u) * 0.6) solid rgba(247, 245, 239, 0.08);
}

.scr-row em {
  font-style: normal;
  font-size: calc(var(--u) * 8);
  font-weight: 800;
  color: var(--gold);
}

.scr-row strong {
  display: block;
  font-size: calc(var(--u) * 9);
  color: var(--ivory);
}

.scr-row span {
  font-size: calc(var(--u) * 7.4);
  color: var(--text-muted);
}

/* Support section */

.scr-meter {
  display: flex;
  gap: calc(var(--u) * 5);
}

.scr-meter i {
  width: calc(var(--u) * 11);
  height: calc(var(--u) * 11);
  border-radius: 50%;
  background: rgba(247, 245, 239, 0.16);
}

.scr-meter i.on {
  background: var(--gold);
}

.scr-meter i.ring {
  box-shadow: inset 0 0 0 calc(var(--u) * 1.6) var(--gold);
}

.scr-btn {
  display: grid;
  place-items: center;
  height: calc(var(--u) * 32);
  border-radius: 99px;
  background: var(--gold);
  color: #1d1706;
  font-weight: 800;
  font-size: calc(var(--u) * 9);
}

.scr-pill {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 7);
  padding: calc(var(--u) * 8) calc(var(--u) * 10);
  border-radius: calc(var(--u) * 12);
  background: rgba(212, 175, 55, 0.12);
  border: calc(var(--u) * 0.8) solid rgba(212, 175, 55, 0.3);
  color: var(--gold-soft);
  font-size: calc(var(--u) * 8.4);
  font-weight: 700;
}

.footer-brand .store-row {
  gap: 10px;
}

@media (max-width: 920px) {
  .hero-copy .arabic {
    text-align: center;
  }
}

.scr-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: calc(var(--u) * 6);
}

.scr-actions span {
  display: grid;
  justify-items: center;
  gap: calc(var(--u) * 4);
  padding: calc(var(--u) * 8) 0 calc(var(--u) * 7);
  border-radius: calc(var(--u) * 12);
  background: rgba(22, 64, 48, 0.7);
  border: calc(var(--u) * 0.8) solid rgba(232, 207, 133, 0.14);
  font-size: calc(var(--u) * 6.6);
  color: var(--text);
}

.scr-actions span::before {
  content: "";
  width: calc(var(--u) * 16);
  height: calc(var(--u) * 16);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--gold-soft), var(--gold-deep));
  opacity: 0.85;
}
