* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --green: #1b3d29;
  --green-light: #2a5c3f;
  --cream: #f5f3ee;
  --text: #1a1a1a;
  --muted: #666;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
}

body.rtl {
  font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
  direction: rtl;
}

/* LANGUAGE OVERLAY */
.lang-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 24px;
}
.lang-picker {
  background: var(--green);
  border-radius: 24px;
  padding: 48px 32px;
  text-align: center;
  width: 100%;
  max-width: 340px;
}
.lang-picker-logo {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}
.lang-picker-logo span {
  opacity: 0.55;
  font-weight: 400;
  font-size: 15px;
  margin-right: 6px;
}
.lang-picker-sub {
  color: rgba(255, 255, 255, 0.65);
  font-size: 15px;
  margin-bottom: 32px;
  line-height: 1.7;
}
.lang-choices {
  display: flex;
  gap: 12px;
}
.lang-choice-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  padding: 16px 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.lang-choice-btn:hover,
.lang-choice-btn:active { background: rgba(255, 255, 255, 0.26); }

/* NAV */
nav {
  background: var(--green);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
nav .logo {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.5px;
}
nav .logo span {
  opacity: 0.55;
  font-weight: 400;
  font-size: 13px;
  margin-right: 8px;
}
body.rtl nav .logo span { margin-right: 0; margin-left: 8px; }

.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  object-fit: cover;
  display: block;
  margin: 0 auto 20px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 14px;
  margin-left: 20px;
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
body.rtl .nav-links a { margin-left: 0; margin-right: 20px; }

.lang-toggle {
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.lang-toggle:hover,
.lang-toggle:active { background: rgba(255, 255, 255, 0.26); }

/* HERO */
.hero {
  background: var(--green);
  color: #fff;
  text-align: center;
  padding: 64px 24px 80px;
}
.hero .tagline-ar {
  font-size: 14px;
  opacity: 0.55;
  letter-spacing: 1px;
  margin-bottom: 14px;
  direction: rtl;
}
.hero h1 {
  font-size: clamp(32px, 6vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
body.rtl .hero h1 { letter-spacing: 0; }
.hero h1 span { opacity: 0.5; }
.hero p {
  font-size: 17px;
  opacity: 0.8;
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* BADGES */
.badges {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: stretch;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  border: 1px solid #333;
  color: #fff;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 13px;
  transition: opacity 0.2s;
  min-width: 170px;
  -webkit-tap-highlight-color: transparent;
}
.badge:hover { opacity: 0.82; }
.badge-icon { width: 26px; height: 26px; flex-shrink: 0; }
.badge-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}
body.rtl .badge-text { text-align: right; }
.badge-line1 { font-size: 11px; opacity: 0.75; line-height: 1.2; }

@keyframes shine {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.badge-apple {
  border: 1.5px solid transparent;
  background-clip: padding-box;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 1.5px rgba(255,255,255,0.15), 0 0 12px 2px rgba(255,255,255,0.08);
  padding: 16px 24px;
  font-size: 110%;
}
.badge-apple .badge-line1 { font-size: 12px; }
.badge-apple .badge-line2 { font-size: 20px; }
.badge-apple .badge-icon { width: 30px; height: 30px; }
.badge-apple::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.18) 50%, transparent 60%);
  background-size: 200% auto;
  animation: shine 2.8s linear infinite;
  pointer-events: none;
  border-radius: 13px;
}
.badge-line2 { font-size: 17px; font-weight: 700; line-height: 1.3; }

/* FEATURES */
.features {
  max-width: 960px;
  margin: 0 auto;
  padding: 64px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feature {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  border: 1px solid #e8e4de;
}
.feature .icon {
  font-size: 30px;
  margin-bottom: 14px;
}
.feature h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--green);
}
.feature p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

/* FOOTER */
footer {
  background: var(--green);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 36px 24px;
  font-size: 14px;
}
footer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  margin: 0 10px;
}
footer a:hover { color: #fff; }
footer .footer-links { margin-bottom: 14px; }
footer .copy { font-size: 13px; }

/* LEGAL PAGES */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.legal h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 8px;
}
.legal .updated {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 40px;
}
.legal h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--green);
  margin: 36px 0 10px;
}
.legal p, .legal li {
  font-size: 16px;
  color: #333;
  margin-bottom: 10px;
}
.legal ul {
  padding-left: 20px;
  margin-bottom: 10px;
}
.legal a { color: var(--green); }

/* MOBILE */
@media (max-width: 600px) {
  .hero { padding: 52px 20px 64px; }
  .hero h1 { font-size: 30px; letter-spacing: -0.5px; }
  .hero p { font-size: 16px; }

  .nav-links { display: none; }

  .badges { flex-direction: column; align-items: center; }
  .badge { width: 100%; max-width: 280px; justify-content: center; }

  .features { padding: 48px 16px; gap: 14px; }
  .feature { padding: 22px 18px; }

  .lang-choice-btn { padding: 18px 12px; font-size: 16px; }
}
