@import url('https://fonts.googleapis.com/css2?family=Noto+Naskh+Arabic:wght@400..700&family=Vazirmatn:wght@300..700&display=swap');

:root {
  --navy: #0f2340;
  --navy-deep: #081222;
  --ivory: #faf7ef;
  --paper: #ffffff;
  --gold: #ab7f2a;
  --gold-light: #e3c98a;
  --ink: #211d16;
  --muted: #79715f;
  --rule: #e7ded0;
  --rule-dark: rgba(227, 201, 138, 0.24);

  --font-display: 'Noto Naskh Arabic', serif;
  --font-body: 'Vazirmatn', Tahoma, sans-serif;

  --max: 1080px;
  --measure: 640px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ================= NAV ================= */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid var(--rule-dark);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: relative;
}

.brand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ivory);
  text-decoration: none;
  letter-spacing: 0.5px;
  z-index: 2;
}

.nav-toggle-input { display: none; }

.nav-toggle-label {
  display: none;
  width: 30px;
  height: 22px;
  position: relative;
  cursor: pointer;
  z-index: 2;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  position: absolute;
  right: 0;
  width: 100%;
  height: 2px;
  background: var(--gold-light);
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.nav-toggle-label span { top: 10px; }
.nav-toggle-label span::before { content: ""; top: -8px; }
.nav-toggle-label span::after { content: ""; top: 8px; }

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 14.5px;
  color: var(--gold-light);
  text-decoration: none;
  opacity: 0.82;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: opacity 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.nav-links a:hover { opacity: 1; }

.nav-links a[aria-current="page"] {
  color: var(--ivory);
  opacity: 1;
  border-bottom-color: var(--gold);
}

/* ================= HERO ================= */

.hero {
  background:
    radial-gradient(ellipse 900px 500px at 50% -10%, rgba(227, 201, 138, 0.10), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--ivory);
  text-align: center;
  padding: 100px 24px 150px;
  position: relative;
}

.hero.hero--sub { padding-bottom: 90px; }

.hero .eyebrow {
  font-size: 13px;
  color: var(--gold-light);
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 6.4vw, 62px);
  line-height: 1.25;
  margin: 0 0 20px;
  color: var(--ivory);
}

.hero .tagline {
  font-size: clamp(16px, 2.2vw, 19px);
  color: #ded6bf;
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.85;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* ---- Proof card: overlaps hero / body seam ---- */

.proof-card {
  max-width: 620px;
  margin: -84px auto 0;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: 0 24px 48px -20px rgba(15, 35, 64, 0.28);
  padding: 30px 34px;
  position: relative;
  z-index: 2;
}

.proof-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
}

.proof-col + .proof-col {
  border-right: 1px solid var(--rule);
  padding-right: 28px;
}
.proof-col:first-child { padding-left: 0; }

.proof-col h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.5px;
  margin: 0 0 12px;
}

.proof-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 14px;
}

.proof-row .label { color: var(--muted); }
.proof-row .amount { font-variant-numeric: tabular-nums; color: var(--ink); }

.proof-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--rule);
  font-size: 14px;
  font-weight: 600;
}

.proof-total .amount { color: var(--gold); font-size: 15px; }

.proof-badge {
  font-size: 11.5px;
  color: var(--gold);
  border: 1px solid var(--gold-light);
  border-radius: 20px;
  padding: 3px 12px;
}

/* ================= BODY SECTIONS ================= */

section.body-section {
  padding: 100px 24px;
}

section.body-section + section.body-section {
  border-top: 1px solid var(--rule);
}

.section-head {
  max-width: var(--measure);
  margin: 0 auto 48px;
  text-align: center;
}

.section-label {
  font-size: 12.5px;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 14px;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(25px, 3.6vw, 32px);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 18px;
}

.lede {
  font-size: 17px;
  color: var(--ink);
  max-width: var(--measure);
  margin: 0 auto 14px;
}

.section-head .lede { margin-left: auto; margin-right: auto; }

.muted { color: var(--muted); }

.story-page .lede {
  text-align: justify;
  text-align-last: right;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}

/* ---- Feature grid ---- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  max-width: var(--max);
  margin: 0 auto;
}

.feature-card {
  background: var(--paper);
  padding: 34px 32px;
}

.feature-icon {
  width: 34px;
  height: 34px;
  color: var(--gold);
  margin-bottom: 18px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px;
}

.feature-card p {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0;
}

/* ---- CTA ---- */

.cta-block { text-align: center; }

.btn {
  display: inline-block;
  padding: 13px 32px;
  background: var(--navy);
  color: var(--ivory);
  text-decoration: none;
  font-size: 14.5px;
  border-radius: 5px;
  border: 1px solid var(--navy);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover { background: var(--navy-deep); }

.btn-ghost {
  background: transparent;
  color: var(--ivory);
  border: 1px solid rgba(227, 201, 138, 0.5);
}

.btn-ghost:hover {
  border-color: var(--gold-light);
  background: rgba(227, 201, 138, 0.08);
}

.on-light.btn-ghost {
  color: var(--navy);
  border-color: var(--rule);
}
.on-light.btn-ghost:hover {
  border-color: var(--navy);
  background: rgba(15, 35, 64, 0.04);
}

/* ---- Story teaser (home) ---- */

.teaser {
  max-width: var(--measure);
  margin: 0 auto;
  text-align: center;
  padding: 8px 0;
}

.teaser blockquote {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 25px);
  color: var(--navy);
  margin: 0 0 26px;
  line-height: 1.8;
}

.teaser a {
  font-size: 14.5px;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-light);
  padding-bottom: 2px;
}

/* ================= PULL QUOTE (story page) ================= */

.pull-quote {
  margin: 44px auto;
  max-width: var(--measure);
  padding-right: 22px;
  border-right: 3px solid var(--gold);
  font-family: var(--font-display);
  font-size: clamp(19px, 2.6vw, 23px);
  color: var(--navy);
  line-height: 1.85;
  text-align: right;
}

.story-close {
  text-align: center;
  padding: 90px 24px 100px;
}

.story-close .lede {
  max-width: 460px;
  margin: 0 auto;
  font-size: 18px;
  text-align: center;
}

/* ================= DOWNLOADS / STEPS ================= */

.steps {
  max-width: var(--measure);
  margin: 0 auto;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 20px;
  right: 21px;
  width: 1px;
  background: var(--rule);
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 22px 0;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.step:hover .step-title { color: var(--gold); }

.step-num {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--ivory);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.step-body { flex: 1; min-width: 0; padding-top: 6px; }

.step-title {
  font-weight: 600;
  font-size: 16.5px;
  color: var(--navy);
  margin-bottom: 4px;
  transition: color 0.15s ease;
}

.step-desc { font-size: 14px; color: var(--muted); }

.step-arrow {
  flex-shrink: 0;
  color: var(--gold-light);
  font-size: 18px;
  padding-top: 16px;
}

.callout {
  max-width: var(--measure);
  margin: 36px auto 0;
  padding: 18px 22px;
  background: #fbf3dc;
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-size: 13.5px;
  color: #6b5a1e;
  line-height: 1.9;
}

.callout code {
  background: rgba(0,0,0,0.05);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 12.5px;
}

/* ================= FOOTER ================= */

footer {
  background: var(--navy);
  color: #b7ae97;
  padding: 56px 24px 34px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--rule-dark);
}

.footer-brand .brand { display: inline-block; margin-bottom: 10px; }
.footer-brand p { font-size: 13.5px; max-width: 280px; margin: 0; color: #9c9480; }

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

.footer-links div { min-width: 100px; }

.footer-links h5 {
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--gold-light);
  margin: 0 0 12px;
  font-weight: 500;
}

.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  font-size: 13.5px;
  color: #b7ae97;
  text-decoration: none;
}
.footer-links a:hover { color: var(--ivory); }

.footer-bottom {
  padding-top: 22px;
  font-size: 12.5px;
  text-align: center;
  color: #8c846f;
}

/* ================= MOTION & A11Y ================= */

@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .tagline, .hero-cta, .proof-card {
    animation: rise 0.7s ease both;
  }
  .hero .tagline { animation-delay: 0.10s; }
  .hero-cta { animation-delay: 0.18s; }
  .proof-card { animation-delay: 0.26s; }
}

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

a:focus-visible, .btn:focus-visible, .nav-toggle-label:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 860px) {
  .feature-grid { grid-template-columns: 1fr; }
  .proof-col + .proof-col { padding-right: 20px; }
}

@media (max-width: 720px) {
  .nav-toggle-label { display: block; }

  .nav-links {
    position: absolute;
    inset-inline: 0;
    top: 64px;
    background: var(--navy-deep);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    border-bottom: 1px solid var(--rule-dark);
  }

  .nav-links a {
    display: block;
    padding: 16px 24px;
    border-bottom: 1px solid var(--rule-dark);
    opacity: 1;
  }

  .nav-toggle-input:checked ~ .nav-links {
    max-height: 260px;
  }

  .nav-toggle-input:checked ~ .nav-toggle-label span { background: transparent; }
  .nav-toggle-input:checked ~ .nav-toggle-label span::before { transform: translateY(8px) rotate(45deg); }
  .nav-toggle-input:checked ~ .nav-toggle-label span::after { transform: translateY(-8px) rotate(-45deg); }

  .hero { padding: 80px 20px 130px; }
  .proof-card { margin-top: -70px; padding: 24px 22px; }
  .proof-cols { grid-template-columns: 1fr; gap: 20px; }
  .proof-col + .proof-col {
    border-right: none;
    border-top: 1px solid var(--rule);
    padding-right: 0;
    padding-top: 20px;
  }

  section.body-section { padding: 64px 20px; }
  .footer-grid { flex-direction: column; gap: 28px; }
  .footer-links { gap: 28px; }
}
