/* ============================================================
   7x.automations — Core design system
   LIGHT theme · White / Blue / Red.
   Blue (#1f55e0) = identity, links, icons, highlights.
   Red  (#e11d2f) = action / primary CTAs / accents.
   CSS variables drive the whole theme. RTL-first (Hebrew default).
   Token names kept stable so existing markup re-themes for free.
   ============================================================ */

:root {
  /* --- Surfaces --- */
  --bg:          #f4f7fc;   /* app canvas */
  --bg-2:        #eef2fa;
  --surface:     #ffffff;   /* card / panel */
  --surface-2:   #f6f9fe;
  --surface-3:   #ffffff00;
  --elevated:    #ffffff;

  /* --- Borders & lines --- */
  --border:        rgba(15,33,71,0.10);
  --border-strong: rgba(15,33,71,0.16);
  --border-glow:   rgba(31,85,224,0.45);

  /* --- Text --- */
  --text:        #0f1b34;   /* deep navy */
  --text-dim:    #515f78;
  --text-faint:  #8b97ad;

  /* --- Brand colors --- */
  --blue:        #1f55e0;
  --blue-dark:   #1640b0;
  --blue-soft:   #2f6bff;
  --red:         #e11d2f;
  --red-dark:    #c01124;
  --red-soft:    #ef4357;

  /* --- Compatibility tokens (kept for existing markup) --- */
  --cyan:        #1f55e0;   /* -> blue */
  --cyan-soft:   #1f55e0;   /* readable blue on white */
  --purple:      #e11d2f;   /* -> red */
  --purple-soft: #c01124;   /* readable red on white */
  --magenta:     #e11d2f;

  /* --- Accents / gradients --- */
  --accent:      linear-gradient(135deg, #2f6bff 0%, #1f55e0 100%);          /* blue (brand/highlight) */
  --accent-red:  linear-gradient(135deg, #f5384e 0%, #e11d2f 60%, #c01124 100%); /* red (CTA) */
  --accent-rev:  linear-gradient(135deg, #e11d2f 0%, #1f55e0 100%);
  --accent-soft: linear-gradient(135deg, rgba(31,85,224,.10), rgba(225,29,47,.10));
  --blue-soft-bg: rgba(31,85,224,.09);
  --red-soft-bg:  rgba(225,29,47,.09);

  /* --- Semantic --- */
  --success:     #0f9d6e;
  --success-bg:  #e7f7f0;
  --warning:     #c2740a;
  --danger:      #d92d20;

  /* --- Shadows (real, cool, soft) --- */
  --shadow-xs:   0 1px 2px rgba(16,33,71,.06);
  --shadow-sm:   0 1px 3px rgba(16,33,71,.10), 0 1px 2px rgba(16,33,71,.06);
  --shadow-md:   0 10px 24px -8px rgba(16,33,71,.16), 0 4px 8px -4px rgba(16,33,71,.08);
  --shadow-lg:   0 26px 60px -18px rgba(16,33,71,.24);
  --glow-cyan:   0 8px 28px -8px rgba(31,85,224,.45);
  --glow-purple: 0 8px 28px -8px rgba(225,29,47,.45);

  /* --- Radii --- */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* --- Type --- */
  --font-display: 'Heebo', 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Heebo', 'Inter', system-ui, sans-serif;

  /* --- Layout --- */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 76px;

  /* --- Motion --- */
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* Latin display font when in English mode */
html[lang="en"] { --font-display: 'Space Grotesk', 'Heebo', system-ui, sans-serif; --font-body: 'Inter', 'Heebo', system-ui, sans-serif; }

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable both-edges;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient page tint */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 680px at 82% -10%, rgba(31,85,224,.10), transparent 60%),
    radial-gradient(820px 560px at 4% 4%, rgba(225,29,47,.07), transparent 55%);
  pointer-events: none;
}

/* Subtle grid texture */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(15,33,71,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,33,71,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, #000 30%, transparent 80%);
  pointer-events: none;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 1rem; }
ul { list-style: none; }

::selection { background: rgba(31,85,224,.18); color: var(--blue-dark); }

/* Scrollbar */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: #c7d2e6; border-radius: 99px; border: 3px solid var(--bg-2); }
::-webkit-scrollbar-thumb:hover { background: #aebdd8; }

/* ============================================================
   Layout helpers
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(64px, 9vw, 130px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px; border-radius: 2px;
  background: var(--red);
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; color: var(--text); }

.h-display {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); font-weight: 800; }
.h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
.h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 60ch;
}

.text-grad {
  background: var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-red { color: var(--red); }
.text-blue { color: var(--blue); }

.muted { color: var(--text-dim); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-inline: auto; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .2s var(--ease);
  white-space: nowrap;
  position: relative;
  isolation: isolate;
}
.btn svg { width: 18px; height: 18px; }

/* Primary = RED (action) */
.btn-primary {
  background: var(--accent-red);
  color: #fff;
  box-shadow: 0 10px 26px -10px rgba(225,29,47,.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(225,29,47,.6); }
.btn-primary:active { transform: translateY(0); box-shadow: var(--shadow-xs); }

/* Blue = brand / secondary solid */
.btn-blue {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 26px -10px rgba(31,85,224,.5);
}
.btn-blue:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(31,85,224,.6); }

.btn-ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-xs);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-soft-bg); transform: translateY(-2px); }

.btn-lg { padding: 17px 34px; font-size: 16px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }

.btn-arrow svg { transition: transform .2s var(--ease); }
.btn-arrow:hover svg { transform: translateX(4px); }

/* Text link */
.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; color: var(--blue);
  transition: gap .2s var(--ease), color .2s var(--ease);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--red); gap: 11px; }

/* ============================================================
   Pills / badges / chips
   ============================================================ */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px;
  border-radius: var(--r-pill);
  background: #fff;
  border: 1px solid var(--border-strong);
  font-size: 13px; font-weight: 600;
  color: var(--text-dim);
  box-shadow: var(--shadow-xs);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(225,29,47,.14); }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: 12.5px; font-weight: 700;
  letter-spacing: .01em;
}
.tag-cyan   { background: var(--blue-soft-bg); color: var(--blue);     border: 1px solid rgba(31,85,224,.22); }
.tag-purple { background: var(--red-soft-bg);  color: var(--red-dark); border: 1px solid rgba(225,29,47,.22); }
.tag-magenta{ background: var(--red-soft-bg);  color: var(--red-dark); border: 1px solid rgba(225,29,47,.22); }

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 30px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--accent-rev);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s var(--ease);
  pointer-events: none;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.card:hover::after { opacity: .7; }

.card-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--blue-soft-bg);
  border: 1px solid rgba(31,85,224,.16);
  color: var(--blue);
  margin-bottom: 22px;
}
.card-icon svg { width: 26px; height: 26px; }
.card-icon.red { background: var(--red-soft-bg); border-color: rgba(225,29,47,.16); color: var(--red); }
.card h3 { font-size: 1.28rem; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 15px; }

/* glass / tinted panel */
.glass {
  background: linear-gradient(180deg, #fff, var(--surface-2));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  position: fixed; inset-block-start: 0; inset-inline: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-xs);
}
.nav {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -.01em; color: var(--text); }
.logo-mark {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--accent);
  color: #fff; font-weight: 800; font-size: 17px;
  box-shadow: 0 6px 18px -6px rgba(31,85,224,.6);
  position: relative;
}
.logo-mark span { position: relative; z-index: 1; }
.logo .dot-x { color: var(--red); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > li { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 13px; border-radius: var(--r-sm);
  font-size: 14.5px; font-weight: 600; color: var(--text-dim);
  white-space: nowrap;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--blue); background: var(--blue-soft-bg); }
.nav-link svg { width: 15px; height: 15px; opacity: .7; transition: transform .2s var(--ease); }
.has-dropdown:hover .nav-link svg { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute; inset-block-start: calc(100% + 10px); inset-inline-start: 0;
  min-width: 290px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 8px;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 13px; border-radius: var(--r-sm);
  transition: background .18s var(--ease);
}
.dropdown a:hover { background: var(--blue-soft-bg); }
.dd-ico { width: 36px; height: 36px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--blue-soft-bg); color: var(--blue); }
.dd-ico svg { width: 19px; height: 19px; }
.dd-txt b { display: block; font-size: 14.5px; font-weight: 700; color: var(--text); }
.dd-txt span { font-size: 12.5px; color: var(--text-faint); }

.nav-cta { display: flex; align-items: center; gap: 10px; }

/* Language switch */
.lang-switch {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-xs);
}
.lang-switch button {
  padding: 7px 13px; font-size: 13px; font-weight: 700; color: var(--text-dim);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.lang-switch button.active { background: var(--accent); color: #fff; }

/* Mobile toggle */
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: var(--r-sm); border: 1px solid var(--border-strong); align-items: center; justify-content: center; background: #fff; color: var(--text); }
.nav-toggle svg { width: 22px; height: 22px; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(20px);
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 4px;
  transform: translateX(-100%);
  transition: transform .35s var(--ease);
  overflow-y: auto;
}
html[lang="en"] .mobile-menu { transform: translateX(100%); }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a { padding: 16px 8px; font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--text); border-bottom: 1px solid var(--border); }
.mobile-menu a.sub { font-size: 17px; padding-inline-start: 24px; color: var(--text-dim); font-weight: 500; }
.mobile-menu .btn { margin-top: 24px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { position: relative; border-top: 1px solid var(--border); background: linear-gradient(180deg, var(--surface-2), #fff); padding-block: clamp(56px, 7vw, 90px) 36px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.6fr; gap: 48px; }
.footer-col h4 { font-family: var(--font-body); font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--text-dim); font-size: 14.5px; transition: color .18s var(--ease); }
.footer-col a:hover { color: var(--blue); }
.footer-brand p { color: var(--text-dim); font-size: 14.5px; margin: 16px 0 22px; max-width: 32ch; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 40px; height: 40px; border-radius: var(--r-sm); border: 1px solid var(--border-strong); display: grid; place-items: center; color: var(--text-dim); background: #fff; transition: all .2s var(--ease); }
.footer-social a:hover { color: var(--blue); border-color: var(--blue); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-faint); }

/* Footer lead form */
.foot-form { display: flex; flex-direction: column; gap: 12px; }
.foot-form .row { display: flex; gap: 12px; }

/* ============================================================
   Form controls
   ============================================================ */
.field { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--text); }
.field .req { color: var(--red); }
.input, .textarea, .select {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  color: var(--text);
  box-shadow: var(--shadow-xs);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(31,85,224,.14);
}
.textarea { resize: vertical; min-height: 120px; }
.field.invalid .input, .field.invalid .textarea, .field.invalid .select { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(217,45,32,.14); }
.field .err { font-size: 12.5px; color: var(--danger); display: none; }
.field.invalid .err { display: block; }
.form-success { display:none; }

/* ============================================================
   Floating WhatsApp button
   ============================================================ */
.wa-float {
  position: fixed; inset-block-end: 26px; inset-inline-end: 26px;
  z-index: 80;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px -6px rgba(37,211,102,.55);
  transition: transform .2s var(--ease);
}
.wa-float svg { width: 31px; height: 31px; color: #fff; }
.wa-float:hover { transform: scale(1.08); }
.wa-float::before, .wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25D366;
  animation: wa-pulse 2.6s var(--ease) infinite;
}
.wa-float::after { animation-delay: 1.3s; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.9); opacity: 0; } }
.wa-label {
  position: absolute; inset-inline-end: 72px; inset-block: 0;
  display: flex; align-items: center;
  background: #fff; border: 1px solid var(--border-strong);
  padding: 0 16px; border-radius: var(--r-pill); white-space: nowrap;
  font-size: 13.5px; font-weight: 700; color: var(--text);
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateX(10px); pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.wa-float:hover .wa-label { opacity: 1; transform: translateX(0); }

/* ============================================================
   Scroll reveal — rAF/instant driven (transition timeline unreliable)
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(28px); will-change: opacity, transform; }
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding-block: calc(var(--header-h) + 40px) 60px;
  overflow: hidden;
}
.hero-orb {
  position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(31,85,224,.22), rgba(225,29,47,.12) 45%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  transition: transform .25s cubic-bezier(.2,.8,.3,1);
  z-index: 0; opacity: .9;
}
#particle-canvas { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero .container { position: relative; z-index: 2; }

/* page hero (interior pages) */
.page-hero { position: relative; padding-block: calc(var(--header-h) + 70px) clamp(50px, 7vw, 90px); overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset-block-start: -120px; inset-inline-end: -80px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(31,85,224,.14), transparent 65%);
  filter: blur(30px); pointer-events: none;
}

/* Hero split + cursor follower */
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(32px, 5vw, 60px); align-items: center; }
.hero-cursor {
  position: absolute; width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle, rgba(225,29,47,.9), rgba(225,29,47,0) 70%);
  pointer-events: none; z-index: 1; opacity: 0;
  transition: opacity .3s var(--ease);
  mix-blend-mode: multiply;
}
.hero-visual { position: relative; perspective: 1100px; z-index: 2; }

/* CRM dashboard mockup (hero) — analytics report style */
.crm-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; transform-style: preserve-3d; transition: transform .15s var(--ease); will-change: transform; }
/* browser window bar */
.crm-win { display: flex; align-items: center; gap: 12px; padding: 9px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.crm-win .ars { display: flex; gap: 10px; color: var(--text-faint); }
.crm-win .ars svg { width: 14px; height: 14px; }
.crm-url { flex: 1; background: #fff; border: 1px solid var(--border); border-radius: 99px; font-size: 10px; color: var(--text-faint); padding: 4px 12px; text-align: center; }
.crm-win .tl { display: flex; gap: 5px; }
.crm-win .tl span { width: 9px; height: 9px; border-radius: 50%; }
/* navy app header */
.crm-appbar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #161d3a; color: #fff; }
.crm-brand { font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: -.01em; }
.crm-brand b { color: #ff6b78; font-weight: 800; }
.crm-appnav { display: flex; gap: 13px; margin-inline-start: 10px; }
.crm-appnav i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.4); }
.crm-appnav i:first-child { width: 16px; border-radius: 99px; background: rgba(255,255,255,.85); }
.crm-appbar .tl { margin-inline-start: auto; display: flex; gap: 5px; }
.crm-appbar .tl span { width: 9px; height: 9px; border-radius: 50%; }
/* report body */
.crm-report { padding: 13px 14px 15px; background: #fbfcfe; }
.crm-rtitle { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; }
.crm-rtitle b { font-family: var(--font-display); font-weight: 800; font-size: 12.5px; white-space: nowrap; }
.crm-rtitle .badge { margin-inline-start: auto; font-size: 9.5px; font-weight: 800; color: var(--success); background: var(--success-bg); border-radius: 99px; padding: 3px 9px; display: inline-flex; align-items: center; gap: 5px; }
.crm-rtitle .badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
/* KPI tiles */
.crm-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-bottom: 12px; }
.crm-kpi { background: #fff; border: 1px solid var(--border); border-radius: var(--r-sm); padding: 9px 8px; text-align: center; }
.crm-kpi b { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; line-height: 1; display: block; }
.crm-kpi .lb { font-size: 8.5px; color: var(--text-faint); display: block; margin-top: 4px; line-height: 1.2; }
.crm-kpi.b b { color: var(--blue); }
.crm-kpi.r b { color: var(--red); }
.crm-kpi.g b { color: var(--success); }
/* charts row */
.crm-charts { display: grid; grid-template-columns: 1.25fr 1fr; gap: 9px; }
.crm-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--r-sm); padding: 11px 11px 9px; }
.crm-panel .pt { font-size: 9.5px; font-weight: 800; color: var(--text-dim); margin-bottom: 9px; }
/* bar chart */
.crm-bars { display: flex; align-items: flex-end; gap: 5px; height: 76px; }
.crm-bars .bar { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #3a78ff, #1f55e0); opacity: .9; min-width: 0; }
.crm-bars .bar.alt { background: linear-gradient(180deg, #f5566a, #e11d2f); }
/* donut grid */
.crm-donuts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 6px; place-items: center; }
.crm-donut { width: 42px; height: 42px; border-radius: 50%; position: relative; }
.crm-donut .pc { position: absolute; inset: 8px; background: #fff; border-radius: 50%; display: grid; place-items: center; font-size: 9px; font-weight: 800; color: var(--text); z-index: 1; }
.crm-d1 { background: conic-gradient(#1f55e0 0 72%, #e11d2f 72% 88%, #e6ebf5 88% 100%); }
.crm-d2 { background: conic-gradient(#0f9d6e 0 64%, #1f55e0 64% 86%, #e6ebf5 86% 100%); }
.crm-d3 { background: conic-gradient(#e11d2f 0 55%, #f0a52a 55% 80%, #e6ebf5 80% 100%); }
.crm-d4 { background: conic-gradient(#1f55e0 0 80%, #0f9d6e 80% 92%, #e6ebf5 92% 100%); }
.crm-d5 { background: conic-gradient(#f0a52a 0 48%, #1f55e0 48% 78%, #e6ebf5 78% 100%); }
.crm-d6 { background: conic-gradient(#0f9d6e 0 68%, #e11d2f 68% 90%, #e6ebf5 90% 100%); }
/* floating alert chip on the card */
.crm-chip { position: absolute; inset-block-start: -14px; inset-inline-start: -16px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-pill); box-shadow: var(--shadow-md); padding: 8px 14px 8px 10px; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; z-index: 3; animation: floaty 4s var(--ease) infinite; }
.crm-chip .ic { width: 26px; height: 26px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; flex: none; }
.crm-chip .ic svg { width: 15px; height: 15px; }
.crm-chip2 { inset-block-start: auto; inset-block-end: 24px; inset-inline-start: auto; inset-inline-end: -18px; animation-delay: 2s; }
.crm-chip2 .ic { background: var(--accent); }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 440px; }
}

/* ============================================================
   Stats
   ============================================================ */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 14px; }
.stat .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 4.5vw, 3.6rem); line-height: 1; letter-spacing: -.02em; }
.stat .lbl { color: var(--text-dim); font-size: 14.5px; margin-top: 10px; }

/* ============================================================
   Marquee
   ============================================================ */
.marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--text-dim); opacity: .85; transition: color .2s, opacity .2s; }
.marquee-item:hover { color: var(--blue); opacity: 1; }
.marquee-item .ico { width: 26px; height: 26px; color: var(--blue); }
@keyframes marquee { to { transform: translateX(-50%); } }
[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ============================================================
   Feature list / checks
   ============================================================ */
.checklist { display: flex; flex-direction: column; gap: 16px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist .ic { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--success-bg); color: var(--success); margin-top: 2px; }
.checklist .ic svg { width: 15px; height: 15px; }
.checklist b { font-weight: 700; }
.checklist p { color: var(--text-dim); font-size: 14.5px; margin-top: 2px; }

/* ============================================================
   Split layout
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.reverse > :first-child { order: 2; }

/* Generic grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band { position: relative; border-radius: var(--r-xl); padding: clamp(40px, 6vw, 72px); overflow: hidden; background: linear-gradient(135deg, #1f55e0, #1640b0); border: 1px solid rgba(31,85,224,.3); text-align: center; color: #fff; box-shadow: 0 30px 60px -24px rgba(31,85,224,.5); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 320px at 80% 120%, rgba(225,29,47,.45), transparent 60%); pointer-events: none; }
.cta-band h2, .cta-band .eyebrow { color: #fff; position: relative; }
.cta-band .eyebrow::before { background: #fff; }
.cta-band .lead { color: rgba(255,255,255,.85); position: relative; }
.cta-band .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; position: relative; }
.cta-band .btn-ghost { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); color: #fff; }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.22); color: #fff; border-color: #fff; }

/* ============================================================
   Accordion (FAQ)
   ============================================================ */
.accordion { display: flex; flex-direction: column; gap: 12px; }
.acc-item { border: 1px solid var(--border); border-radius: var(--r-md); background: #fff; overflow: hidden; box-shadow: var(--shadow-xs); transition: border-color .2s var(--ease), box-shadow .2s; }
.acc-item.open { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.acc-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; text-align: start; font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; color: var(--text); }
.acc-head .ic { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border-strong); display: grid; place-items: center; color: var(--text-dim); transition: transform .25s var(--ease), background .2s, color .2s; }
.acc-head .ic svg { width: 16px; height: 16px; }
.acc-item.open .acc-head .ic { transform: rotate(45deg); background: var(--blue); color: #fff; border-color: var(--blue); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.acc-body-inner { padding: 0 24px 22px; color: var(--text-dim); font-size: 15px; line-height: 1.7; }

/* ============================================================
   Article / prose
   ============================================================ */
.prose { max-width: 720px; }
.prose > * + * { margin-top: 22px; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 52px; }
.prose h3 { font-size: 1.32rem; margin-top: 36px; }
.prose p { color: #38445e; font-size: 1.06rem; line-height: 1.8; }
.prose ul.bullets { display: flex; flex-direction: column; gap: 12px; padding-inline-start: 4px; }
.prose ul.bullets li { display: flex; gap: 12px; color: #38445e; }
.prose ul.bullets li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 11px; border-radius: 50%; background: var(--red); }
.prose .callout { border: 1px solid rgba(31,85,224,.2); border-radius: var(--r-md); background: var(--blue-soft-bg); padding: 24px 26px; }
.prose .callout p { color: var(--text); margin: 0; }
.prose blockquote { border-inline-start: 3px solid var(--red); padding-inline-start: 22px; font-family: var(--font-display); font-size: 1.3rem; color: var(--text); line-height: 1.45; font-weight: 600; }

/* ============================================================
   Flow / pipeline diagram
   ============================================================ */
.flow-node { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface-2); font-size: 14.5px; font-weight: 600; box-shadow: var(--shadow-xs); }
.flow-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.flow-tag { margin-inline-start: auto; font-size: 11.5px; font-weight: 700; color: var(--text-faint); padding: 3px 9px; border-radius: var(--r-pill); border: 1px solid var(--border-strong); }
.flow-line { width: 2px; height: 18px; margin-inline-start: 23px; background: linear-gradient(var(--blue), var(--red)); opacity: .45; border-radius: 2px; }

/* Professional automation-flow card */
.flow-pro { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.flow-pro-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.fp-logo { width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--accent); color: #fff; box-shadow: 0 6px 16px -6px rgba(31,85,224,.5); }
.fp-logo svg { width: 20px; height: 20px; }
.fp-head-txt b { font-family: var(--font-display); font-weight: 700; font-size: 15px; display: block; line-height: 1.2; }
.fp-head-txt span { font-size: 12px; color: var(--text-faint); }
.fp-badge { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; color: var(--success); background: var(--success-bg); padding: 5px 11px; border-radius: 99px; }
.fp-badge .pdot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); position: relative; }
.fp-badge .pdot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--success); animation: fp-pulse 1.8s var(--ease) infinite; }
@keyframes fp-pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(3); opacity: 0; } }
.flow-pro-body { padding: 22px 22px 8px; }
.fp-step { display: flex; gap: 14px; }
.fp-rail { display: flex; flex-direction: column; align-items: center; flex: none; }
.fp-node { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--blue-soft-bg); color: var(--blue); border: 1px solid rgba(31,85,224,.2); }
.fp-node svg { width: 19px; height: 19px; }
.fp-node.r { background: var(--red-soft-bg); color: var(--red); border-color: rgba(225,29,47,.2); }
.fp-node.g { background: var(--success-bg); color: var(--success); border-color: rgba(15,157,110,.25); }
.fp-rail-line { flex: 1; width: 2px; min-height: 20px; margin: 4px 0; background: repeating-linear-gradient(var(--border-strong) 0 4px, transparent 4px 8px); }
.fp-step:last-child .fp-rail-line { display: none; }
.fp-content { flex: 1; min-width: 0; padding-bottom: 18px; padding-top: 6px; }
.fp-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fp-h { font-weight: 700; font-size: 14.5px; color: var(--text); }
.fp-tool { font-size: 10.5px; font-weight: 800; letter-spacing: .02em; color: var(--text-dim); background: var(--surface-2); border: 1px solid var(--border); padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.fp-d { font-size: 12.5px; color: var(--text-dim); margin-top: 3px; }
.fp-foot { display: flex; align-items: center; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--border); background: var(--surface-2); }
.fp-foot .ck { width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--success); color: #fff; display: grid; place-items: center; }
.fp-foot .ck svg { width: 14px; height: 14px; }
.fp-foot b { font-size: 13px; font-weight: 700; }
.fp-foot .ms { margin-inline-start: auto; font-family: var(--font-display); font-weight: 800; font-size: 13px; color: var(--blue); }

/* Avatars */
.avatar { width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--blue-soft-bg); border: 1px solid rgba(31,85,224,.2); color: var(--blue); font-weight: 800; font-size: 14px; font-family: var(--font-display); }
.avatar.red { background: var(--red-soft-bg); border-color: rgba(225,29,47,.2); color: var(--red); }
.avatar-lg { width: 64px; height: 64px; font-size: 20px; }
.stars { font-size: 15px; color: var(--red); letter-spacing: 2px; }

/* ============================================================
   Numbered steps / timeline
   ============================================================ */
.steps { display: grid; gap: 20px; }
.step { display: flex; gap: 20px; align-items: flex-start; }
.step-num { flex: none; width: 46px; height: 46px; border-radius: var(--r-md); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 18px; background: var(--accent); color: #fff; box-shadow: 0 6px 16px -6px rgba(31,85,224,.5); }
.step h3 { font-size: 1.2rem; margin-bottom: 6px; }
.step p { color: var(--text-dim); font-size: 15px; }

/* Horizontal pipeline */
.pipeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; align-items: stretch; }
.pipe-stage { position: relative; padding: 22px 18px; text-align: center; border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow-xs); }
.pipe-stage:first-child { border-start-start-radius: var(--r-md); border-end-start-radius: var(--r-md); }
.pipe-stage:last-child { border-start-end-radius: var(--r-md); border-end-end-radius: var(--r-md); }
.pipe-stage + .pipe-stage { border-inline-start: none; }
.pipe-stage .pn { font-family: var(--font-display); font-size: 12px; color: var(--blue); font-weight: 800; letter-spacing: .08em; }
.pipe-stage b { display: block; margin: 8px 0 6px; font-size: 15.5px; color: var(--text); }
.pipe-stage span.d { font-size: 12.5px; color: var(--text-faint); }
.pipe-stage::after { content: ""; position: absolute; inset-block-start: 50%; inset-inline-end: -7px; width: 13px; height: 13px; transform: translateY(-50%) rotate(45deg); background: #fff; border-top: 1px solid var(--border); border-right: 1px solid var(--border); z-index: 2; }
[dir="rtl"] .pipe-stage::after { transform: translateY(-50%) rotate(-135deg); }
.pipe-stage:last-child::after { display: none; }
.pipe-auto { margin-top: 14px; font-size: 11px; font-weight: 700; color: var(--red); display: inline-flex; gap: 5px; align-items: center; }
@media (max-width: 800px) { .pipeline { grid-template-columns: 1fr; } .pipe-stage { border-radius: var(--r-md) !important; border-inline-start: 1px solid var(--border) !important; } .pipe-stage + .pipe-stage { margin-top: 26px; } .pipe-stage::after { inset-block-start: auto; inset-block-end: -20px; inset-inline: 0; margin-inline: auto; inset-inline-end: auto; transform: rotate(135deg) !important; } }

/* ============================================================
   Comparison table
   ============================================================ */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.compare th, .compare td { padding: 16px 20px; text-align: start; font-size: 15px; border-bottom: 1px solid var(--border); }
.compare thead th { font-family: var(--font-display); font-weight: 700; background: var(--surface-2); color: var(--text); }
.compare thead th:last-child { color: var(--blue); }
.compare td { color: var(--text-dim); }
.compare td:first-child { color: var(--text); font-weight: 600; }
.compare tr:last-child td { border-bottom: none; }
.compare .yes { color: var(--success); font-weight: 700; }
.compare .no { color: var(--text-faint); }

/* ============================================================
   Article cards (Knowledge Hub)
   ============================================================ */
.article-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.article-thumb { aspect-ratio: 16/9; position: relative; display: grid; place-items: center; overflow: hidden; }
.article-thumb .glyph { font-size: 56px; opacity: .92; }
.article-thumb.c-ai { background: linear-gradient(135deg, #2f6bff, #1640b0); color: #fff; }
.article-thumb.c-crm { background: linear-gradient(135deg, #e11d2f, #8e0d1c); color: #fff; }
.article-thumb.c-auto { background: linear-gradient(135deg, #1f55e0, #e11d2f); color: #fff; }
.article-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.article-body h3 { font-size: 1.22rem; line-height: 1.3; }
.article-body p { color: var(--text-dim); font-size: 14.5px; flex: 1; }
.article-meta { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--text-faint); }

/* Filter bar */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-bar button { padding: 9px 18px; border-radius: var(--r-pill); border: 1px solid var(--border-strong); background: #fff; font-size: 14px; font-weight: 700; color: var(--text-dim); transition: all .2s var(--ease); }
.filter-bar button:hover { color: var(--blue); border-color: var(--blue); }
.filter-bar button.active { background: var(--accent); color: #fff; border-color: transparent; }

/* ============================================================
   Chatbot demo
   ============================================================ */
.bot-window { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; max-width: 460px; }
.bot-header { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.bot-header .bot-ava { width: 38px; height: 38px; }
.bot-header b { font-size: 15px; color: var(--text); }
.bot-header .status { font-size: 12px; color: var(--success); display: flex; align-items: center; gap: 5px; }
.bot-header .status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.bot-log { padding: 20px; display: flex; flex-direction: column; gap: 14px; height: 320px; overflow-y: auto; background: var(--bg); }
.bot-msg { display: flex; gap: 10px; max-width: 85%; }
.bot-msg.user { margin-inline-start: auto; flex-direction: row-reverse; }
.bot-ava { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 800; font-size: 11px; font-family: var(--font-display); }
.bot-bubble { padding: 11px 15px; border-radius: 14px; font-size: 14px; line-height: 1.5; background: #fff; border: 1px solid var(--border); color: var(--text); box-shadow: var(--shadow-xs); }
.bot-msg.user .bot-bubble { background: var(--accent); color: #fff; font-weight: 500; border: none; }
.bot-typing { display: flex; gap: 4px; align-items: center; }
.bot-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-faint); animation: bot-blink 1.2s infinite; }
.bot-typing span:nth-child(2) { animation-delay: .2s; }
.bot-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes bot-blink { 0%,60%,100%{opacity:.3;transform:translateY(0)} 30%{opacity:1;transform:translateY(-3px)} }
.bot-chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 20px; background: #fff; }
.bot-chip { padding: 7px 13px; border-radius: var(--r-pill); border: 1px solid var(--border-strong); background:#fff; font-size: 12.5px; color: var(--text-dim); transition: all .18s var(--ease); }
.bot-chip:hover { color: var(--blue); border-color: var(--blue); background: var(--blue-soft-bg); }
.bot-foot { display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--border); }
.bot-input { flex: 1; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--r-pill); padding: 11px 16px; color: var(--text); }
.bot-input:focus { outline: none; border-color: var(--blue); }
.bot-send { width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.bot-send svg { width: 18px; height: 18px; }
[dir="rtl"] .bot-send svg { transform: scaleX(-1); }

/* ============================================================
   WhatsApp conversation mockup (phone "screenshot")
   ============================================================ */
.wa-phone {
  width: 300px; max-width: 100%;
  border-radius: 34px;
  background: #0b141a;
  padding: 11px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-strong);
}
.wa-screen { border-radius: 26px; overflow: hidden; background: #0b141a; position: relative; }
.wa-statusbar { background: #1f2c34; color: #e9edef; font-size: 11px; display: flex; justify-content: space-between; align-items: center; padding: 7px 18px 5px; font-family: var(--font-body); }
.wa-statusbar .sig { display: flex; gap: 4px; align-items: center; }
.wa-topbar { background: #1f2c34; display: flex; align-items: center; gap: 10px; padding: 8px 14px 12px; color: #e9edef; }
.wa-topbar .ava { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color:#fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; font-family: var(--font-display); flex: none; }
.wa-topbar .nm { font-weight: 700; font-size: 14.5px; line-height: 1.1; }
.wa-topbar .pr { font-size: 11px; color: #8fa3ad; }
.wa-topbar .ic { margin-inline-start: auto; color: #8fa3ad; display:flex; gap:14px; }
.wa-topbar .ic svg { width: 18px; height: 18px; }
.wa-body {
  background-color: #0b141a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M30 10l3 6 6 1-4 5 1 6-6-3-6 3 1-6-4-5 6-1z'/%3E%3C/g%3E%3C/svg%3E");
  padding: 16px 12px; display: flex; flex-direction: column; gap: 8px; min-height: 320px;
}
.wa-day { align-self: center; background: #182229; color: #8fa3ad; font-size: 10.5px; padding: 4px 12px; border-radius: 8px; margin-bottom: 4px; }
.wa-msg { max-width: 82%; padding: 7px 10px 5px; border-radius: 9px; font-size: 13px; line-height: 1.42; color: #e9edef; position: relative; box-shadow: 0 1px 1px rgba(0,0,0,.2); }
.wa-msg .t { display: block; font-size: 9.5px; color: rgba(233,237,239,.55); text-align: end; margin-top: 2px; }
.wa-in  { align-self: flex-start; background: #1f2c34; border-start-start-radius: 2px; }
.wa-out { align-self: flex-end; background: #005c4b; border-start-end-radius: 2px; }
.wa-out .t { color: rgba(233,237,239,.6); }
.wa-out .tick { color: #53bdeb; font-weight: 700; }
.wa-bot-tag { align-self: flex-start; display:inline-flex; align-items:center; gap:5px; background:#0a3d2e; color:#7fe3c4; font-size:10px; font-weight:700; padding:3px 9px; border-radius:7px; }
.wa-caption { text-align: center; margin-top: 16px; font-size: 13.5px; color: var(--text-dim); font-weight: 600; }

/* Interactive WhatsApp chatbot */
.wa-interactive .wa-body { min-height: 300px; max-height: 360px; overflow-y: auto; scroll-behavior: smooth; }
.wa-interactive .wa-body::-webkit-scrollbar { width: 5px; }
.wa-interactive .wa-body::-webkit-scrollbar-thumb { background: #2a3942; border-radius: 99px; border: 0; }
.wa-options { display: flex; flex-direction: column; gap: 6px; padding: 4px 12px 14px; background: #0b141a; }
.wa-opt {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  background: #1f2c34; color: #53bdeb;
  border: 1px solid rgba(83,189,235,.22); border-radius: 9px;
  padding: 10px 12px; font-size: 12.5px; font-weight: 700; font-family: var(--font-body);
  text-align: center; width: 100%;
  transition: background .16s var(--ease), transform .1s var(--ease);
}
.wa-opt:hover { background: #26343d; }
.wa-opt:active { transform: scale(.985); }
.wa-opt svg { width: 14px; height: 14px; }
.wa-cta-msg { align-self: flex-end; }
.wa-cta {
  display: inline-flex; align-items: center; gap: 7px;
  background: #25D366; color: #06241a; font-weight: 800; font-size: 12.5px;
  border-radius: 9px; padding: 9px 14px; margin-top: 2px;
}
.wa-cta svg { width: 15px; height: 15px; }
.wa-restart { color: #8fa3ad !important; border-color: rgba(143,163,173,.25) !important; }

.wa-showcase { display: grid; grid-template-columns: repeat(2, auto); gap: clamp(28px,5vw,56px); justify-content: center; align-items: start; }
@media (max-width: 720px) { .wa-showcase { grid-template-columns: 1fr; justify-items: center; } }

/* ============================================================
   Testimonials marquee (customer comments)
   ============================================================ */
.tm-row { display: flex; gap: 22px; width: max-content; animation: marquee 48s linear infinite; }
.tm-wrap { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.tm-wrap:hover .tm-row { animation-play-state: paused; }
.tm-card { width: 360px; flex: none; }
[dir="rtl"] .tm-row { animation-name: marquee-rtl; }

/* ============================================================
   Misc page elements
   ============================================================ */
.kpi-row { display: flex; gap: 32px; flex-wrap: wrap; }
.kpi b { font-family: var(--font-display); font-weight: 800; font-size: 2rem; display: block; }
.team-card { text-align: center; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); }
.toc a { display: block; padding: 8px 14px; border-inline-start: 2px solid var(--border); color: var(--text-dim); font-size: 14px; transition: all .18s var(--ease); }
.toc a:hover { color: var(--blue); border-color: var(--blue); }

/* ============================================================
   Utilities
   ============================================================ */
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:32px}.mt-5{margin-top:48px}
.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}
.flex{display:flex}.items-center{align-items:center}.gap-2{gap:16px}.gap-3{gap:24px}.wrap{flex-wrap:wrap}
.btn-row{display:flex;gap:14px;flex-wrap:wrap}
.divider{height:1px;background:var(--border);border:0;margin-block:0}
.hide-mobile{display:initial}

/* Article layout (guide pages) */
.article-layout { display: grid; grid-template-columns: 1fr 220px; gap: 56px; align-items: start; }
@media (max-width: 860px) {
  .article-layout { grid-template-columns: 1fr; gap: 0; }
  .hide-mobile { display: none !important; }
}

/* i18n: show only the active language */
[data-lang-he], [data-lang-en] { }
html[lang="he"] [data-lang-en] { display: none !important; }
html[lang="en"] [data-lang-he] { display: none !important; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .nav-links, .nav-cta .btn-consult { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 860px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .foot-form .row { flex-direction: column; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .wa-float { inset-block-end: 18px; inset-inline-end: 18px; }
}

/* ============================================================
   RTL fine-tuning
   ============================================================ */
[dir="rtl"] .btn-arrow:hover svg { transform: translateX(-4px); }
[dir="rtl"] .link-arrow svg { transform: scaleX(-1); }
[dir="rtl"] .link-arrow:hover svg { transform: scaleX(-1); }
[dir="rtl"] .btn-arrow svg { transform: scaleX(-1); }
[dir="rtl"] .btn-arrow:hover svg { transform: scaleX(-1) translateX(4px); }
