/* Light: bg #F8FAFC, card #FFF, text #0F172A, muted #475569, primary #186ADE
   Dark: bg #080c14, sidebar #0b1120, card #0f172a, text #F8FAFC, primary #3B82F6 */

:root {
  color-scheme: light;
  --font-ar: "Cairo", system-ui, sans-serif;
  --font-en: "Manrope", system-ui, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --page: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --surface-3: #e2e8f0;
  --sidebar: #0b1120;
  --ink: #0f172a;
  --muted: #475569;
  --soft: #64748b;
  --line: #e2e8f0;
  --primary: #186ade;
  --primary-strong: #1558b8;
  --primary-soft: #dbeafe;
  --on-primary: #ffffff;
  --success: #10b981;
  --success-soft: #d1fae5;
  --warning: #f97316;
  --warning-soft: #ffedd5;
  --danger: #e11d48;
  --sites: #a855f7;
  --sites-soft: #f3e8ff;
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgb(15 23 42 / .06);
  --shadow-md: 0 18px 45px rgb(15 23 42 / .08);
  --shadow-lg: 0 34px 80px rgb(15 23 42 / .12);
  --max: 1180px;
  --header-height: 76px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --page: #080c14;
  --surface: #0f172a;
  --surface-2: #0b1120;
  --surface-3: #1e293b;
  --sidebar: #0b1120;
  --ink: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --line: #1e293b;
  --primary: #3b82f6;
  --primary-strong: #60a5fa;
  --primary-soft: #172554;
  --on-primary: #ffffff;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
  background: var(--page);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-ar);
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html[lang="en"] body {
  font-family: var(--font-en);
  line-height: 1.65;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid #186ade;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  inset-block-start: 1rem;
  inset-inline-start: 1rem;
  z-index: 50;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--surface);
  padding: .65rem 1rem;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  transform: none;
}

.btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  padding: .72rem 1.05rem;
  font-weight: 800;
  line-height: 1.1;
  transition:
    transform .2s var(--ease-out),
    background-color .2s var(--ease-out),
    border-color .2s var(--ease-out),
    color .2s var(--ease-out),
    box-shadow .2s var(--ease-out);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-strong);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: #cbd5e1;
}

.btn-secondary:hover {
  border-color: var(--ink);
  background: var(--surface-2);
}

.btn-large {
  min-height: 52px;
  padding: .95rem 1.35rem;
  font-size: 1rem;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 4vw, 2rem);
}

.section-inner {
  max-width: var(--max);
  margin-inline: auto;
}

.section-kicker {
  margin: 0 0 .65rem;
  color: var(--primary-strong);
  font-weight: 900;
}

.section h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.section-heading {
  margin-block-end: clamp(2rem, 5vw, 4rem);
}

.text-link {
  color: var(--muted);
  font-weight: 800;
}

.text-link:hover {
  color: var(--primary-strong);
}

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