:root {
  --bg: #f5f6fa; --surface: #fff; --border: #d8dcea; --text: #161a2b; --muted: #5a6180;
  --brand: #3a3f9e; --brand-strong: #2b2f7d; --sun: #b26b00; --night: #151a40;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Vazirmatn", "Noto Sans Arabic", Tahoma, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0d1020; --surface: #151a30; --border: #2c3460; --text: #e7e9f6; --muted: #a0a7c8; --brand: #9aa3ff; --brand-strong: #b9bfff; --sun: #ffc35c; color-scheme: dark; }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); }
a { color: var(--brand); }
.wrap { max-inline-size: 1040px; margin-inline: auto; padding-inline: 16px; }
header.hero { background: linear-gradient(180deg, #2b2f7d, var(--night)); color: #e7e9f6; padding-block: 48px 40px; }
header.hero .wrap { display: grid; gap: 16px; grid-template-columns: auto 1fr; align-items: center; }
header.hero img { inline-size: 96px; block-size: 96px; }
header.hero h1 { margin: 0; font-size: 2.2rem; }
header.hero p { margin: .25em 0 0; color: #c9cdf2; font-size: 1.1rem; }
nav.top { display: flex; gap: 16px; flex-wrap: wrap; padding-block: 12px; }
nav.top a { color: #c9cdf2; text-decoration: none; }
.cta { display: inline-block; margin-block-start: 12px; background: #ffc35c; color: #161a2b; padding: 10px 18px; border-radius: 10px; font-weight: 650; text-decoration: none; }
section { padding-block: 36px; }
h2 { font-size: 1.5rem; margin: 0 0 .6em; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; }
.card h3 { margin: 0 0 .4em; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); }
figure { margin: 0; }
figure img { inline-size: 100%; block-size: auto; border-radius: 12px; border: 1px solid var(--border); }
figcaption { color: var(--muted); font-size: .9rem; margin-block-start: 6px; }
table { border-collapse: collapse; inline-size: 100%; background: var(--surface); border-radius: 12px; overflow: hidden; }
th, td { text-align: start; padding: 10px 12px; border-block-end: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .9rem; }
.note { color: var(--muted); font-size: .92rem; }
footer { border-block-start: 1px solid var(--border); padding-block: 24px 40px; color: var(--muted); font-size: .9rem; }
@media (max-width: 560px) { header.hero .wrap { grid-template-columns: 1fr; } header.hero h1 { font-size: 1.8rem; } }
