:root {
  color-scheme: dark;
  --bg: #050605;
  --bg-soft: #0d100e;
  --panel: rgba(255, 255, 255, 0.065);
  --panel-strong: rgba(255, 255, 255, 0.105);
  --line: rgba(255, 255, 255, 0.15);
  --text: #f7f3ea;
  --muted: rgba(247, 243, 234, 0.72);
  --faint: rgba(247, 243, 234, 0.52);
  --orange: #ff8708;
  --orange-soft: rgba(255, 135, 8, 0.18);
  --max: 1120px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.92)),
    url("prayer-artwork.png") center top / cover fixed no-repeat,
    var(--bg);
}

body.legal,
body.support {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.95)),
    url("prayer-artwork.png") center top / cover fixed no-repeat,
    var(--bg);
}

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

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 6, 5, 0.78);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(var(--max), calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.45);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

.nav-links a {
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--orange);
}

.hero {
  min-height: calc(100svh - 72px);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.hero-inner,
.section,
.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.hero-copy {
  max-width: 700px;
  padding: 88px 0 110px;
}

.eyebrow {
  color: var(--orange);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  color: var(--orange);
  font-size: clamp(46px, 8vw, 94px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  color: var(--orange);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.2;
}

p,
li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.lead {
  max-width: 690px;
  color: rgba(247, 243, 234, 0.85);
  font-size: clamp(20px, 2.2vw, 27px);
  font-weight: 700;
  line-height: 1.38;
}

.arabic {
  direction: rtl;
  text-align: right;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Geeza Pro", "Arial", sans-serif;
}

.arabic p,
.arabic li {
  line-height: 1.9;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  color: #080808;
  background: var(--orange);
  font-weight: 900;
  text-decoration: none;
}

.button.secondary {
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
}

.button:hover {
  text-decoration: none;
  filter: brightness(1.06);
}

.app-store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  transition: transform 160ms ease, filter 160ms ease;
}

.app-store-badge img {
  display: block;
  width: 190px;
  max-width: 100%;
  height: auto;
}

.app-store-badge:hover {
  text-decoration: none;
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.section {
  padding: 84px 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.feature-list,
.legal-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.feature-list li,
.legal-list li {
  position: relative;
  padding-left: 28px;
}

.arabic .feature-list li,
.arabic .legal-list li {
  padding-right: 28px;
  padding-left: 0;
}

.feature-list li::before,
.legal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 6px var(--orange-soft);
}

.arabic .feature-list li::before,
.arabic .legal-list li::before {
  right: 0;
  left: auto;
}

.panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.panel.highlight {
  border-color: rgba(255, 135, 8, 0.42);
  background: linear-gradient(180deg, var(--orange-soft), rgba(255, 255, 255, 0.055));
}

.page-hero {
  padding: 82px 0 56px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(38px, 6vw, 72px);
}

.meta {
  color: var(--faint);
  font-size: 14px;
  font-weight: 800;
}

.content {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 88px;
}

.content section {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.content section:last-child {
  border-bottom: 0;
}

.content h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.content h3 {
  color: var(--text);
}

.content ul {
  padding-left: 24px;
}

.content .arabic ul {
  padding-right: 24px;
  padding-left: 0;
}

.notice {
  margin: 28px 0;
  padding: 20px;
  border: 1px solid rgba(255, 135, 8, 0.34);
  border-radius: 8px;
  background: rgba(255, 135, 8, 0.11);
}

.footer {
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.52);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 32px 0;
  color: var(--faint);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 760px) {
  .nav {
    width: min(100% - 28px, var(--max));
    min-height: 68px;
  }

  .brand span {
    max-width: 170px;
  }

  .nav-links {
    gap: 11px;
    font-size: 13px;
  }

  .nav-links .optional {
    display: none;
  }

  .hero-inner,
  .section,
  .footer-inner,
  .content {
    width: min(100% - 28px, var(--max));
  }

  .hero-copy {
    padding: 70px 0 84px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .section {
    padding: 58px 0;
  }

  .panel {
    padding: 22px;
  }
}
