:root {
  color-scheme: dark;
  --bg: #020617;
  --surface: #0f172a;
  --surface-2: #1a2112;
  --text: #f7fafc;
  --muted: #b5c0cc;
  --accent: #bdd197;
  --accent-strong: #7a9450;
  --line: rgba(255, 255, 255, 0.12);
  --glass: rgba(22, 32, 50, 0.58);
  --shadow: 0 30px 60px -18px rgba(0, 0, 0, 0.68);
  --font-ar: "IBM Plex Sans Arabic", "Noto Kufi Arabic", sans-serif;
  --font-en: "Inter", sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7f1;
  --surface: #ffffff;
  --surface-2: #edf2e5;
  --text: #172012;
  --muted: #596452;
  --accent: #5d7438;
  --accent-strong: #4d612e;
  --line: rgba(30, 45, 23, 0.15);
  --glass: rgba(255, 255, 255, 0.86);
  --shadow: 0 24px 70px rgba(31, 47, 24, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 118px; }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--text); font-family: var(--font-en); line-height: 1.75; transition: background .4s ease, color .4s ease; }
html[lang="ar"] body { font-family: var(--font-ar); letter-spacing: normal; }
a { color: inherit; }
::selection { background: var(--accent-strong); color: #fff; }
button, input, textarea { font: inherit; }
button, a { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.seo-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 12%, rgba(122, 148, 80, .2), transparent 31%),
    radial-gradient(circle at 84% 82%, rgba(58, 71, 41, .2), transparent 34%),
    linear-gradient(180deg, var(--bg), color-mix(in srgb, var(--bg) 88%, #000));
}
.seo-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .12;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
  pointer-events: none;
}
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; inset-block-start: 10px; inset-inline-start: 12px; padding: 10px 16px; transform: translateY(-160%); background: var(--text); color: var(--bg); text-decoration: none; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; inset-block-start: 12px; z-index: 50; padding-block: 8px; }
.site-header__inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 6px 16px; border: 1px solid var(--line); border-radius: 20px; background: color-mix(in srgb, var(--bg) 78%, transparent); box-shadow: 0 18px 52px rgba(0, 0, 0, .24); backdrop-filter: blur(20px); }
.brand { display: inline-flex; align-items: center; gap: 14px; min-width: 0; text-decoration: none; }
.brand__mark { width: 80px; height: 80px; display: grid; place-items: center; overflow: hidden; flex: 0 0 auto; }
.brand__mark img { width: 80px; max-width: none; height: 80px; object-fit: contain; filter: grayscale(1) invert(1) contrast(1.45); transform: scale(1.32); }
:root[data-theme="light"] .brand__mark img { filter: grayscale(1) contrast(1.45); mix-blend-mode: multiply; }
.brand__copy { display: flex; flex-direction: column; line-height: 1.25; }
.brand__copy strong { font-size: 1.08rem; letter-spacing: -.015em; }
.brand__copy small { margin-block-start: 5px; color: var(--accent); font-size: .75rem; font-weight: 600; }
.header-nav { display: flex; align-items: center; gap: 4px; padding: 6px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .035); }
.header-nav a { padding: 8px 15px; border-radius: 999px; color: var(--muted); font-size: .82rem; font-weight: 700; text-decoration: none; transition: background .2s ease, color .2s ease; }
.header-nav a:hover, .header-nav a:focus-visible { background: rgba(122, 148, 80, .18); color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 9px; }
.icon-button, .language-link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--glass); color: var(--text); cursor: pointer; text-decoration: none; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.icon-button:hover, .language-link:hover { transform: translateY(-2px); border-color: rgba(189, 209, 151, .34); background: rgba(122, 148, 80, .13); }
.icon-button { width: 44px; }
.language-link { padding-inline: 14px; font-size: .78rem; font-weight: 800; }
.icon-button svg, .language-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; padding-block: 34px 10px; color: var(--muted); font-size: .78rem; }
.breadcrumbs a { text-underline-offset: 4px; }
.breadcrumbs span[aria-hidden="true"] { color: var(--accent); }

.hero { position: relative; padding-block: clamp(54px, 8vw, 104px) clamp(72px, 10vw, 126px); overflow: hidden; }
.hero::after { content: ""; position: absolute; width: 420px; height: 420px; inset-block-start: 7%; inset-inline-end: -180px; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 50%; box-shadow: 0 0 0 72px rgba(122, 148, 80, .07), 0 0 0 144px rgba(122, 148, 80, .035); animation: ambient-orbit 1.2s ease-out both; pointer-events: none; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: clamp(42px, 7vw, 92px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-block-end: 22px; color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
html[lang="ar"] .eyebrow { letter-spacing: normal; text-transform: none; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
h1, h2, h3 { margin-block-start: 0; }
h1 { max-width: 940px; margin-block-end: 24px; font-size: clamp(2.35rem, 5.2vw, 4.8rem); line-height: 1.08; letter-spacing: -.042em; text-wrap: balance; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { font-family: "Noto Kufi Arabic", var(--font-ar); letter-spacing: normal; }
html[lang="ar"] h1 { line-height: 1.28; }
.hero__lede { max-width: 770px; margin: 0; color: var(--muted); font-size: clamp(1.05rem, 1.7vw, 1.28rem); line-height: 1.9; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 34px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border: 1px solid var(--line); border-radius: 14px; font-weight: 800; text-decoration: none; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); }
.button--primary { background: linear-gradient(135deg, #5d7438, #7a9450); border-color: transparent; color: #fff; box-shadow: 0 12px 36px rgba(122, 148, 80, .3); }
.button--primary:hover { box-shadow: 0 18px 44px rgba(122, 148, 80, .38); }
.button--secondary { background: var(--glass); }
.hero__aside { position: relative; z-index: 1; overflow: hidden; padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(145deg, rgba(15, 23, 42, .78), rgba(26, 33, 18, .5)); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.hero__aside::after { content: ""; position: absolute; inset-inline: 0; top: -20%; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); box-shadow: 0 0 18px rgba(189, 209, 151, .45); animation: scan-card 1.6s ease-out .35s 1 both; }
:root[data-theme="light"] .hero__aside { background: rgba(255, 255, 255, .82); }
.hero__aside strong { display: block; margin-block-end: 8px; font-size: 1rem; }
.hero__aside p { margin: 0; color: var(--muted); font-size: .9rem; }
.signal-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.signal-list li { display: flex; gap: 10px; align-items: start; color: var(--muted); font-size: .86rem; }
.signal-list li::before { content: ""; width: 8px; height: 8px; margin-block-start: .65em; flex: 0 0 auto; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(122, 148, 80, .12); }

.section { padding-block: clamp(64px, 9vw, 108px); border-block-start: 1px solid var(--line); }
.section--soft { background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 50%, transparent), color-mix(in srgb, var(--surface-2) 24%, transparent)); }
.section-heading { max-width: 790px; margin-block-end: 42px; }
.section-heading h2 { margin-block-end: 14px; font-size: clamp(2rem, 4vw, 3.7rem); line-height: 1.2; }
.section-heading p { margin: 0; color: var(--muted); font-size: 1.02rem; }
.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(145deg, rgba(22, 32, 50, .68), rgba(26, 33, 18, .3)); box-shadow: 0 18px 44px rgba(0, 0, 0, .12); transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease; }
.card:hover { transform: translateY(-7px); border-color: rgba(189, 209, 151, .28); box-shadow: 0 26px 60px rgba(0, 0, 0, .22), 0 0 38px rgba(122, 148, 80, .08); }
:root[data-theme="light"] .card { background: rgba(255, 255, 255, .82); }
.card__label { display: inline-flex; margin-block-end: 18px; color: var(--accent); font-size: .72rem; font-weight: 800; }
.card h3 { margin-block-end: 12px; font-size: 1.18rem; line-height: 1.45; }
.card p, .card li { color: var(--muted); }
.card p { margin: 0; }
.card ul { margin: 0; padding-inline-start: 20px; }
.card li + li { margin-block-start: 9px; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step { position: relative; padding: 30px 24px 26px; border: 1px solid var(--line); border-block-start: 2px solid var(--accent); border-radius: 0 0 18px 18px; background: var(--glass); transition: transform .3s ease, border-color .3s ease; }
.step:hover { transform: translateY(-5px); border-color: rgba(189, 209, 151, .3); border-block-start-color: var(--accent); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; margin-block-end: 28px; color: var(--accent); font-weight: 800; }
.step h3 { margin-block-end: 10px; font-size: 1.06rem; }
.step p { margin: 0; color: var(--muted); font-size: .9rem; }
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--glass); overflow: hidden; }
.faq summary { padding: 20px 24px; cursor: pointer; font-weight: 800; }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--muted); }
.sources { display: grid; gap: 12px; }
.source-link { display: flex; justify-content: space-between; gap: 22px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--glass); color: var(--muted); text-decoration: none; }
.source-link:hover { color: var(--text); border-color: color-mix(in srgb, var(--accent) 58%, var(--line)); }
.source-link b { color: var(--text); }
.source-link span { flex: 0 0 auto; color: var(--accent); font-weight: 800; }

.cta-band { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 7vw, 86px); align-items: start; padding: clamp(32px, 6vw, 64px); border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(135deg, rgba(26, 33, 18, .92), rgba(15, 23, 42, .94)); box-shadow: var(--shadow); }
:root[data-theme="light"] .cta-band { background: linear-gradient(135deg, #eef2df, #fff); }
.cta-band h2 { margin-block-end: 16px; font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.28; }
.cta-band p { color: var(--muted); }
.contact-form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .78rem; font-weight: 800; }
.field input, .field textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; background: color-mix(in srgb, var(--bg) 70%, transparent); color: var(--text); }
.field textarea { min-height: 118px; resize: vertical; }
.consent { display: flex; gap: 9px; align-items: start; color: var(--muted); font-size: .78rem; }
.consent input { margin-block-start: 5px; }
.form-status { min-height: 24px; margin: 0; color: var(--accent); font-size: .82rem; }
.contact-form button { border: 0; cursor: pointer; }

.site-footer { padding-block: 34px; border-block-start: 1px solid var(--line); color: var(--muted); }
.site-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { text-underline-offset: 4px; }
.disclaimer { margin-block-start: 26px; padding: 16px 18px; border-inline-start: 3px solid var(--accent); background: rgba(122, 148, 80, .08); color: var(--muted); font-size: .8rem; }

.motion-ready .reveal-item { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s cubic-bezier(.2, .75, .2, 1); }
.motion-ready .reveal-item.is-visible { opacity: 1; transform: translateY(0); }
.grid .reveal-item:nth-child(2), .steps .reveal-item:nth-child(2) { transition-delay: .08s; }
.grid .reveal-item:nth-child(3), .steps .reveal-item:nth-child(3) { transition-delay: .16s; }
.steps .reveal-item:nth-child(4) { transition-delay: .24s; }

@keyframes scan-card { 0% { top: -20%; opacity: 0; } 12%, 82% { opacity: .7; } 100% { top: 120%; opacity: 0; } }
@keyframes ambient-orbit { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-18px, 12px, 0) scale(1.04); } }

@media (max-width: 900px) {
  .header-nav { display: none; }
  .hero__grid, .cta-band { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 30px, 1180px); }
  .site-header { inset-block-start: 6px; }
  .site-header__inner { min-height: 78px; gap: 8px; padding-inline: 10px; }
  .brand { gap: 7px; }
  .brand__mark { width: 62px; height: 62px; }
  .brand__mark img { width: 62px; height: 62px; }
  .brand__copy strong { font-size: .9rem; }
  .brand__copy small { display: none; }
  .grid--3, .steps { grid-template-columns: 1fr; }
  .hero { padding-block-start: 38px; }
  .hero__aside { padding: 22px; }
  .card { padding: 23px; }
  .cta-band { padding: 28px 20px; }
  .site-footer__inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
