
/* ============================================================
   DESIGN SYSTEM — $100M SaaS TIER
   ============================================================ */
:root {
  --blue:        #2563EB;
  --blue-mid:    #3B82F6;
  --blue-light:  #60A5FA;
  --blue-dark:   #1D4ED8;
  --blue-deeper: #1E3A8A;
  --cyan:        #06B6D4;
  --cyan-light:  #67E8F9;
  --indigo:      #6366F1;

  /* LIGHT */
  --bg:           #F8FAFF;
  --bg-alt:       #EEF3FF;
  --surface:      #FFFFFF;
  --surface2:     #F4F7FF;
  --border:       rgba(37,99,235,0.12);
  --border-strong:#CBD5E1;
  --text-1:       #0A0F1E;
  --text-2:       #3A4569;
  --text-3:       #8899BB;
  --nav-bg:       rgba(248,250,255,0.82);
  --glow:         rgba(37,99,235,0.18);
  --shadow-sm:    0 2px 12px rgba(10,15,30,0.06);
  --shadow-md:    0 8px 32px rgba(10,15,30,0.10);
  --shadow-lg:    0 24px 64px rgba(10,15,30,0.13);
  --shadow-blue:  0 12px 40px rgba(37,99,235,0.22);
  --mesh1: #DBEAFE;
  --mesh2: #E0E7FF;
  --mesh3: #CFFAFE;
  --mesh4: #EDE9FE;
  --check-bg:     #EFF6FF;
  --check-color:  #2563EB;
  --tag-y-bg:     #FFFBEB; --tag-y-c: #B45309;
  --tag-p-bg:     #F5F3FF; --tag-p-c: #6D28D9;
  --badge-bg:     rgba(37,99,235,0.07);
  --badge-border: rgba(37,99,235,0.2);
  --badge-text:   #1E40AF;
  --stat-bg:      #FFFFFF;
  --step-num-shadow: 0 4px 16px rgba(37,99,235,0.4);
  --cursor-mix: difference;
}
[data-theme="dark"] {
  --bg:           #070C1A;
  --bg-alt:       #0C1424;
  --surface:      #111827;
  --surface2:     #162035;
  --border:       rgba(96,165,250,0.10);
  --border-strong:#1E3A5F;
  --text-1:       #EEF2FF;
  --text-2:       #94A3C8;
  --text-3:       #4A5880;
  --nav-bg:       rgba(7,12,26,0.85);
  --glow:         rgba(59,130,246,0.25);
  --shadow-sm:    0 2px 12px rgba(0,0,0,0.3);
  --shadow-md:    0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg:    0 24px 64px rgba(0,0,0,0.5);
  --shadow-blue:  0 12px 40px rgba(37,99,235,0.35);
  --mesh1: rgba(37,99,235,0.12);
  --mesh2: rgba(99,102,241,0.10);
  --mesh3: rgba(6,182,212,0.08);
  --mesh4: rgba(139,92,246,0.08);
  --check-bg:     rgba(37,99,235,0.12);
  --check-color:  #60A5FA;
  --tag-y-bg:     rgba(245,158,11,0.12); --tag-y-c: #FCD34D;
  --tag-p-bg:     rgba(139,92,246,0.12); --tag-p-c: #C4B5FD;
  --badge-bg:     rgba(37,99,235,0.15);
  --badge-border: rgba(96,165,250,0.25);
  --badge-text:   #93C5FD;
  --stat-bg:      #111827;
  --step-num-shadow: 0 4px 20px rgba(37,99,235,0.6);
}

/* ============================================================ RESET */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text-1);
  overflow-x: hidden;
  transition: background .4s, color .4s;
  cursor: none;
}
[data-lang="ar"] { font-family: 'Noto Sans Arabic', 'DM Sans', sans-serif; }
h1,h2,h3,h4,h5 { font-family: 'Bricolage Grotesque', sans-serif; }
a { text-decoration:none; color:inherit; }
button { cursor:none; border:none; font-family:inherit; }
img { max-width:100%; display:block; }

/* ============================================================ CUSTOM CURSOR */
#cursor {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--blue);
  transform: translate(-50%,-50%);
  transition: width .3s cubic-bezier(.25,.46,.45,.94), height .3s cubic-bezier(.25,.46,.45,.94), background .3s;
  mix-blend-mode: var(--cursor-mix);
}
#cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9998;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid rgba(37,99,235,0.5);
  transform: translate(-50%,-50%);
  transition: all .15s ease;
}
#cursor.active { width: 40px; height: 40px; background: rgba(37,99,235,0.12); }
#cursor-ring.active { opacity: 0; }
@media (pointer: coarse) { #cursor, #cursor-ring { display: none; } body { cursor: auto; } button { cursor: pointer; } }

/* ============================================================ CANVAS BG */
#bg-canvas {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  opacity: .55;
  transition: opacity .4s;
}
[data-theme="dark"] #bg-canvas { opacity: .35; }

/* ============================================================ NAVBAR */
nav {
  position: fixed; inset: 0 0 auto 0; z-index: 500;
  background: var(--nav-bg);
  backdrop-filter: blur(24px) saturate(1.6);
  border-bottom: 1px solid var(--border);
  transition: background .3s, border-color .3s;
}
.nav-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 72px;
}
.logo {
  display: flex; align-items: center; gap: 11px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 19px; font-weight: 800; color: var(--text-1);
}
.logo-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: 18px;
  box-shadow: 0 4px 16px rgba(37,99,235,0.4);
  position: relative; overflow: hidden;
  transition: transform .3s;
}
.logo-mark::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.25) 0%, transparent 60%);
}
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.08); }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--text-2);
  position: relative; padding-bottom: 2px;
  transition: color .2s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 100%;
  height: 1.5px; background: var(--blue);
  transition: right .3s cubic-bezier(.25,.46,.45,.94);
}
.nav-links a:hover { color: var(--blue); }
.nav-links a:hover::after { right: 0; }
.nav-right { display: flex; align-items: center; gap: 10px; }

/* LANG SELECTOR */
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: transparent; color: var(--text-2);
  font-size: 13px; font-weight: 600;
  transition: all .2s; position: relative;
}
.lang-btn:hover { background: var(--surface); color: var(--blue); border-color: var(--blue); }
.lang-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 6px; min-width: 140px;
  display: none; z-index: 600;
  animation: popIn .2s cubic-bezier(.25,.46,.45,.94);
}
@keyframes popIn {
  from { opacity:0; transform: scale(.95) translateY(-6px); }
  to { opacity:1; transform: scale(1) translateY(0); }
}
.lang-dropdown.open { display: block; }
.lang-opt {
  padding: 9px 14px; border-radius: 9px; font-size: 13px; font-weight: 500;
  color: var(--text-2); cursor: none; display: flex; align-items: center; gap: 9px;
  transition: all .15s;
}
.lang-opt:hover, .lang-opt.active { background: var(--check-bg); color: var(--blue); }
.lang-opt.active { font-weight: 700; }

/* THEME BTN */
.theme-btn {
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: transparent; color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; transition: all .2s;
  overflow: hidden; position: relative;
}
.theme-btn:hover { background: var(--surface); color: var(--blue); border-color: var(--blue); }
.theme-icon { transition: transform .4s cubic-bezier(.25,.46,.45,.94); }
[data-theme="dark"] .theme-icon { transform: rotate(180deg); }

/* CTA NAV BTN */
.nav-cta {
  padding: 10px 22px; border-radius: 11px;
  background: var(--blue); color: #fff;
  font-size: 14px; font-weight: 700;
  box-shadow: 0 4px 16px rgba(37,99,235,0.35);
  transition: all .25s;
  position: relative; overflow: hidden;
}
.nav-cta::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.15) 0%, transparent 60%);
}
.nav-cta::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 120% -20%, rgba(255,255,255,.3), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.nav-cta:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,99,235,0.45); }
.nav-cta:hover::after { opacity: 1; }

/* ============================================================ HERO */
#hero {
  min-height: 100vh;
  display: grid; place-items: center;
  padding: 120px 32px 80px;
  position: relative; overflow: hidden;
}
.hero-mesh {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 75% 30%, var(--mesh1) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 20% 70%, var(--mesh3) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 80%, var(--mesh4) 0%, transparent 60%);
}
.hero-inner {
  max-width: 1240px; width: 100%; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
  position: relative; z-index: 1;
}
.pill-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 100px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--badge-text); font-size: 12.5px; font-weight: 600;
  margin-bottom: 28px;
  animation: pillIn .6s cubic-bezier(.25,.46,.45,.94) both;
}
@keyframes pillIn { from { opacity:0; transform: translateY(12px) scale(.96); } to { opacity:1; transform: none; } }
.pill-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--blue);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(37,99,235,.5); } 50% { box-shadow: 0 0 0 5px rgba(37,99,235,0); } }
h1 {
  font-size: clamp(46px, 6.5vw, 76px);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -1.5px;
  color: var(--text-1);
  animation: heroTitleIn .8s cubic-bezier(.25,.46,.45,.94) .1s both;
}
@keyframes heroTitleIn { from { opacity:0; transform: translateY(28px); } to { opacity:1; transform:none; } }
h1 .grad {
  background: linear-gradient(130deg, var(--blue) 0%, var(--cyan) 55%, var(--indigo) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  display: block;
}
.hero-desc {
  font-size: 17px; color: var(--text-2); line-height: 1.75;
  max-width: 500px; margin: 24px 0 40px;
  animation: heroTitleIn .8s cubic-bezier(.25,.46,.45,.94) .2s both;
}
.hero-actions {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  animation: heroTitleIn .8s cubic-bezier(.25,.46,.45,.94) .3s both;
}
.btn-hero {
  padding: 15px 32px; border-radius: 14px;
  background: var(--blue); color: #fff;
  font-size: 15px; font-weight: 700;
  box-shadow: var(--shadow-blue);
  position: relative; overflow: hidden;
  transition: all .25s;
  display: flex; align-items: center; gap: 8px;
}
.btn-hero::before {
  content: ''; position: absolute;
  width: 200%; height: 200%; top: -50%; left: -200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  transition: left .5s;
}
.btn-hero:hover { transform: translateY(-3px); box-shadow: 0 16px 48px rgba(37,99,235,.45); }
.btn-hero:hover::before { left: 100%; }
.btn-play {
  padding: 15px 24px; border-radius: 14px;
  background: var(--surface); color: var(--text-1);
  font-size: 15px; font-weight: 600;
  border: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
  transition: all .25s;
  box-shadow: var(--shadow-sm);
}
.btn-play:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.play-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; padding-left: 2px;
  box-shadow: 0 4px 12px rgba(37,99,235,.4);
  transition: transform .3s;
}
.btn-play:hover .play-icon { transform: scale(1.12); }
.hero-social-proof {
  display: flex; align-items: center; gap: 14px; margin-top: 44px;
  animation: heroTitleIn .8s cubic-bezier(.25,.46,.45,.94) .4s both;
}
.avatars { display: flex; }
.av {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2.5px solid var(--bg);
  margin-left: -10px; background: var(--surface2);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
}
.av:first-child { margin-left: 0; }
.proof-text { font-size: 13.5px; color: var(--text-2); font-weight: 500; line-height: 1.4; }
.proof-text strong { color: var(--text-1); font-weight: 700; }
.stars-row { color: #F59E0B; font-size: 11px; letter-spacing: 1px; }

/* ============================================================ HERO CHAT VISUAL */
.hero-visual { position: relative; }
.float-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border);
  overflow: hidden;
  animation: floatCard .9s cubic-bezier(.25,.46,.45,.94) .15s both;
  max-width: 430px; margin-left: auto;
}
@keyframes floatCard {
  from { opacity:0; transform: translateY(40px) scale(.97); }
  to { opacity:1; transform: translateY(0) scale(1); }
}
.float-card-head {
  padding: 16px 20px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.bot-av {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 17px;
  position: relative; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37,99,235,.35);
}
.online-ring {
  position: absolute; bottom: 0; right: 0;
  width: 12px; height: 12px; border-radius: 50%;
  background: #22C55E; border: 2.5px solid var(--surface2);
}
.bot-name { font-weight: 700; font-size: 14px; }
.bot-status { font-size: 11.5px; color: #22C55E; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: #22C55E; animation: pulse 2s infinite; }
.chat-msgs {
  padding: 20px; display: flex; flex-direction: column; gap: 14px;
  max-height: 380px; overflow: hidden;
}
.msg { display: flex; gap: 10px; animation: msgIn .5s cubic-bezier(.25,.46,.45,.94) both; }
@keyframes msgIn { from { opacity:0; transform: translateY(10px); } to { opacity:1; transform:none; } }
.msg.out { flex-direction: row-reverse; }
.msg-av {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; margin-top: 2px;
}
.msg-av.user { background: linear-gradient(135deg, #6366F1, #8B5CF6); }
.bubble {
  max-width: 78%; padding: 11px 15px; border-radius: 16px;
  font-size: 13px; line-height: 1.55;
}
.bubble-out { background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.bubble-in { background: var(--bg-alt); color: var(--text-1); border-bottom-left-radius: 4px; }
.order-mini {
  margin-top: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 11px 14px;
  display: flex; align-items: center; gap: 10px;
}
.order-mini-icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--check-bg); color: var(--blue);
  display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0;
}
.order-mini-label { font-size: 12px; font-weight: 700; color: var(--text-1); }
.order-mini-sub { font-size: 11px; color: var(--text-3); margin-top: 1px; }
/* floating badges */
.badge-float {
  position: absolute; pointer-events: none;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 10px 16px;
  box-shadow: var(--shadow-md);
  font-size: 12px; font-weight: 700; color: var(--text-1);
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.badge-float.top-left { top: -20px; left: -30px; animation: floatBadge 4s ease-in-out infinite; }
.badge-float.bot-right { bottom: 20px; right: -30px; animation: floatBadge 4s ease-in-out infinite .8s; }
@keyframes floatBadge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.bf-dot { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; }
.bf-dot.orange { background: #F59E0B; }

/* ============================================================ STATS BAR */
.stats-bar {
  background: var(--stat-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative; z-index: 1;
}
.stats-inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3,1fr);
}
.stat-cell {
  padding: 52px 40px; text-align: center;
  border-right: 1px solid var(--border);
  position: relative; overflow: hidden;
  transition: background .25s;
}
.stat-cell:last-child { border-right: none; }
.stat-cell::before {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 60px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0; transition: opacity .3s, width .3s;
}
.stat-cell:hover { background: var(--bg-alt); }
.stat-cell:hover::before { opacity: 1; width: 120px; }
.stat-n {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 52px; font-weight: 800; line-height: 1;
  background: linear-gradient(130deg, var(--blue) 0%, var(--cyan) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-l { font-size: 13.5px; color: var(--text-2); margin-top: 8px; font-weight: 500; }

/* ============================================================ SECTION DEFAULTS */
.section { padding: 112px 32px; position: relative; }
.section-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--blue); margin-bottom: 16px;
}
.section-label::before { content: ''; width: 16px; height: 2px; background: var(--blue); border-radius: 2px; }
.section-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(32px,5vw,52px); font-weight: 800;
  line-height: 1.1; letter-spacing: -1px; color: var(--text-1);
}
.section-sub {
  font-size: 17px; color: var(--text-2); line-height: 1.7;
  max-width: 560px; margin: 16px auto 0;
}
.section-header { text-align: center; margin-bottom: 72px; }
.container { max-width: 1240px; margin: 0 auto; }

/* ============================================================ FEATURES */
#features { background: var(--bg-alt); }
#features .section-header .section-sub { max-width: 600px; }
.feat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.feat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 22px; padding: 32px 28px;
  position: relative; overflow: hidden;
  transition: all .3s cubic-bezier(.25,.46,.45,.94);
}
.feat-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,.04) 0%, transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.feat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(37,99,235,.25); }
.feat-card:hover::before { opacity: 1; }
.feat-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--check-bg); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 22px;
  box-shadow: 0 4px 16px rgba(37,99,235,.1);
  transition: transform .3s;
}
.feat-card:hover .feat-icon { transform: scale(1.1) rotate(-5deg); }
.feat-card h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 10px; }
.feat-card p { font-size: 14px; color: var(--text-2); line-height: 1.65; }
.feat-num {
  position: absolute; top: 20px; right: 22px;
  font-size: 11px; font-weight: 800; color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

/* ============================================================ INTEGRATIONS */
#integrations { background: var(--bg); overflow: hidden; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: center; }
.two-col-text h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(28px,4.5vw,46px); font-weight: 800;
  line-height: 1.12; letter-spacing: -0.8px; margin-bottom: 18px;
}
.two-col-text p { font-size: 15.5px; color: var(--text-2); line-height: 1.75; margin-bottom: 26px; }
.check-ul { list-style: none; display: flex; flex-direction: column; gap: 13px; margin-bottom: 34px; }
.check-ul li {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; font-weight: 500;
}
.check-circle {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--check-bg); color: var(--check-color);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.btn-outline-x {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 11px;
  border: 1px solid var(--border-strong); background: transparent;
  color: var(--text-1); font-size: 14px; font-weight: 600;
  transition: all .25s;
}
.btn-outline-x:hover { background: var(--surface); border-color: var(--blue); color: var(--blue); transform: translateX(3px); }
.platform-stack { display: flex; flex-direction: column; gap: 14px; }
.platform-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.p-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 20px 22px;
  display: flex; align-items: center; gap: 16px;
  transition: all .25s; position: relative; overflow: hidden;
}
.p-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,.04), transparent);
  opacity: 0; transition: opacity .3s;
}
.p-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(37,99,235,.2); }
.p-card:hover::after { opacity: 1; }
.p-card.span2 { grid-column: 1/-1; }
.p-logo {
  width: 50px; height: 50px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
}
.p-logo.ig { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.p-logo.fb { background: #1877F2; }
.p-logo.wa { background: #25D366; }
.p-name { font-size: 15px; font-weight: 700; }
.p-status { font-size: 12px; color: var(--text-3); margin-top: 3px; font-weight: 500; }
.p-badge {
  margin-left: auto; padding: 4px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 700;
  background: rgba(34,197,94,.1); color: #16A34A;
  flex-shrink: 0;
}
[data-theme="dark"] .p-badge { background: rgba(34,197,94,.12); color: #4ADE80; }

/* ============================================================ DELIVERY */
#delivery { background: var(--bg-alt); overflow: hidden; }
.delivery-track-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 24px; padding: 26px; box-shadow: var(--shadow-lg);
  max-width: 380px; position: relative;
}
.delivery-track-card::before {
  content: ''; position: absolute; inset: -1px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(37,99,235,.2), transparent 50%);
  z-index: -1;
}
.t-msg-out {
  background: var(--blue); color: #fff;
  padding: 12px 16px; border-radius: 14px 14px 4px 14px;
  font-size: 13px; align-self: flex-end; max-width: 78%;
  box-shadow: 0 4px 12px rgba(37,99,235,.3);
}
.t-msg-in {
  background: var(--bg-alt); color: var(--text-1);
  padding: 12px 16px; border-radius: 14px 14px 14px 4px;
  font-size: 13px; max-width: 90%;
}
.t-msgs { display: flex; flex-direction: column; gap: 12px; }
.t-status-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px; margin-top: 10px;
}
.t-status-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.transit-badge {
  padding: 3px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 700;
  background: #DCFCE7; color: #15803D;
}
[data-theme="dark"] .transit-badge { background: rgba(34,197,94,.15); color: #4ADE80; }
.t-detail { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.delivery-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.dtag {
  padding: 8px 18px; border-radius: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .3px;
}
.dtag-y { background: var(--tag-y-bg); color: var(--tag-y-c); }
.dtag-p { background: var(--tag-p-bg); color: var(--tag-p-c); }
.d-checks { display: flex; flex-direction: column; gap: 20px; }
.d-check { display: flex; gap: 14px; align-items: flex-start; }
.d-check-icon {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0; margin-top: 2px;
  background: var(--check-bg); color: var(--check-color);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
}
.d-check h4 { font-size: 15px; font-weight: 700; }
.d-check p { font-size: 13.5px; color: var(--text-2); margin-top: 3px; line-height: 1.55; }

/* ============================================================ HOW IT WORKS */
#how { background: var(--bg); }
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; position: relative; }
.steps-grid::before {
  content: ''; position: absolute; top: 64px; left: calc(16.67% + 24px); right: calc(16.67% + 24px);
  height: 1.5px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--indigo));
  opacity: .3; border-radius: 2px;
}
.step-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 24px; padding: 40px 32px; text-align: center;
  position: relative; overflow: hidden;
  transition: all .3s cubic-bezier(.25,.46,.45,.94);
}
.step-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.step-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue); color: #fff;
  font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--step-num-shadow);
}
.step-icon {
  width: 88px; height: 88px; border-radius: 22px;
  background: var(--bg-alt); margin: 0 auto 26px;
  display: flex; align-items: center; justify-content: center;
  font-size: 38px; transition: transform .35s cubic-bezier(.25,.46,.45,.94);
}
.step-card:hover .step-icon { transform: scale(1.08) rotate(-5deg); }
.step-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 12px; }
.step-card p { font-size: 14px; color: var(--text-2); line-height: 1.7; }

/* ============================================================ TESTIMONIALS */
#testimonials { background: var(--bg-alt); overflow: hidden; }
.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.testi-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 22px; padding: 30px;
  transition: all .3s cubic-bezier(.25,.46,.45,.94);
  position: relative; overflow: hidden;
}
.testi-card::before {
  content: '"'; position: absolute; top: 14px; right: 22px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 72px; line-height: 1; color: var(--blue);
  opacity: .06; font-weight: 900; pointer-events: none;
}
.testi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(37,99,235,.2); }
.testi-stars { color: #F59E0B; font-size: 14px; letter-spacing: 2px; margin-bottom: 16px; }
.testi-card h4 { font-size: 16px; font-weight: 800; margin-bottom: 12px; }
.testi-card blockquote {
  font-size: 14px; color: var(--text-2); line-height: 1.75;
  margin-bottom: 22px; font-style: italic;
}
.testi-reviewer { display: flex; align-items: center; gap: 12px; }
.testi-av {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px;
}
.testi-name { font-size: 14px; font-weight: 700; }
.testi-role { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* ============================================================ PRICING */
#pricing { background: var(--bg); }
.pricing-wrap {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 22px;
  max-width: 960px; margin: 0 auto; align-items: start;
}
.plan-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 24px; padding: 34px 30px; position: relative;
  transition: all .3s cubic-bezier(.25,.46,.45,.94);
}
.plan-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.plan-card.hero-plan {
  background: linear-gradient(160deg, #1D4ED8 0%, #2563EB 40%, #0EA5E9 100%);
  border-color: transparent; color: #fff;
  transform: scale(1.04);
  box-shadow: var(--shadow-blue), 0 0 0 1px rgba(255,255,255,.1) inset;
}
.plan-card.hero-plan:hover { transform: scale(1.04) translateY(-5px); }
.plan-card.hero-plan::before {
  content: ''; position: absolute; inset: 0; border-radius: 24px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,255,255,.12), transparent);
  pointer-events: none;
}
.pop-badge {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(90deg, #F59E0B, #FBBF24);
  color: #fff; padding: 5px 16px; border-radius: 100px;
  font-size: 11px; font-weight: 800; letter-spacing: .6px;
  box-shadow: 0 4px 14px rgba(245,158,11,.4);
  white-space: nowrap;
}
.plan-name { font-size: 21px; font-weight: 800; margin-bottom: 6px; }
.plan-tagline { font-size: 13px; opacity: .6; margin-bottom: 26px; }
.plan-price-wrap { display: flex; align-items: baseline; gap: 4px; margin-bottom: 6px; }
.plan-price-big { font-family: 'Bricolage Grotesque', sans-serif; font-size: 48px; font-weight: 800; line-height: 1; }
.plan-price-unit { font-size: 15px; opacity: .6; }
.plan-price-free { font-family: 'Bricolage Grotesque', sans-serif; font-size: 48px; font-weight: 800; }
.plan-div { height: 1px; background: var(--border); margin: 26px 0; }
.hero-plan .plan-div { background: rgba(255,255,255,.18); }
.plan-feats { list-style: none; display: flex; flex-direction: column; gap: 13px; margin-bottom: 30px; }
.plan-feats li { display: flex; align-items: center; gap: 11px; font-size: 14px; }
.plan-feats li::before { content: '✓'; font-weight: 800; color: var(--check-color); font-size: 13px; }
.hero-plan .plan-feats li::before { color: #fff; }
.btn-plan {
  width: 100%; padding: 15px; border-radius: 13px;
  font-size: 15px; font-weight: 700; transition: all .25s;
}
.btn-border { background: transparent; border: 1.5px solid var(--border-strong); color: var(--text-1); }
.btn-border:hover { background: var(--bg-alt); border-color: var(--blue); color: var(--blue); }
.btn-white { background: #fff; color: var(--blue); box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.btn-white:hover { background: #EFF6FF; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.18); }

/* ============================================================ CTA SECTION */
#cta {
  margin: 0 32px 64px;
  border-radius: 32px;
  background: linear-gradient(130deg, #1E3A8A 0%, #2563EB 45%, #0EA5E9 100%);
  padding: 96px 40px;
  text-align: center;
  position: relative; overflow: hidden;
}
#cta::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(255,255,255,0.06)'/%3E%3C/svg%3E");
  background-size: 30px 30px;
}
#cta::after {
  content: ''; position: absolute;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.07), transparent 70%);
  top: -200px; right: -100px;
}
#cta h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(34px, 6vw, 62px); font-weight: 800;
  color: #fff; margin-bottom: 18px; position: relative; z-index: 1;
  letter-spacing: -1px;
}
#cta p { font-size: 18px; color: rgba(255,255,255,.75); max-width: 540px; margin: 0 auto 40px; position: relative; z-index: 1; line-height: 1.65; }
.btn-cta-big {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 18px 36px; border-radius: 16px;
  background: #fff; color: var(--blue);
  font-size: 16px; font-weight: 800;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  transition: all .25s; position: relative; z-index: 1;
}
.btn-cta-big:hover { transform: translateY(-3px); box-shadow: 0 16px 48px rgba(0,0,0,.25); }
.cta-note { font-size: 13px; color: rgba(255,255,255,.55); margin-top: 16px; position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; justify-content: center; }
.cta-note::before { content: '✓'; color: rgba(255,255,255,.7); }

/* ============================================================ FOOTER */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 72px 32px 36px;
}
.footer-grid {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 48px;
}
.footer-brand-desc { font-size: 14px; color: var(--text-2); margin-top: 14px; line-height: 1.7; max-width: 280px; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.soc-btn {
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: transparent;
  color: var(--text-3); font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.soc-btn:hover { background: var(--check-bg); color: var(--blue); border-color: var(--blue); transform: translateY(-2px); }
.footer-col h6 { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--text-3); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col ul li a { font-size: 14px; color: var(--text-2); transition: color .2s; }
.footer-col ul li a:hover { color: var(--blue); }
.footer-bottom {
  max-width: 1240px; margin: 48px auto 0;
  padding-top: 28px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--text-3);
}

/* ============================================================ SCROLL ANIMATIONS */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s cubic-bezier(.25,.46,.45,.94), transform .7s cubic-bezier(.25,.46,.45,.94); }
.reveal.in { opacity: 1; transform: none; }
.reveal-l { opacity: 0; transform: translateX(-30px); transition: opacity .7s .1s, transform .7s .1s cubic-bezier(.25,.46,.45,.94); }
.reveal-l.in { opacity: 1; transform: none; }
.reveal-r { opacity: 0; transform: translateX(30px); transition: opacity .7s .15s, transform .7s .15s cubic-bezier(.25,.46,.45,.94); }
.reveal-r.in { opacity: 1; transform: none; }
.d1 { transition-delay: .1s !important; }
.d2 { transition-delay: .2s !important; }
.d3 { transition-delay: .3s !important; }
.d4 { transition-delay: .4s !important; }

/* ============================================================ SHIMMER SKELETON (loading state) */
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }

/* ============================================================ MOBILE MENU */
.ham { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--border-strong); background: transparent; padding: 8px 7px; }
.ham span { display: block; height: 1.5px; background: var(--text-1); border-radius: 2px; transition: all .3s; }
.mobile-nav {
  display: none; position: fixed; inset: 72px 0 0 0;
  background: var(--nav-bg); backdrop-filter: blur(24px);
  border-top: 1px solid var(--border);
  z-index: 490; padding: 24px 32px;
  flex-direction: column; gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 14px 0; font-size: 17px; font-weight: 600; color: var(--text-1);
  border-bottom: 1px solid var(--border); transition: color .2s;
}
.mobile-nav a:hover { color: var(--blue); }

/* ============================================================ RESPONSIVE */
@media (max-width: 1080px) {
  .feat-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .ham { display: flex; }
  .hero-inner, .two-col, #delivery .two-col { grid-template-columns: 1fr; }
  .hero-visual, .badge-float { display: none; }
  .stats-inner { grid-template-columns: 1fr; }
  .stat-cell { border-right: none; border-bottom: 1px solid var(--border); padding: 36px 28px; }
  .stat-cell:last-child { border-bottom: none; }
  .feat-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .testi-grid { grid-template-columns: 1fr; }
  .pricing-wrap { grid-template-columns: 1fr; }
  .plan-card.hero-plan { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  #cta { margin: 0 16px 48px; border-radius: 24px; padding: 64px 24px; }
  .section { padding: 80px 24px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .platform-row2 { grid-template-columns: 1fr; }
}
.p-logo {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
}

/* Brand colors */
.p-logo.ig {
  background: linear-gradient(45deg,#f58529,#dd2a7b,#8134af,#515bd4);
}

.p-logo.fb {
  background: #0084ff;
}

.p-logo.wa {
  background: #25d366;
}
.pipeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 50px;
  flex-wrap: wrap;
}

.pipe-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.pipe-icon {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: white;
  margin-bottom: 10px;
  animation: float 3s ease-in-out infinite;
}

/* Different colors */
.pipe-icon.ig { background: linear-gradient(45deg,#f58529,#dd2a7b); }
.pipe-icon.ai { background: linear-gradient(45deg,#6c63ff,#00c6ff); }
.pipe-icon.chat { background: linear-gradient(45deg,#00c6ff,#22b8cf); }
.pipe-icon.cart { background: linear-gradient(45deg,#51cf66,#94d82d); }
.pipe-icon.check { background: linear-gradient(45deg,#fcc419,#ff922b); }

.pipe-title {
  font-weight: 600;
  font-size: 14px;
  text-align: center;
}

/* Connecting line */
.pipe-line {
  flex: 1;
  height: 3px;
  background: linear-gradient(90deg,#6c63ff,#00c6ff);
  margin: 0 10px;
  position: relative;
  overflow: hidden;
}

/* animated flow effect */
.pipe-line::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 100%;
  background: rgba(255,255,255,0.5);
  animation: flow 2s linear infinite;
}

/* animations */
@keyframes flow {
  0% { left: -50px; }
  100% { left: 100%; }
}

@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ===== PIPELINE BASE ===== */
.pipeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 60px;
  gap: 10px;
  flex-wrap: nowrap;
}

.pipe-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
  text-align: center;
  z-index: 2;
}

.pipe-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  margin-bottom: 8px;
  animation: float 3s ease-in-out infinite;
}

.pipe-title {
  font-size: 13px;
  font-weight: 600;
}

/* COLORS */
.pipe-icon.ig { background: linear-gradient(45deg,#f58529,#dd2a7b); }
.pipe-icon.ai { background: linear-gradient(45deg,#6c63ff,#00c6ff); }
.pipe-icon.chat { background: linear-gradient(45deg,#00c6ff,#22b8cf); }
.pipe-icon.cart { background: linear-gradient(45deg,#51cf66,#94d82d); }
.pipe-icon.check { background: linear-gradient(45deg,#fcc419,#ff922b); }

/* ===== CONNECTION LINE ===== */
.pipe-line {
  flex: 1;
  height: 3px;
  background: linear-gradient(90deg,#6c63ff,#00c6ff);
  position: relative;
  overflow: hidden;
}

/* FLOW ANIMATION */
.pipe-line::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 100%;
  background: rgba(255,255,255,0.5);
  animation: flow 2s linear infinite;
}

/* ===== RTL SUPPORT ===== */
html[dir="rtl"] .pipeline {
  flex-direction: row-reverse;
}

html[dir="rtl"] .pipe-line {
  background: linear-gradient(270deg,#6c63ff,#00c6ff);
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .pipeline {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  .pipe-line {
    width: 3px;
    height: 40px;
  }

  .pipe-line::after {
    width: 100%;
    height: 20px;
    animation: flowVertical 2s linear infinite;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes flow {
  0% { left: -40px; }
  100% { left: 100%; }
}

@keyframes flowVertical {
  0% { top: -20px; }
  100% { top: 100%; }
}

@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}


.soc-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-2);
  transition: all 0.25s ease;
}

/* Hover effect */
.soc-btn:hover {
  transform: translateY(-3px);
  color: white;
}

/* Brand hover colors */
.soc-btn:nth-child(1):hover {
  background: #1877f2; /* Facebook */
}

.soc-btn:nth-child(2):hover {
  background: linear-gradient(45deg,#f58529,#dd2a7b,#8134af,#515bd4);
}

.soc-btn:nth-child(3):hover {
  background: #000; /* X */
}