:root {
  --emerald: #005C4B;
  --emerald-dark: #004236;
  --emerald-light: #E6F4F1;
  --emerald-glow: #34D399;
  --gold: #D4A853;
  --bg: #F7FAF9;
  --surface: #FFFFFF;
  --text: #0F172A;
  --muted: #475569;
  --border: #E2E8F0;
  --radius: 16px;
  --shadow: 0 14px 40px -12px rgba(0, 92, 75, 0.14);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', 'Cairo', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

html[dir="rtl"] body {
  font-family: 'Cairo', 'Plus Jakarta Sans', system-ui, sans-serif;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.hidden { display: none !important; }

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--emerald-dark);
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
}

.brand-logo.sm {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

.nav-links a:hover { color: var(--emerald); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 14px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
}

.lang-btn:hover { border-color: var(--emerald); color: var(--emerald); }

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 1.1rem;
  cursor: pointer;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  padding: 12px 20px 18px;
  gap: 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:active { transform: translateY(1px); }

.btn-sm { padding: 9px 16px; font-size: 0.88rem; }
.btn-lg { padding: 14px 22px; font-size: 1rem; }
.btn:not(.btn-sm):not(.btn-lg) { padding: 12px 20px; font-size: 0.95rem; }

.btn-primary {
  background: var(--emerald);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(0, 92, 75, 0.45);
}
.btn-primary:hover { background: var(--emerald-dark); }

.btn-outline {
  background: var(--surface);
  color: var(--emerald-dark);
  border-color: #CBD5E1;
}
.btn-outline:hover { border-color: var(--emerald); background: var(--emerald-light); }

.btn-dark {
  background: #0F172A;
  color: #fff;
}
.btn-dark:hover { background: #1E293B; }

.btn-ghost {
  background: transparent;
  color: var(--emerald);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--emerald-light); }

.btn-white {
  background: #fff;
  color: var(--emerald-dark);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.12); }

.version-badge {
  background: var(--emerald-light);
  color: var(--emerald-dark);
  font-size: 0.74rem;
  padding: 2px 8px;
  border-radius: 999px;
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--emerald);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  font-family: inherit;
}
.link-btn:hover { text-decoration: underline; }

/* HERO */
.hero {
  padding: 56px 0 64px;
  background: radial-gradient(circle at 85% 15%, rgba(52, 211, 153, 0.14), transparent 45%),
              radial-gradient(circle at 10% 80%, rgba(0, 92, 75, 0.08), transparent 40%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--emerald-light);
  color: var(--emerald-dark);
  font-weight: 700;
  font-size: 0.84rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-glow);
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-sub {
  margin: 0 0 28px;
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 560px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.hero-links {
  margin-bottom: 30px;
}

.trust-bar {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 22px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.trust-item strong {
  display: block;
  font-size: 1.02rem;
  color: var(--emerald-dark);
}
.trust-item span {
  font-size: 0.8rem;
  color: var(--muted);
}
.trust-sep {
  width: 1px;
  height: 28px;
  background: var(--border);
}

/* PHONE PREVIEW */
.hero-device {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.device-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  background: var(--surface);
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.tab-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}

.tab-btn.active {
  background: var(--emerald);
  color: #fff;
}

.phone-frame {
  width: 310px;
  background: #0F172A;
  border-radius: 38px;
  padding: 12px;
  box-shadow: 0 28px 60px -18px rgba(0, 66, 54, 0.42);
  border: 3px solid #1E293B;
}

.phone-notch {
  width: 96px;
  height: 16px;
  background: #0F172A;
  border-radius: 0 0 12px 12px;
  margin: 0 auto 6px;
}

.phone-screen {
  background: #F8FAFC;
  border-radius: 26px;
  min-height: 500px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.app-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--emerald-dark);
}

.app-card-green {
  background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
  color: #fff;
  border-radius: 16px;
  padding: 16px;
}

.app-card-green small {
  opacity: 0.85;
  font-size: 0.76rem;
}

.app-balance {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 4px 0 8px;
}

.app-sub-bal {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.18);
}

.app-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  text-align: center;
}

.app-act {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 9px 4px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text);
}

.app-act span { display: block; font-size: 1.1rem; margin-bottom: 2px; }

.app-list-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.app-row strong { display: block; font-size: 0.82rem; }
.app-row small { color: var(--muted); font-size: 0.72rem; }
.amt-plus { color: #15803D; font-weight: 800; }
.amt-minus { color: #B91C1C; font-weight: 800; }

.app-badge {
  display: inline-block;
  background: var(--emerald-light);
  color: var(--emerald-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}

.app-btn-mock {
  background: var(--emerald);
  color: #fff;
  text-align: center;
  padding: 11px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: auto;
}

/* SECTIONS */
.section-head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 40px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--emerald);
  margin-bottom: 8px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
}

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

/* CORRIDORS */
.corridors-section {
  padding: 56px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.corridors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.corridor-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.corridor-card .flag { font-size: 2rem; line-height: 1; }
.corridor-card h3 { margin: 0 0 2px; font-size: 1rem; font-weight: 700; }
.corridor-card p { margin: 0; font-size: 0.84rem; color: var(--muted); }

/* FEATURES */
.features-section { padding: 72px 0; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 6px 20px -10px rgba(15, 23, 42, 0.08);
}

.feat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--emerald-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  margin-bottom: 14px;
}

.feature-card h3 { margin: 0 0 8px; font-size: 1.08rem; font-weight: 700; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* DOWNLOAD */
.download-section {
  padding: 64px 0 72px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.platform-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.platform-card.featured {
  background: linear-gradient(160deg, #ECFDF5 0%, #FFFFFF 70%);
  border-color: #A7F3D0;
  box-shadow: var(--shadow);
}

.platform-badge {
  align-self: flex-start;
  background: var(--emerald);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}

.platform-badge.android {
  background: #0F172A;
}

.platform-card h3 { margin: 4px 0 0; font-size: 1.3rem; font-weight: 800; }
.platform-card p { margin: 0; color: var(--muted); flex: 1; }

.platform-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

/* SUPPORT */
.support-section { padding: 48px 0; }

.support-box {
  background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
  color: #fff;
  border-radius: 22px;
  padding: 34px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.support-box h2 { margin: 0 0 6px; font-size: 1.45rem; }
.support-box p { margin: 0; opacity: 0.9; }

.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 26px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--emerald-dark);
}

.footer-links {
  display: flex;
  gap: 20px;
  font-weight: 600;
}

.copyright { margin: 0; }

/* MODAL */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.modal-close {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 700;
}

.modal-card h3 { margin: 0 0 10px; font-size: 1.25rem; }
.modal-card ol { padding-inline-start: 20px; margin: 12px 0 20px; color: var(--muted); }
.modal-card li { margin-bottom: 8px; }

/* RESPONSIVE */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-inline: auto; }
  .cta-row, .trust-bar { justify-content: center; }
  .corridors-grid, .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .corridors-grid, .features-grid, .platform-grid { grid-template-columns: 1fr; }
  .support-box { padding: 26px 22px; }
}
