:root {
  --bg: #f4f7f2;
  --surface: #ffffff;
  --text: #1a3326;
  --muted: #4a6358;
  --accent: #2e7d4f;
  --border: #d8e5dc;
  --max-width: 720px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

body[dir="rtl"] {
  font-family: "Tajawal", "Segoe UI", system-ui, sans-serif;
}

header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--accent);
  text-decoration: none;
}

.lang-switch a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.lang-switch a:hover {
  text-decoration: underline;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.updated {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

section {
  margin-bottom: 1.75rem;
}

section h2 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

section p {
  margin: 0;
  color: var(--muted);
}

a {
  color: var(--accent);
}

footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 1.25rem 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

footer a {
  color: var(--accent);
  font-weight: 600;
}

.landing {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.5rem;
}

.landing h1 {
  margin-bottom: 0.25rem;
}

.landing p {
  color: var(--muted);
  max-width: 28rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.btn.secondary {
  background: var(--surface);
  color: var(--accent);
  border: 1px solid var(--border);
}
