:root {
  --bg: #f7f4ef;
  --surface: #fff;
  --text: #1c1917;
  --muted: #57534e;
  --border: #e7e5e4;
  --accent: #2e7d32;
  --accent-hover: #1b5e20;
  --header: #fff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --surface: #1c1917;
    --text: #f5f5f4;
    --muted: #a8a29e;
    --border: #3f3f46;
    --accent: #86efac;
    --accent-hover: #bbf7d0;
    --header: #1c1917;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
.site-header, .site-footer {
  background: var(--header);
  border-bottom: 1px solid var(--border);
}
.site-footer { border-bottom: 0; border-top: 1px solid var(--border); margin-top: 3rem; }
.site-header .inner,
.site-footer .inner,
.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
}
.site-header .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.95rem;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}
.hero {
  padding: 2.5rem 0 1.5rem;
}
.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.25;
  margin: 0 0 0.75rem;
}
.hero .lede {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 1.25rem;
}
.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
}
.cta:hover { color: #fff; background: var(--accent-hover); }
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2.5rem;
  padding: 0;
  list-style: none;
}
.features li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}
.features h2 {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}
.features p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 1rem 0 2rem;
}
.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.gallery figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.4rem;
}
.legal {
  max-width: 720px;
  margin: 1.5rem auto 2rem;
  background: var(--surface);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.legal h1 { font-size: 1.5rem; margin: 0 0 0.25rem; }
.legal .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.15rem; margin: 1.75rem 0 0.5rem; }
.legal p { margin: 0 0 0.75rem; white-space: pre-line; }
.legal p:last-child { margin-bottom: 0; }
.legal ul { margin: 0 0 0.75rem; padding-inline-start: 1.5rem; }
.site-footer .inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer a { color: var(--muted); }
.muted-note { color: var(--muted); font-size: 0.95rem; }
