/* styles.css — Royah Soft site
/* --- Finalized Blue Palette (Brand) ---
Primary: #0a5ed7 (royal blue)
Primary-2: #4aa3ff (sky blue)
Accent success: #19c37d
Accent cyan: #06b6d4
Dark bg: #0b1020 / #0d1326
*/

   - Modern, elegant UI with blue accent
   - RTL/LTR support via [dir] attribute
   - Accessible focus states, reduced motion
   - Micro-animations and reveal transitions
*/


:root{
  /* ---- LIGHT THEME (WCAG-friendly) ---- */
  --bg:#FFFFFF;
  --bg-alt:#F6F8FE;      /* subtle blue-tinted surface */
  --surface:#FFFFFF;
  --card:#FFFFFF;
  --border:#E5EAF5;      /* light cool border */
  --divider:#EEF2FB;

  --text:#0A1024;        /* near-black */
  --muted:#49566E;       /* readable slate */
  --heading:#0A2A6B;     /* deep indigo for titles */

  --primary:#1840B0;     /* indigo */
  --primary-2:#1E55E5;   /* bright blue for gradients */
  --accent:#F59E0B;      /* orange accent */

  --success:#059669;     /* emerald-600 */
  --warning:#D97706;     /* amber-600 */
  --info:#0369A1;        /* sky-700 */
  --error:#B91C1C;       /* red-700 */

  --on-primary:#FFFFFF;
  --on-surface:#0A1024;
  --on-card:#0A1024;
  --link:#1E55E5;
  --link-hover:#1646C9;

  /* Radii & spacing */
  --r-lg:16px; --r-md:12px; --r-sm:10px;
  --s-1:8px; --s-2:12px; --s-3:16px; --s-4:20px; --s-5:28px;

  /* Shadows (elevations) */
  --shadow-1:0 6px 14px rgba(2,8,23,.06);
  --shadow-2:0 12px 26px rgba(2,8,23,.08);
  --shadow-3:0 18px 40px rgba(2,8,23,.12);
}


* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Inter", "Cairo", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 20% -10%, rgba(10,94,215,.25), transparent 50%),
              linear-gradient(180deg, #070b17, #0b1020 50%);
  line-height: 1.6;
}

/* Containers */
.container { width: min(1150px, 92%); margin-inline: auto; }
.section { padding: 80px 0; }
.section-alt { background: linear-gradient(180deg, #0a0f1e, #0c1426); border-block: 1px solid var(--border); }
.section-title { font-size: clamp(1.6rem, 2.2vw, 2rem); margin: 0 0 .25rem; }
.section-sub { margin: 0 0 2rem; color: var(--muted); }

/* Top bar */
.top-bar {
  background: linear-gradient(90deg, rgba(10,94,215,.35), rgba(10,94,215,.55));
  color: #fff;
  font-size: .95rem;
}
.top-bar__content { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; }
.top-bar .accent { font-weight: 700; }
.contact-pill {
  display: inline-flex; align-items: center; gap: .5rem; padding: 6px 10px;
  background: #fff2; color: #fff; border: 1px solid #fff3; border-radius: 999px; text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.contact-pill:hover { transform: translateY(-1px); background: #fff3; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px);
  background: linear-gradient(180deg, rgba(10,16,30,.8), rgba(10,16,30,.55));
  border-bottom: 1px solid var(--border);
}
.header__content { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 16px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; }
.logo {
  inline-size: 40px; block-size: 40px; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, var(--primary-2), var(--primary));
  border-radius: 12px; font-weight: 800;
  box-shadow: var(--shadow);
}
.brand-text small { color: var(--muted); display: block; margin-top: -4px; }

.nav { display: none; gap: 18px; font-weight: 600; }
.nav a { color: var(--text); text-decoration: none; opacity: .9; }
.nav a:hover, .nav a:focus { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }

.controls { display: flex; align-items: center; gap: 8px; }
select, input, textarea, button { font-family: inherit; }

/* Buttons */
.btn {
  --bg: var(--primary);
  --fg: #fff;
  padding: 10px 16px; border-radius: 999px; border: 1px solid transparent;
  background: var(--bg); color: var(--fg); cursor: pointer; text-decoration: none;
  font-weight: 700; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: 0 6px 16px rgba(10,94,215,.35);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 22px rgba(10,94,215,.35); }
.btn:active { transform: translateY(0); }
.btn.primary { --bg: linear-gradient(135deg, var(--primary), var(--primary-2)); }
.btn.outline { background: transparent; color: var(--text); border-color: #fff3; box-shadow: none; }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; }
.btn.small { padding: 6px 12px; font-size: .9rem; }

/* Hero */
.hero__content { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 30px; }
.hero__text h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 .5rem; }
.lead { color: var(--muted); font-size: 1.1rem; }
.hero__cta { display: flex; gap: 12px; margin-top: 18px; }

.hero__visual {
  position: relative; min-height: 320px; display: grid; place-items: center;
}
.orb { position: absolute; filter: blur(16px); opacity: .7; animation: float 8s ease-in-out infinite; }
.orb-1 { width: 220px; height: 220px; background: radial-gradient(circle at 35% 35%, var(--orb1-a, #60a5fa), var(--orb1-b, #1d4ed8)); top: 20px; left: 20px; border-radius: 50%; }
.orb-2 { width: 140px; height: 140px; background: radial-gradient(circle at 35% 35%, var(--orb2-a, #93c5fd), var(--orb2-b, #38bdf8)); bottom: 10px; right: 10px; border-radius: 50%; animation-delay: -2s; }
@keyframes float { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-12px) } }

.hero-card {
  position: relative; z-index: 1; width: min(420px, 100%);
  background: linear-gradient(180deg, #0f1630, #121a33); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.stat { text-align: center; }
.stat-num { font-size: 1.8rem; font-weight: 900; }
.stat-label { color: var(--muted); }

/* Grid & Cards */
.grid { display: grid; gap: 18px; }
.cards { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px;
  box-shadow: var(--shadow); min-height: 160px;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: #2b4db2; background: #101a33; }
.card-icon { width: 36px; height: 36px; color: var(--primary-2); }

.benefits { grid-template-columns: repeat(4, 1fr); }
.benefit { background: #0f1733; border: 1px dashed var(--border); border-radius: var(--radius); padding: 16px; }

/* Testimonials */
.testimonials { grid-template-columns: repeat(3, 1fr); }
.testimonial { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }

/* FAQ */
.faq details {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px;
}
.faq summary { cursor: pointer; font-weight: 700; }

/* Trial form */
.trial-form { display: grid; gap: 12px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.trial-form .row { display: grid; gap: 6px; }
.trial-form input, .trial-form select, .trial-form textarea {
  background: #0b1433; color: var(--text); border: 1px solid #23315b; border-radius: 12px; padding: 10px 12px; outline: none;
}
.trial-form input:focus, .trial-form select:focus, .trial-form textarea:focus { border-color: var(--primary-2); box-shadow: 0 0 0 4px rgba(74,163,255,.15); }
.trial-form .muted { color: var(--muted); }

/* Contact */
.contact-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.contact-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 24px 0; background: #0a0f20; color: #cfe1ff; }
.footer__content { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; }
.footer-links, .social { display: flex; gap: 12px; }
.footer-links a, .social a { color: inherit; text-decoration: none; opacity: .9; }
.footer-links a:hover, .social a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }

/* Social icons styling */
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.social a svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Logo carousel */
.logo-carousel { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.logo-track { display: flex; gap: 28px; padding: 18px; animation: scroll 18s linear infinite; }
.logo { width: 84px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: #0a1430; border: 1px solid #1a2444; font-weight: 900; color: #7fb2ff; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Floating WhatsApp */
.float-wa {
  position: fixed; inset-inline-end: 18px; inset-block-end: 18px; z-index: 60;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #34d058, #128c7e); color: #fff; border: none; box-shadow: var(--shadow);
}

/* Chatbot */
.bot { position: fixed; inset-inline-end: 18px; inset-block-end: 88px; z-index: 60; }
.bot__toggle {
  width: 56px; height: 56px; border-radius: 999px; border: 1px solid var(--border);
  background: linear-gradient(180deg, #101a3b, #0e162f); color: #fff; cursor: pointer; box-shadow: var(--shadow);
}
.bot__panel {
  position: absolute; inset-inline-end: 0; inset-block-end: 66px; width: min(360px, 90vw); max-height: min(60vh, 540px);
  background: var(--card); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow);
  display: grid; grid-template-rows: auto 1fr auto; overflow: hidden;
}
.bot__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.bot__messages { padding: 10px; overflow: auto; display: grid; gap: 10px; }
.bot__form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border); }
.bot__form input { flex: 1; padding: 10px; border-radius: 12px; border: 1px solid #23315b; background: #0b1433; color: var(--text); }

.msg { padding: 10px 12px; border-radius: 14px; max-width: 82%; }
.msg.user { justify-self: end; background: #163a7a; }
.msg.bot { justify-self: start; background: #0f1733; border: 1px solid #20305a; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Confirmation overlay */
.confirm {
  position: fixed; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px); z-index: 80;
}
.confirm__box {
  width: min(460px, 92vw); background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 18px; text-align: center; box-shadow: var(--shadow);
}
.checkmark { width: 72px; height: 72px; color: var(--success); margin: 0 auto 12px; }
.confetti { position: fixed; inset: 0; pointer-events: none; }

/* Responsive */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .benefits { grid-template-columns: repeat(3, 1fr); }
  .testimonials { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  .nav { display: none; }
  .hero__content { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__content { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
@media (min-width: 900px) { .nav { display: flex; } }

/* Focus visibility */
:focus-visible { outline: 3px solid #4aa3ff; outline-offset: 2px; border-radius: 8px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .orb, .logo-track { animation: none !important; }
  .reveal { transition: none !important; }
}


/* Brand logo image */
.logo-img {
  inline-size: 42px;
  block-size: 42px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  background: radial-gradient(circle at 30% 30%, var(--primary-2), var(--primary));
}

/* Improve dark-mode input and chat contrast */
.trial-form input::placeholder,
.trial-form textarea::placeholder,
.bot__form input::placeholder { color: color-mix(in oklab, var(--muted) 70%, #fff); }

.bot__form input { background: #0a1330; border-color: #2a3c72; }
.bot__form input:focus { border-color: var(--primary-2); box-shadow: 0 0 0 4px rgba(74,163,255,.15); }

[hidden]{display:none!important;}

/* Product image style */
.card-img { width: 100%; height: 140px; object-fit: cover; border-radius: 12px; margin-bottom: 10px; border: 1px solid var(--border); }

/* Client logo images */
.logo-imgx { width: 140px; height: 76px; object-fit: contain; border-radius: 12px; background: #0a1430; border: 1px solid #1a2444; padding: 10px; }

/* Language & theme controls redesign */
.controls { display: flex; align-items: center; gap: 10px; }
.lang { position: relative; }
.lang select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding: 8px 36px 8px 14px;
  border-radius: 999px; border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), var(--bg-alt));
  color: var(--text);
  font-weight: 700; cursor: pointer;
  box-shadow: var(--shadow);
}

/* Highlight language select on focus for better affordance */
.lang select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--primary) 40%, transparent);
}
.lang:after {
  content: "⌄"; position: absolute; inset-inline-end: 12px; inset-block-start: 50%;
  transform: translateY(-50%); pointer-events: none; color: var(--muted); font-weight: 800;
}
#themeToggle.btn.ghost { border: 1px solid var(--border); border-radius: 999px; background: linear-gradient(180deg, var(--surface), var(--bg-alt)); }
#themeToggle #themeIcon { font-size: 1.1rem; }

/* Theme segmented control */
.theme-group { display:flex; gap:6px; padding:4px; border:1px solid var(--border); border-radius:999px; background: linear-gradient(180deg, var(--surface), var(--bg-alt)); box-shadow: var(--shadow); }
.theme-btn { width:34px; height:34px; border-radius:999px; border:1px solid transparent; background: transparent; color: var(--text); font-weight:800; cursor:pointer; }
.theme-btn[aria-pressed="true"] { background: var(--primary); color:#fff; border-color: transparent; }

/* Responsive handling for theme toggle controls */
/* On narrow screens hide the three-button segmented control and show a single toggle */
@media (max-width: 768px) {
  .theme-group {
    display: none;
  }
  #themeToggleMobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, var(--surface), var(--bg-alt));
    color: var(--text);
    font-weight: 800;
    cursor: pointer;
    box-shadow: var(--shadow);
    margin-inline-start: 6px;
  }

  /* Hide native select on small screens when custom language button is present */
  .lang select {
    display: none;
  }
  /* Show custom language toggle button on small screens */
  #langToggleMobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Make the toggle more compact on mobile */
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, var(--surface), var(--bg-alt));
    color: var(--text);
    font-weight: 700;
    font-size: 0.75rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow);
    margin-inline-start: 4px;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  }
  #langToggleMobile:hover {
    background: linear-gradient(180deg, var(--bg-alt), var(--surface));
  }
  #langToggleMobile:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
  }

  /* Compact language selector on small screens */
  .lang select {
    padding: 4px 24px 4px 10px;
    font-size: .85rem;
    min-width: 60px;
  }
  .lang:after {
    inset-inline-end: 8px;
    font-size: .9rem;
  }
}
/* On wider screens, hide the mobile toggle */
@media (min-width: 769px) {
  #themeToggleMobile {
    display: none;
  }
  #langToggleMobile {
    display: none;
  }
}

/* Light theme typography refinements */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] .section-title { color: var(--heading, var(--primary)); }

/* Buttons aesthetics in light */
[data-theme="light"] .btn.primary { --bg: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; }
[data-theme="light"] .btn.outline { color: var(--primary); border-color: color-mix(in oklab, var(--primary) 60%, #fff); }
[data-theme="light"] .btn.outline:hover { background: color-mix(in oklab, var(--primary) 8%, #fff); }

/* Paragraphs keep neutral readable tone */
[data-theme="light"] body, 
[data-theme="light"] .lead, 
[data-theme="light"] p, 
[data-theme="light"] .section-sub { color: var(--text); }

/* ==== UI Polish (Glassy header, modern cards, smoother CTAs) ==== */
.header { backdrop-filter: saturate(140%) blur(10px); background: color-mix(in oklab, var(--bg) 70%, #fff 30%); border-bottom: 1px solid var(--border); }
.nav a { font-weight: 700; opacity: .9; }
.nav a:hover { opacity: 1; transform: translateY(-1px); }

.section { padding-block: clamp(36px, 8vw, 84px); }
.section .container { max-width: 1200px; margin-inline: auto; }

.card { transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(2,8,23,.12); }

.btn { transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(2,8,23,.12); }

/* Fix: ensure headings inherit --heading in light */
[data-theme="light"] h1, [data-theme="light"] h2, [data-theme="light"] h3, [data-theme="light"] .section-title { color: var(--heading, var(--primary)); }

/* Badge-like CTA near top (request trial) remains prominent */
.top-cta .btn.primary { padding-inline: 22px; font-weight: 800; letter-spacing: .2px; }

/* Top info bar */
.topbar { background: var(--bg); border-bottom:1px solid var(--border); font-size:.92rem; }
.topbar .container { display:flex; gap:12px; align-items:center; justify-content:center; padding:.5rem 1rem; flex-wrap:wrap; }
.topbar .wa { margin-inline-start:12px; color: var(--primary); font-weight:700; }

/* Logo marquee */
.logo-marquee { overflow:hidden; mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); }
.logo-marquee .track { display:flex; gap:30px; width:max-content; animation: scrollx 28s linear infinite; align-items:center; }
.logo-marquee img { height:48px; width:auto; filter: saturate(110%); opacity:.9 }
@keyframes scrollx { from{ transform:translateX(0);} to{ transform:translateX(-50%);} }

/* Tilt effect for service/product cards */
.tilt { will-change: transform; transition: transform .15s ease; transform-style: preserve-3d; }
.tilt:hover { transform: perspective(800px) rotateX(4deg) rotateY(-4deg) translateY(-4px); }

.product-hero img { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 30px 80px rgba(2,8,23,.20); }
.rounded { border-radius: 16px; }
.shadow { box-shadow: 0 16px 40px rgba(2,8,23,.12); }
.prod-ico { width:48px; height:48px; margin-inline-end:10px; vertical-align:middle; border-radius:10px; }

.bot-chips{display:flex;flex-wrap:wrap;gap:8px;padding:8px}
.bot-chips .chip{padding:6px 10px;border:1px solid var(--border);border-radius:999px;cursor:pointer;font-size:.9rem}
.bot-chips .chip:hover{background:color-mix(in oklab, var(--primary) 10%, #fff)}

:root { --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans Arabic', 'Noto Sans', sans-serif; }
body { font-family: var(--font); }
.skip-link{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}
.skip-link:focus{left:16px;top:16px;width:auto;height:auto;background:#fff;color:#000;padding:10px 14px;border-radius:8px;z-index:10000}
:where(a,button,input,select,textarea):focus-visible{outline:3px solid color-mix(in oklab, var(--primary) 60%, #fff); outline-offset:2px; border-radius:8px}
.sticky-cta{position:sticky;top:0;z-index:40;background: color-mix(in oklab, var(--bg) 85%, #fff 15%); border-bottom:1px solid var(--border); backdrop-filter: blur(8px)}
.sticky-cta .container{display:flex;gap:12px;justify-content:center;align-items:center;padding:.5rem 1rem;}
.trust-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;justify-items:center;align-items:center}
.trust-item{display:flex;flex-direction:column;gap:4px;align-items:center}
.trust-item strong{font-size:1.8rem;color:var(--heading)}
.trust-item span{color:var(--text)}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.grid-3 .card{padding:18px}
.pricing{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:stretch}
.plan{position:relative}
.plan.best{border:2px solid var(--primary)}
.plan .badge{position:absolute;top:-12px;right:12px;background:var(--primary);color:#fff;padding:4px 8px;border-radius:999px;font-size:.8rem}
.plan-list{line-height:1.9}
.plan-list li::marker{color:var(--primary)}
.int-logos{display:flex;gap:24px;align-items:center;flex-wrap:wrap;justify-content:center}
.int-logos img{height:54px;width:auto;filter:saturate(110%)}
@media (max-width:900px){
  .grid-3{grid-template-columns:1fr}
  .pricing{grid-template-columns:1fr}
  .trust-grid{grid-template-columns:repeat(2,1fr)}
}

/* === Unified Visual Identity === */
:root {
  --primary: #1E40AF;        /* Indigo 800 */
  --primary-2: #2563EB;      /* Blue 600 */
  --accent: #06B6D4;         /* Cyan 500 */
  --heading: #1E40AF;
  --text: #0F172A;
  --muted: #64748B;
  --bg: #FFFFFF;
  --bg-alt: #F7F9FC;
  --surface: #FFFFFF;
  --card: #FFFFFF;
  --border: #E7ECF8;
}
[data-theme="dark"] {
  --primary: #4AA3FF;
  --primary-2: #1D4ED8;
  --accent: #22D3EE;
  --heading: #4AA3FF;
  --text: #E9F1FF;
  --muted: #A6B4D3;
  --bg: #0A0F1E;
  --bg-alt: #0C1426;
  --surface: #0E1830;
  --card: #0F172A;
  --border: #1E2A44;
}

/* Fonts per language */
:lang(ar) { font-family: "Cairo", "Noto Sans Arabic", Tahoma, Arial, sans-serif; }
:lang(en) { font-family: "Inter", "Noto Sans", "Segoe UI", Roboto, Arial, sans-serif; }

/* Buttons */
.btn.primary {
  background-image: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  border: none;
}
.btn.primary:focus-visible { outline-color: var(--accent); }
.btn.outline {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
}
.btn.outline:hover { background: color-mix(in oklab, var(--primary) 10%, #fff); }

/* Hero background using product image with overlay */
.hero{position:relative;overflow:hidden;background:linear-gradient(180deg, color-mix(in oklab, var(--primary) 5%, var(--bg)), var(--bg));}
.hero::before{content:'';position:absolute;inset:0;opacity:.06;background:radial-gradient(1200px 600px at 80% -10%,var(--primary-2),transparent 60%),radial-gradient(800px 400px at 10% 120%,var(--primary),transparent 60%)}
.hero .container { position: relative; z-index: 1; }

/* Wizard */
.wizard .wizard-controls{margin-top:12px; display:flex; flex-direction:column; gap:10px}
.wizard-progress{height:6px; background: var(--border); border-radius:999px; overflow:hidden}
.wizard-progress span{display:block; height:100%; background: linear-gradient(90deg, var(--primary), var(--primary-2));}
.wizard-actions{display:flex; gap:10px; justify-content:flex-end}
[hidden]{display:none !important}

html{scroll-behavior:smooth}

/* Blue/Orange balanced accents */
:root{ --orange:#F59E0B; --orange-2:#F97316; }
.btn.accent{ background-image: linear-gradient(135deg, var(--orange), var(--orange-2)); color:#fff; border:none; }
.badge.orange{ background: var(--orange); color:#fff; }
.section-title em{ color: var(--orange); font-style: normal; }
a.link{ color: var(--primary-2); text-decoration: underline; text-underline-offset: 3px; }
a.link:hover{ text-underline-offset: 5px; }

/* Typography harmony */
h1,h2,h3{ letter-spacing:.2px }
.section-title{ font-size:clamp(1.6rem, 2vw + 1rem, 2.2rem); color:var(--heading); }
.section-sub{ color:var(--muted); margin-top:6px }
.sidebar, .breadcrumbs { font-family: inherit; }

/* Micro-interactions */
.btn{ transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover{ transform: translateY(-2px); box-shadow: 0 10px 24px rgba(2,8,23,.08); }
.card{ transition: transform .15s ease, box-shadow .15s ease; }
.card:hover{ transform: translateY(-3px); box-shadow: 0 14px 30px rgba(2,8,23,.08); }
a{ transition: color .15s ease, text-underline-offset .2s ease; }

/* Mobile spacing & grid */
.container{ padding-inline: clamp(12px, 3vw, 24px); }
@media (max-width:600px){
  .btn{ width:100%; }
  .hero .actions{ display:grid; gap:10px; grid-template-columns:1fr; }
  .grid-3{ grid-template-columns:1fr; }
  .pricing{ grid-template-columns:1fr; }
  .topbar .container{ gap:6px; }
}

.fab{ position:fixed; bottom:20px; inset-inline-end:20px; display:flex; flex-direction:column; gap:10px; z-index:60 }
.fab-btn{ width:52px; height:52px; border-radius:50%; background:linear-gradient(135deg,var(--primary),var(--primary-2)); color:#fff; display:grid; place-items:center; font-size:22px; border:none; box-shadow:0 12px 28px rgba(2,8,23,.18); }
.fab-btn:hover{ transform: translateY(-2px); }

/* Accordion */
.accordion .acc-item{ border:1px solid var(--border); border-radius:12px; margin-bottom:10px; background:var(--card) }
.accordion .acc-head{ padding:12px 14px; cursor:pointer; display:flex; justify-content:space-between; align-items:center; font-weight:600 }
.accordion .acc-body{ padding:0 14px 12px; display:none; color:var(--text) }
.accordion .acc-item.open .acc-body{ display:block }

/* Breadcrumbs */
.breadcrumbs{ font-size:.92rem; color:var(--muted); padding:8px 0 }
.breadcrumbs a{ color:inherit; text-decoration:none }
.breadcrumbs .sep{ opacity:.5; margin:0 6px }

/* --- Readability rules (Light) --- */
html, body { background: var(--bg); color: var(--text); }
p, li { color: var(--text); }
.section-title, h1, h2, h3 { color: var(--heading); }
.section-sub { color: var(--muted); }

a { color: var(--link); }
a:hover { color: var(--link-hover); }

/* Buttons contrast */
.btn.primary {
  color: var(--on-primary);
  background-image: linear-gradient(135deg, var(--primary), var(--primary-2));
  border: none;
}
.btn.primary:hover { filter: brightness(1.03); }
.btn.outline {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
}
.btn.outline:hover { background: rgba(29, 78, 216, 0.09); color: var(--primary); }

/* Cards & surfaces */
.card { background: var(--card); color: var(--on-card); border: 1px solid var(--border); }
.topbar { background: var(--bg-alt); color: var(--text); }
.topbar .wa { color: var(--primary); }
.sticky-cta { background: color-mix(in oklab, var(--bg) 95%, #fff 5%); border-bottom: 1px solid var(--border); }

/* Hero background (no product image) */
.hero { background: linear-gradient(180deg, color-mix(in oklab, var(--primary) 4%, var(--bg)), var(--bg)); }
.hero * { color: inherit; }
.hero .actions .btn { color: initial; }

.breadcrumbs { color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--text); }

.trust-item strong { color: var(--heading); }
.trust-item span { color: var(--muted); }

.logo-marquee img { opacity: .95; }

/* Text on primary backgrounds */
.bg-primary, .btn.primary, .badge, .plan.best .badge { color: var(--on-primary) !important; }

#benefitsKey{ background: var(--bg-alt); }

/* --- Hover/Focus polish --- */
nav a, .nav a { color: var(--text); text-decoration:none; border-bottom:2px solid transparent; }
nav a:hover, .nav a:hover { color: var(--primary); border-bottom-color: var(--primary); }
a.link { color: var(--link); text-decoration: underline; text-underline-offset:3px; }
a.link:hover { color: var(--link-hover); text-underline-offset:5px; }

.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(2,8,23,.10); }
.accordion .acc-head:hover { background: color-mix(in oklab, var(--primary) 7%, var(--bg)); }

/* Buttons */
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(2,8,23,.12); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.outline:hover { background: rgba(29,78,216,0.10); }

/* Global text & layout */
html,body{background:var(--bg);color:var(--text)}
h1,h2,h3{color:var(--heading);letter-spacing:.2px}
.section-title{font-size:clamp(1.6rem,2vw+1rem,2.2rem);margin-bottom:6px}
.section-sub{color:var(--muted);margin-top:6px}
.container{padding-inline:clamp(14px,3vw,28px)}
.card{background:var(--card);border:1px solid var(--border);border-radius:var(--r-lg);box-shadow:var(--shadow-1)}
.card:hover{box-shadow:var(--shadow-2);transform:translateY(-2px);transition:transform .15s ease,box-shadow .15s ease}
.section{padding-block:clamp(36px,7vw,72px)}

/* Links */
a{color:var(--link);transition:color .15s ease}
a:hover{color:var(--link-hover)}

/* Buttons */
.btn{border-radius:var(--r-md);padding:.65rem 1rem;transition:transform .15s ease,box-shadow .15s ease,filter .15s ease}
.btn.primary{color:var(--on-primary);background-image:linear-gradient(135deg,var(--primary),var(--primary-2));border:none;box-shadow:var(--shadow-1)}
.btn.primary:hover{filter:brightness(1.05);box-shadow:var(--shadow-2);transform:translateY(-2px)}
.btn.outline{background:transparent;border:1.5px solid var(--primary);color:var(--primary)}
.btn.outline:hover{background:rgba(30,85,229,.10)}

/* Inputs */
input,select,textarea{background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:var(--r-md);padding:.6rem .75rem}
input::placeholder,textarea::placeholder{color:color-mix(in oklab,var(--muted) 65%,#fff)}
:where(input,select,textarea):focus{outline:3px solid color-mix(in oklab,var(--primary) 35%,#fff);outline-offset:2px}

/* Surfaces */
.topbar{background:var(--bg-alt);border-bottom:1px solid var(--border);color:var(--text)}
.sticky-cta{background:color-mix(in oklab,var(--bg) 96%,#fff 4%);border-bottom:1px solid var(--border)}
#benefitsKey{background:var(--bg-alt)}
#comparePlans{background:var(--surface)}
#knowledge{background:var(--surface)}

/* Hero */
.hero{position:relative;overflow:hidden;background:linear-gradient(180deg,color-mix(in oklab,var(--primary) 4%,var(--bg)),var(--bg))}
.hero .actions{display:flex;gap:12px;flex-wrap:wrap}
@media (max-width:640px){.hero .actions{display:grid;grid-template-columns:1fr;gap:10px}.btn{width:100%}}

/* Breadcrumbs */
.breadcrumbs{color:var(--muted);padding:8px 0}
.breadcrumbs a{color:var(--muted);text-decoration:none;border-bottom:2px solid transparent}
.breadcrumbs a:hover{color:var(--text);border-bottom-color:var(--primary)}

/* Chips & badges */
.bot-chips .chip{background:var(--surface);border:1px solid var(--border);color:var(--text)}
.badge{background:var(--primary);color:#fff;border-radius:999px;padding:.25rem .6rem}

/* Accordions */
.accordion .acc-item{background:var(--card);border:1px solid var(--border);border-radius:var(--r-md)}
.accordion .acc-head{color:var(--heading)}
.accordion .acc-head:hover{background:color-mix(in oklab,var(--primary) 6%,var(--bg))}

/* Pricing */
.pricing .plan.best{border:2px solid var(--primary)}

/* Focus */
:where(a,button,input,select,textarea):focus-visible{outline:3px solid color-mix(in oklab,var(--primary) 45%,#fff);outline-offset:2px;border-radius:var(--r-sm)}


/* --- State tokens (Light) --- */
:root{
  --hover-bg: color-mix(in oklab, var(--primary) 6%, var(--bg));
  --hover-card: color-mix(in oklab, var(--primary) 3%, var(--card));
  --active-bg: color-mix(in oklab, var(--primary) 12%, var(--bg));
  --focus-ring: color-mix(in oklab, var(--primary) 45%, #fff);
  --disabled-bg: #EEF2FB;
  --disabled-text: #94A3B8;
  --visited: #6D28D9;
}


/* --- Links (non-button) --- */
a:not(.btn){ color: var(--link); text-decoration: none; background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%; background-repeat: no-repeat; background-size: 0% 2px; transition: color .18s ease, background-size .2s ease; }
a:not(.btn):hover{ color: var(--link-hover); background-size: 100% 2px; }
a:not(.btn):visited{ color: var(--visited); }

/* --- Navigation --- */
nav a{ color: var(--text); padding: 6px 8px; border-radius: 10px; transition: background-color .18s ease, color .18s ease; }
nav a:hover{ background: var(--hover-bg); color: var(--primary); }
nav a.active, nav a[aria-current="page"]{ background: var(--hover-bg); color: var(--primary); }

/* --- Buttons --- */
.btn{ border-radius: 12px; padding: .65rem 1rem; transition: transform .15s ease, box-shadow .15s ease, filter .15s ease, background-color .15s ease; }
.btn.primary{ color: var(--on-primary); background-image: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: var(--shadow-1); }
.btn.primary:hover{ filter: brightness(1.05); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.btn.primary:active{ transform: translateY(0); filter: brightness(.98); }
.btn.outline{ color: var(--primary); border: 1.5px solid var(--primary); background: transparent; }
.btn.outline:hover{ background: color-mix(in oklab, var(--primary) 12%, #fff); }
.btn:disabled{ background: var(--disabled-bg); color: var(--disabled-text); border-color: var(--disabled-bg); cursor: not-allowed; }
:where(.btn, a, button):focus-visible{ outline: 3px solid var(--focus-ring); outline-offset: 2px; }

/* --- Cards & interactive surfaces --- */
.card{ background: var(--card); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-1); transition: background-color .2s ease, box-shadow .2s ease, transform .15s ease; }
.card:hover{ background: var(--hover-card); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.card:active{ transform: translateY(0); box-shadow: var(--shadow-1); }

/* --- Chips (bot quick replies, tags) --- */
.bot-chips .chip, .chip{ background: var(--surface); border: 1px solid var(--border); color: var(--text); border-radius: 999px; padding: .4rem .75rem; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.bot-chips .chip:hover, .chip:hover{ background: color-mix(in oklab, var(--primary) 10%, #fff); border-color: color-mix(in oklab, var(--primary) 30%, var(--border)); color: var(--primary); }

/* --- Accordion --- */
.accordion .acc-item{ background: var(--card); border: 1px solid var(--border); border-radius: 12px; }
.accordion .acc-head{ padding: 12px 14px; display:flex; align-items:center; justify-content:space-between; cursor:pointer; color: var(--heading); transition: background-color .15s ease; }
.accordion .acc-head:hover{ background: var(--hover-bg); }
.accordion .acc-item.open .acc-head{ border-bottom: 1px solid var(--border); }
.accordion .acc-body{ padding: 0 14px 12px; color: var(--text); }

/* --- Tables (if present) --- */
.table tr:hover{ background: var(--hover-bg); }
.table th{ color: var(--heading); }
.table td{ color: var(--text); }

/* --- Breadcrumbs --- */
.breadcrumbs a{ color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; transition: color .15s ease, border-bottom-color .15s ease; }
.breadcrumbs a:hover{ color: var(--text); border-bottom-color: var(--primary); }

/* --- Selection --- */
::selection{ background: var(--primary-2); color: #fff; }

/* --- Reduced motion respect --- */
@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; animation: none !important; }
}


/* --- Light normalization for key sections --- */
.section.logos, #benefitsKey, #faq, #contact { background: var(--bg-alt) !important; }
.section.logos::before, #benefitsKey::before, #faq::before, #contact::before { content: none !important; }
.section.logos h2, #benefitsKey h2, #faq h2, #contact h2 { color: var(--heading); }
.section.logos p, #benefitsKey p, #faq p, #contact p, #faq li { color: var(--text); }
#contact .card, #faq .card, .section.logos .card { background: var(--card); border: 1px solid var(--border); color: var(--text); }


/* ===== Strong LIGHT overrides (force-remove dark overlays) ===== */
html[data-theme="light"] .section.logos,
html[data-theme="light"] #benefitsKey,
html[data-theme="light"] #faq,
html[data-theme="light"] #contact{
  background: var(--bg-alt) !important;
  background-image: none !important;
}

html[data-theme="light"] .section.logos::before,
html[data-theme="light"] #benefitsKey::before,
html[data-theme="light"] #faq::before,
html[data-theme="light"] #contact::before{
  content: none !important;
  display: none !important;
  background: none !important;
}

/* Cards within those sections should stay light */
html[data-theme="light"] .section.logos .card,
html[data-theme="light"] #benefitsKey .card,
html[data-theme="light"] #faq .card,
html[data-theme="light"] #contact .card{
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  box-shadow: var(--shadow-1);
}

/* Header clarity in LIGHT */
html[data-theme="light"] header,
html[data-theme="light"] .site-header,
html[data-theme="light"] .sticky-cta{
  background: var(--bg) !important;
  background-image: none !important;
  border-bottom: 1px solid var(--border) !important;
  box-shadow: 0 6px 18px rgba(2,8,23,.04);
}

html[data-theme="light"] nav a{ color: var(--text) !important; }
html[data-theme="light"] nav a:hover{ color: var(--primary) !important; background: var(--hover-bg) !important; }


/* --- Light overrides for remaining selectors --- */
html[data-theme="light"] .section-alt{ background: var(--bg-alt) !important; background-image: none !important; }
html[data-theme="light"] #benefits.section.section-alt{ background: var(--bg-alt) !important; }
html[data-theme="light"] .hero-card{ background: var(--card) !important; color: var(--text) !important; border: 1px solid var(--border) !important; box-shadow: var(--shadow-1); }
html[data-theme="light"] .hero-card .kpi, 
html[data-theme="light"] .hero-card .stat, 
html[data-theme="light"] .hero-card h3, 
html[data-theme="light"] .hero-card p{ color: var(--text) !important; }


/* --- Benefit cards (Light) --- */
html[data-theme="light"] .benefit{ 
  background: var(--card) !important; 
  color: var(--text) !important; 
  border: 1px solid var(--border) !important; 
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
html[data-theme="light"] .benefit:hover{ 
  transform: translateY(-2px); 
  box-shadow: var(--shadow-2);
  background: color-mix(in oklab, var(--primary) 2%, var(--card));
}
.benefit .icon{
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; display:grid; place-items:center; font-size:22px;
  box-shadow: var(--shadow-1);
}
.benefit h3{ color: var(--heading); margin: 8px 0 4px }
.benefit p{ color: var(--text) }


/* --- Trial section professional layout --- */
#trial{ background: var(--bg) }
.trial-wrap{ display:grid; grid-template-columns: 1.2fr 1fr; gap: clamp(18px,3vw,28px); align-items:start }
.trial-info{ background: var(--bg-alt); border:1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-4); box-shadow: var(--shadow-1) }
.trial-bullets{ margin: 12px 0 14px; display:grid; gap:8px; color: var(--text) }
.trial-badges{ display:flex; flex-wrap:wrap; gap:8px; margin: 8px 0 10px }
.trial-privacy{ color: var(--muted); font-size:.95rem }
.trial-form{ background: var(--card); border:1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-4); box-shadow: var(--shadow-1) }
.trial-form .grid{ display:grid; grid-template-columns: 1fr 1fr; gap:12px }
.trial-form .field{ display:flex; flex-direction:column; gap:6px }
.trial-assist{ margin-top: 12px; display:flex; gap:10px; justify-content:flex-end }
@media (max-width: 860px){
  .trial-wrap{ grid-template-columns:1fr; }
  .trial-form .grid{ grid-template-columns: 1fr; }
}


/* --- Trial card (clean, centered) --- */
#trial{ background: var(--bg); }
.trial-card{
  max-width: 980px; margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  padding: clamp(18px, 3vw, 28px);
}
.trial-head{ border-bottom: 1px solid var(--divider); padding-bottom: 10px; margin-bottom: 12px; }
.trial-head h2{ color: var(--heading); margin: 0 0 6px }
.trial-head p{ color: var(--muted); margin: 0 }
.progress-dots{ display: flex; gap: 8px; margin-top: 10px }
.progress-dots .dot{
  width:10px; height:10px; border-radius:50%; background: var(--divider);
  transition: background-color .2s ease, transform .15s ease;
}
.progress-dots .dot.active{ background: var(--primary-2); transform: scale(1.1); }

.form-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px }
.field{ display:flex; flex-direction:column; gap:6px }
.field label{ color: var(--muted); font-weight:600 }
input, select{
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--r-md); padding: .65rem .75rem;
}
input:focus, select:focus{ outline: 3px solid var(--focus-ring); outline-offset: 2px }

.wizard-controls{ margin-top: 16px }
.wizard-progress{ background: var(--divider); border-radius: 999px; height: 6px; overflow: hidden }
.wizard-progress > span{ display:block; height:100%; background: linear-gradient(90deg, var(--primary), var(--primary-2)); border-radius: 999px }

.wizard-actions{ display:flex; gap:10px; justify-content:flex-end; margin-top:10px }

.trial-helpers{ display:flex; gap:10px; justify-content:flex-end; margin-top:10px }
.trial-privacy{ color: var(--muted); margin-top: 8px }

@media (max-width: 720px){
  .form-grid{ grid-template-columns: 1fr; }
  .trial-card{ padding: 16px }
}



/* --- FAB (kept minimal to avoid conflicts) --- */
.fab{ position:fixed; bottom:20px; inset-inline-end:20px; display:flex; flex-direction:column; gap:10px; z-index:60 }
.fab-btn{ min-width:56px; height:56px; padding:0 14px; border-radius:999px; display:flex; align-items:center; gap:10px;
  border:none; box-shadow:0 12px 28px rgba(2,8,23,.18); cursor:pointer; font-weight:700; letter-spacing:.2px }
.fab-btn--wa{ background: linear-gradient(135deg, #25D366, #128C7E); color:#fff }
.fab-btn--ai{ background: linear-gradient(135deg, var(--primary), var(--primary-2)); color:#fff }
.fab-btn:hover{ transform: translateY(-2px) }



/* --- FAB (kept minimal to avoid conflicts) --- */
.fab{ position:fixed; bottom:20px; inset-inline-end:20px; display:flex; flex-direction:column; gap:10px; z-index:60 }
.fab-btn{ min-width:56px; height:56px; padding:0 14px; border-radius:999px; display:flex; align-items:center; gap:10px;
  border:none; box-shadow:0 12px 28px rgba(2,8,23,.18); cursor:pointer; font-weight:700; letter-spacing:.2px; color:#fff }
.fab-btn--wa{ background: linear-gradient(135deg, #25D366, #128C7E) }
.fab-btn--ai{ background: linear-gradient(135deg, var(--primary,#1f4fd6), var(--primary-2,#0d358f)) }
.fab-btn:hover{ transform: translateY(-2px) }
