/* Dhikr — Premium Dark Sufi marketing */
:root {
  --bg: #0a0a0f;
  --bg-mid: #0f0f18;
  --surface: #12121a;
  --surface-2: #1a1a26;
  --gold: #d4af37;
  --gold-light: #e8c872;
  --gold-muted: #8b7340;
  --rose: #b76e79;
  --text: #f5f0e8;
  --text-2: #b8b0a4;
  --text-3: #6b6560;
  --line: rgba(212, 175, 55, 0.2);
  --line-soft: rgba(245, 240, 232, 0.06);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --font-ar: "Amiri", "Noto Naskh Arabic", serif;
  --max: 1180px;
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body[dir="rtl"] {
  font-family: var(--font-ar), var(--font-body);
}

body[dir="rtl"] .brand,
body[dir="rtl"] h1,
body[dir="rtl"] h2,
body[dir="rtl"] h3,
body[dir="rtl"] .display {
  font-family: var(--font-ar), var(--font-display);
}

a {
  color: var(--gold-light);
  text-decoration: none;
}

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

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Atmosphere */
.bg-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(232, 200, 114, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 30%, rgba(183, 110, 121, 0.08), transparent 50%),
    radial-gradient(ellipse 45% 35% at 0% 70%, rgba(61, 184, 138, 0.06), transparent 45%),
    linear-gradient(180deg, #0f0f18 0%, #0a0a0f 38%, #07070c 100%);
}

.bg-atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.35;
  pointer-events: none;
}

.bg-atmosphere::after {
  content: "ذ";
  position: absolute;
  top: 4%;
  right: 4%;
  font-family: var(--font-ar);
  font-size: clamp(12rem, 32vw, 26rem);
  color: rgba(212, 175, 55, 0.04);
  line-height: 1;
  pointer-events: none;
}

body[dir="rtl"] .bg-atmosphere::after {
  right: auto;
  left: 4%;
}

/* Top bar */
.top-bar {
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.08), transparent 40%, rgba(183, 110, 121, 0.06));
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.top-bar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 2.1rem;
  gap: 1rem;
}

.top-bar strong {
  color: var(--gold-muted);
  font-weight: 600;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 15, 0.78);
  backdrop-filter: blur(18px) saturate(1.2);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.brand-mark {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.55rem;
  background: linear-gradient(145deg, var(--gold-light), var(--gold) 45%, var(--gold-muted));
  color: #1a1408;
  display: grid;
  place-items: center;
  font-family: var(--font-ar);
  font-size: 1.15rem;
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.25);
}

.brand em {
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-muted);
  font-family: var(--font-body);
  font-weight: 500;
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-2);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-light), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--gold-light);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.lang-field {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.lang-field label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 8.5rem;
  padding: 0.45rem 2rem 0.45rem 0.75rem;
  border-radius: 0.35rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(26, 26, 38, 0.95), rgba(18, 18, 26, 0.95))
      padding-box,
    linear-gradient(135deg, rgba(232, 200, 114, 0.35), transparent 60%) border-box;
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  background-image:
    linear-gradient(180deg, rgba(26, 26, 38, 0.95), rgba(18, 18, 26, 0.95)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23E8C872' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, right 0.7rem center;
  background-size: auto, 10px;
}

.lang-select:focus {
  outline: 1px solid var(--gold-muted);
  outline-offset: 2px;
}

.menu-toggle {
  display: none;
  background: rgba(26, 26, 38, 0.8);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0.45rem 0.75rem;
  border-radius: 0.35rem;
  cursor: pointer;
  font: inherit;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem);
}

.hero-copy {
  animation: rise 0.9s var(--ease) both;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.1rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-muted);
  background: rgba(212, 175, 55, 0.06);
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 8vw, 5.8rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #fff8ea 10%, var(--gold-light) 55%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--text-2);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.05rem;
  padding: 0.7rem 1.45rem;
  border-radius: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

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

.btn-primary {
  color: #1a1408;
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 42%, var(--gold-muted));
  box-shadow: 0 10px 36px rgba(212, 175, 55, 0.28);
}

.btn-primary:hover {
  color: #1a1408;
  box-shadow: 0 14px 40px rgba(212, 175, 55, 0.38);
}

.btn-ghost {
  color: var(--text);
  border-color: var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
}

.btn-ghost:hover {
  border-color: var(--gold-muted);
  color: var(--gold-light);
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.pill {
  padding: 0.55rem 0.85rem;
  border-radius: 0.4rem;
  border: 1px solid var(--line-soft);
  background: rgba(18, 18, 26, 0.7);
  font-size: 0.86rem;
  color: var(--text-2);
}

.pill strong {
  display: block;
  color: var(--gold-light);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.1rem;
}

/* Phone mockup */
.hero-visual {
  display: grid;
  place-items: center;
  position: relative;
  animation: rise 1s var(--ease) 0.12s both;
}

.phone-glow {
  position: absolute;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.22), transparent 70%);
  filter: blur(8px);
  z-index: 0;
}

.phone {
  position: relative;
  z-index: 1;
  width: min(100%, 280px);
  aspect-ratio: 9 / 19.2;
  padding: 0.55rem;
  border-radius: 2.2rem;
  background: linear-gradient(160deg, #2a2a36, #121218 40%, #0c0c12);
  box-shadow:
    0 0 0 1px rgba(232, 200, 114, 0.25),
    0 30px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.phone-screen {
  height: 100%;
  border-radius: 1.75rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% 20%, rgba(232, 200, 114, 0.18), transparent 55%),
    linear-gradient(180deg, #0f0f18, #0a0a0f 55%, #12121a);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 1.1rem;
  text-align: center;
}

.phone-notch {
  position: absolute;
  top: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  width: 38%;
  height: 1.05rem;
  border-radius: 999px;
  background: #050508;
  z-index: 2;
}

.app-icon {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 1.25rem;
  object-fit: cover;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(232, 200, 114, 0.3);
}

.app-icon-fallback {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 1.25rem;
  display: grid;
  place-items: center;
  font-family: var(--font-ar);
  font-size: 2.4rem;
  color: #1a1408;
  background: linear-gradient(145deg, var(--gold-light), var(--gold), var(--gold-muted));
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.35);
}

.phone-count {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 500;
  line-height: 1;
  background: linear-gradient(180deg, #fff, var(--gold-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.phone-label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-muted);
}

.phone-ring {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: inset 0 0 30px rgba(212, 175, 55, 0.08);
  display: grid;
  place-items: center;
}

/* Sections */
section {
  padding: clamp(3.25rem, 7vw, 5.25rem) 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.4rem;
}

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

.eyebrow {
  margin: 0 0 0.7rem;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-muted);
}

.display {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  font-weight: 500;
  line-height: 1.12;
}

.lede {
  margin: 0;
  color: var(--text-2);
  font-size: 1.06rem;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.2rem;
  align-items: center;
}

.panel {
  padding: 1.75rem 1.6rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(155deg, rgba(232, 200, 114, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(26, 26, 38, 0.95), rgba(12, 12, 18, 0.9));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.panel ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.panel li {
  position: relative;
  padding: 0.7rem 0 0.7rem 1.35rem;
  border-top: 1px solid var(--line-soft);
  color: var(--text-2);
}

.panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
}

body[dir="rtl"] .panel li {
  padding: 0.7rem 1.35rem 0.7rem 0;
}

body[dir="rtl"] .panel li::before {
  left: auto;
  right: 0;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.feature {
  position: relative;
  padding: 1.45rem 1.3rem 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, rgba(26, 26, 38, 0.85), rgba(12, 12, 18, 0.75));
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.feature::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.55;
}

.feature:hover {
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-4px);
}

.feature-glyph {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.55rem;
  display: grid;
  place-items: center;
  margin-bottom: 0.95rem;
  font-family: var(--font-ar);
  font-size: 1.15rem;
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--line);
}

.feature h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.feature p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.96rem;
}

/* Themes */
.themes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.theme-card {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  min-height: 9.5rem;
  position: relative;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.theme-card .swatch {
  position: absolute;
  inset: 0;
}

.theme-card .meta {
  position: absolute;
  inset: auto 0 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
}

.theme-card .glyph {
  font-family: var(--font-ar);
  font-size: 1.6rem;
  margin-bottom: 0.2rem;
}

.theme-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.theme-card p {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: rgba(245, 240, 232, 0.75);
}

/* Promise */
.promise {
  border-radius: 1.25rem;
  padding: clamp(2rem, 5vw, 3rem);
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 80% at 10% 0%, rgba(212, 175, 55, 0.12), transparent 50%),
    linear-gradient(180deg, rgba(18, 18, 26, 0.95), rgba(10, 10, 15, 0.9));
  text-align: center;
}

.promise .display {
  max-width: 18ch;
  margin-inline: auto;
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
  text-align: start;
}

.promise-grid article {
  padding: 1.15rem;
  border-radius: 0.85rem;
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.22);
}

.promise-grid h3 {
  margin: 0 0 0.4rem;
  color: var(--gold-light);
  font-size: 1.05rem;
}

.promise-grid p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.94rem;
}

/* Premium */
.premium-band {
  position: relative;
  border-block: 1px solid var(--line);
  background:
    linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.07), transparent),
    linear-gradient(180deg, rgba(15, 15, 24, 0.4), rgba(10, 10, 15, 0.2));
}

.premium-list {
  display: grid;
  gap: 0.65rem;
  margin: 1.4rem 0 0;
}

.premium-list div {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.75rem 0.9rem;
  border-radius: 0.65rem;
  border: 1px solid var(--line-soft);
  background: rgba(18, 18, 26, 0.55);
  color: var(--text-2);
  font-size: 0.95rem;
}

.premium-list span {
  color: var(--gold-light);
  font-weight: 700;
}

.muted-note {
  margin-top: 1rem;
  color: var(--text-3);
  font-size: 0.9rem;
}

/* Legal */
.page-hero {
  padding: 3.2rem 0 1.6rem;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.1rem);
  font-weight: 500;
}

.page-hero p {
  margin: 0;
  color: var(--text-3);
}

.prose {
  padding: 2.2rem 0 4rem;
  max-width: 46rem;
}

.prose h2 {
  margin: 2rem 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold-light);
}

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

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.4rem;
  font-size: 0.9rem;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 0.6rem 0.7rem;
  text-align: start;
  vertical-align: top;
}

.prose th {
  background: rgba(26, 26, 38, 0.9);
  color: var(--gold-light);
}

/* Footer */
.site-footer {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(15, 15, 24, 0.5), rgba(8, 8, 12, 0.95));
}

.footer-top {
  padding: 2.6rem 0 1.8rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  gap: 2rem;
}

.site-footer h4 {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-muted);
}

.site-footer p,
.site-footer a {
  color: var(--text-2);
  font-size: 0.94rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 0.45rem;
}

.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding: 1.1rem 0 1.35rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--text-3);
  font-size: 0.84rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

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

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 960px) {
  .hero,
  .split,
  .features,
  .themes-grid,
  .promise-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    text-align: center;
  }

  .hero-lead {
    margin-inline: auto;
  }

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

  .menu-toggle {
    display: inline-flex;
  }

  .nav-panel {
    display: none;
    position: absolute;
    inset: var(--header-h) 0 auto;
    padding: 1rem 1.15rem 1.25rem;
    background: rgba(10, 10, 15, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .nav-panel.open {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1rem;
  }

  .nav {
    position: relative;
  }

  .nav-end {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .lang-field {
    justify-content: space-between;
  }
}
