/* Istighfar — professional website styles. Deep emerald + refined gold. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #06120d;
  --bg-elev: #0a1a13;
  --surface: rgba(255, 255, 255, 0.025);
  --surface-2: rgba(255, 255, 255, 0.045);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #eef2ee;
  --muted: #9aa9a0;
  --faint: #62736a;
  --gold: #c9a86a;
  --gold-bright: #ddbf85;
  --emerald: #2a6b50;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  min-height: 100vh;
}

a { color: var(--gold-bright); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--gold); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; }

/* ---- Nav ---- */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 18, 13, 0.8);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
nav .nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 16px 28px;
  display: flex; align-items: center; justify-content: space-between;
}
nav .brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; color: var(--text); }
nav .brand img { width: 30px; height: 30px; border-radius: 7px; }
nav .links { display: flex; align-items: center; gap: 28px; }
nav .links a { color: var(--muted); font-weight: 500; font-size: 14.5px; }
nav .links a:hover { color: var(--text); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  padding: 13px 26px; border-radius: 10px; transition: all 0.18s ease;
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--gold); color: #1a1306; }
.btn-primary:hover { background: var(--gold-bright); color: #1a1306; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { color: var(--text); border-color: var(--gold); background: var(--surface); }

/* ---- Hero ---- */
.hero {
  text-align: center; padding: 96px 28px 72px;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(42, 107, 80, 0.22), transparent 70%),
    var(--bg);
}
.hero .logo { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55); }
.hero .eyebrow { color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; margin-top: 30px; }
.hero h1 { font-size: clamp(38px, 6vw, 62px); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; margin-top: 16px; }
.hero .arabic { color: var(--gold-bright); font-size: clamp(20px, 3.5vw, 28px); margin-top: 14px; font-weight: 500; }
.hero .lede { color: var(--muted); font-size: clamp(16px, 2.2vw, 19px); margin: 18px auto 0; max-width: 600px; }
.hero .cta { display: inline-flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; justify-content: center; }

/* ---- Section primitives ---- */
section { padding: 84px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head .eyebrow { color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.02em; margin-top: 12px; }
.section-head p { color: var(--muted); font-size: 17px; margin-top: 14px; }

/* ---- Quote band ---- */
.quote-band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-elev); }
.quote-band .inner { max-width: 820px; margin: 0 auto; padding: 0 28px; text-align: center; }
.quote-band .verse { font-size: clamp(20px, 2.8vw, 26px); line-height: 1.6; font-weight: 500; letter-spacing: -0.01em; }
.quote-band .ref { color: var(--gold-bright); margin-top: 18px; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; }

/* ---- Feature grid ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 30px; transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}
.card:hover { border-color: var(--border-strong); background: var(--surface-2); transform: translateY(-3px); }
.card .icon {
  width: 44px; height: 44px; border-radius: 11px; background: rgba(201, 168, 106, 0.1);
  border: 1px solid rgba(201, 168, 106, 0.25); display: flex; align-items: center; justify-content: center;
}
.card .icon svg { width: 22px; height: 22px; stroke: var(--gold); fill: none; stroke-width: 1.6; }
.card h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin: 18px 0 8px; }
.card p { color: var(--muted); font-size: 15px; }

/* ---- CTA strip ---- */
.cta-strip { text-align: center; }
.cta-strip h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.02em; }
.cta-strip p { color: var(--muted); font-size: 17px; margin: 14px auto 28px; max-width: 540px; }

/* ---- Footer ---- */
footer { border-top: 1px solid var(--border); background: var(--bg-elev); padding: 40px 0; }
footer .inner {
  max-width: 1080px; margin: 0 auto; padding: 0 28px;
  display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center;
}
footer .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); }
footer .brand img { width: 26px; height: 26px; border-radius: 6px; }
footer .links { display: flex; flex-wrap: wrap; gap: 24px; }
footer .links a { color: var(--muted); font-size: 14px; font-weight: 500; }
footer .links a:hover { color: var(--text); }
footer .copy { color: var(--faint); font-size: 13px; width: 100%; padding-top: 8px; }

/* ---- Document pages (privacy / terms / support / about) ---- */
.doc { max-width: 780px; margin: 0 auto; padding: 56px 28px 80px; }
.doc h1 { font-size: clamp(30px, 4vw, 40px); font-weight: 800; letter-spacing: -0.025em; }
.doc .updated { color: var(--faint); font-size: 14px; margin: 8px 0 30px; }
.doc h2 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; margin: 34px 0 12px; }
.doc h3 { font-size: 17px; font-weight: 600; margin: 20px 0 8px; color: var(--text); }
.doc p, .doc li { color: var(--muted); margin-bottom: 11px; }
.doc ul { padding-left: 22px; }
.doc strong { color: var(--text); font-weight: 600; }
.doc a { font-weight: 500; }
.doc .callout {
  background: var(--surface); border: 1px solid var(--border); border-left: 2px solid var(--gold);
  border-radius: 10px; padding: 18px 20px; margin: 22px 0;
}
.doc table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.doc th, .doc td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--border); }
.doc th { color: var(--gold-bright); font-weight: 600; }

@media (max-width: 640px) {
  nav .links { gap: 18px; }
  section { padding: 60px 0; }
}
