  :root {
    --navy: #0f1e3c;
    --navy-light: #1a3260;
    --teal: #1a6b72;
    --teal-light: #2a9aa4;
    --gold: #c9a84c;
    --gold-light: #e8c96b;
    --ivory: #f8f4ed;
    --ivory-dark: #ede7da;
    --red: #c0392b;
    --white: #ffffff;
    --text-dark: #1a1a2e;
    --text-mid: #3d4a6b;
    --text-light: #8090b0;
    --font-latin: 'Playfair Display', 'Cormorant Garamond', serif;
    --font-arabic: 'Tajawal', 'Playfair Display', sans-serif;
    --font-display: var(--font-latin);
    --font-body: var(--font-latin);
  }

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

  html { scroll-behavior: smooth; }

  body {
    font-family: var(--font-body);
    background: var(--ivory);
    color: var(--text-dark);
    overflow-x: hidden;
  }

  html:lang(ar),
  body:lang(ar),
  [lang|="ar"] {
    font-family: var(--font-arabic);
  }

  html:lang(ar),
  [lang|="ar"] {
    --font-display: var(--font-arabic);
    --font-body: var(--font-arabic);
  }

  /* ───────── LANGUAGE SWITCHER ───────── */
  #lang-bar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: var(--navy);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 2rem;
    height: 48px;
    border-bottom: 2px solid var(--gold);
  }
  #lang-bar .brand-small {
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 2px;
  }
  .lang-buttons { display: flex; gap: 6px; }
  .lang-btn {
    background: transparent;
    border: 1px solid rgba(201,168,76,0.3);
    color: rgba(255,255,255,0.6);
    padding: 4px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 1px;
    transition: all 0.3s;
  }
  .lang-btn:hover, .lang-btn.active {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
    font-weight: 700;
  }

  /* ───────── NAVIGATION ───────── */
  #navbar {
    position: fixed; top: 48px; left: 0; right: 0; z-index: 999;
    background: rgba(15,30,60,0.97);
    backdrop-filter: blur(12px);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 2.5rem;
    height: 60px;
    border-bottom: 1px solid rgba(201,168,76,0.2);
    transition: all 0.3s;
  }
  .nav-logo {
    color: white; font-family: var(--font-display); font-size: 1.3rem;
    font-weight: 700; letter-spacing: 1px;
  }
  .nav-logo span { color: var(--gold); }
  .nav-links { display: flex; gap: 1.8rem; list-style: none; }
  .nav-links a {
    color: rgba(255,255,255,0.75); text-decoration: none;
    font-size: 0.8rem; letter-spacing: 1.5px; text-transform: uppercase;
    transition: color 0.3s;
    font-weight: 500;
  }
  .nav-links a:hover { color: var(--gold); }
  .nav-cta {
    background: var(--gold); color: var(--navy);
    border: none; padding: 8px 20px; border-radius: 4px;
    font-family: var(--font-body); font-size: 0.78rem;
    font-weight: 700; letter-spacing: 1px; cursor: pointer;
    text-transform: uppercase; transition: all 0.3s;
    text-decoration: none;
  }
  .nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); }
  .nav-detail { background: transparent; border: 1.5px solid var(--gold); color: var(--gold); margin-right: 8px; }
  .nav-detail:hover { background: var(--gold); color: var(--navy); }
  [dir="rtl"] .nav-detail { margin-right: 0; margin-left: 8px; }

  /* ───────── HERO ───────── */
  #hero {
    min-height: 100vh;
    min-height: 100svh;
    background: linear-gradient(135deg, #0a1628 0%, #0f1e3c 40%, #0d2d35 70%, #0a1e26 100%);
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    padding-top: 108px;
  }
  /* Moroccan geometric pattern overlay */
  #hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
      repeating-linear-gradient(60deg, rgba(201,168,76,0.04) 0, rgba(201,168,76,0.04) 1px, transparent 0, transparent 50%),
      repeating-linear-gradient(120deg, rgba(201,168,76,0.04) 0, rgba(201,168,76,0.04) 1px, transparent 0, transparent 50%),
      repeating-linear-gradient(0deg, rgba(201,168,76,0.03) 0, rgba(201,168,76,0.03) 1px, transparent 0, transparent 50%);
    background-size: 60px 60px;
  }
  #hero::after {
    content: '';
    position: absolute;
    top: -50%; left: -20%; width: 80%; height: 200%;
    background: radial-gradient(ellipse, rgba(26,107,114,0.18) 0%, transparent 70%);
    pointer-events: none;
  }
  .hero-inner {
    position: relative; z-index: 2;
    text-align: center; max-width: 860px; padding: 2rem;
  }
  .hero-eyebrow {
    display: inline-block;
    color: var(--gold); font-size: 0.75rem; letter-spacing: 4px;
    text-transform: uppercase; font-weight: 700;
    border: 1px solid rgba(201,168,76,0.35);
    padding: 6px 18px; border-radius: 30px;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease both;
  }
  .hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    color: white; line-height: 1.08; font-weight: 900;
    margin-bottom: 1rem;
    animation: fadeInUp 0.9s 0.15s ease both;
  }
  .hero-title em { color: var(--gold); font-style: italic; }
  [dir="rtl"] .hero-title { font-family: var(--font-arabic); }
  .hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    color: rgba(255,255,255,0.6); margin-bottom: 0.5rem;
    font-weight: 300; letter-spacing: 1px;
    animation: fadeInUp 1s 0.3s ease both;
  }
  .hero-tagline {
    font-family: var(--font-display); font-style: italic;
    color: var(--gold); font-size: 1.25rem;
    margin-bottom: 3rem;
    animation: fadeInUp 1s 0.4s ease both;
  }
  .hero-stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem; margin-bottom: 3rem;
    animation: fadeInUp 1s 0.5s ease both;
  }
  .hero-stat {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(201,168,76,0.2);
    border-radius: 12px; padding: 1.5rem 1rem;
    backdrop-filter: blur(8px);
    transition: all 0.3s;
  }
  .hero-stat:hover { border-color: var(--gold); background: rgba(201,168,76,0.08); }
  .stat-icon { font-size: 1.6rem; margin-bottom: 0.4rem; }
  .stat-text { color: rgba(255,255,255,0.75); font-size: 0.85rem; line-height: 1.4; }
  .stat-text strong { color: var(--gold-light); font-size: 1rem; display: block; }
  .hero-actions {
    display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
    animation: fadeInUp 1s 0.6s ease both;
  }
  .btn-primary {
    background: var(--gold); color: var(--navy);
    padding: 16px 38px; border-radius: 6px;
    font-weight: 700; font-size: 0.9rem; letter-spacing: 1.5px;
    text-transform: uppercase; cursor: pointer; border: none;
    transition: all 0.3s; text-decoration: none; display: inline-block;
  }
  .btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(201,168,76,0.35); }
  .btn-secondary {
    background: transparent; color: white;
    padding: 16px 38px; border-radius: 6px;
    font-weight: 600; font-size: 0.9rem; letter-spacing: 1.5px;
    text-transform: uppercase; cursor: pointer;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s; text-decoration: none; display: inline-block;
  }
  .btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

  /* ───────── SECTION STRUCTURE ───────── */
  section { padding: 100px 0; }
  section[id] { scroll-margin-top: 108px; }
  .container { max-width: 1150px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
  .section-header { text-align: center; margin-bottom: 5rem; }
  .section-kicker {
    color: var(--gold); font-size: 0.72rem; letter-spacing: 4px;
    text-transform: uppercase; font-weight: 700; margin-bottom: 1rem;
    display: block;
  }
  .section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--navy); font-weight: 900; line-height: 1.15;
    margin-bottom: 1.2rem;
  }
  .section-desc {
    font-size: 1.05rem; color: var(--text-mid);
    max-width: 620px; margin: 0 auto; line-height: 1.75;
  }
  .gold-line {
    width: 60px; height: 3px; background: var(--gold);
    margin: 1.5rem auto 0; border-radius: 2px;
  }

  /* ───────── PROBLEM SECTION ───────── */
  #problems { background: white; }
  .problems-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
  .problem-card {
    border: 1px solid var(--ivory-dark);
    border-radius: 16px; padding: 2rem;
    background: var(--ivory);
    position: relative; overflow: hidden;
    transition: all 0.4s;
  }
  .problem-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--red), #e74c3c);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.4s;
  }
  .problem-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
  .problem-card:hover::before { transform: scaleX(1); }
  .problem-icon { font-size: 2rem; margin-bottom: 1rem; }
  .problem-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: 0.75rem; }
  .problem-text { color: var(--text-mid); font-size: 0.9rem; line-height: 1.7; }

  /* ───────── BENEFITS ───────── */
  #solution { background: var(--ivory); }
  .benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
  .benefit-item {
    display: flex; align-items: flex-start; gap: 1rem;
    background: white; border-radius: 12px; padding: 1.5rem;
    border: 1px solid var(--ivory-dark);
    transition: all 0.3s;
  }
  .benefit-item:hover { border-color: var(--teal-light); box-shadow: 0 8px 25px rgba(26,107,114,0.1); }
  .check-icon { color: var(--teal); font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
  .benefit-text { font-size: 0.88rem; color: var(--text-mid); line-height: 1.5; }
  .benefit-text strong { color: var(--navy); display: block; margin-bottom: 2px; font-size: 0.92rem; }
  .unique-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 3rem; }
  @media(max-width:640px){ .unique-grid { grid-template-columns: 1fr; } }
  .unique-card {
    background: white; border-radius: 16px; padding: 2rem;
    border: 1px solid var(--ivory-dark); text-align: center;
    transition: all 0.3s;
  }
  .unique-card:hover { border-color: var(--gold); box-shadow: 0 12px 35px rgba(201,168,76,0.1); }
  .unique-card .u-icon { font-size: 2.2rem; margin-bottom: 1rem; }
  .unique-card h4 { font-family: var(--font-display); font-size: 1.1rem; color: var(--navy); margin-bottom: 0.5rem; }
  .unique-card p { font-size: 0.88rem; color: var(--text-mid); line-height: 1.6; }

  /* ───────── MODULES ───────── */
  #modules { background: white; }
  .modules-nav { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; margin-bottom: 3rem; }
  .mod-tab {
    background: var(--ivory); border: 1px solid var(--ivory-dark);
    padding: 10px 22px; border-radius: 40px; cursor: pointer;
    font-size: 0.82rem; font-weight: 600; letter-spacing: 0.5px;
    color: var(--text-mid); transition: all 0.3s; font-family: var(--font-body);
  }
  .mod-tab.active, .mod-tab:hover { background: var(--navy); color: white; border-color: var(--navy); }
  .module-panel { display: none; }
  .module-panel.active { display: block; animation: fadeInUp 0.5s ease; }
  .module-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
  @media(max-width:768px){ .module-layout { grid-template-columns: 1fr; } }
  .module-info h3 {
    font-family: var(--font-display); font-size: 2rem; color: var(--navy);
    margin-bottom: 0.5rem;
  }
  .module-lead { color: var(--text-mid); font-size: 0.95rem; margin-bottom: 1.5rem; line-height: 1.6; }
  .module-features { list-style: none; }
  .module-features li {
    padding: 0.7rem 0; border-bottom: 1px solid var(--ivory-dark);
    color: var(--text-mid); font-size: 0.9rem;
    display: flex; gap: 0.75rem; align-items: flex-start;
    line-height: 1.4;
  }
  .module-features li::before { content: '◆'; color: var(--teal-light); font-size: 0.5rem; margin-top: 0.4rem; flex-shrink: 0; }
  .module-result {
    background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%);
    color: white; border-radius: 12px; padding: 1.25rem 1.5rem;
    margin-top: 1.5rem; font-size: 0.9rem; line-height: 1.5;
  }
  .module-result strong { color: var(--gold-light); display: block; font-size: 1rem; margin-bottom: 0.2rem; }
  .module-visual {
    background: linear-gradient(160deg, var(--navy) 0%, #1a3260 50%, var(--teal) 100%);
    border-radius: 20px; padding: 2.5rem; position: relative; overflow: hidden;
  }
  .module-visual::before {
    content: '';
    position: absolute; inset: 0;
    background-image: repeating-linear-gradient(45deg, rgba(201,168,76,0.06) 0, rgba(201,168,76,0.06) 1px, transparent 0, transparent 40px);
  }
  .module-visual-icon {
    font-size: 4rem; margin-bottom: 1.5rem; position: relative; z-index: 1;
  }
  .module-visual h4 { color: var(--gold); font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 1rem; position: relative; z-index: 1; }
  .module-subs { position: relative; z-index: 1; }
  .module-sub {
    background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: 1rem;
  }
  .module-sub h5 { color: var(--gold-light); font-size: 0.82rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 0.4rem; }
  .module-sub p { color: rgba(255,255,255,0.65); font-size: 0.8rem; line-height: 1.5; }

  /* ───────── USERS ───────── */
  #users { background: var(--ivory); }
  .users-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
  .user-card {
    background: white; border-radius: 20px; overflow: hidden;
    border: 1px solid var(--ivory-dark);
    transition: all 0.4s;
  }
  .user-card:hover { transform: translateY(-6px); box-shadow: 0 25px 60px rgba(0,0,0,0.12); }
  .user-card-header { padding: 2rem; background: var(--navy); position: relative; overflow: hidden; }
  .user-card-header::before {
    content: '';
    position: absolute; bottom: -30px; right: -30px;
    width: 100px; height: 100px;
    background: rgba(201,168,76,0.15); border-radius: 50%;
  }
  .user-card-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
  .user-card-header h3 { color: white; font-family: var(--font-display); font-size: 1.4rem; }
  .user-card-header p { color: rgba(255,255,255,0.55); font-size: 0.82rem; margin-top: 0.4rem; }
  .user-card-body { padding: 1.5rem 2rem; }
  .user-feature {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.6rem 0; border-bottom: 1px solid var(--ivory-dark);
    font-size: 0.88rem; color: var(--text-mid);
  }
  .user-feature:last-child { border-bottom: none; }
  .user-feature::before { content: '✓'; color: var(--teal); font-weight: 700; flex-shrink: 0; }

  /* ───────── ROI TABLE ───────── */
  #roi { background: var(--navy); position: relative; overflow: hidden; }
  #roi::before {
    content: '';
    position: absolute; inset: 0;
    background-image: repeating-linear-gradient(30deg, rgba(201,168,76,0.04) 0, rgba(201,168,76,0.04) 1px, transparent 0, transparent 80px);
  }
  #roi .section-title { color: white; }
  #roi .section-desc { color: rgba(255,255,255,0.6); }
  #roi .section-kicker { color: var(--gold); }
  .roi-highlight {
    text-align: center; margin-bottom: 3rem;
    position: relative; z-index: 1;
  }
  .roi-badge {
    display: inline-block;
    background: var(--gold); color: var(--navy);
    font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
    padding: 16px 40px; border-radius: 8px;
    margin-bottom: 0.5rem;
  }
  .roi-sub { color: rgba(255,255,255,0.5); font-size: 0.85rem; }
  .roi-table-wrap { position: relative; z-index: 1; overflow-x: auto; }
  .roi-table { width: 100%; border-collapse: collapse; }
  .roi-table th {
    background: rgba(201,168,76,0.15); color: var(--gold);
    padding: 1rem 1.5rem; text-align: left; font-size: 0.82rem;
    letter-spacing: 1.5px; text-transform: uppercase;
    border-bottom: 2px solid rgba(201,168,76,0.25);
  }
  .roi-table td {
    padding: 1rem 1.5rem; color: rgba(255,255,255,0.75); font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .roi-table tr:hover td { background: rgba(255,255,255,0.04); }
  .roi-table .after-col { color: #5effa0; font-weight: 700; }
  .roi-table .before-col { color: rgba(255,100,100,0.85); }
  .roi-table tr.total-row td { background: rgba(201,168,76,0.12); border-top: 2px solid rgba(201,168,76,0.25); }
  .roi-table tr.total-row .after-col { color: var(--gold-light); font-size: 1rem; }

  /* ───────── PRICING ───────── */
  #pricing { background: white; }
  .pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  @media(max-width:768px){ .pricing-grid { grid-template-columns: 1fr; } }
  .pricing-card {
    border: 1px solid var(--ivory-dark); border-radius: 20px;
    padding: 2.5rem 2rem; text-align: center;
    transition: all 0.4s; position: relative; overflow: hidden;
    background: var(--ivory);
  }
  .pricing-card.featured {
    background: var(--navy); border-color: var(--gold);
    transform: scale(1.05);
  }
  .pricing-card.featured::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
  }
  .pricing-card:hover:not(.featured) { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,0.1); border-color: var(--teal-light); }
  .plan-badge {
    font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase;
    font-weight: 700; margin-bottom: 1rem; display: block;
  }
  .pricing-card.featured .plan-badge { color: var(--gold); }
  .pricing-card:not(.featured) .plan-badge { color: var(--teal); }
  .plan-name { font-family: var(--font-display); font-size: 2rem; font-weight: 900; margin-bottom: 0.5rem; }
  .pricing-card.featured .plan-name { color: white; }
  .plan-size { font-size: 0.85rem; color: var(--text-light); margin-bottom: 1.5rem; }
  .pricing-card.featured .plan-size { color: rgba(255,255,255,0.45); }
  .plan-price { font-family: var(--font-display); font-size: 2.8rem; font-weight: 900; margin-bottom: 0.25rem; line-height: 1; }
  .pricing-card.featured .plan-price { color: var(--gold); }
  .plan-period { font-size: 0.8rem; color: var(--text-light); margin-bottom: 0.4rem; }
  .pricing-card.featured .plan-period { color: rgba(255,255,255,0.4); }
  .plan-annual-note {
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.5px;
    color: var(--teal); margin-bottom: 1rem;
  }
  .pricing-card.featured .plan-annual-note { color: var(--gold); }
  .plan-install {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.55rem 0.75rem; margin-bottom: 1.5rem;
    background: rgba(0,0,0,0.04); border-radius: 8px;
    font-size: 0.8rem;
  }
  .pricing-card.featured .plan-install { background: rgba(255,255,255,0.07); }
  .plan-install span:first-child { color: var(--text-light); font-weight: 500; }
  .pricing-card.featured .plan-install span:first-child { color: rgba(255,255,255,0.5); }
  .plan-install-price { font-weight: 700; color: var(--teal); }
  .pricing-card.featured .plan-install-price { color: var(--gold); }
  .plan-install-price small { font-size: 0.7rem; font-weight: 500; }
  .plan-features { list-style: none; text-align: left; margin-bottom: 2rem; }
  .plan-features li {
    padding: 0.6rem 0; font-size: 0.88rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    display: flex; gap: 0.6rem; align-items: center;
  }
  .pricing-card.featured .plan-features li { border-bottom-color: rgba(255,255,255,0.08); color: rgba(255,255,255,0.75); }
  .plan-features li::before { content: '◇'; color: var(--gold); font-size: 0.6rem; flex-shrink: 0; }
  .plan-btn {
    display: block; width: 100%; padding: 14px; border-radius: 8px;
    font-weight: 700; font-size: 0.85rem; letter-spacing: 1px;
    text-transform: uppercase; cursor: pointer; border: none;
    font-family: var(--font-body); transition: all 0.3s;
  }
  .plan-btn-primary { background: var(--gold); color: var(--navy); }
  .plan-btn-primary:hover { background: var(--gold-light); }
  .plan-btn-outline { background: transparent; border: 1px solid var(--teal); color: var(--teal); }
  .plan-btn-outline:hover { background: var(--teal); color: white; }
  /* ───────── BILLING INFO ───────── */
  .billing-info {
    display: flex; align-items: stretch;
    background: linear-gradient(135deg, #0a1628 0%, #0f1e3c 100%);
    border: 1px solid rgba(201,168,76,0.3);
    border-radius: 14px; margin-bottom: 2.5rem; overflow: hidden;
  }
  .billing-step {
    flex: 1; padding: 1.4rem 1.25rem; text-align: center;
    border-right: 1px solid rgba(201,168,76,0.2);
  }
  .billing-step:last-child { border-right: none; }
  .billing-step--highlight { background: rgba(201,168,76,0.1); }
  .billing-icon { font-size: 1.4rem; margin-bottom: 0.3rem; }
  .billing-year {
    color: var(--gold); font-size: 0.68rem; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase; margin-bottom: 0.25rem;
  }
  .billing-title { color: #fff; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.25rem; }
  .billing-desc { color: rgba(255,255,255,0.65); font-size: 0.76rem; line-height: 1.4; }
  .billing-badge {
    display: inline-block; margin-top: 0.5rem;
    background: var(--gold); color: var(--navy);
    font-size: 0.8rem; font-weight: 800; letter-spacing: 1px;
    padding: 2px 10px; border-radius: 20px;
  }
  [dir="rtl"] .billing-step { border-right: none; border-left: 1px solid rgba(201,168,76,0.15); }
  [dir="rtl"] .billing-step:last-child { border-left: none; }
  @media(max-width:600px) {
    .billing-info { flex-direction: column; }
    .billing-step { border-right: none; border-bottom: 1px solid rgba(201,168,76,0.15); }
    .billing-step:last-child { border-bottom: none; }
    [dir="rtl"] .billing-step { border-left: none; border-bottom: 1px solid rgba(201,168,76,0.15); }
  }

  .trial-banner {
    background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%);
    border-radius: 16px; padding: 2.5rem; text-align: center;
    margin-bottom: 3rem; color: white;
  }
  .trial-banner h3 { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 0.5rem; }
  .trial-banner p { color: rgba(255,255,255,0.65); margin-bottom: 1.5rem; }

  /* Pricing bidi handling */
  [dir="ltr"] #pricing .pricing-grid { direction: ltr; }
  [dir="rtl"] #pricing .pricing-grid { direction: rtl; }
  [dir="ltr"] #pricing .pricing-card { direction: ltr; }
  [dir="rtl"] #pricing .pricing-card { direction: rtl; }
  [dir="ltr"] #pricing .plan-features { direction: ltr; text-align: left; }
  [dir="rtl"] #pricing .plan-features { direction: rtl; text-align: right; }
  .plan-price { direction: ltr; unicode-bidi: isolate; }
  .plan-period { unicode-bidi: isolate; }

  /* ───────── TIMELINE ───────── */
  #deployment { background: var(--ivory); }
  .timeline { position: relative; max-width: 750px; margin: 0 auto; }
  .timeline::before { content: ''; position: absolute; left: 40px; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--teal-light), var(--gold)); }
  .timeline-item { display: flex; gap: 2rem; margin-bottom: 3rem; align-items: flex-start; }
  .timeline-num {
    width: 80px; height: 80px; border-radius: 50%;
    background: white; border: 3px solid var(--gold);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; position: relative; z-index: 1;
    box-shadow: 0 4px 20px rgba(201,168,76,0.3);
  }
  .timeline-num span { font-family: var(--font-display); font-size: 1.6rem; font-weight: 900; color: var(--navy); }
  .timeline-content { background: white; border-radius: 16px; padding: 1.75rem 2rem; border: 1px solid var(--ivory-dark); flex: 1; }
  .timeline-week { font-size: 0.72rem; letter-spacing: 2px; color: var(--gold); text-transform: uppercase; font-weight: 700; margin-bottom: 0.4rem; }
  .timeline-content h4 { font-family: var(--font-display); font-size: 1.2rem; color: var(--navy); margin-bottom: 0.5rem; }
  .timeline-content p { color: var(--text-mid); font-size: 0.88rem; line-height: 1.65; }

  /* ───────── TESTIMONIALS ───────── */
  #testimonials { background: white; }
  .testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
  .testimonial-card {
    background: var(--ivory); border-radius: 16px; padding: 2rem;
    border: 1px solid var(--ivory-dark); position: relative;
    transition: all 0.3s;
  }
  .testimonial-card:hover { border-color: var(--gold); box-shadow: 0 12px 35px rgba(201,168,76,0.1); }
  .testimonial-card::before {
    content: '\201C';
    position: absolute; top: -10px; left: 1.5rem;
    font-family: var(--font-display); font-size: 5rem;
    color: var(--gold); line-height: 1; opacity: 0.4;
  }
  .testimonial-text { color: var(--text-mid); font-size: 0.9rem; line-height: 1.75; margin-bottom: 1.5rem; padding-top: 1rem; font-style: italic; }
  .testimonial-author { display: flex; align-items: center; gap: 1rem; }
  .author-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, var(--teal), var(--navy));
    display: flex; align-items: center; justify-content: center;
    color: var(--gold); font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
  }
  .author-info h5 { font-size: 0.88rem; font-weight: 700; color: var(--navy); }
  .author-info p { font-size: 0.78rem; color: var(--text-light); }

  /* ───────── SUPPORT ───────── */
  #support { background: var(--ivory); }
  .support-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
  .support-card {
    background: white; border-radius: 16px; padding: 2rem;
    border: 1px solid var(--ivory-dark); text-align: center;
    transition: all 0.3s;
  }
  .support-card:hover { border-color: var(--teal-light); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(26,107,114,0.1); }
  .support-icon { font-size: 2rem; margin-bottom: 1rem; }
  .support-card h4 { font-family: var(--font-display); font-size: 1.1rem; color: var(--navy); margin-bottom: 0.5rem; }
  .support-card p { font-size: 0.85rem; color: var(--text-mid); line-height: 1.6; }

  /* ───────── WHY US ───────── */
  #why { background: var(--navy); }
  #why .section-title { color: white; }
  #why .section-kicker { color: var(--gold); }
  .why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
  .why-item {
    border: 1px solid rgba(201,168,76,0.15); border-radius: 16px;
    padding: 2rem; background: rgba(255,255,255,0.04);
    transition: all 0.3s;
  }
  .why-item:hover { background: rgba(201,168,76,0.06); border-color: rgba(201,168,76,0.4); }
  .why-number {
    font-family: var(--font-display); font-size: 3rem; font-weight: 900;
    color: rgba(201,168,76,0.15); line-height: 1; margin-bottom: 0.5rem;
  }
  .why-item h4 { color: var(--gold-light); font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 0.75rem; }
  .why-item p { color: rgba(255,255,255,0.55); font-size: 0.87rem; line-height: 1.65; }

  /* ───────── CTA ───────── */
  #cta {
    background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%);
    position: relative; overflow: hidden;
  }
  #cta::before {
    content: '';
    position: absolute; inset: 0;
    background-image: repeating-linear-gradient(45deg, rgba(201,168,76,0.05) 0, rgba(201,168,76,0.05) 1px, transparent 0, transparent 60px);
  }
  .cta-inner { text-align: center; position: relative; z-index: 1; }
  .cta-inner h2 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); color: white; margin-bottom: 1rem; }
  .cta-inner p { color: rgba(255,255,255,0.6); font-size: 1.05rem; margin-bottom: 0.5rem; }
  .offer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; max-width: 500px; margin: 2.5rem auto; }
  @media(max-width:480px){ .offer-grid { grid-template-columns: 1fr; } }
  .offer-item {
    background: rgba(255,255,255,0.08); border: 1px solid rgba(201,168,76,0.25);
    border-radius: 10px; padding: 1rem 1.25rem; display: flex; align-items: center; gap: 0.75rem;
    color: rgba(255,255,255,0.8); font-size: 0.88rem;
  }
  .offer-item::before { content: '✓'; color: var(--gold-light); font-weight: 700; }
  .contact-info { margin-top: 3rem; display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; }
  .contact-item { color: rgba(255,255,255,0.5); font-size: 0.88rem; display: flex; align-items: center; gap: 0.5rem; }
  .contact-item span:first-child { color: var(--gold); }

  /* ───────── FOOTER ───────── */
  footer {
    background: #080f1e; padding: 2.5rem;
    text-align: center; border-top: 1px solid rgba(201,168,76,0.15);
  }
  footer .footer-brand { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold); margin-bottom: 0.5rem; }
  footer p { color: rgba(255,255,255,0.25); font-size: 0.8rem; }

  /* ───────── ANIMATIONS ───────── */
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
  .fade-in.visible { opacity: 1; transform: translateY(0); }

  /* ───────── RTL SUPPORT ───────── */

  /* Global: block text right-aligned, font optimized for Arabic */
  [dir="rtl"] { text-align: right; }
  [dir="rtl"] body { font-family: var(--font-arabic); letter-spacing: 0; }

  /* Language bar: flip brand ↔ buttons, set RTL text direction */
  [dir="rtl"] #lang-bar {
    flex-direction: row-reverse;
    direction: rtl;
  }

  /* Navbar: flip logo ↔ links ↔ CTA, set RTL text direction */
  [dir="rtl"] #navbar {
    flex-direction: row-reverse;
    direction: rtl;
  }

  /* Nav links list: reverse item order, RTL direction */
  [dir="rtl"] .nav-links {
    flex-direction: row-reverse;
    direction: rtl;
  }

  /* Nav links: Arabic has no uppercase; remove letter-spacing (Arabic is connected script) */
  [dir="rtl"] .nav-links a {
    letter-spacing: 0;
    text-transform: none;
  }

  /* Nav logo: reset decorative letter-spacing for Arabic brand rendering */
  [dir="rtl"] .nav-logo { letter-spacing: 0; }

  /* CTA button: no uppercase / no letter-spacing in Arabic */
  [dir="rtl"] .nav-cta {
    letter-spacing: 0;
    text-transform: none;
  }

  /* Hero: keep center, flip CTA buttons order */
  [dir="rtl"] .hero-inner { text-align: center; }
  [dir="rtl"] .hero-actions { flex-direction: row-reverse; }
  [dir="rtl"] .stat-text { text-align: right; }

  /* Benefits: icon on the right */
  [dir="rtl"] .benefit-item { flex-direction: row-reverse; }
  [dir="rtl"] .benefit-text { text-align: right; }

  /* Module tabs: flow right → left */
  [dir="rtl"] .modules-nav { flex-direction: row-reverse; }

  /* Module features: bullet on the right side */
  [dir="rtl"] .module-features li { flex-direction: row-reverse; }
  [dir="rtl"] .module-features li::before { margin-left: 0.75rem; margin-right: 0; }
  [dir="rtl"] .module-result { text-align: right; }

  /* Module visual sub-cards */
  [dir="rtl"] .module-sub h5,
  [dir="rtl"] .module-sub p { text-align: right; }

  /* Timeline: explicit LTR / RTL behavior */
  [dir="ltr"] #deployment .timeline { direction: ltr; }
  [dir="ltr"] #deployment .timeline::before {
    left: 40px;
    right: auto;
    background: linear-gradient(to bottom, var(--teal-light), var(--gold));
  }
  [dir="ltr"] #deployment .timeline-item { flex-direction: row; }
  [dir="ltr"] #deployment .timeline-week,
  [dir="ltr"] #deployment .timeline-content h4,
  [dir="ltr"] #deployment .timeline-content p { text-align: left; }

  [dir="rtl"] #deployment .timeline { direction: rtl; }
  [dir="rtl"] #deployment .timeline::before {
    left: auto;
    right: 40px;
    background: linear-gradient(to bottom, var(--gold), var(--teal-light));
  }
  [dir="rtl"] #deployment .timeline-item { flex-direction: row-reverse; }
  [dir="rtl"] #deployment .timeline-week,
  [dir="rtl"] #deployment .timeline-content h4,
  [dir="rtl"] #deployment .timeline-content p { text-align: right; }
  [dir="rtl"] #deployment .timeline-week {
    letter-spacing: 0;
    text-transform: none;
  }
  [dir="rtl"] #deployment .timeline-content h4,
  [dir="rtl"] #deployment .timeline-num span { font-family: var(--font-arabic); }

  /* User features: checkmark on right */
  [dir="rtl"] .user-feature { flex-direction: row-reverse; }
  [dir="rtl"] .user-card-header h3,
  [dir="rtl"] .user-card-header p { text-align: right; }

  /* ROI table: right-aligned text */
  [dir="rtl"] .roi-table th,
  [dir="rtl"] .roi-table td { text-align: right; }

  /* Pricing: feature list diamond on right */
  [dir="rtl"] .plan-features { text-align: right; }
  [dir="rtl"] .plan-features li { flex-direction: row-reverse; }

  /* Testimonials: quote mark on right, author reversed */
  [dir="rtl"] .testimonial-card::before { content: '\201D'; left: auto; right: 1.5rem; }
  [dir="rtl"] .testimonial-text { text-align: right; }
  [dir="rtl"] .testimonial-author { flex-direction: row-reverse; }
  [dir="rtl"] .author-info { text-align: right; }

  /* Support cards: text alignment */
  [dir="rtl"] .support-card h4,
  [dir="rtl"] .support-card p { text-align: right; }

  /* Why us: text right */
  [dir="rtl"] .why-item h4,
  [dir="rtl"] .why-item p { text-align: right; }
  [dir="rtl"] .why-number { text-align: right; }

  /* CTA contact info */
  [dir="rtl"] .contact-info { flex-direction: row-reverse; }
  [dir="rtl"] .contact-item { flex-direction: row-reverse; }

  /* Footer */
  [dir="rtl"] footer p { text-align: center; }

  /* ───────── SCROLLBAR ───────── */
  ::-webkit-scrollbar { width: 6px; }
  ::-webkit-scrollbar-track { background: var(--navy); }
  ::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

  @media(max-width:600px) {
    .hero-stats { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }
    #navbar .nav-cta { display: none; }
  }

  /* ───────── HAMBURGER BUTTON ───────── */
  .nav-hamburger {
    display: none;
    flex-direction: column; justify-content: center; gap: 5px;
    background: transparent; border: none; cursor: pointer; padding: 8px; flex-shrink: 0;
  }
  .nav-hamburger span { display:block; width:24px; height:2px; background:#fff; border-radius:2px; transition:transform .3s,opacity .3s; }
  .nav-hamburger.open span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
  .nav-hamburger.open span:nth-child(2) { opacity:0; }
  .nav-hamburger.open span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

  /* ───────── DRAWER BACKDROP ───────── */
  .drawer-backdrop {
    display:none; position:fixed; inset:0;
    background:rgba(0,0,0,.55); z-index:1100; backdrop-filter:blur(2px);
  }
  .drawer-backdrop.open { display:block; }

  /* ───────── MOBILE DRAWER ───────── */
  .mobile-drawer {
    position:fixed; top:0; right:-280px; width:280px; height:100%;
    background:var(--navy); border-left:2px solid var(--gold);
    z-index:1200; padding:5rem 2rem 2rem;
    display:flex; flex-direction:column; gap:0;
    transition:right .3s ease; overflow-y:auto;
  }
  .mobile-drawer.open { right:0; }
  .drawer-close {
    position:absolute; top:1rem; right:1rem;
    background:transparent; border:1px solid rgba(255,255,255,.25); color:#fff;
    font-size:1.2rem; width:36px; height:36px; border-radius:50%;
    cursor:pointer; display:flex; align-items:center; justify-content:center;
  }
  .drawer-links { list-style:none; display:flex; flex-direction:column; gap:0; margin-bottom:2rem; }
  .drawer-links li a {
    display:block; padding:1rem 0;
    border-bottom:1px solid rgba(255,255,255,.08);
    color:rgba(255,255,255,.8); text-decoration:none;
    font-size:1rem; font-weight:500; transition:color .2s;
  }
  .drawer-links li a:hover { color:var(--gold); }
  .drawer-cta { display:block; text-align:center; margin-top:1rem; }
  .drawer-cta:first-of-type { margin-top:auto; }

  /* ───────── RTL DRAWER ───────── */
  [dir="rtl"] .mobile-drawer { right:auto; left:-280px; border-left:none; border-right:2px solid var(--gold); transition:left .3s ease; }
  [dir="rtl"] .mobile-drawer.open { left:0; }
  [dir="rtl"] .drawer-close { right:auto; left:1rem; }
  [dir="rtl"] .nav-hamburger { margin-left:0; margin-right:.5rem; }
  [dir="rtl"] .drawer-links li a { text-align:right; }

  /* ───────── TABLET (601px – 768px) ───────── */
  @media (min-width:601px) and (max-width:768px) {
    #navbar { padding:0 1.5rem; }
    .nav-links { gap:1rem; }
    .nav-links a { font-size:.72rem; }
    .hero-stat { padding:1rem .75rem; }
    .mod-tab { padding:8px 14px; font-size:.78rem; }
  }

  /* ───────── SMALL PHONES (≤ 380px) ───────── */
  @media (max-width:380px) {
    #lang-bar .brand-small { display:none; }
    #lang-bar { justify-content:flex-end; }
    .hero-title { font-size:2.2rem; }
    .btn-primary, .btn-secondary { width:100%; box-sizing:border-box; }
    .hero-actions { flex-direction:column; }
    .pricing-card { padding:1.75rem 1.25rem; }
    /* Timeline: smaller circle + tighter gap */
    .timeline-num { width:60px; height:60px; }
    .timeline-num span { font-size:1.2rem; }
    .timeline-item { gap:1rem; }
    [dir="ltr"] #deployment .timeline::before { left:30px; right:auto; }
    [dir="rtl"] #deployment .timeline::before { left:auto; right:30px; }
  }
