:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #1f2328;
  --muted: #5b6270;
  --border: #e3e6eb;
  --accent: #2481cc;
  --accent-text: #ffffff;
  --error: #c62828;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1216;
    --surface: #171b21;
    --text: #e6e8eb;
    --muted: #9aa3ae;
    --border: #2a3039;
    --accent: #3a9be0;
    --error: #ef5350;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1216; --surface: #171b21; --text: #e6e8eb; --muted: #9aa3ae; --border: #2a3039; --accent: #3a9be0; --error: #ef5350;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
[dir="rtl"] body, html[dir="rtl"] body { font-family: "Vazirmatn", "Inter", system-ui, sans-serif; }
a { color: var(--accent); }
.topbar, .footer, .wrap { max-width: 880px; margin: 0 auto; padding: 16px; }
.topbar { display: flex; justify-content: space-between; align-items: center; }
.brand { font-weight: 700; font-size: 20px; text-decoration: none; color: var(--text); }
.langs a { margin-inline-start: 10px; text-decoration: none; color: var(--muted); font-weight: 600; }
.langs a[aria-current="true"] { color: var(--accent); }
.hero { text-align: center; padding: 48px 0 32px; }
.hero h1 { font-size: clamp(26px, 5vw, 40px); line-height: 1.25; margin: 0 0 12px; }
.muted { color: var(--muted); }
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-text); border: 0; border-radius: 999px;
  padding: 12px 24px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; margin-top: 12px;
}
.btn:disabled { opacity: .6; cursor: wait; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; padding-bottom: 32px; }
.card, .panel, .doc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); }
.panel { max-width: 520px; margin: 24px auto; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; font-size: 15px; }
.check input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.cf-turnstile { margin: 16px 0; }
.error { color: var(--error); }
.doc h2 { font-size: 18px; margin-top: 24px; }
.footer { text-align: center; color: var(--muted); font-size: 14px; padding-bottom: 32px; }
