:root {
  color-scheme: light;
  --bg: #fbf7ef;
  --bg-soft: #fffdf8;
  --surface: rgba(255, 255, 255, 0.82);
  --text: #242b38;
  --muted: #626b78;
  --faint: #8b929d;
  --gold: #d3a854;
  --gold-dark: #a77822;
  --sage: #4f9f92;
  --line: rgba(124, 92, 36, 0.18);
  --shadow: rgba(80, 59, 24, 0.12);
  --radius: 8px;
  --page-pad: clamp(20px, 4vw, 56px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

a {
  color: inherit;
}

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

.site-header {
  position: fixed;
  inset: 16px var(--page-pad) auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: var(--radius);
  background: rgba(255, 252, 245, 0.76);
  box-shadow: 0 14px 42px var(--shadow);
  backdrop-filter: blur(20px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}

.brand img,
.footer-brand img {
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(167, 120, 34, 0.18);
}

.nav-links,
.footer-links {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav-links a,
.footer-links a,
.text-link {
  text-decoration: none;
}

.nav-links a:hover,
.footer-links a:hover,
.text-link:hover {
  color: var(--gold-dark);
}

.hero {
  position: relative;
  display: grid;
  min-height: 86svh;
  padding: 132px var(--page-pad) 58px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(251, 247, 239, 0.96) 0%, rgba(251, 247, 239, 0.88) 34%, rgba(251, 247, 239, 0.30) 72%),
    linear-gradient(180deg, rgba(251, 247, 239, 0) 70%, var(--bg) 100%),
    url("assets/hero-arabic-white-gold.png");
  background-position: center, center, center;
  background-size: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  z-index: -1;
  background: linear-gradient(180deg, rgba(251, 247, 239, 0), var(--bg));
}

.hero-content {
  width: min(760px, 100%);
  align-self: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(44px, 8vw, 92px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.2;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 24px);
}

.hero-actions,
.proof-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: linear-gradient(135deg, #dcb65e, #b68127);
  color: #fff;
  box-shadow: 0 18px 34px rgba(166, 112, 23, 0.24);
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
  color: var(--gold-dark);
}

.proof-list {
  margin: 24px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  list-style: none;
}

.proof-list li {
  position: relative;
  padding-left: 17px;
}

.proof-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--sage);
}

.section {
  padding: clamp(62px, 9vw, 112px) var(--page-pad);
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.two-column,
.preview-layout,
.legal-grid,
.support-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: center;
}

.intro p,
.preview-layout p,
.legal-copy,
.support-panel p {
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 21px);
}

.section-heading {
  width: min(720px, 100%);
  margin-bottom: 30px;
}

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

.feature-card {
  min-height: 246px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 44px rgba(80, 59, 24, 0.08);
}

.feature-icon {
  display: grid;
  width: 50px;
  height: 50px;
  margin-bottom: 28px;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(211, 168, 84, 0.14);
  color: var(--gold-dark);
  font-family: "Geeza Pro", "Times New Roman", serif;
  font-size: 28px;
  font-weight: 800;
}

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

.app-preview {
  background:
    radial-gradient(circle at 14% 18%, rgba(79, 159, 146, 0.13), transparent 28%),
    linear-gradient(180deg, var(--bg), #fffdf8);
}

.phone-frame {
  width: min(350px, 100%);
  justify-self: center;
  padding: 12px;
  border: 1px solid rgba(36, 43, 56, 0.12);
  border-radius: 36px;
  background: #202532;
  box-shadow: 0 34px 80px rgba(54, 42, 18, 0.18);
}

.phone-screen {
  display: grid;
  gap: 16px;
  min-height: 620px;
  padding: 30px 22px;
  align-content: start;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.90), rgba(255, 251, 242, 0.98)),
    url("assets/hero-arabic-white-gold.png");
  background-size: cover;
  background-position: center;
}

.phone-screen img {
  width: 104px;
  height: 104px;
  margin: 12px auto 14px;
  border-radius: 24px;
}

.arabic-line {
  margin-bottom: 0;
  color: var(--text);
  font-family: "Geeza Pro", "Times New Roman", serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.7;
  text-align: center;
}

.phone-screen > p:not(.arabic-line) {
  margin-bottom: 14px;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.lesson-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid rgba(167, 120, 34, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
}

.lesson-row strong {
  color: var(--gold-dark);
}

.legal {
  background: #fffdf8;
}

.legal-copy p {
  margin-bottom: 18px;
}

.text-link {
  color: var(--gold-dark);
  font-weight: 850;
}

.support {
  padding-top: 32px;
}

.support-panel {
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(247, 241, 228, 0.86));
}

.support-panel .button {
  justify-self: end;
  text-align: center;
}

.site-footer {
  padding: 34px var(--page-pad) 48px;
  background: #fffdf8;
  color: var(--muted);
}

.footer-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

@media (max-width: 900px) {
  .site-header {
    inset: 10px 12px auto;
  }

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

  .hero {
    min-height: 84svh;
    padding-top: 118px;
  }

  .hero-bg {
    background-image:
      linear-gradient(90deg, rgba(251, 247, 239, 0.97) 0%, rgba(251, 247, 239, 0.83) 58%, rgba(251, 247, 239, 0.40) 100%),
      linear-gradient(180deg, rgba(251, 247, 239, 0) 70%, var(--bg) 100%),
      url("assets/hero-arabic-white-gold.png");
    background-position: center, center, 60% center;
  }

  .two-column,
  .preview-layout,
  .legal-grid,
  .support-panel {
    grid-template-columns: 1fr;
  }

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

  .phone-frame {
    order: 2;
  }

  .support-panel .button {
    justify-self: start;
  }
}

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

  .site-header {
    padding: 8px;
  }

  .hero {
    min-height: 82svh;
    padding-bottom: 42px;
  }

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

  .button {
    width: 100%;
  }

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

  .feature-card {
    min-height: 204px;
  }

  .phone-screen {
    min-height: 560px;
  }

  .footer-inner,
  .footer-links {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
