/* ============================================================
   Kognisys AI — Corporate Website
   Dark AI-tech theme · India + UAE · EN/AR (RTL ready)
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --bg:           #070B1A;
  --bg-2:         #0B1024;
  --bg-3:         #0E1430;
  --surface:      #111936;
  --surface-2:    #0F1730;
  --border:       #1E2A4A;
  --border-soft:  #18213d;

  --text:         #E7ECFB;
  --muted:        #9AA7C7;
  --muted-2:      #6E7BA0;

  --cyan:         #22D3EE;
  --violet:       #8B5CF6;
  --blue:         #3B82F6;
  --grad:         linear-gradient(135deg, #22D3EE 0%, #8B5CF6 100%);
  --grad-soft:    linear-gradient(135deg, rgba(34,211,238,.16), rgba(139,92,246,.16));

  --ring:         rgba(34,211,238,.35);
  --shadow:       0 20px 50px -20px rgba(0,0,0,.65);
  --shadow-glow:  0 0 0 1px rgba(34,211,238,.12), 0 24px 60px -28px rgba(34,211,238,.30);

  --radius:       16px;
  --radius-sm:    11px;
  --radius-lg:    24px;
  --maxw:         1180px;
  --font:         "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-ar:      "Tajawal", "Segoe UI", system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="ar"] body { font-family: var(--font-ar); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
section { position: relative; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding: 96px 0; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cyan); padding: 6px 14px; border-radius: 999px;
  background: var(--grad-soft); border: 1px solid var(--border);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
h1, h2, h3, h4 { line-height: 1.18; font-weight: 700; letter-spacing: -.01em; }
.section h2 { font-size: clamp(1.8rem, 1.2rem + 2.6vw, 2.7rem); }
.section-head p { color: var(--muted); margin-top: 16px; font-size: 1.06rem; }
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: .96rem; padding: 13px 24px;
  border-radius: 999px; transition: transform .2s, box-shadow .25s, background .25s, border-color .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad); color: #051022; box-shadow: 0 10px 30px -10px rgba(34,211,238,.5); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(34,211,238,.65); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--cyan); color: #fff; background: rgba(34,211,238,.08); }
.btn-wa { background: #25D366; color: #05210f; box-shadow: 0 10px 30px -12px rgba(37,211,102,.6); }
.btn-wa:hover { transform: translateY(-2px); }

/* ============================================================
   Header / Navigation
   ============================================================ */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(7,11,26,.82); backdrop-filter: blur(16px);
  border-bottom-color: var(--border-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 18px; }
.brand img { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-size: .94rem; font-weight: 500; color: var(--muted); padding: 9px 14px; border-radius: 9px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.04); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600;
  color: var(--muted); border: 1px solid var(--border); padding: 8px 13px; border-radius: 999px;
  transition: color .2s, border-color .2s;
}
.lang-toggle:hover { color: #fff; border-color: var(--cyan); }
.lang-toggle svg { width: 16px; height: 16px; }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border); }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); margin: 4px auto; transition: .25s; }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: 168px 0 96px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-bg .glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.hero-bg .g1 { width: 520px; height: 520px; background: radial-gradient(circle, #22D3EE, transparent 70%); top: -180px; inset-inline-start: -120px; }
.hero-bg .g2 { width: 560px; height: 560px; background: radial-gradient(circle, #8B5CF6, transparent 70%); top: -120px; inset-inline-end: -160px; opacity:.4; }
.hero-bg .grid-mask {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border-soft) 1px, transparent 1px),
                    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 54px 54px; opacity: .35;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 1.4rem + 4vw, 4rem); letter-spacing: -.02em; }
.hero .lead { color: var(--muted); font-size: 1.12rem; margin: 22px 0 32px; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 38px; color: var(--muted-2); font-size: .9rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 17px; height: 17px; color: var(--cyan); }
.badge-pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; border-radius: 999px;
  background: var(--grad-soft); border: 1px solid var(--border); font-size: .85rem; color: var(--text);
  margin-bottom: 24px;
}
.badge-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

/* Hero visual card */
.hero-visual { position: relative; }
.hero-card {
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px;
  box-shadow: var(--shadow-glow); position: relative; overflow: hidden;
}
.hero-card::before {
  content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit;
  background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: .5; pointer-events: none;
}
.hc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.hc-top .dots { display: flex; gap: 6px; }
.hc-top .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); display: block; }
.hc-top .live { font-size: .72rem; color: var(--cyan); display: inline-flex; align-items: center; gap: 6px; }
.hc-top .live::before { content:""; width:6px; height:6px; border-radius:50%; background:var(--cyan); box-shadow:0 0 8px var(--cyan); }
.hc-stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 16px; }
.hc-stat { background: var(--bg-2); border: 1px solid var(--border-soft); border-radius: 12px; padding: 12px; }
.hc-stat .v { font-weight: 700; font-size: 1.15rem; }
.hc-stat .l { font-size: .72rem; color: var(--muted-2); }
.hc-chart { display: flex; align-items: flex-end; gap: 7px; height: 96px; padding: 10px; background: var(--bg-2); border: 1px solid var(--border-soft); border-radius: 12px; margin-bottom: 14px; }
.hc-chart i { flex: 1; background: var(--grad); border-radius: 5px 5px 2px 2px; opacity: .85; animation: grow 1.2s ease both; }
@keyframes grow { from { height: 4% } }
.hc-ai { display: flex; align-items: center; gap: 10px; background: var(--grad-soft); border: 1px solid var(--border); border-radius: 12px; padding: 11px 13px; font-size: .82rem; }
.hc-ai svg { width: 20px; height: 20px; color: var(--cyan); flex: none; }
.float-chip {
  position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 14px; font-size: .8rem; box-shadow: var(--shadow); display: flex; align-items: center; gap: 9px;
}
.float-chip svg { width: 18px; height: 18px; color: var(--cyan); }
.float-chip.fc1 { top: -18px; inset-inline-end: -10px; animation: float 5s ease-in-out infinite; }
.float-chip.fc2 { bottom: 30px; inset-inline-start: -26px; animation: float 6s ease-in-out infinite .6s; }
@keyframes float { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-12px) } }

/* ---------- Marquee (clients/tech) ---------- */
.marquee-wrap { border-block: 1px solid var(--border-soft); background: var(--bg-2); padding: 22px 0; overflow: hidden; }
.marquee-label { text-align: center; color: var(--muted-2); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.marquee { display: flex; gap: 56px; white-space: nowrap; width: max-content; animation: scroll-x 28s linear infinite; }
.marquee span { color: var(--muted); font-weight: 700; font-size: 1.15rem; opacity: .65; letter-spacing: .02em; }
@keyframes scroll-x { to { transform: translateX(-50%); } }
html[dir="rtl"] .marquee { animation-direction: reverse; }

/* ============================================================
   Stats band
   ============================================================ */
.stats { background: var(--bg-2); border-block: 1px solid var(--border-soft); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat .num { font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem); font-weight: 800; }
.stat .lbl { color: var(--muted); font-size: .95rem; margin-top: 4px; }

/* ============================================================
   Cards (generic)
   ============================================================ */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: transform .25s, border-color .25s, box-shadow .25s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); border-color: rgba(34,211,238,.4); box-shadow: var(--shadow-glow); }
.card .ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--border); margin-bottom: 18px;
}
.card .ico svg { width: 26px; height: 26px; color: var(--cyan); }
.card h3 { font-size: 1.18rem; margin-bottom: 9px; }
.card p { color: var(--muted); font-size: .96rem; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card ul.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.card ul.tags li { font-size: .76rem; color: var(--muted); border: 1px solid var(--border); padding: 4px 10px; border-radius: 999px; background: var(--bg-2); }

/* ---------- Industries (POS) ---------- */
.industries-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.industry {
  text-align: center; padding: 28px 16px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); transition: transform .25s, border-color .25s, background .25s;
}
.industry:hover { transform: translateY(-6px); border-color: rgba(34,211,238,.4); background: linear-gradient(160deg, var(--surface), var(--surface-2)); }
.industry .ico { width: 58px; height: 58px; border-radius: 16px; margin: 0 auto 14px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border); }
.industry .ico svg { width: 28px; height: 28px; color: var(--cyan); }
.industry h4 { font-size: 1.02rem; }
.industry p { font-size: .82rem; color: var(--muted-2); margin-top: 4px; }

/* ============================================================
   AI feature section
   ============================================================ */
.ai-section { background: var(--bg-2); border-block: 1px solid var(--border-soft); overflow: hidden; }
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.ai-list { display: grid; gap: 14px; margin-top: 26px; }
.ai-item { display: flex; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); transition: border-color .25s, transform .2s; }
.ai-item:hover { border-color: rgba(34,211,238,.4); transform: translateX(4px); }
html[dir="rtl"] .ai-item:hover { transform: translateX(-4px); }
.ai-item .ico { width: 42px; height: 42px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--grad); }
.ai-item .ico svg { width: 22px; height: 22px; color: #051022; }
.ai-item h4 { font-size: 1.02rem; margin-bottom: 3px; }
.ai-item p { color: var(--muted); font-size: .9rem; }
.ai-visual { background: linear-gradient(160deg, var(--surface), var(--surface-2)); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.ai-orb { width: 150px; height: 150px; margin: 0 auto 22px; position: relative; }
.ai-orb .core { position: absolute; inset: 36px; border-radius: 50%; background: var(--grad); filter: blur(2px); animation: pulse 3s infinite; }
.ai-orb .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--border); }
.ai-orb .ring.r2 { inset: 20px; border-color: rgba(34,211,238,.3); }
.ai-orb .ring.r3 { inset: 40px; border-color: rgba(139,92,246,.4); }
.ai-typed { text-align: center; min-height: 26px; color: var(--cyan); font-weight: 600; }
.ai-bars { display: grid; gap: 12px; margin-top: 22px; }
.ai-bar .top { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); margin-bottom: 5px; }
.ai-bar .track { height: 7px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.ai-bar .fill { height: 100%; background: var(--grad); border-radius: 999px; width: 0; transition: width 1.4s ease; }

/* ============================================================
   Clients
   ============================================================ */
.clients-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.client-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.client-card:hover { transform: translateY(-6px); border-color: rgba(139,92,246,.45); box-shadow: var(--shadow-glow); }
.client-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.client-logo {
  width: 56px; height: 56px; flex: none; border-radius: 14px; display: grid; place-items: center;
  font-weight: 800; font-size: 1.25rem; color: #051022; background: var(--grad);
}
.client-head h3 { font-size: 1.14rem; }
.client-head .ind { font-size: .8rem; color: var(--cyan); }
.client-card p { color: var(--muted); font-size: .92rem; }
.client-card .res { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.client-card .res li { font-size: .76rem; color: var(--muted); border: 1px solid var(--border); padding: 4px 10px; border-radius: 999px; background: var(--bg-2); }

/* ============================================================
   Support / Process
   ============================================================ */
.support-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.support-card { text-align: center; }
.support-card .ico { margin: 0 auto 16px; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.process-step { padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); position: relative; }
.process-step .n { font-size: 2.2rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; opacity: .9; }
.process-step h4 { margin: 6px 0 8px; font-size: 1.08rem; }
.process-step p { color: var(--muted); font-size: .9rem; }

/* ============================================================
   CTA banner
   ============================================================ */
.cta-banner { background: var(--bg-2); }
.cta-box {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(135deg, rgba(34,211,238,.12), rgba(139,92,246,.14));
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 64px 28px;
}
.cta-box::before { content:""; position:absolute; width:340px; height:340px; border-radius:50%; background: radial-gradient(circle, rgba(34,211,238,.35), transparent 70%); filter: blur(60px); top: -120px; inset-inline-start: -60px; }
.cta-box h2 { font-size: clamp(1.8rem, 1.2rem + 2.6vw, 2.7rem); position: relative; }
.cta-box p { color: var(--muted); max-width: 560px; margin: 16px auto 28px; position: relative; }
.cta-box .hero-cta { justify-content: center; position: relative; }

/* ============================================================
   Contact
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.locations { display: grid; gap: 18px; }
.loc-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.loc-card .flag { font-size: 1.5rem; }
.loc-card .top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.loc-card h3 { font-size: 1.2rem; }
.loc-card .top .tag { font-size: .76rem; color: var(--cyan); border: 1px solid var(--border); padding: 3px 10px; border-radius: 999px; }
.loc-line { display: flex; align-items: center; gap: 11px; color: var(--muted); font-size: .94rem; margin-bottom: 9px; }
.loc-line svg { width: 18px; height: 18px; color: var(--cyan); flex: none; }
.loc-line a:hover { color: #fff; }

.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 11px; padding: 12px 14px; font-family: inherit; font-size: .95rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px var(--ring); }
.form-note { font-size: .82rem; color: var(--muted-2); margin-top: 12px; }
.form-error { font-size: .85rem; color: #ff7a8a; margin-top: 12px; }
.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success.show { display: block; }
.form-success svg { width: 52px; height: 52px; color: var(--cyan); margin: 0 auto 14px; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--bg-2); border-top: 1px solid var(--border-soft); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer .brand img { height: 36px; margin-bottom: 16px; }
.footer-about p { color: var(--muted); font-size: .92rem; max-width: 320px; }
.footer h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-2); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--muted); font-size: .92rem; padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: var(--cyan); }
.socials { display: flex; gap: 11px; margin-top: 20px; }
.socials a {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted); transition: .2s;
}
.socials a:hover { color: #fff; border-color: var(--cyan); transform: translateY(-3px); background: var(--grad-soft); }
.socials svg { width: 19px; height: 19px; }
.footer-bottom { border-top: 1px solid var(--border-soft); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted-2); font-size: .86rem; }

/* ============================================================
   Floating WhatsApp + AI chat widget
   ============================================================ */
.fab-stack { position: fixed; inset-block-end: 24px; inset-inline-end: 24px; z-index: 90; display: flex; flex-direction: column; gap: 14px; align-items: flex-end; }
.fab {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: var(--shadow); transition: transform .2s; position: relative;
}
.fab:hover { transform: scale(1.08); }
.fab svg { width: 27px; height: 27px; }
.fab-wa { background: #25D366; color: #fff; }
.fab-ai { background: var(--grad); color: #051022; }
.fab-ai .ping { position: absolute; top: -2px; inset-inline-end: -2px; width: 14px; height: 14px; border-radius: 50%; background: #ff5d73; border: 2px solid var(--bg); }

.chat-panel {
  position: fixed; inset-block-end: 96px; inset-inline-end: 24px; z-index: 95; width: 370px; max-width: calc(100vw - 32px);
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-glow);
  display: flex; flex-direction: column; overflow: hidden; transform: translateY(20px) scale(.96); opacity: 0;
  pointer-events: none; transition: transform .25s, opacity .25s; max-height: min(560px, calc(100vh - 140px));
}
.chat-panel.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.chat-head { background: linear-gradient(135deg, rgba(34,211,238,.18), rgba(139,92,246,.2)); padding: 16px 18px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--border); }
.chat-head .avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; flex: none; }
.chat-head .avatar svg { width: 22px; height: 22px; color: #051022; }
.chat-head .who { flex: 1; }
.chat-head .who b { font-size: .98rem; }
.chat-head .who span { display: flex; align-items: center; gap: 6px; font-size: .76rem; color: var(--cyan); }
.chat-head .who span::before { content:""; width:7px; height:7px; border-radius:50%; background:#34d399; box-shadow:0 0 8px #34d399; }
.chat-close { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); }
.chat-close:hover { background: rgba(255,255,255,.06); color: #fff; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 84%; padding: 11px 14px; border-radius: 14px; font-size: .9rem; line-height: 1.55; }
.msg.bot { background: var(--bg-2); border: 1px solid var(--border-soft); border-start-start-radius: 4px; align-self: flex-start; }
.msg.user { background: var(--grad); color: #051022; border-start-end-radius: 4px; align-self: flex-end; }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 12px; }
.chat-suggest button { font-size: .8rem; color: var(--cyan); border: 1px solid var(--border); background: var(--bg-2); padding: 7px 12px; border-radius: 999px; transition: .2s; }
.chat-suggest button:hover { background: var(--grad-soft); border-color: var(--cyan); }
.chat-input { display: flex; gap: 9px; padding: 12px; border-top: 1px solid var(--border); }
.chat-input input { flex: 1; background: var(--bg-2); border: 1px solid var(--border); color: var(--text); border-radius: 999px; padding: 11px 16px; font-family: inherit; font-size: .9rem; }
.chat-input input:focus { outline: none; border-color: var(--cyan); }
.chat-input button { width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #051022; }
.typing { display: flex; gap: 4px; align-items: center; padding: 12px 14px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2){ animation-delay:.2s } .typing i:nth-child(3){ animation-delay:.4s }
@keyframes blink { 0%,60%,100%{ opacity:.3 } 30%{ opacity:1 } }

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
[data-delay="1"]{ transition-delay:.08s } [data-delay="2"]{ transition-delay:.16s }
[data-delay="3"]{ transition-delay:.24s } [data-delay="4"]{ transition-delay:.32s }

/* ============================================================
   RTL adjustments
   ============================================================ */
html[dir="rtl"] .hero .lead,
html[dir="rtl"] .section-head p,
html[dir="rtl"] .footer-about p { letter-spacing: 0; }
html[dir="rtl"] .eyebrow { letter-spacing: 0; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 460px; }
  .ai-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(3, 1fr); }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .support-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (max-width: 760px) {
  .section { padding: 72px 0; }
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; inset-inline: 14px; top: 72px; background: var(--surface);
    border: 1px solid var(--border); border-radius: 16px; padding: 12px; box-shadow: var(--shadow);
  }
  .nav.open .nav-links a { padding: 12px 14px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .services-grid, .clients-grid, .support-grid, .process-grid, .industries-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hc-stat-row { grid-template-columns: repeat(3,1fr); }
  .chat-panel { inset-inline: 12px; width: auto; }
}
