:root {
  --primary: #B02F0B;
  --primary-soft: #FFE9E2;
  --on-primary: #FFFFFF;
  --bg: #F8F9FA;
  --surface: #FFFFFF;
  --surface-alt: #F3F4F5;
  --text: #1B1C1E;
  --muted: #6C7175;
  --border: #DEE2E6;
  --shadow: 0 10px 30px rgba(27, 28, 30, .08);
  --radius: 18px;
  --font-body: "Noto Naskh Arabic", system-ui, sans-serif;
  --font-head: "Reem Kufi", "Noto Naskh Arabic", system-ui, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #FF6740;
    --primary-soft: #3A2019;
    --on-primary: #1A1C1E;
    --bg: #17191B;
    --surface: #202326;
    --surface-alt: #1C1F21;
    --text: #E8EAED;
    --muted: #9099A1;
    --border: #2D3135;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.85;
  overflow-x: hidden;
}

html[lang="en"] {
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
html[lang="en"] body { line-height: 1.65; }
html[lang="en"] h1, html[lang="en"] h2 { letter-spacing: -.01em; }

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

a { color: var(--primary); }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.35; margin: 0 0 .5em; }

h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }

h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

.skip {
  position: absolute; inset-inline-start: -999px; top: 8px;
  background: var(--primary); color: var(--on-primary); padding: 8px 14px; border-radius: 8px;
}
.skip:focus { inset-inline-start: 8px; z-index: 10; }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: var(--font-head); font-size: 1.25rem; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--text); }
.nav .btn { color: var(--on-primary); }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--primary); color: var(--on-primary);
  padding: 8px 18px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem;
}

/* Hero */
.hero { padding: 56px 0 40px; overflow: hidden; }
.hero .container { display: grid; gap: 40px; align-items: center; }
@media (min-width: 880px) { .hero .container { grid-template-columns: 1.15fr .85fr; } }
.eyebrow {
  display: inline-block; background: var(--primary-soft); color: var(--primary);
  padding: 4px 14px; border-radius: 999px; font-size: .9rem; margin-bottom: 16px;
}
.hero h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); margin-bottom: .25em; }
.hero h1 span { color: var(--primary); }
.hero .lead { font-size: clamp(1.1rem, 2.6vw, 1.3rem); color: var(--muted); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 20px; }
.play-badge img { height: 82px; width: auto; margin: -12px; }
.cta-note { color: var(--muted); font-size: .9rem; }

.phones { display: flex; justify-content: center; align-items: flex-start; padding: 8px 0 24px; }
.phone {
  position: relative; flex: 0 0 auto; border-radius: 34px; padding: 8px; background: #101214;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .25);
}
.phone img { border-radius: 27px; width: 100%; }
.phone.front { width: min(250px, 62vw); z-index: 1; transform: rotate(-3deg); }
.phone.back { width: 210px; margin-top: 64px; margin-inline-start: -64px; transform: rotate(5deg); }
@media (max-width: 520px) {
  .phone.back { display: none; }
  .phone.front { transform: none; }
}

/* Sections */
section { padding: 56px 0; }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head p { color: var(--muted); }
.alt { background: var(--surface-alt); border-block: 1px solid var(--border); }

.problem { display: grid; gap: 16px; }
@media (min-width: 760px) { .problem { grid-template-columns: repeat(3, 1fr); } }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
}
.stat strong { display: block; font-family: var(--font-head); font-size: 1.15rem; margin-bottom: 4px; }
.stat p { color: var(--muted); margin: 0; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card p { color: var(--muted); margin: 0; }
.icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); margin-bottom: 14px;
}
.icon svg { width: 24px; height: 24px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li {
  counter-increment: step; position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
}
.steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%; margin-bottom: 12px;
  background: var(--primary); color: var(--on-primary); font-family: var(--font-head); font-size: 1.1rem;
}
.steps p { color: var(--muted); margin: 0; }

.gallery {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 4px 18px; margin: 0 -4px; scrollbar-width: thin;
}
.gallery figure { flex: 0 0 auto; width: min(240px, 66vw); margin: 0; scroll-snap-align: start; }
.gallery img { border-radius: 22px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.gallery figcaption { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 10px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips li {
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 18px;
}

.faq { max-width: 780px; }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 4px 20px; margin-bottom: 12px;
}
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style-position: inside; }
.faq details p { color: var(--muted); }

.final {
  text-align: center; background: var(--primary); color: var(--on-primary);
  border-radius: 28px; padding: 44px 20px; margin: 0 16px;
}
.final h2 { color: inherit; }
.final p { opacity: .9; }
.final .play-badge { display: inline-block; margin-top: 8px; }
@media (min-width: 1152px) { .final { margin: 0 auto; max-width: 1088px; } }

/* Footer */
.site-footer { padding: 40px 0 32px; color: var(--muted); font-size: .92rem; border-top: 1px solid var(--border); margin-top: 56px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 14px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.disclaimer { max-width: 760px; }

/* Text pages */
.page { max-width: 780px; padding-top: 40px; padding-bottom: 24px; }
.page h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); color: var(--primary); }
.page h2 { font-size: 1.35rem; margin-top: 1.8em; }
.page .date { color: var(--muted); }
.page ul { padding-inline-start: 1.3em; }
.page li { margin-bottom: .4em; }
.page hr { border: 0; border-top: 1px solid var(--border); margin: 48px 0; }
.page .en { direction: ltr; text-align: left; font-family: system-ui, sans-serif; line-height: 1.65; }
.page .en h2, .page .en h3 { font-family: system-ui, sans-serif; }
.notice {
  background: var(--primary-soft); border-radius: 14px; padding: 16px 20px; margin: 20px 0;
}

.center-page { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.center-page .big { font-family: var(--font-head); font-size: 5rem; color: var(--primary); line-height: 1; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.final.spaced { margin-top: 56px; }
.web-cta { margin-top: 14px; font-weight: 600; }
.web-cta a { text-decoration: none; }
.web-cta a:hover { text-decoration: underline; }
