/* ==========================================================================
   EVYX POS — Premium Landing Page Styles
   Brand: deep blue #2F4E8F + vivid orange #D8661F (extracted from logo)
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand */
  --brand: #2F4E8F;
  --brand-deep: #1E3A6F;
  --brand-darker: #152A50;
  --brand-light: #4A6BA8;
  --brand-soft: #E8EEF9;
  --brand-softer: #F2F5FC;

  --orange: #D8661F;
  --orange-light: #F08A3E;
  --orange-soft: #FDEDE0;
  --orange-glow: rgba(216, 102, 31, 0.35);

  /* Neutrals */
  --bg: #F6F8FD;
  --bg-2: #EEF3FB;
  --white: #FFFFFF;
  --ink: #16213E;
  --ink-2: #3A4663;
  --muted: #6B7794;
  --line: #E3E9F4;

  /* Effects */
  --shadow-sm: 0 2px 8px rgba(30, 58, 111, 0.06);
  --shadow: 0 12px 32px rgba(30, 58, 111, 0.10);
  --shadow-lg: 0 24px 60px rgba(30, 58, 111, 0.16);
  --shadow-orange: 0 16px 40px rgba(216, 102, 31, 0.28);

  --radius: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;

  --container: 1200px;

  --grad-brand: linear-gradient(135deg, #2F4E8F 0%, #1E3A6F 100%);
  --grad-orange: linear-gradient(135deg, #F08A3E 0%, #D8661F 100%);
  --grad-hero: linear-gradient(160deg, #F6F8FD 0%, #EEF3FB 55%, #E8EEF9 100%);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: 'Tajawal', 'Cairo', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
input, select, textarea { font-family: inherit; }

::selection { background: var(--orange); color: #fff; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding: 100px 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.5px;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 8px 16px; border-radius: 999px;
  margin-bottom: 20px;
}
.eyebrow.orange { color: var(--orange); background: var(--orange-soft); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse-dot 1.8s infinite; }
.section-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800; line-height: 1.25; color: var(--ink);
  letter-spacing: -0.5px;
}
.section-title .hl { color: var(--brand); }
.section-title .hl-o { color: var(--orange); }
.section-sub {
  margin-top: 18px; font-size: 1.08rem; color: var(--muted);
  line-height: 1.85; font-weight: 400;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 1rem;
  padding: 15px 30px; border-radius: 999px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
  position: relative; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--grad-orange); color: #fff;
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 22px 48px rgba(216,102,31,0.4); }
.btn-secondary {
  background: #fff; color: var(--brand);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow); }
.btn-ghost { color: var(--brand); background: var(--brand-soft); }
.btn-ghost:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
.btn-lg { padding: 17px 38px; font-size: 1.08rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; right: 0; left: 0; z-index: 1000;
  padding: 18px 0; transition: all .4s var(--ease);
}
.header.scrolled {
  background: rgba(246, 248, 253, 0.82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 4px 24px rgba(30,58,111,0.07);
  padding: 12px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo svg { width: 46px; height: 46px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text .l1 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.5px; }
.logo-text .l1 b { color: var(--brand); }
.logo-text .l1 .x { color: var(--orange); }
.logo-text .l2 { font-size: 0.62rem; font-weight: 800; letter-spacing: 4px; color: var(--orange); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  font-weight: 600; font-size: 0.97rem; color: var(--ink-2);
  padding: 9px 16px; border-radius: 999px; transition: all .25s;
}
.nav a:hover { color: var(--brand); background: var(--brand-soft); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn { padding: 11px 22px; font-size: 0.93rem; }

.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 14px;
  background: #fff; box-shadow: var(--shadow-sm);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle span { width: 20px; height: 2px; background: var(--brand); border-radius: 2px; transition: .3s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(246,248,253,0.97); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  opacity: 0; pointer-events: none; transition: opacity .4s;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a { font-size: 1.4rem; font-weight: 700; color: var(--ink); padding: 12px; transition: .25s; }
.mobile-menu a:hover { color: var(--brand); }
.mobile-menu .btn { margin-top: 20px; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; padding: 150px 0 90px;
  background: var(--grad-hero);
  overflow: hidden;
}
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; z-index: 0;
  animation: float-blob 14s ease-in-out infinite;
}
.hero-blob.b1 { width: 460px; height: 460px; background: radial-gradient(circle, rgba(47,78,143,0.35), transparent 70%); top: -120px; left: -100px; }
.hero-blob.b2 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(216,102,31,0.28), transparent 70%); bottom: -140px; right: -80px; animation-delay: -5s; }
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0; opacity: 0.4;
  background-image:
    linear-gradient(rgba(47,78,143,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,78,143,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000, transparent);
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: center;
}
/* RTL: text block visually first (right side) — it's the first grid child */
.hero-content { max-width: 600px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line);
  padding: 8px 16px 8px 8px; border-radius: 999px;
  box-shadow: var(--shadow-sm); margin-bottom: 26px; font-size: 0.88rem; font-weight: 600; color: var(--ink-2);
}
.hero-badge .pill { background: var(--grad-orange); color: #fff; padding: 4px 12px; border-radius: 999px; font-size: 0.78rem; }
.hero-badge .live { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,0.6); animation: pulse-dot 1.8s infinite; }
.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 900; line-height: 1.15;
  color: var(--ink); letter-spacing: -1px; margin-bottom: 24px;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--brand) 0%, var(--orange) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero h1 .underline {
  position: relative; white-space: nowrap;
}
.hero h1 .underline::after {
  content: ''; position: absolute; right: 0; left: 0; bottom: 4px; height: 12px;
  background: var(--orange-soft); z-index: -1; border-radius: 6px;
}
.hero p.lead { font-size: 1.15rem; color: var(--ink-2); line-height: 1.95; margin-bottom: 34px; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.hero-stat .num { font-size: 1.9rem; font-weight: 800; color: var(--brand); line-height: 1; }
.hero-stat .num .unit { font-size: 1.1rem; color: var(--orange); }
.hero-stat .lbl { font-size: 0.88rem; color: var(--muted); margin-top: 6px; }

/* ---- Hero Visual: floating dashboard + phone ---- */
.hero-visual { position: relative; height: 560px; } /* overflow kept visible for floating cards; body clips with overflow-x hidden */
.dash-card {
  position: absolute; background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,0.8);
}
/* main dashboard */
.dash-main {
  top: 30px; right: 0; width: 78%; padding: 22px;
  animation: float-y 6s ease-in-out infinite;
}
.dash-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.dash-top .t-l { display: flex; align-items: center; gap: 10px; }
.dash-top .avatar { width: 38px; height: 38px; border-radius: 12px; background: var(--grad-brand); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 0.9rem; }
.dash-top .nm { font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.dash-top .sub { font-size: 0.72rem; color: var(--muted); }
.dash-top .tag { background: #ECFDF3; color: #16a34a; font-size: 0.68rem; font-weight: 700; padding: 5px 10px; border-radius: 8px; display: flex; align-items: center; gap: 4px; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.kpi { background: var(--brand-softer); border-radius: 14px; padding: 12px; }
.kpi .kl { font-size: 0.68rem; color: var(--muted); font-weight: 600; }
.kpi .kv { font-size: 1.1rem; font-weight: 800; color: var(--ink); margin-top: 4px; }
.kpi .kv.o { color: var(--orange); }
.kpi .kd { font-size: 0.66rem; color: #16a34a; margin-top: 2px; }
.dash-chart { background: var(--brand-softer); border-radius: 14px; padding: 16px 12px; }
.dash-chart .ct { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.dash-chart .ct .n { font-size: 0.78rem; font-weight: 700; color: var(--ink); }
.dash-chart .ct .v { font-size: 0.78rem; font-weight: 800; color: var(--brand); }
.bars { display: flex; align-items: flex-end; gap: 7px; height: 90px; }
.bar { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--brand-light), var(--brand)); opacity: 0.85; animation: bar-rise 1.4s var(--ease) backwards; }
.bar.hi { background: linear-gradient(180deg, var(--orange-light), var(--orange)); }
@keyframes bar-rise { from { height: 0 !important; } }

/* floating small cards */
.fc {
  position: absolute; background: #fff; border-radius: 18px;
  box-shadow: var(--shadow); padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
}
.fc .ic { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fc .ic svg { width: 22px; height: 22px; }
.fc .tx .t { font-size: 0.72rem; color: var(--muted); font-weight: 600; }
.fc .tx .v { font-size: 0.95rem; font-weight: 800; color: var(--ink); }
.fc.ai-card { top: 8px; left: -10px; width: 250px; animation: float-y 5s ease-in-out infinite -2s; }
.fc.ai-card .ic { background: var(--orange-soft); color: var(--orange); }
.fc.alert-card { bottom: 40px; left: -20px; width: 240px; animation: float-y 7s ease-in-out infinite -1s; }
.fc.alert-card .ic { background: #FFF1E6; color: #E07A1F; }
.fc.profit-card { bottom: -10px; right: 30px; width: 200px; animation: float-y 6.5s ease-in-out infinite -3s; }
.fc.profit-card .ic { background: #E7F6EC; color: #16a34a; }

/* phone mockup */
.phone {
  position: absolute; bottom: -10px; left: 40px; width: 170px; height: 340px;
  background: linear-gradient(160deg, #2a2f45, #15192a); border-radius: 34px;
  padding: 9px; box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,0.06);
  animation: float-y 6s ease-in-out infinite;
  z-index: 3;
}
.phone .notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 58px; height: 18px; background: #15192a; border-radius: 0 0 12px 12px; z-index: 2; }
.phone-screen { width: 100%; height: 100%; background: linear-gradient(160deg, #F2F5FC, #E8EEF9); border-radius: 26px; padding: 28px 12px 12px; overflow: hidden; }
.phone-screen .ps-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.phone-screen .ps-head .hi { font-size: 0.6rem; color: var(--muted); }
.phone-screen .ps-head .nm { font-size: 0.72rem; font-weight: 800; color: var(--ink); }
.phone-screen .ps-head .bell { width: 22px; height: 22px; border-radius: 7px; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--orange); }
.phone-screen .ps-total { background: var(--grad-brand); border-radius: 14px; padding: 12px; color: #fff; margin-bottom: 10px; }
.phone-screen .ps-total .l { font-size: 0.58rem; opacity: 0.85; }
.phone-screen .ps-total .v { font-size: 1.15rem; font-weight: 800; margin-top: 2px; }
.phone-screen .ps-total .chip { display: inline-flex; align-items: center; gap: 3px; font-size: 0.55rem; background: rgba(255,255,255,0.2); padding: 2px 6px; border-radius: 6px; margin-top: 5px; }
.phone-screen .ps-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.phone-screen .ps-mini { background: #fff; border-radius: 10px; padding: 8px; }
.phone-screen .ps-mini .l { font-size: 0.5rem; color: var(--muted); }
.phone-screen .ps-mini .v { font-size: 0.72rem; font-weight: 800; color: var(--ink); }
.phone-screen .ps-bars { background: #fff; border-radius: 10px; padding: 8px; display: flex; align-items: flex-end; gap: 3px; height: 44px; }
.phone-screen .ps-bars .b { flex: 1; border-radius: 3px 3px 0 0; background: var(--brand-light); opacity: 0.7; }
.phone-screen .ps-bars .b.hi { background: var(--orange); opacity: 1; }

/* cloud badge */
.cloud-badge {
  position: absolute; top: 50%; right: -30px; transform: translateY(-50%);
  background: #fff; border-radius: 16px; box-shadow: var(--shadow);
  padding: 10px 16px; display: flex; align-items: center; gap: 10px; z-index: 4;
  animation: float-y 5.5s ease-in-out infinite -1.5s;
}
.cloud-badge .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.cloud-badge .tx .t { font-size: 0.66rem; color: var(--muted); }
.cloud-badge .tx .v { font-size: 0.78rem; font-weight: 800; color: var(--brand); }

/* ==========================================================================
   CLOUD / MOBILE SECTION
   ========================================================================== */
.cloud { background: var(--white); }
.cloud-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.cloud-points { display: grid; gap: 18px; margin-top: 36px; }
.cloud-point {
  display: flex; gap: 16px; padding: 22px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--line);
  transition: all .4s var(--ease);
}
.cloud-point:hover { transform: translateX(-6px); background: #fff; box-shadow: var(--shadow); border-color: transparent; }
.cloud-point .ic {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.cloud-point:nth-child(even) .ic { background: var(--orange-soft); color: var(--orange); }
.cloud-point .ic svg { width: 26px; height: 26px; }
.cloud-point h3 { font-size: 1.1rem; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.cloud-point p { font-size: 0.95rem; color: var(--muted); line-height: 1.7; }

/* big phone visual */
.phone-big {
  position: relative; width: 320px; height: 640px; margin: 0 auto;
  background: linear-gradient(160deg, #2a2f45, #15192a); border-radius: 50px;
  padding: 14px; box-shadow: var(--shadow-lg), inset 0 0 0 3px rgba(255,255,255,0.06);
  animation: float-y 7s ease-in-out infinite;
}
.phone-big .notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 110px; height: 28px; background: #15192a; border-radius: 0 0 18px 18px; z-index: 2; }
.phone-big-screen { width: 100%; height: 100%; background: linear-gradient(180deg, #F6F8FD, #EEF3FB); border-radius: 38px; padding: 48px 20px 20px; overflow: hidden; }
.pb-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.pb-head .hi { font-size: 0.8rem; color: var(--muted); }
.pb-head .nm { font-size: 1rem; font-weight: 800; color: var(--ink); }
.pb-head .bell { width: 34px; height: 34px; border-radius: 10px; background: #fff; box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center; color: var(--orange); position: relative; }
.pb-head .bell::after { content: ''; position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; background: #ef4444; border-radius: 50%; border: 2px solid #fff; }
.pb-total { background: var(--grad-brand); border-radius: 22px; padding: 22px; color: #fff; margin-bottom: 14px; position: relative; overflow: hidden; }
.pb-total::before { content: ''; position: absolute; top: -30px; left: -30px; width: 120px; height: 120px; background: radial-gradient(circle, rgba(216,102,31,0.4), transparent 70%); }
.pb-total .l { font-size: 0.78rem; opacity: 0.9; }
.pb-total .v { font-size: 2rem; font-weight: 900; margin-top: 4px; }
.pb-total .row { display: flex; gap: 8px; margin-top: 12px; }
.pb-total .chip { font-size: 0.72rem; background: rgba(255,255,255,0.18); padding: 4px 10px; border-radius: 8px; display: inline-flex; align-items: center; gap: 4px; }
.pb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.pb-mini { background: #fff; border-radius: 16px; padding: 14px; box-shadow: var(--shadow-sm); }
.pb-mini .l { font-size: 0.7rem; color: var(--muted); }
.pb-mini .v { font-size: 1.1rem; font-weight: 800; color: var(--ink); margin-top: 3px; }
.pb-mini .v.o { color: var(--orange); }
.pb-mini .v.g { color: #16a34a; }
.pb-alert { background: linear-gradient(120deg, #FFF4EC, #FDEDE0); border-radius: 16px; padding: 14px; display: flex; gap: 10px; align-items: flex-start; border: 1px solid #FAD9C2; }
.pb-alert .ic { width: 32px; height: 32px; border-radius: 9px; background: var(--orange); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pb-alert .tx .t { font-size: 0.74rem; font-weight: 800; color: var(--ink); }
.pb-alert .tx .d { font-size: 0.66rem; color: var(--ink-2); margin-top: 2px; }

/* ==========================================================================
   AI SECTION — premium standout
   ========================================================================== */
.ai {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(216,102,31,0.10), transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 100%, rgba(47,78,143,0.12), transparent 60%),
    linear-gradient(180deg, #0E1B36 0%, #152A50 50%, #0E1B36 100%);
  color: #fff;
}
.ai::before {
  content: ''; position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000, transparent);
}
.ai-glow { position: absolute; border-radius: 50%; filter: blur(90px); z-index: 0; }
.ai-glow.g1 { width: 400px; height: 400px; background: rgba(216,102,31,0.3); top: 10%; right: -80px; animation: float-blob 12s ease-in-out infinite; }
.ai-glow.g2 { width: 380px; height: 380px; background: rgba(74,107,168,0.35); bottom: 5%; left: -80px; animation: float-blob 14s ease-in-out infinite -4s; }
.ai .container { position: relative; z-index: 2; }
.ai .section-title { color: #fff; }
.ai .eyebrow { background: rgba(216,102,31,0.15); color: var(--orange-light); border: 1px solid rgba(216,102,31,0.3); }
.ai .section-sub { color: rgba(255,255,255,0.72); }

.ai-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: center; margin-top: 30px; }
.ai-points { display: grid; gap: 14px; }
.ai-point {
  display: flex; gap: 16px; padding: 20px; border-radius: var(--radius);
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px); transition: all .4s var(--ease);
}
.ai-point:hover { background: rgba(255,255,255,0.08); border-color: rgba(216,102,31,0.4); transform: translateX(-6px); }
.ai-point .num {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: var(--grad-orange); color: #fff; font-weight: 800; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
}
.ai-point h3 { font-size: 1.06rem; font-weight: 800; color: #fff; margin-bottom: 5px; }
.ai-point p { font-size: 0.92rem; color: rgba(255,255,255,0.68); line-height: 1.7; }

/* AI panel mockup */
.ai-panel {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl); padding: 26px; backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.3); position: relative;
}
.ai-panel::before { content: ''; position: absolute; inset: -1px; border-radius: var(--radius-xl); padding: 1px; background: linear-gradient(135deg, rgba(216,102,31,0.5), transparent 40%, transparent 60%, rgba(74,107,168,0.5)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.ap-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.ap-head .logo-ai { width: 44px; height: 44px; border-radius: 14px; background: var(--grad-orange); display: flex; align-items: center; justify-content: center; color: #fff; position: relative; }
.ap-head .logo-ai::after { content: ''; position: absolute; inset: -4px; border-radius: 18px; border: 1.5px solid rgba(216,102,31,0.4); animation: ring-pulse 2s ease-out infinite; }
.ap-head .tx .t { font-weight: 800; font-size: 1.02rem; color: #fff; }
.ap-head .tx .s { font-size: 0.76rem; color: rgba(255,255,255,0.6); display: flex; align-items: center; gap: 5px; }
.ap-head .tx .s .d { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; animation: pulse-dot 1.8s infinite; }
.ap-head .score { margin-inline-start: auto; text-align: left; }
.ap-head .score .v { font-size: 1.4rem; font-weight: 900; color: var(--orange-light); line-height: 1; }
.ap-head .score .l { font-size: 0.64rem; color: rgba(255,255,255,0.55); }

/* health bar */
.health { margin-bottom: 18px; }
.health .row { display: flex; justify-content: space-between; font-size: 0.74rem; color: rgba(255,255,255,0.65); margin-bottom: 8px; }
.health .row b { color: #fff; }
.health .track { height: 8px; background: rgba(255,255,255,0.1); border-radius: 999px; overflow: hidden; }
.health .fill { height: 100%; background: linear-gradient(90deg, var(--orange), var(--orange-light)); border-radius: 999px; width: 0; transition: width 1.8s var(--ease); }

/* chat messages */
.ai-msg {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; padding: 14px 16px; margin-bottom: 10px;
  display: flex; gap: 12px; align-items: flex-start;
  position: relative; overflow: hidden;
}
.ai-msg.alert { background: rgba(216,102,31,0.12); border-color: rgba(216,102,31,0.3); }
.ai-msg.success { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.25); }
.ai-msg .ic { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.ai-msg.alert .ic { background: var(--orange); color: #fff; }
.ai-msg.success .ic { background: #16a34a; color: #fff; }
.ai-msg .ic.info { background: rgba(74,107,168,0.5); color: #fff; }
.ai-msg .tx { flex: 1; }
.ai-msg .tx .t { font-size: 0.82rem; font-weight: 700; color: #fff; margin-bottom: 3px; display: flex; align-items: center; gap: 8px; }
.ai-msg .tx .t .tag { font-size: 0.6rem; padding: 2px 7px; border-radius: 6px; background: rgba(255,255,255,0.15); font-weight: 600; }
.ai-msg .tx .d { font-size: 0.76rem; color: rgba(255,255,255,0.72); line-height: 1.6; }
.ai-msg .tx .action { margin-top: 8px; display: inline-flex; align-items: center; gap: 5px; font-size: 0.72rem; font-weight: 700; color: var(--orange-light); }

.ai-cta { margin-top: 50px; text-align: center; }

/* ==========================================================================
   FEATURES GRID
   ========================================================================== */
.features { background: var(--bg); }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.feat-card {
  background: #fff; border-radius: var(--radius-lg); padding: 30px;
  border: 1px solid var(--line); transition: all .45s var(--ease);
  position: relative; overflow: hidden;
}
.feat-card::before {
  content: ''; position: absolute; top: 0; right: 0; width: 120px; height: 120px;
  background: radial-gradient(circle, var(--brand-soft), transparent 70%);
  opacity: 0; transition: opacity .45s; transform: translate(30%, -30%);
}
.feat-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feat-card:hover::before { opacity: 1; }
.feat-card .ic {
  width: 58px; height: 58px; border-radius: 16px; margin-bottom: 20px;
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  transition: all .45s var(--ease); position: relative; z-index: 1;
}
.feat-card:nth-child(3n+2) .ic { background: var(--orange-soft); color: var(--orange); }
.feat-card:nth-child(3n+3) .ic { background: #E7F6EC; color: #16a34a; }
.feat-card:hover .ic { transform: scale(1.08) rotate(-6deg); }
.feat-card .ic svg { width: 28px; height: 28px; }
.feat-card h3 { font-size: 1.15rem; font-weight: 800; color: var(--ink); margin-bottom: 10px; position: relative; z-index: 1; }
.feat-card p { font-size: 0.94rem; color: var(--muted); line-height: 1.75; position: relative; z-index: 1; }

/* ==========================================================================
   WHY DIFFERENT
   ========================================================================== */
.why { background: var(--white); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.why-card {
  text-align: center; padding: 36px 24px; border-radius: var(--radius-lg);
  background: var(--bg); border: 1px solid var(--line); transition: all .45s var(--ease);
}
.why-card:hover { transform: translateY(-6px); background: #fff; box-shadow: var(--shadow); border-color: transparent; }
.why-card .ic {
  width: 72px; height: 72px; border-radius: 22px; margin: 0 auto 20px;
  background: var(--grad-brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px rgba(47,78,143,0.3);
}
.why-card:nth-child(even) .ic { background: var(--grad-orange); box-shadow: var(--shadow-orange); }
.why-card .ic svg { width: 34px; height: 34px; }
.why-card h3 { font-size: 1.12rem; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.why-card p { font-size: 0.92rem; color: var(--muted); line-height: 1.7; }

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */
.how { background: var(--bg); position: relative; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; position: relative; }
.steps::before {
  content: ''; position: absolute; top: 50px; right: 16%; left: 16%; height: 3px;
  background: repeating-linear-gradient(90deg, var(--brand-light) 0 10px, transparent 10px 20px);
  z-index: 0;
}
.step { text-align: center; position: relative; z-index: 1; }
.step .circle {
  width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 22px;
  background: #fff; border: 3px dashed var(--brand-light);
  display: flex; align-items: center; justify-content: center; color: var(--brand);
  transition: all .5s var(--ease); position: relative;
}
.step:hover .circle { border-style: solid; border-color: var(--orange); color: var(--orange); transform: rotate(360deg) scale(1.05); }
.step .circle .n { position: absolute; top: -8px; right: -8px; width: 32px; height: 32px; border-radius: 50%; background: var(--grad-orange); color: #fff; font-weight: 800; font-size: 0.95rem; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-orange); }
.step .circle svg { width: 42px; height: 42px; }
.step h3 { font-size: 1.2rem; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.step p { font-size: 0.95rem; color: var(--muted); max-width: 280px; margin: 0 auto; }

/* ==========================================================================
   SUBSCRIPTION
   ========================================================================== */
.sub { background: var(--white); }
.sub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.plan {
  background: #fff; border-radius: var(--radius-xl); padding: 36px 30px;
  border: 2px solid var(--line); transition: all .45s var(--ease);
  position: relative; display: flex; flex-direction: column;
}
.plan:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.plan.featured { border-color: var(--orange); box-shadow: var(--shadow-orange); background: linear-gradient(180deg, #FFFBF7, #fff); }
.plan.featured::before {
  content: 'الأكثر طلباً'; position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--grad-orange); color: #fff; font-size: 0.76rem; font-weight: 700;
  padding: 6px 16px; border-radius: 999px; box-shadow: var(--shadow-orange); white-space: nowrap;
}
.plan .ic { width: 60px; height: 60px; border-radius: 18px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.plan.featured .ic { background: var(--orange-soft); color: var(--orange); }
.plan .ic svg { width: 30px; height: 30px; }
.plan h3 { font-size: 1.35rem; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.plan .desc { font-size: 0.9rem; color: var(--muted); margin-bottom: 22px; }
.plan ul { display: grid; gap: 12px; margin-bottom: 28px; flex: 1; }
.plan li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.93rem; color: var(--ink-2); line-height: 1.6; }
.plan li .ck { width: 22px; height: 22px; border-radius: 7px; background: #E7F6EC; color: #16a34a; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.plan li .ck svg { width: 14px; height: 14px; }
.plan.featured li .ck { background: var(--orange-soft); color: var(--orange); }
.plan .btn { margin-top: auto; }

/* ==========================================================================
   CONTACT FORM
   ========================================================================== */
.contact { background: var(--grad-hero); position: relative; overflow: hidden; }
.contact-blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4; }
.contact-blob.c1 { width: 360px; height: 360px; background: radial-gradient(circle, rgba(47,78,143,0.3), transparent 70%); top: -80px; left: -60px; }
.contact-blob.c2 { width: 320px; height: 320px; background: radial-gradient(circle, rgba(216,102,31,0.25), transparent 70%); bottom: -80px; right: -60px; }
.contact-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items: center; position: relative; z-index: 1; }
.contact-info h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; color: var(--ink); line-height: 1.3; margin-bottom: 18px; }
.contact-info p { font-size: 1.05rem; color: var(--muted); line-height: 1.85; margin-bottom: 28px; }
.contact-channels { display: grid; gap: 14px; }
.contact-channel { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: all .35s var(--ease); }
.contact-channel:hover { transform: translateX(-6px); box-shadow: var(--shadow); }
.contact-channel .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-channel .ic svg { width: 24px; height: 24px; }
.contact-channel .tx .t { font-size: 0.82rem; color: var(--muted); }
.contact-channel .tx .v { font-size: 1rem; font-weight: 700; color: var(--ink); }

.form-card {
  background: #fff; border-radius: var(--radius-xl); padding: 38px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.88rem; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
.field label .req { color: var(--orange); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; font-size: 0.95rem;
  border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg);
  color: var(--ink); transition: all .3s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #a0aac0; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); background: #fff;
  box-shadow: 0 0 0 4px rgba(47,78,143,0.1);
}
.field.error input, .field.error select, .field.error textarea { border-color: #ef4444; background: #FEF2F2; }
.field .err-msg { font-size: 0.78rem; color: #ef4444; margin-top: 5px; display: none; }
.field.error .err-msg { display: block; animation: shake .4s; }
.field textarea { resize: vertical; min-height: 90px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7794' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 16px center; background-size: 18px; padding-left: 44px; }

.form-card .btn { margin-top: 6px; position: relative; }
.form-card .btn.loading { pointer-events: none; color: transparent; }
.form-card .btn.loading::after { content: ''; position: absolute; width: 22px; height: 22px; border: 3px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%,-50%); animation: spin .7s linear infinite; }

.form-success {
  display: none; text-align: center; padding: 40px 20px;
}
.form-success.show { display: block; animation: pop-in .6s var(--ease-bounce); }
.success-icon { width: 84px; height: 84px; border-radius: 50%; background: #E7F6EC; color: #16a34a; display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; }
.success-icon svg { width: 44px; height: 44px; }
.form-success h3 { font-size: 1.5rem; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.form-success p { color: var(--muted); }

/* ==========================================================================
   FINAL CTA
   ========================================================================== */
.final-cta { padding: 80px 0; }
.final-card {
  background: var(--grad-brand); border-radius: var(--radius-xl);
  padding: 70px 50px; text-align: center; position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.final-card::before { content: ''; position: absolute; top: -100px; left: -100px; width: 320px; height: 320px; background: radial-gradient(circle, rgba(216,102,31,0.45), transparent 65%); }
.final-card::after { content: ''; position: absolute; bottom: -120px; right: -100px; width: 340px; height: 340px; background: radial-gradient(circle, rgba(74,107,168,0.5), transparent 65%); }
.final-card .content { position: relative; z-index: 1; }
.final-card h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.3; margin-bottom: 16px; }
.final-card p { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 600px; margin: 0 auto 32px; line-height: 1.8; }
.final-card .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.final-card .btn-secondary { background: rgba(255,255,255,0.15); color: #fff; border-color: rgba(255,255,255,0.3); backdrop-filter: blur(10px); }
.final-card .btn-secondary:hover { background: #fff; color: var(--brand); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--brand-darker); color: rgba(255,255,255,0.7); padding: 70px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand .logo-text .l1 b { color: #fff; }
.footer-brand .logo-text .l2 { color: var(--orange-light); }
.footer-brand p { margin-top: 18px; font-size: 0.92rem; line-height: 1.8; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 1.02rem; font-weight: 700; margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { font-size: 0.92rem; transition: .25s; display: inline-flex; align-items: center; gap: 8px; }
.footer-col a:hover { color: var(--orange-light); padding-inline-start: 4px; }
.footer-social { display: flex; gap: 12px; margin-top: 8px; }
.footer-social a { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; transition: all .35s var(--ease); }
.footer-social a:hover { background: var(--orange); transform: translateY(-4px); }
.footer-social a svg { width: 20px; height: 20px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.86rem; }
.footer-bottom .made { font-size: 0.82rem; opacity: 0.7; }

/* footer logo (white) */
.f-logo { display: flex; align-items: center; gap: 12px; }
.f-logo .mark { width: 50px; height: 50px; border-radius: 14px; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; }

/* ==========================================================================
   FLOATING WHATSAPP
   ========================================================================== */
.float-wa {
  position: fixed; bottom: 24px; left: 24px; z-index: 900;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(37,211,102,0.5); transition: transform .35s var(--ease);
}
.float-wa::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: ring-pulse 2s ease-out infinite; }
.float-wa:hover { transform: scale(1.1); }
.float-wa svg { width: 30px; height: 30px; position: relative; z-index: 1; }

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }
.reveal.d4 { transition-delay: .4s; }
.reveal.scale { transform: scale(0.92); }
.reveal.scale.in { transform: scale(1); }
.reveal.left { transform: translateX(-50px); }
.reveal.right { transform: translateX(50px); }
.reveal.left.in, .reveal.right.in { transform: translateX(0); }

/* ==========================================================================
   KEYFRAMES
   ========================================================================== */
@keyframes float-y { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes float-blob { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(30px,-30px) scale(1.08); } 66% { transform: translate(-20px,20px) scale(0.95); } }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 currentColor; opacity: 1; } 70% { box-shadow: 0 0 0 8px transparent; opacity: 0.6; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes ring-pulse { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes pop-in { 0% { opacity: 0; transform: scale(0.8); } 100% { opacity: 1; transform: scale(1); } }
@keyframes scroll-down { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-inner, .cloud-inner, .ai-grid, .contact-inner { grid-template-columns: 1fr; gap: 50px; }
  .hero-visual { height: 500px; max-width: 560px; margin: 0 auto; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .header-cta .btn-secondary { display: none; }
}

@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .sub-grid, .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .feat-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 26px 22px; }
  .final-card { padding: 50px 26px; }
  .hero { padding: 130px 0 60px; }
  .hero-stats { gap: 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .footer-brand p { margin-inline: auto; }
  .footer-social { justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .plan.featured { transform: none; }
  .ai-panel { padding: 20px; }
  .phone-big { width: 280px; height: 560px; }
  .phone-big-screen { padding: 42px 16px 16px; }
  .dash-main { width: 100%; }
}

@media (max-width: 480px) {
  .why-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 440px; transform: scale(0.92); }
  .fc.ai-card, .fc.alert-card { width: 210px; }
  .btn { padding: 13px 24px; font-size: 0.95rem; }
  .section-title { font-size: 1.7rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
