/* Sirāj Marketing Website — Shared Styles
   Emerald + gold "glowing dome" theme. Mirrors the app's dark Sirāj palette
   (#06120D base + emerald/gold radial washes; gold #D4B968 accent). */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-base: #06120D;
  --bg-deep: #030A07;
  --surface: #0E2018;
  --surface-elevated: #14301F;
  --emerald: #0F5132;
  --emerald-bright: #1A7A4A;
  --accent: #D4B968;          /* gold — the structure / lamp */
  --accent-deep: #B8983F;
  --accent-light: #EBD9A0;
  --glow: #FFF7DC;            /* the light */
  --text: #FBFAF5;
  --text-2: rgba(251,250,245,0.70);
  --text-3: rgba(251,250,245,0.45);
  --border: rgba(212,185,104,0.14);
  --border-strong: rgba(212,185,104,0.28);
  --radius: 16px;
  --maxw: 1120px;
}

html { scroll-behavior: smooth; }
html, body {
  background: var(--bg-base);
  color: var(--text);
  font-family: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  background:
    radial-gradient(circle at 50% 12%, rgba(212,185,104,0.16) 0%, transparent 45%),
    radial-gradient(ellipse at 15% 50%, rgba(15,81,50,0.55) 0%, transparent 60%),
    radial-gradient(circle at 85% 38%, rgba(26,122,74,0.32) 0%, transparent 55%),
    radial-gradient(ellipse at 60% 95%, rgba(15,81,50,0.40) 0%, transparent 60%),
    var(--bg-base);
  background-attachment: fixed;
}

/* Arabic display face for brand wordmarks */
.ar { font-family: "Noto Naskh Arabic", "Amiri", "Scheherazade New", serif; }

a { color: var(--accent-light); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent); }
::selection { background: var(--accent); color: #06120D; }
img { max-width: 100%; display: block; }

/* ---------- Navigation ---------- */
nav.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 14px 32px;
  display: flex; justify-content: space-between; align-items: center;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  background: rgba(6,18,13,0.66);
  border-bottom: 1px solid var(--border);
}
nav.site-nav .logo { display: flex; align-items: center; gap: 10px; color: var(--text); }
nav.site-nav .logo svg { width: 34px; height: 34px; }
nav.site-nav .logo .wordmark { font-weight: 800; font-size: 21px; letter-spacing: -0.01em; }
nav.site-nav .logo .wordmark .ar { color: var(--accent); margin-left: 6px; font-weight: 700; }
nav.site-nav .nav-links { display: flex; gap: 26px; align-items: center; }
nav.site-nav .nav-links a { color: var(--text-2); font-size: 14px; font-weight: 500; }
nav.site-nav .nav-links a:hover { color: var(--text); }
nav.site-nav .cta {
  background: var(--accent); color: #06120D;
  padding: 10px 18px; border-radius: 100px;
  font-size: 14px; font-weight: 700;
  transition: transform 0.2s, background 0.2s;
}
nav.site-nav .cta:hover { transform: translateY(-1px); background: var(--accent-light); color: #06120D; }
@media (max-width: 720px) { nav.site-nav .nav-links a:not(.cta) { display: none; } nav.site-nav { padding: 12px 18px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 12px;
  font-weight: 700; font-size: 16px;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
  border: 1px solid transparent; cursor: pointer;
}
.btn.primary { background: var(--accent); color: #06120D; }
.btn.primary:hover { transform: translateY(-2px); background: var(--accent-light); color: #06120D; }
.btn.secondary { background: rgba(212,185,104,0.08); color: var(--text); border-color: var(--border-strong); }
.btn.secondary:hover { transform: translateY(-2px); background: rgba(212,185,104,0.14); color: var(--text); }

/* ---------- Layout helpers ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 96px 32px; }
.section-tight { padding: 64px 32px; }
.eyebrow { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; }
h2.section-title { font-size: clamp(30px, 4.5vw, 46px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin: 16px 0; }
.section-sub { color: var(--text-2); font-size: 18px; max-width: 640px; }
.center { text-align: center; margin-inline: auto; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 132px 32px 64px; position: relative; overflow: hidden;
}
.hero-grid {
  max-width: var(--maxw); margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero .eyebrow { margin-bottom: 22px; display: inline-block; }
.hero h1 { font-size: clamp(44px, 7vw, 84px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.04; margin-bottom: 22px; }
.hero h1 .accent {
  background: linear-gradient(135deg, var(--accent), var(--glow));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p.lead { color: var(--text-2); font-size: 19px; max-width: 540px; margin-bottom: 32px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .ar-bismillah { font-size: 22px; color: var(--accent-light); margin-bottom: 16px; opacity: 0.9; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; text-align: center; } .hero .actions { justify-content: center; } .hero p.lead { margin-inline: auto; } }

/* Phone mockup (CSS, stylised — drop real screenshots into assets/screenshots) */
.device {
  justify-self: center; width: 300px; max-width: 78vw; aspect-ratio: 300 / 620;
  border-radius: 44px; padding: 12px;
  background: linear-gradient(160deg, #1c1c20, #050505);
  box-shadow: 0 40px 90px rgba(0,0,0,0.55), 0 0 0 1px rgba(212,185,104,0.18), 0 0 80px rgba(212,185,104,0.12);
  position: relative;
}
.device .screen {
  width: 100%; height: 100%; border-radius: 34px; overflow: hidden;
  background:
    radial-gradient(circle at 50% 8%, rgba(212,185,104,0.18), transparent 42%),
    linear-gradient(180deg, #0c2418, #06120d);
  display: flex; flex-direction: column; padding: 26px 18px; gap: 14px;
}
.device .screen img { width: 100%; height: 100%; object-fit: cover; border-radius: 34px; }
.hero-shot { justify-self: center; width: 330px; max-width: 82vw; }
.hero-shot img {
  width: 100%; height: auto; display: block; border-radius: 30px;
  box-shadow: 0 40px 90px rgba(0,0,0,0.5), 0 0 0 1px rgba(212,185,104,0.16), 0 0 80px rgba(212,185,104,0.10);
}
.mock-time { text-align: center; color: var(--text-3); font-size: 12px; letter-spacing: 0.1em; }
.mock-card { background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 16px; padding: 14px; }
.mock-card .label { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.mock-card .big { font-size: 26px; font-weight: 800; margin-top: 4px; }
.mock-card .sub { color: var(--text-2); font-size: 12px; }
.mock-verse { color: var(--accent-light); text-align: center; font-size: 17px; line-height: 1.9; }
.mock-row { display: flex; gap: 10px; }
.mock-pill { flex: 1; background: rgba(212,185,104,0.10); border-radius: 12px; padding: 12px 8px; text-align: center; font-size: 11px; color: var(--text-2); }
.mock-pill b { display: block; color: var(--text); font-size: 13px; margin-bottom: 2px; }

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
@media (max-width: 880px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: linear-gradient(180deg, var(--surface), rgba(14,32,24,0.4));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: transform 0.2s, border-color 0.2s;
}
.feature:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.feature .ico {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(212,185,104,0.12); margin-bottom: 16px;
}
.feature .ico svg { width: 24px; height: 24px; stroke: var(--accent); fill: none; stroke-width: 1.8; }
.feature h3 { font-size: 18px; font-weight: 700; margin-bottom: 7px; }
.feature p { color: var(--text-2); font-size: 14.5px; }

/* ---------- Values / strip ---------- */
.strip { background: linear-gradient(180deg, rgba(15,81,50,0.18), transparent); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } }
.value h3 { font-size: 19px; margin-bottom: 8px; }
.value h3 .num { color: var(--accent); font-weight: 800; margin-right: 8px; }
.value p { color: var(--text-2); font-size: 15px; }

/* ---------- Screenshot carousel ---------- */
.carousel { position: relative; overflow: hidden; margin-top: 40px; }
.carousel-track { display: flex; gap: 18px; transition: transform 0.5s cubic-bezier(0.4,0,0.2,1); }
.carousel-track .shot {
  flex: 0 0 auto; width: 240px; border-radius: 28px; overflow: hidden;
  border: 1px solid var(--border-strong); background: var(--surface);
  box-shadow: 0 24px 50px rgba(0,0,0,0.4);
}
.carousel-track .shot img { width: 100%; height: auto; aspect-ratio: 9/19.5; object-fit: cover; display: block; }
.carousel-track .shot.placeholder {
  aspect-ratio: 9/19.5; display: flex; align-items: center; justify-content: center;
  color: var(--text-3); font-size: 13px; text-align: center; padding: 20px;
}
.carousel-dots { display: flex; gap: 8px; justify-content: center; margin-top: 22px; }
.carousel-dots button { width: 8px; height: 8px; border-radius: 50%; border: none; background: var(--border-strong); cursor: pointer; padding: 0; }
.carousel-dots button.active { background: var(--accent); width: 22px; border-radius: 4px; }
/* Tablet (iPad) carousel variant — wider cards, 3:4 framing */
.carousel.tablet .shot { width: 300px; border-radius: 22px; }
.carousel.tablet .shot img { aspect-ratio: 3/4; }
.ipad-intro { margin-top: 64px; }
.ipad-intro .ipad-title { font-size: clamp(20px, 3.4vw, 26px); margin: 6px 0 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin-inline: auto; }
.faq details {
  border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; margin-bottom: 12px;
  background: var(--surface); transition: border-color 0.2s;
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary { font-weight: 600; font-size: 16.5px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--text-2); font-size: 15px; margin-top: 12px; }

/* ---------- Download CTA ---------- */
.download { text-align: center; }
.badges { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: #06120D; border: 1px solid var(--border-strong); border-radius: 14px;
  padding: 12px 22px; min-width: 200px; opacity: 0.92;
}
.badge.soon { cursor: default; }
.badge svg { width: 26px; height: 26px; fill: var(--text); flex: none; }
.badge .t { text-align: left; line-height: 1.2; }
.badge .t small { display: block; color: var(--text-3); font-size: 10.5px; letter-spacing: 0.04em; }
.badge .t b { font-size: 16px; font-weight: 700; }
.badge .pill { margin-left: auto; font-size: 10px; font-weight: 700; color: var(--accent); border: 1px solid var(--border-strong); border-radius: 100px; padding: 2px 8px; text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- Footer ---------- */
footer.site-footer { border-top: 1px solid var(--border); padding: 48px 32px; }
footer.site-footer .inner { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
footer.site-footer .logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
footer.site-footer .logo svg { width: 28px; height: 28px; }
footer.site-footer .cols { display: flex; gap: 56px; flex-wrap: wrap; }
footer.site-footer .col h4 { font-size: 13px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }
footer.site-footer .col a { display: block; color: var(--text-2); font-size: 14px; margin-bottom: 8px; }
footer.site-footer .col a:hover { color: var(--text); }
footer.site-footer .legal { color: var(--text-3); font-size: 13px; margin-top: 28px; max-width: var(--maxw); margin-inline: auto; }
footer.site-footer .legal .ar { color: var(--accent-light); }

/* ---------- Legal / document pages ---------- */
.doc { max-width: 800px; margin: 0 auto; padding: 132px 32px 80px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.doc .updated { color: var(--text-3); font-size: 14px; margin-bottom: 36px; }
.doc h2 { font-size: 22px; font-weight: 700; margin: 36px 0 12px; }
.doc h3 { font-size: 17px; font-weight: 700; margin: 24px 0 8px; }
.doc p, .doc li { color: var(--text-2); font-size: 16px; margin-bottom: 12px; }
.doc ul { padding-left: 22px; margin-bottom: 12px; }
.doc a { color: var(--accent-light); }
.doc .callout { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 10px; padding: 16px 18px; margin: 20px 0; }
.doc .callout p:last-child { margin-bottom: 0; }
