/* ══════════════════════════════════════════════════════════════
   Menuza Landing — Dark Luxury RTL
   Saudi Restaurant SaaS · Tajawal · Deep Green on Near-Black
   ══════════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  --green:        #10b981;
  --green-light:  #34d399;
  --green-dim:    rgba(16,185,129,.13);
  --green-glow:   rgba(16,185,129,.07);
  --green-border: rgba(16,185,129,.22);

  --bg:           #060d0a;
  --bg-2:         #07100d;
  --bg-card:      rgba(255,255,255,.028);
  --bg-card-h:    rgba(255,255,255,.052);

  --text:         #e4f5ec;
  --muted:        rgba(210,240,224,.82);
  --muted-2:      rgba(170,210,190,.55);

  --border:       rgba(255,255,255,.055);
  --border-2:     rgba(255,255,255,.035);

  --r:            14px;
  --r-lg:         20px;
  --r-xl:         28px;

  --nav-h:        70px;
  --section-py:   100px;
}

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Tajawal', sans-serif;
  -webkit-font-smoothing: antialiased;
  direction: rtl;
  line-height: 1.75;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

/* ── NOISE OVERLAY ─────────────────────────────────────────── */
/* Subtle film-grain texture — gives depth without distraction */
body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: .032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  mix-blend-mode: overlay;
}

/* ── AMBIENT GLOWS ─────────────────────────────────────────── */
/* Large radial blobs — give pages depth like a backlit stage */
.ambient-glow {
  pointer-events: none;
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  will-change: opacity;
}
.glow-hero {
  top: -200px;
  right: -120px;
  width: 820px;
  height: 820px;
  background: radial-gradient(closest-side, rgba(16,185,129,.07), transparent 70%);
}
.glow-pricing {
  top: 2600px;
  left: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(closest-side, rgba(16,185,129,.055), transparent 70%);
}

/* ─────────────────────────────────────────────────────────── */
/*  NAV                                                         */
/* ─────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  padding: 0;
  background: linear-gradient(180deg, rgba(6,13,10,.7) 0%, rgba(6,13,10,.3) 100%);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  transition: background .3s;
}
.nav.scrolled {
  background: rgba(6,13,10,.88);
  box-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 16px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-mark {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(16,185,129,.22), rgba(16,185,129,.08));
  border: 1px solid var(--green-border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  color: var(--green);
  font-size: 18px;
  box-shadow: 0 4px 20px rgba(16,185,129,.12);
}
.logo-text {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .4px;
  color: var(--text);
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 10px;
  transition: background .2s, color .2s;
}
.nav-links a:hover {
  background: rgba(255,255,255,.04);
  color: var(--text);
}

/* Nav end — CTA + hamburger */
.nav-end { display: flex; align-items: center; gap: 12px; }
.nav-cta { display: flex; gap: 8px; }

/* ─────────────────────────────────────────────────────────── */
/*  BUTTONS                                                     */
/* ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
  border: none;
  cursor: pointer;
  padding: 12px 20px;
  border-radius: var(--r);
  font-size: 15px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s;
  white-space: nowrap;
}
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn-full { width: 100%; justify-content: center; }
.btn.large { padding: 17px 34px; font-size: 18px; border-radius: 16px; }

/* Primary — deep green glass pill */
.btn-primary {
  background: linear-gradient(180deg, rgba(12,44,30,.95) 0%, rgba(5,22,14,.95) 100%);
  color: var(--green);
  border: 1px solid var(--green-border);
  box-shadow: 0 6px 28px rgba(16,185,129,.10), inset 0 1px 0 rgba(255,255,255,.04);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(16,185,129,.18), inset 0 1px 0 rgba(255,255,255,.06);
}

/* Ghost — transparent with faint border */
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.04);
  color: var(--text);
}

/* Outline — for non-featured plan cards */
.btn-outline {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--green-border);
}
.btn-outline:hover {
  background: var(--green-dim);
  transform: translateY(-2px);
}

/* Play icon */
.play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--green-dim);
  color: var(--green);
  font-size: 10px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--muted);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─────────────────────────────────────────────────────────── */
/*  HERO                                                        */
/* ─────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 72px);
  padding-bottom: 90px;
  z-index: 1;
  overflow: hidden;
}
/* Bottom fade into next section */
.hero::after {
  content: "";
  pointer-events: none;
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.hero-inner {
  display: flex;
  gap: 48px;
  align-items: center;
  justify-content: space-between;
}
.hero-left { flex: 1; max-width: 600px; }

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, rgba(16,185,129,.12), rgba(16,185,129,.05));
  color: var(--green);
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid rgba(16,185,129,.16);
  margin-bottom: 22px;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: dot-pulse 2s infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--green); }
  50%       { opacity: .5; box-shadow: 0 0 14px var(--green); }
}
.pulse-badge {
  animation: badge-pulse 3s infinite;
}
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,.18); }
  50%       { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
}

/* Headline */
.headline {
  font-size: clamp(38px, 5.5vw, 58px);
  font-weight: 900;
  line-height: 1.08;
  color: #f0fff7;
  margin-bottom: 20px;
  letter-spacing: -.5px;
}
/* Highlighted word — glowing green chip */
.highlight {
  display: inline-block;
  background: linear-gradient(90deg, rgba(16,185,129,.18), rgba(16,185,129,.07));
  color: var(--green);
  padding: 4px 14px;
  border-radius: 10px;
  border: 1px solid rgba(16,185,129,.16);
  box-shadow: 0 0 30px rgba(16,185,129,.08);
}

.subtext {
  color: var(--muted-2);
  font-size: 17px;
  margin-bottom: 30px;
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Stats row */
.stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 4px 0;
  width: fit-content;
}
.stat {
  padding: 14px 24px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.stat .num {
  font-size: 24px;
  font-weight: 900;
  color: var(--green);
  line-height: 1;
}
.stat .label { font-size: 12px; color: var(--muted-2); }
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* Hero right — device mock */
.hero-right {
  flex-shrink: 0;
  width: 380px;
}
.device-mock {
  position: relative;
  background: linear-gradient(180deg, rgba(12,24,18,.9), rgba(4,10,7,.8));
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r-xl);
  padding: 0 0 20px;
  box-shadow:
    0 40px 100px rgba(0,0,0,.55),
    0 0 0 1px rgba(255,255,255,.03),
    inset 0 1px 0 rgba(255,255,255,.05);
}

/* Browser chrome bar */
.device-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-2);
}
.chrome-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  opacity: .8;
}
.chrome-url {
  flex: 1;
  background: rgba(255,255,255,.04);
  border-radius: 6px;
  font-size: 11px;
  color: var(--muted-2);
  text-align: center;
  padding: 4px 8px;
  margin: 0 6px;
  direction: ltr;
}

/* Screen content */
.device-screen { padding: 14px; }
.ds-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.ds-logo { font-weight: 800; font-size: 15px; }
.ds-tag {
  font-size: 11px;
  padding: 3px 8px;
  background: var(--green-dim);
  color: var(--green);
  border-radius: 6px;
  font-weight: 700;
}

/* Category pills */
.ds-categories {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.ds-cat {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  color: var(--muted-2);
  cursor: pointer;
  transition: background .2s;
}
.ds-cat.active {
  background: var(--green-dim);
  color: var(--green);
  font-weight: 700;
}

/* Menu items */
.ds-items { display: flex; flex-direction: column; gap: 8px; }
.ds-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: rgba(255,255,255,.03);
  border-radius: 10px;
  border: 1px solid var(--border-2);
  transition: background .2s;
}
.ds-item.featured-item {
  border-color: var(--green-border);
  background: linear-gradient(90deg, rgba(16,185,129,.06), rgba(16,185,129,.02));
}
.ds-item-name { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.ds-item-price { font-size: 12px; color: var(--muted-2); }
.ds-item-price .green { color: var(--green); font-weight: 800; }
.ds-add {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid var(--green-border);
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.ds-add:hover { background: rgba(16,185,129,.25); transform: scale(1.05); }
.ds-add.active { background: rgba(16,185,129,.25); }

/* Floating badge */
.device-badge {
  position: absolute;
  bottom: -16px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, rgba(12,30,20,.98), rgba(6,16,12,.98));
  border: 1px solid var(--green-border);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 800;
  color: var(--green);
  box-shadow: 0 10px 40px rgba(16,185,129,.15);
  animation: float-badge 3s ease-in-out infinite;
}
@keyframes float-badge {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* ─────────────────────────────────────────────────────────── */
/*  TRUST BAR                                                   */
/* ─────────────────────────────────────────────────────────── */
.trust-bar {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  background: rgba(255,255,255,.012);
}
.trust-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.trust-label {
  font-size: 13px;
  color: var(--muted-2);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}
.trust-logos {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.trust-logos span {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,.25);
  letter-spacing: .3px;
}

/* ─────────────────────────────────────────────────────────── */
/*  SECTION BASE                                                */
/* ─────────────────────────────────────────────────────────── */
.section { position: relative; padding: var(--section-py) 0; z-index: 1; }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-dim);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 900;
  color: #edf9f3;
  margin-bottom: 12px;
  line-height: 1.2;
}
.section-subtext {
  font-size: 16px;
  color: var(--muted-2);
  max-width: 560px;
  margin: 0 auto;
}

/* ─────────────────────────────────────────────────────────── */
/*  FEATURES                                                    */
/* ─────────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  position: relative;
  background: var(--bg-card);
  padding: 26px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease, background .3s ease;
  transition-delay: var(--delay, 0ms);
}
.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(16,185,129,.18);
  background: var(--bg-card-h);
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
}
/* Glow that appears on hover — colored from icon color */
.feat-glow {
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--icon-color, var(--green)), transparent);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
  filter: blur(12px);
}
.feature-card:hover .feat-glow { opacity: .07; }

.feat-icon-wrap {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  position: relative;
  z-index: 1;
}
.feature-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.muted-2 { color: var(--muted-2); font-size: 14px; line-height: 1.65; }
.feature-card .muted-2 { position: relative; z-index: 1; }

/* ─────────────────────────────────────────────────────────── */
/*  HOW IT WORKS                                               */
/* ─────────────────────────────────────────────────────────── */
.how { background: var(--bg-2); }

.steps-wrap { position: relative; }
.steps-line {
  position: absolute;
  top: 22px;
  right: calc(50% / 3 + 22px);
  left: calc(50% / 3 + 22px);
  height: 2px;
  background: linear-gradient(90deg, var(--green-border), rgba(16,185,129,.04));
  z-index: 0;
  pointer-events: none;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}
.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  text-align: right;
  transition: transform .3s, box-shadow .3s;
  transition-delay: var(--delay, 0ms);
}
.step:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,.3);
}
.circle {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(16,185,129,.18), rgba(16,185,129,.06));
  border: 1px solid var(--green-border);
  color: var(--green);
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 18px;
  box-shadow: 0 0 24px rgba(16,185,129,.1);
}
.step-content h4 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}
.step-content .muted-2 { font-size: 14px; }

/* ─────────────────────────────────────────────────────────── */
/*  PRICING                                                     */
/* ─────────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 60px;
}

.plan-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.plan-card:hover { transform: translateY(-4px); }

/* Featured plan — glowing green border + elevated */
.plan-card.featured {
  border-color: var(--green-border);
  background: linear-gradient(180deg, rgba(16,185,129,.05), rgba(255,255,255,.02));
  transform: scale(1.04);
  box-shadow: 0 40px 100px rgba(16,185,129,.1), 0 0 0 1px var(--green-border);
}
.plan-card.featured:hover {
  transform: scale(1.04) translateY(-4px);
}

/* Green radial behind featured card */
.featured-glow {
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(16,185,129,.1), transparent);
  pointer-events: none;
}

/* Ribbon badge */
.ribbon {
  position: absolute;
  top: 16px; left: 16px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #022d1a;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 10px;
  border-radius: 8px;
  letter-spacing: .3px;
}

.plan-header { margin-bottom: 20px; }
.plan-name {
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 6px;
}
.plan-desc { font-size: 13px; }

.plan-price {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-2);
}
.price-amount {
  font-size: 44px;
  font-weight: 900;
  color: var(--green);
  line-height: 1;
}
.price-meta {
  display: flex;
  flex-direction: column;
  padding-bottom: 4px;
}
.price-currency { font-size: 16px; font-weight: 700; color: var(--green); }
.price-period { font-size: 12px; color: var(--muted-2); }

.plan-features {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan-features li {
  font-size: 14px;
  color: var(--muted);
  padding-right: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.plan-features li.dim { color: var(--muted-2); opacity: .5; }

/* Comparison table */
.pricing-compare {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  overflow: hidden;
}
.compare-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 20px;
}
.table-wrap { overflow-x: auto; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}
.compare-table thead th {
  padding: 12px 16px;
  text-align: right;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.015);
}
.compare-table td {
  padding: 12px 16px;
  text-align: right;
  font-size: 14px;
  color: var(--muted-2);
  border-bottom: 1px solid var(--border-2);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td:first-child { color: var(--muted); }
.featured-col {
  color: var(--green) !important;
  font-weight: 700;
  background: rgba(16,185,129,.03);
}

/* ─────────────────────────────────────────────────────────── */
/*  CTA SECTION                                                 */
/* ─────────────────────────────────────────────────────────── */
.cta-section {
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(16,185,129,.09), transparent);
  pointer-events: none;
}
.cta-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}
.cta-title {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 900;
  color: #f0fff7;
  line-height: 1.15;
  margin: 16px 0 14px;
}
.cta-sub { margin-bottom: 32px; font-size: 16px; }
.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.cta-guarantee {
  font-size: 13px;
  color: var(--muted-2);
}

/* ─────────────────────────────────────────────────────────── */
/*  FOOTER                                                      */
/* ─────────────────────────────────────────────────────────── */
.site-footer {
  padding: 56px 0 0;
  border-top: 1px solid var(--border);
  color: var(--muted-2);
}
.footer-inner {
  display: flex;
  gap: 48px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}
.footer-brand { max-width: 280px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-tagline { font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted-2);
  transition: background .2s, color .2s;
}
.footer-social a:hover {
  background: var(--green-dim);
  color: var(--green);
  border-color: var(--green-border);
}

.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-links .col h5 {
  font-size: 14px;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 14px;
}
.footer-links .col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-links .col a {
  font-size: 14px;
  color: var(--muted-2);
  transition: color .2s;
}
.footer-links .col a:hover { color: var(--green); }

.copyright {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 28px;
  margin-top: 40px;
  border-top: 1px solid var(--border-2);
  font-size: 13px;
  max-width: 1160px;
  margin-right: auto;
  margin-left: auto;
}

/* ─────────────────────────────────────────────────────────── */
/*  SCROLL REVEAL                                               */
/* ─────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity .7s ease,
    transform .7s ease;
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ─────────────────────────────────────────────────────────── */
/*  RESPONSIVE                                                  */
/* ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --section-py: 70px; }

  .hero-inner { flex-direction: column-reverse; gap: 48px; }
  .hero-left { max-width: 100%; }
  .hero-right { width: 100%; display: flex; justify-content: center; }
  .device-mock { width: 100%; max-width: 380px; }

  .steps { grid-template-columns: 1fr; }
  .steps-line { display: none; }

  .pricing-grid { grid-template-columns: 1fr; }
  .plan-card.featured { transform: scale(1); }
  .plan-card.featured:hover { transform: translateY(-4px); }

  .footer-inner { flex-direction: column; }
  .footer-links { gap: 32px; }
}

@media (max-width: 700px) {
  .features-grid { grid-template-columns: 1fr; }

  .nav-links { display: none; flex-direction: column; gap: 4px; }
  .nav-links.open {
    display: flex;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(6,13,10,.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 20px;
    z-index: 800;
    animation: nav-drop .2s ease;
  }
  @keyframes nav-drop {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: none; }
  }
  .nav-links.open a { font-size: 16px; padding: 12px 16px; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }

  .stats { flex-wrap: wrap; width: 100%; }
  .stat-divider { display: none; }
  .stat { flex: 1; min-width: 120px; }

  .trust-inner { flex-direction: column; align-items: flex-start; gap: 12px; }

  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { text-align: center; justify-content: center; }

  .copyright { flex-direction: column; text-align: center; }
  .footer-links { flex-direction: column; }
}

/* ══════════════════════════════════════════════════════════════
   SUBSCRIPTION MODAL
   ══════════════════════════════════════════════════════════════ */

.sub-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(3,8,6,.84);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.sub-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.sub-modal {
  position: relative;
  background: linear-gradient(160deg, rgba(10,28,20,.99) 0%, rgba(6,14,10,.99) 100%);
  border: 1px solid var(--green-border);
  border-radius: var(--r-xl);
  padding: 40px 44px;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(16,185,129,.06) inset;
  transform: translateY(24px) scale(.97);
  transition: transform .3s cubic-bezier(.22,.68,0,1.18);
  scrollbar-width: thin;
  scrollbar-color: var(--green-border) transparent;
}
.sub-overlay.open .sub-modal {
  transform: none;
}

.sub-close {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  color: var(--muted);
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
  z-index: 2;
}
.sub-close:hover { background: rgba(255,255,255,.1); color: var(--text); }

.sub-plan-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-dim);
  border: 1px solid var(--green-border);
  color: var(--green);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 22px;
}
.sub-plan-icon { font-size: 16px; }
.sub-plan-price {
  color: var(--green-light);
  font-size: 13px;
  opacity: .85;
}

.sub-steps {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
}
.sub-step {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: .38;
  transition: opacity .25s;
}
.sub-step.active { opacity: 1; }
.sub-step.done   { opacity: .7; }
.sub-step span {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(16,185,129,.1);
  border: 1px solid var(--green-border);
  color: var(--green);
  font-weight: 800;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.sub-step.active span {
  background: var(--green);
  color: #060d0a;
  border-color: var(--green);
  box-shadow: 0 0 14px rgba(16,185,129,.4);
}
.sub-step.done span {
  background: rgba(16,185,129,.18);
}
.sub-step p {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.sub-step.active p { color: var(--text); }
.sub-step-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  margin: 0 12px;
}

.sub-form { animation: sub-fade-up .22s ease; }
@keyframes sub-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.sub-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text);
}
.sub-sub { font-size: 14px; margin-bottom: 24px; line-height: 1.6; }

.sub-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.sub-field { display: flex; flex-direction: column; gap: 6px; }
.sub-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .2px;
}
.sub-field input {
  background: rgba(255,255,255,.035);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: 'Tajawal', sans-serif;
  font-size: 15px;
  padding: 11px 14px;
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
  width: 100%;
  direction: rtl;
}
.sub-field input:focus {
  border-color: var(--green-border);
  background: rgba(16,185,129,.04);
  box-shadow: 0 0 0 3px rgba(16,185,129,.08);
}
.sub-field input::placeholder { color: rgba(170,210,190,.32); }
.sub-field input.invalid { border-color: rgba(244,63,94,.6); box-shadow: 0 0 0 3px rgba(244,63,94,.08); }

.sub-error {
  background: rgba(244,63,94,.08);
  border: 1px solid rgba(244,63,94,.22);
  color: #fda4af;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 14px;
  line-height: 1.65;
}

.sub-next-btn {
  margin-top: 8px;
  width: 100%;
  justify-content: center;
  font-size: 16px;
  padding: 15px 24px;
}

.sub-pay-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
}
.sub-pay-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 10px;
  background: rgba(255,255,255,.028);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  color: var(--muted);
  font-family: 'Tajawal', sans-serif;
  font-weight: 600;
  font-size: 13px;
  transition: border-color .2s, background .2s, color .2s;
}
.sub-pay-tab:hover {
  background: rgba(255,255,255,.05);
  color: var(--text);
}
.sub-pay-tab.active {
  border-color: var(--green-border);
  background: var(--green-dim);
  color: var(--green);
}
.pay-tab-icon { font-size: 22px; }
.pay-tab-badge { font-size: 11px; color: var(--muted-2); font-weight: 500; }

.sub-pay-panel { animation: sub-fade-up .2s ease; }

.sub-stripe-info {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(255,255,255,.022);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.stripe-lock-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.sub-stripe-info p { font-size: 13px; color: var(--muted); line-height: 1.7; }

.stripe-logos {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.stripe-logos span {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .5px;
}

.sub-back-btn {
  display: block;
  background: none;
  border: none;
  color: var(--muted-2);
  font-family: 'Tajawal', sans-serif;
  font-size: 14px;
  cursor: pointer;
  margin-top: 16px;
  padding: 4px 0;
  transition: color .2s;
  text-align: right;
  width: 100%;
}
.sub-back-btn:hover { color: var(--green); }

.sub-spinner {
  display: inline-block;
  animation: sub-spin .75s linear infinite;
  font-size: 16px;
  margin-right: 4px;
}
@keyframes sub-spin { to { transform: rotate(360deg); } }

.sub-success-anim {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--green-dim);
  border: 2px solid var(--green-border);
  color: var(--green);
  font-size: 30px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 40px rgba(16,185,129,.22);
}

.moyasar-form-wrap { margin-bottom: 14px; }

/* ── Modal responsive ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .sub-modal { padding: 28px 18px; }
  .sub-row { grid-template-columns: 1fr; }
  .sub-pay-tabs { flex-direction: column; }
}

/* ── Flash messages ───────────────────────────────────────────── */
.landing-flash {
  position: relative;
  z-index: 90;
  padding: 14px 0;
  font-size: 0.95rem;
  text-align: center;
}
.landing-flash--success { background: rgba(16,185,129,.15); color: #a7f3d0; }
.landing-flash--error   { background: rgba(239,68,68,.15); color: #fecaca; }
.landing-flash--info    { background: rgba(59,130,246,.15); color: #bfdbfe; }
