:root {
  --terracotta: #c0603a;
  --terracotta-dark: #8f4328;
  --terracotta-soft: #f3ddd3;
  --ink: #221812;
  --ink-muted: #6a5750;
  --paper: #fbf7f4;
  --surface: #ffffff;
  --line: #e8dcd5;
  --shadow: 0 10px 28px rgba(34, 24, 18, 0.07);
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Cairo, "Segoe UI", Tahoma, sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body:has(#lang-ar:checked) {
  direction: rtl;
}

body:has(#lang-en:checked) {
  direction: ltr;
}

body:has(#lang-ar:checked) .lang-en {
  display: none;
}

body:has(#lang-en:checked) .lang-ar {
  display: none;
}

body:has(#lang-ar:checked) label[for="lang-ar"],
body:has(#lang-en:checked) label[for="lang-en"] {
  background: var(--terracotta);
  color: #fff;
}

a {
  color: var(--terracotta-dark);
}

a:hover {
  color: var(--terracotta);
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.wordmark {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--terracotta);
  line-height: 1.05;
  font-weight: 800;
  font-size: 1.55rem;
}

.wordmark small {
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem 1rem;
}

.nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav a[aria-current="page"] {
  color: var(--terracotta);
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}

.lang-switch label {
  cursor: pointer;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.hero {
  padding: 3.5rem 0 2.5rem;
}

.hero-panel {
  background:
    radial-gradient(circle at 12% 18%, #f7e4d8 0%, transparent 42%),
    radial-gradient(circle at 88% 8%, #ead6ca 0%, transparent 38%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 2.25rem 1.4rem 2rem;
  text-align: center;
}

.badge {
  display: inline-block;
  margin-bottom: 1.1rem;
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  background: var(--terracotta-soft);
  color: var(--terracotta-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.hero h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  line-height: 1;
  color: var(--terracotta);
}

.hero .brand-en {
  margin: 0 0 1.2rem;
  color: var(--ink-muted);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tagline-ar {
  margin: 0;
  font-size: clamp(1.25rem, 3.4vw, 1.85rem);
  font-weight: 700;
}

.tagline-en {
  margin: 0.35rem 0 0;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.hero-copy {
  max-width: 38rem;
  margin: 1.25rem auto 0;
  color: var(--ink-muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.button-primary {
  background: var(--terracotta);
  color: #fff;
}

.button-primary:hover {
  background: var(--terracotta-dark);
  color: #fff;
}

.button-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

.section {
  padding: 1.25rem 0 3.25rem;
}

.section h2 {
  margin: 0 0 0.4rem;
  font-size: 1.65rem;
}

.section-lead {
  margin: 0 0 1.5rem;
  color: var(--ink-muted);
}

.features {
  display: grid;
  gap: 1rem;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.icon-well {
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  margin-bottom: 0.9rem;
  border-radius: 16px;
  background: var(--terracotta-soft);
  color: var(--terracotta-dark);
}

.icon-well svg {
  width: 1.55rem;
  height: 1.55rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
}

.feature p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.legal {
  padding: 2rem 0 3.5rem;
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.2rem 1.8rem;
}

.legal h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
}

.updated {
  margin: 0 0 1.5rem;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.legal h2 {
  margin: 1.6rem 0 0.45rem;
  font-size: 1.2rem;
}

.legal p,
.legal li {
  color: #3d2f2a;
}

.legal ul {
  padding-inline-start: 1.2rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
}

.footer-links a {
  text-decoration: none;
  font-weight: 600;
}

@media (min-width: 720px) {
  .hero-panel {
    padding: 3.4rem 3rem 3rem;
  }

  .features {
    grid-template-columns: repeat(3, 1fr);
  }

  .legal-card {
    padding: 2.2rem 2.4rem 2.6rem;
  }

  .site-footer .wrap {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
