:root {
  color-scheme: light;
  --bg: #f7faf8;
  --surface: #ffffff;
  --ink: #102015;
  --muted: #5c6b62;
  --primary: #047857;
  --primary-dark: #064e3b;
  --line: #dbe7df;
  --soft: #eaf5ef;
  --shadow: 0 24px 80px rgba(4, 120, 87, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(247, 250, 248, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 900;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
  font-weight: 700;
}

.nav a {
  color: var(--muted);
}

.language-switcher {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.language-switcher button {
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  padding: 0 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.language-switcher button.active {
  background: var(--primary);
  color: #ffffff;
}

[dir="rtl"] body {
  font-family:
    "Noto Kufi Arabic", "Noto Sans Arabic", Tahoma, Inter, ui-sans-serif,
    system-ui, sans-serif;
}

[dir="rtl"] .eyebrow {
  letter-spacing: 0;
}

[dir="rtl"] h1,
[dir="rtl"] h2 {
  letter-spacing: -0.02em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: 680px;
  padding: clamp(48px, 8vw, 112px) clamp(20px, 5vw, 72px);
}

.hero-content {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 840px;
  margin-bottom: 22px;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.hero-text {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 900;
}

.button:hover {
  text-decoration: none;
}

.button.primary {
  background: var(--primary);
  color: #ffffff;
}

.button.secondary {
  background: var(--soft);
  color: var(--primary-dark);
}

.hero-card,
.feature,
.contact-box {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 32px;
}

.card-icon {
  display: grid;
  width: 72px;
  height: 72px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 24px;
  background: var(--soft);
  color: var(--primary);
  font-size: 24px;
  font-weight: 900;
}

.hero-card p,
.feature p,
.section p,
.legal p {
  color: var(--muted);
}

.section {
  padding: clamp(44px, 7vw, 88px) clamp(20px, 5vw, 72px);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature {
  padding: 26px;
}

.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: start;
  background: var(--primary-dark);
}

.split h2,
.split p {
  color: #ffffff;
}

.split .eyebrow {
  color: #9ef5c9;
}

.contact {
  max-width: 920px;
}

.contact-box {
  margin-top: 20px;
  padding: 22px;
}

.contact-box p:last-child {
  margin-bottom: 0;
}

.legal {
  max-width: 900px;
  padding: clamp(44px, 7vw, 88px) clamp(20px, 5vw, 72px);
}

.legal h1 {
  font-size: clamp(40px, 6vw, 72px);
}

.legal section {
  margin-top: 32px;
}

.updated {
  font-weight: 700;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer p {
  margin: 0;
}

@media (max-width: 840px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .language-switcher {
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}
