/* ── RESET & TOKENS ───────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
:root {
  --bg:       #04040f;
  --bg2:      #080818;
  --surface:  #0d0d22;
  --border:   rgba(255,255,255,.08);
  --blue:     #7857ff;
  --blue2:    #00e5c8;
  --purple:   #c026d3;
  --text:     #f0f0ff;
  --muted:    #7a7a9d;
  --font-h:   'Syne', sans-serif;
  --font-b:   'Inter', sans-serif;
}
html { scroll-behavior:smooth; }
body {
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-b);
  line-height:1.6;
  overflow-x:hidden;
  cursor:none;
}
a { text-decoration:none; color:inherit; }
img { display:block; max-width:100%; }
ul { list-style:none; }

/* ── CUSTOM CURSOR ────────────────────────────── */
.cursor {
  position:fixed; top:0; left:0; width:12px; height:12px;
  background:var(--blue2); border-radius:50%; pointer-events:none;
  z-index:9999; transform:translate(-50%,-50%);
  transition:transform .1s, width .3s, height .3s, background .3s;
  mix-blend-mode:difference;
}
.cursor-trail {
  position:fixed; top:0; left:0; width:36px; height:36px;
  border:1px solid rgba(79,142,255,.4); border-radius:50%;
  pointer-events:none; z-index:9998; transform:translate(-50%,-50%);
  transition:transform .25s ease, width .3s, height .3s;
}
body:has(a:hover) .cursor { transform:translate(-50%,-50%) scale(2.5); background:var(--blue); }

/* ── TYPOGRAPHY ───────────────────────────────── */
.gradient-text {
  background:linear-gradient(135deg,var(--blue) 0%,#a78bfa 40%,var(--blue2) 100%);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}
.section-label {
  display:inline-block; font-size:.75rem; font-weight:600; letter-spacing:.15em;
  text-transform:uppercase; color:var(--blue2);
  border:1px solid rgba(0,210,255,.2); border-radius:100px;
  padding:.35rem 1rem; margin-bottom:1.25rem;
}
.section-title {
  font-family:var(--font-h); font-size:clamp(2rem,4vw,3.25rem);
  font-weight:800; line-height:1.1; letter-spacing:-.02em; margin-bottom:1rem;
}
.section-sub { color:var(--muted); font-size:1.1rem; max-width:560px; margin-bottom:3.5rem; }

/* ── LAYOUT ───────────────────────────────────── */
.container { max-width:1160px; margin:0 auto; padding:0 1.5rem; }
.section { padding:7rem 0; }

/* ── BUTTONS ──────────────────────────────────── */
.btn-primary {
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.8rem 1.75rem; background:var(--blue); color:#fff;
  font-weight:600; border-radius:6px; border:none; cursor:pointer;
  transition:all .3s cubic-bezier(.25,.8,.25,1);
  box-shadow:0 0 24px rgba(79,142,255,.35);
}
.btn-primary:hover { background:var(--blue2); box-shadow:0 0 40px rgba(0,210,255,.5); transform:translateY(-2px); }
.btn-primary.btn-large { padding:1rem 2.5rem; font-size:1.1rem; }
.btn-ghost {
  display:inline-flex; align-items:center; gap:.4rem;
  padding:.8rem 1.5rem; color:var(--muted); font-weight:500;
  border:1px solid var(--border); border-radius:6px;
  transition:all .3s ease;
}
.btn-ghost:hover { color:var(--text); border-color:rgba(255,255,255,.25); }

/* ── REVEAL ANIMATIONS ────────────────────────── */
.reveal, .fade-up {
  opacity:0; transform:translateY(30px);
  transition:opacity .75s cubic-bezier(.16,1,.3,1), transform .75s cubic-bezier(.16,1,.3,1);
  transition-delay:var(--reveal-delay, 0s);
}
.reveal.active, .fade-up.active { opacity:1; transform:none; }

/* ── NAV ──────────────────────────────────────── */
.nav {
  position:fixed; top:0; left:0; width:100%; z-index:500;
  padding:1.25rem 0; transition:all .4s ease;
}
.nav.scrolled {
  background:var(--nav-bg); backdrop-filter:blur(20px);
  border-bottom:1px solid var(--border); padding:.9rem 0;
}
.nav-inner {
  max-width:1160px; margin:0 auto; padding:0 1.5rem;
  display:flex; align-items:center; gap:3rem;
  position:relative; /* anchor for hamburger absolute positioning */
}
.logo { font-family:var(--font-h); font-size:1.6rem; font-weight:800; letter-spacing:-.04em; }
.logo span { color:var(--blue2); }
.nav-links { display:flex; gap:2rem; flex:1; }
.nav-links a { color:var(--muted); font-size:.9375rem; font-weight:500; transition:color .3s; }
.nav-links a:hover { color:var(--text); }
.nav-cta {
  margin-left:auto; padding:.6rem 1.4rem; background:transparent;
  border:1px solid var(--border); border-radius:6px; font-size:.9rem;
  font-weight:600; color:var(--text); transition:all .3s;
}
.nav-cta:hover { border-color:var(--blue2); color:var(--blue2); }
.hamburger {
  display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer;
  position:absolute; top:50%; right:0; transform:translateY(-50%);
  z-index:10; padding:.25rem;
}
.hamburger span { display:block; width:24px; height:2px; background:var(--text); border-radius:2px; transition:.3s; }

/* ── MOBILE MENU ──────────────────────────────── */
.mobile-menu {
  display:none; position:fixed; inset:0; background:var(--bg); z-index:490;
  flex-direction:column; align-items:center; justify-content:center; gap:2.5rem;
}
.mobile-menu.open { display:flex; }
.mobile-menu ul { display:flex; flex-direction:column; align-items:center; gap:2rem; }
.mob-link { font-family:var(--font-h); font-size:2rem; font-weight:700; color:var(--muted); transition:color .3s; }
.mob-link:hover { color:var(--text); }
.mob-cta { margin-top:1rem; }

/* ── HERO ─────────────────────────────────────── */
.hero {
  position:relative; min-height:100svh; display:flex;
  align-items:center; overflow:hidden; padding-top:80px;
}
.hero-bg { position:absolute; inset:0; z-index:0; overflow:hidden; }
.grid-lines {
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size:60px 60px;
  mask-image:radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}
.orb {
  position:absolute; border-radius:50%;
  filter:blur(120px); animation:pulse 8s ease-in-out infinite alternate;
}
.orb-a { width:700px; height:700px; top:-20%; right:-10%; background:rgba(79,142,255,.18); animation-delay:0s; }
.orb-b { width:500px; height:500px; bottom:-20%; left:-5%; background:rgba(124,58,237,.18); animation-delay:-3s; }
.orb-c { width:300px; height:300px; top:40%; left:40%; background:rgba(0,210,255,.1); animation-delay:-6s; }
@keyframes pulse { 0%{opacity:.6;transform:scale(1)} 100%{opacity:1;transform:scale(1.1)} }
.hero-inner { position:relative; z-index:10; max-width:860px; padding:0 1.5rem; margin:0 auto; }
.hero-tag {
  display:inline-flex; align-items:center; gap:.5rem;
  font-size:.8rem; font-weight:600; letter-spacing:.15em; text-transform:uppercase;
  color:var(--blue2); padding:.4rem 1rem; margin-bottom:1.5rem;
  border:1px solid rgba(0,210,255,.25); border-radius:100px;
  background:rgba(0,210,255,.06);
}
.hero-title {
  font-family:var(--font-h); font-size:clamp(3rem,7vw,6rem);
  font-weight:800; line-height:1.05; letter-spacing:-.03em; margin-bottom:1.5rem;
}
.hero-sub { font-size:1.2rem; color:var(--muted); max-width:600px; margin-bottom:2.5rem; }
.hero-actions { display:flex; align-items:center; gap:1.25rem; flex-wrap:wrap; margin-bottom:3.5rem; }
.hero-stats { display:flex; align-items:center; gap:0; flex-wrap:wrap; }
.stat { padding:0 2.5rem; text-align:center; }
.stat:first-child { padding-left:0; }
.stat-num { display:block; font-family:var(--font-h); font-size:2rem; font-weight:800; color:var(--blue2); }
.stat-label { font-size:.8rem; color:var(--muted); text-transform:uppercase; letter-spacing:.1em; }
.stat-divider { width:1px; height:40px; background:var(--border); }
.scroll-indicator {
  position:absolute; bottom:2.5rem; left:50%; transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center; z-index:10;
}
.scroll-dot {
  width:6px; height:32px; border:1px solid rgba(255,255,255,.3); border-radius:10px;
  position:relative; overflow:hidden;
}
.scroll-dot::after {
  content:''; position:absolute; top:4px; left:50%; transform:translateX(-50%);
  width:3px; height:8px; background:var(--blue2); border-radius:10px;
  animation:scrollDown 2s ease infinite;
}
@keyframes scrollDown { 0%{top:4px;opacity:1} 100%{top:18px;opacity:0} }

/* ── MARQUEE ──────────────────────────────────── */
.marquee-strip {
  border-top:1px solid var(--border); border-bottom:1px solid var(--border);
  background:var(--bg2); overflow:hidden; padding:.9rem 0;
}
.marquee-track {
  display:flex; gap:3rem; white-space:nowrap;
  animation:marquee 24s linear infinite;
  width:max-content;
}
.marquee-track span { font-size:.9rem; color:var(--muted); font-weight:500; }
.marquee-track .dot { color:var(--blue2); }
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ── SERVICES BENTO ───────────────────────────── */
.services-bento {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  grid-template-rows:auto auto;
  gap:1.25rem;
}
.service-card {
  background:var(--surface); border:1px solid var(--border);
  border-radius:20px; padding:2.25rem; position:relative;
  overflow:hidden; cursor:none;
  transition:border-color .4s ease, transform .4s cubic-bezier(.16,1,.3,1);
}
.service-card:hover { border-color:rgba(79,142,255,.4); transform:translateY(-4px); }
.service-card:hover .card-glow { opacity:1; }
.card-glow {
  position:absolute; inset:0; opacity:0; pointer-events:none;
  background:radial-gradient(circle at 20% 20%, rgba(79,142,255,.08), transparent 60%);
  transition:opacity .4s;
}
/* card-large = spans 2 of 3 cols (Cards 1 & 4) */
.card-large { grid-column:span 2; }
/* card-wide = spans 1 col, same as card-sm but kept for semantics */
.card-wide  { grid-column:span 1; }
.card-number { font-family:var(--font-h); font-size:.75rem; font-weight:700; color:var(--blue2); letter-spacing:.15em; margin-bottom:1.25rem; }
.card-icon { color:var(--blue2); margin-bottom:1rem; }
.service-card h3 { font-family:var(--font-h); font-size:1.35rem; font-weight:700; margin-bottom:.75rem; }
.service-card p { color:var(--muted); font-size:.9375rem; line-height:1.7; margin-bottom:1.25rem; }
.card-list { color:var(--muted); font-size:.875rem; display:flex; flex-direction:column; gap:.4rem; }
.card-list li::before { content:'✦ '; color:var(--blue2); }
.card-tags { display:flex; gap:.6rem; flex-wrap:wrap; }
.card-tags span {
  font-size:.75rem; padding:.3rem .7rem; border-radius:100px;
  background:rgba(79,142,255,.1); color:var(--blue); border:1px solid rgba(79,142,255,.2);
}
.card-arrow { margin-top:1.5rem; font-size:1.25rem; color:var(--blue2); opacity:.5; transition:all .3s; }
.service-card:hover .card-arrow { opacity:1; transform:translateX(4px); }

/* ── PROCESS ──────────────────────────────────── */
.process-section { background:var(--bg2); }
.process-steps {
  display:flex; gap:0; position:relative;
  flex-wrap:wrap;
}
.process-line {
  position:absolute; top:28px; left:0; right:0; height:1px;
  background:linear-gradient(90deg,transparent,var(--border) 10%,var(--border) 90%,transparent);
}
.process-step {
  flex:1; min-width:180px; display:flex; flex-direction:column;
  align-items:center; text-align:center; padding:0 1.5rem;
}
.step-num {
  width:56px; height:56px; border-radius:50%; background:var(--surface);
  border:1px solid var(--border); display:flex; align-items:center; justify-content:center;
  font-family:var(--font-h); font-size:.9rem; font-weight:700; color:var(--blue2);
  margin-bottom:1.5rem; z-index:1; position:relative;
  transition:border-color .3s, box-shadow .3s;
}
.process-step:hover .step-num { border-color:var(--blue2); box-shadow:0 0 20px rgba(0,210,255,.3); }
.step-body h4 { font-family:var(--font-h); font-size:1rem; font-weight:700; margin-bottom:.5rem; }
.step-body p { color:var(--muted); font-size:.85rem; line-height:1.65; }

/* ── PRODUCTS ─────────────────────────────────── */
.products-section { position:relative; overflow:hidden; }
.products-section::before {
  content:''; position:absolute; inset:0; z-index:0;
  background:radial-gradient(ellipse 60% 60% at 50% 0%, rgba(79,142,255,.06), transparent);
}
.products-grid {
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:1.5rem; position:relative; z-index:1;
}
.product-card {
  background:var(--surface); border:1px solid var(--border);
  border-radius:20px; padding:2.25rem; position:relative; overflow:hidden;
  display:flex; flex-direction:column; gap:1.1rem;
  transition:border-color .4s, transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s;
}
.product-card:hover {
  border-color:rgba(79,142,255,.45); transform:translateY(-6px);
  box-shadow:0 24px 60px rgba(0,0,0,.5);
}
.product-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:2px;
  background:linear-gradient(90deg,var(--blue),var(--blue2));
  opacity:0; transition:opacity .4s;
}
.product-card:hover::before { opacity:1; }
.product-badge {
  position:absolute; top:1.25rem; right:1.25rem;
  font-size:.65rem; font-weight:700; letter-spacing:.12em;
  text-transform:uppercase; padding:.25rem .7rem; border-radius:100px;
  background:rgba(79,142,255,.15); color:var(--blue2);
  border:1px solid rgba(79,142,255,.3);
}
.product-icon { color:var(--blue2); }
.product-card h3 { font-family:var(--font-h); font-size:1.3rem; font-weight:700; }
.product-card p { color:var(--muted); font-size:.9rem; line-height:1.7; }
.product-features { display:flex; flex-direction:column; gap:.5rem; margin-top:.25rem; }
.product-features li { font-size:.85rem; color:var(--muted); }
.product-features li::first-child { color:var(--blue2); }
.product-cta {
  margin-top:auto; display:inline-flex; align-items:center;
  color:var(--blue2); font-weight:600; font-size:.9rem;
  transition:gap .3s; gap:.35rem;
}
.product-cta:hover { gap:.7rem; }

/* ── CTA SECTION ──────────────────────────────── */
.cta-section {
  position:relative; padding:8rem 0; overflow:hidden;
  background:var(--bg2); border-top:1px solid var(--border); border-bottom:1px solid var(--border);
}
.cta-orb {
  position:absolute; width:800px; height:400px; top:50%; left:50%;
  transform:translate(-50%,-50%); border-radius:50%;
  background:radial-gradient(ellipse,rgba(79,142,255,.15),transparent 70%);
  pointer-events:none;
}
.cta-inner { text-align:center; position:relative; z-index:1; }
.cta-inner h2 { font-family:var(--font-h); font-size:clamp(2rem,4vw,3.5rem); font-weight:800; line-height:1.1; margin-bottom:1rem; }
.cta-inner p { color:var(--muted); font-size:1.15rem; margin-bottom:2.5rem; }
.cta-actions { display:flex; align-items:center; justify-content:center; gap:1.25rem; flex-wrap:wrap; }

/* ── FOOTER ───────────────────────────────────── */
.footer { padding:5rem 0 2rem; background:var(--bg); border-top:1px solid var(--border); }
.footer-top { display:grid; grid-template-columns:1fr 2fr; gap:4rem; margin-bottom:4rem; }
.footer-brand { display:flex; flex-direction:column; gap:1rem; }
.footer-brand p { color:var(--muted); font-size:.9rem; line-height:1.7; max-width:280px; }
.footer-socials { display:flex; gap:1rem; margin-top:.5rem; }
.footer-socials a {
  width:40px; height:40px; border-radius:8px; border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center; color:var(--muted);
  transition:all .3s;
}
.footer-socials a:hover { border-color:var(--blue2); color:var(--blue2); }
.footer-links { display:grid; grid-template-columns:repeat(3,1fr); gap:2rem; }
.footer-col h5 { font-family:var(--font-h); font-size:.8rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--text); margin-bottom:1.25rem; }
.footer-col ul { display:flex; flex-direction:column; gap:.75rem; }
.footer-col a { color:var(--muted); font-size:.9rem; transition:color .3s; }
.footer-col a:hover { color:var(--blue2); }
.footer-bottom {
  border-top:1px solid var(--border); padding-top:1.75rem;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:1rem;
  color:var(--muted); font-size:.85rem;
}

/* ── RESPONSIVE ───────────────────────────────── */
@media(max-width:900px){
  .services-bento { grid-template-columns:1fr 1fr; }
  .card-large { grid-column:span 2; }
  .card-wide  { grid-column:span 2; }
  .products-grid { grid-template-columns:1fr 1fr; }
  .footer-top { grid-template-columns:1fr; gap:2.5rem; }
  .footer-links { grid-template-columns:repeat(3,1fr); }
}
@media(max-width:640px){
  .nav-links, .nav-cta { display:none; }
  .hamburger { display:flex; }
  .services-bento, .products-grid { grid-template-columns:1fr; }
  .card-large, .card-wide, .card-sm { grid-column:span 1; }
  .card-wide { flex-direction:column; }
  .process-steps { flex-direction:column; gap:2rem; }
  .process-line { display:none; }
  .footer-links { grid-template-columns:1fr 1fr; }
  .hero-stats { gap:1.5rem; }
  .stat-divider { display:none; }
  .stat { padding:0; }
}

/* ── FLOATING BUTTONS ─────────────────────────────────────
   WA  = bottom-right (green)
   Chat = bottom-left  (violet)
   Each is independently fixed — no parent needed
─────────────────────────────────────────────────────────── */
.float-group { display:contents; } /* transparent wrapper — children act as top-level */

/* WhatsApp — bottom-right */
.wa-float {
  position:fixed; bottom:2rem; right:2rem; z-index:800;
  width:58px; height:58px; border-radius:50%;
  background:linear-gradient(135deg,#25d366,#128c7e);
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 8px 30px rgba(37,211,102,.5);
  transition:transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s;
  text-decoration:none; cursor:pointer;
}
.wa-float:hover { transform:scale(1.12) translateY(-3px); box-shadow:0 14px 40px rgba(37,211,102,.7); }
.wa-float svg { color:#fff; width:30px; height:30px; }
.wa-float .wa-tooltip {
  position:absolute; right:calc(100% + 12px); top:50%; transform:translateY(-50%);
  background:var(--surface); border:1px solid var(--border); border-radius:8px;
  padding:.4rem .9rem; font-size:.78rem; font-weight:500; white-space:nowrap; color:var(--text);
  opacity:0; pointer-events:none; transition:opacity .25s;
}
.wa-float:hover .wa-tooltip { opacity:1; }

/* AI Chat — bottom-left */
.chat-float {
  position:fixed; bottom:2rem; left:2rem; z-index:800;
  width:58px; height:58px; border-radius:50%;
  background:linear-gradient(135deg,var(--blue),var(--blue2));
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 8px 30px rgba(120,87,255,.5);
  transition:transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s;
  border:none; cursor:pointer;
}
.chat-float:hover { transform:scale(1.12) translateY(-3px); box-shadow:0 14px 40px rgba(120,87,255,.7); }
.chat-float svg { color:#fff; width:26px; height:26px; }
.chat-float:hover { transform:scale(1.12) translateY(-3px); box-shadow:0 14px 40px rgba(120,87,255,.65); }
.chat-float svg { color:#fff; width:26px; height:26px; }
.chat-float .chat-dot {
  position:absolute; top:4px; right:4px; width:10px; height:10px;
  background:#10b981; border-radius:50%; border:2px solid var(--bg);
  animation:dotPulse 2s ease infinite;
}
@keyframes dotPulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.4);opacity:.7} }
.chat-float .chat-tooltip {
  position:absolute; left:calc(100% + 12px); top:50%; transform:translateY(-50%);
  background:var(--surface); border:1px solid var(--border); border-radius:8px;
  padding:.4rem .9rem; font-size:.78rem; font-weight:500; white-space:nowrap; color:var(--text);
  opacity:0; pointer-events:none; transition:opacity .25s;
}
.chat-float:hover .chat-tooltip { opacity:1; }

/* ── AI CHAT PANEL ────────────────────────────── */
.chat-panel {
  position:fixed;
  bottom:7.5rem; left:2rem;
  z-index:801;
  width:370px;
  max-width:calc(100vw - 4rem);
  /* Fixed height so flex children can fill & scroll correctly */
  height:480px;
  max-height:calc(100vh - 11rem);
  background:var(--bg2); border:1px solid var(--border); border-radius:20px;
  overflow:hidden;
  box-shadow:0 30px 80px rgba(0,0,0,.7),0 0 0 1px rgba(120,87,255,.15);
  /* Critical: flex column so header+messages+input stack properly */
  display:flex; flex-direction:column;
  transform:translateY(20px) scale(.96); opacity:0;
  pointer-events:none; transition:all .4s cubic-bezier(.16,1,.3,1);
}
.chat-panel.open { transform:translateY(0) scale(1); opacity:1; pointer-events:all; }
.chat-header {
  padding:1.1rem 1.25rem; background:linear-gradient(135deg,var(--blue),#5e3cdb);
  display:flex; align-items:center; gap:.85rem;
}
.chat-avatar {
  width:42px; height:42px; border-radius:50%; background:rgba(255,255,255,.15);
  display:flex; align-items:center; justify-content:center; font-size:1.3rem; flex-shrink:0;
}
.chat-header-info h4 { font-family:var(--font-h); font-size:.95rem; font-weight:700; color:#fff; }
.chat-header-info span {
  font-size:.75rem; color:rgba(255,255,255,.7); display:flex; align-items:center; gap:.35rem;
}
.chat-header-info span::before {
  content:''; width:7px; height:7px; border-radius:50%; background:#10b981; display:block;
}
.chat-close {
  margin-left:auto; background:none; border:none; color:rgba(255,255,255,.7);
  cursor:pointer; width:30px; height:30px; display:flex; align-items:center; justify-content:center;
  border-radius:50%; transition:background .2s; font-size:1.1rem;
}
.chat-close:hover { background:rgba(255,255,255,.15); color:#fff; }
.chat-messages {
  /* THE fix: flex:1 + min-height:0 allows this child to shrink below content size */
  /* Without min-height:0, flex children never scroll — they just overflow the panel */
  flex:1;
  min-height:0;
  overflow-y:auto;
  padding:1.25rem;
  display:flex; flex-direction:column; gap:.85rem;
  scrollbar-width:thin; scrollbar-color:var(--border) transparent;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}
.chat-messages::-webkit-scrollbar { width:4px; }
.chat-messages::-webkit-scrollbar-thumb { background:var(--border); border-radius:4px; }
.chat-msg { display:flex; gap:.65rem; align-items:flex-end; max-width:90%; animation:msgIn .35s cubic-bezier(.16,1,.3,1); }
@keyframes msgIn { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:none} }
.chat-msg.bot { align-self:flex-start; }
.chat-msg.user { align-self:flex-end; flex-direction:row-reverse; }
.msg-avatar {
  width:30px; height:30px; border-radius:50%; background:var(--surface);
  border:1px solid var(--border); display:flex; align-items:center; justify-content:center;
  font-size:.85rem; flex-shrink:0;
}
.msg-bubble { padding:.65rem 1rem; border-radius:14px; font-size:.875rem; line-height:1.6; }
.chat-msg.bot .msg-bubble {
  background:var(--surface); border:1px solid var(--border); color:var(--text);
  border-bottom-left-radius:4px;
}
.chat-msg.user .msg-bubble {
  background:linear-gradient(135deg,var(--blue),#5e3cdb); color:#fff;
  border-bottom-right-radius:4px;
}
.typing-indicator {
  display:flex; gap:.35rem; align-items:center; padding:.65rem 1rem;
  background:var(--surface); border:1px solid var(--border);
  border-radius:14px; border-bottom-left-radius:4px; width:fit-content;
}
.typing-indicator span {
  display:block; width:7px; height:7px; border-radius:50%;
  background:var(--muted); animation:bounce 1.2s ease infinite;
}
.typing-indicator span:nth-child(2){ animation-delay:.2s; }
.typing-indicator span:nth-child(3){ animation-delay:.4s; }
@keyframes bounce { 0%,80%,100%{transform:translateY(0)} 40%{transform:translateY(-8px)} }
.quick-replies { display:flex; flex-wrap:wrap; gap:.5rem; padding:.25rem 0; }
.quick-reply {
  font-size:.75rem; padding:.35rem .8rem; border-radius:100px;
  background:transparent; border:1px solid rgba(120,87,255,.4); color:var(--blue);
  cursor:pointer; transition:all .25s; font-family:var(--font-b);
}
.quick-reply:hover { background:rgba(120,87,255,.15); border-color:var(--blue); }
.wa-redirect-btn {
  display:inline-flex; align-items:center; gap:.45rem; margin-top:.5rem;
  font-size:.8rem; font-weight:600; color:#25d366;
  padding:.4rem .9rem; border-radius:100px; background:rgba(37,211,102,.1);
  border:1px solid rgba(37,211,102,.3); transition:all .25s; text-decoration:none;
}
.wa-redirect-btn:hover { background:rgba(37,211,102,.2); }
.chat-input-area {
  padding:.85rem 1rem; border-top:1px solid var(--border);
  display:flex; gap:.6rem; align-items:center; background:var(--bg);
}
.chat-input {
  flex:1; background:var(--surface); border:1px solid var(--border);
  border-radius:100px; padding:.6rem 1.1rem; color:var(--text);
  font-size:.875rem; font-family:var(--font-b); outline:none; transition:border-color .3s;
}
.chat-input:focus { border-color:rgba(120,87,255,.5); }
.chat-input::placeholder { color:var(--muted); }
.chat-send {
  width:40px; height:40px; border-radius:50%; background:var(--blue);
  border:none; cursor:pointer; display:flex; align-items:center; justify-content:center;
  color:#fff; flex-shrink:0; transition:all .25s;
}
.chat-send:hover { background:var(--blue2); color:#000; transform:scale(1.08); }
@media(max-width:480px){
  .wa-float { bottom:1.25rem; right:1rem; }
  .chat-float { bottom:1.25rem; left:1rem; }
  .chat-panel { left:1rem; width:calc(100vw - 2rem); bottom:7rem; }
}

/* ── THEME TOGGLE BUTTON ────────────────────── */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: all 0.3s ease;
  margin-left: 1rem;
}

.theme-toggle:hover {
  border-color: var(--blue2);
  color: var(--blue2);
  transform: scale(1.05);
}

/* Hide Sun Icon in Dark Mode, Hide Moon Icon in Light Mode */
:root[data-theme="dark"] .sun-icon { display: block; }
:root[data-theme="dark"] .moon-icon { display: none; }
:root[data-theme="light"] .sun-icon { display: none; }
:root[data-theme="light"] .moon-icon { display: block; }

/* Light Theme Variables */
:root[data-theme="light"] {
  --bg:       #f8fafc;
  --bg2:      #f1f5f9;
  --surface:  #ffffff;
  --border:   rgba(15, 23, 42, 0.08);
  --blue:     #4f46e5;
  --blue2:    #0ea5e9;
  --purple:   #a21caf;
  --text:     #0f172a;
  --muted:    #64748b;
  --nav-bg:   rgba(248, 250, 252, 0.85);
}

:root[data-theme="dark"] {
  --nav-bg:   rgba(8, 8, 16, 0.85);
}

/* Smooth Theme Transitions */
body, .service-card, .product-card, .nav, .footer, .cta-section, .mobile-menu {
  transition: background-color 0.4s ease, background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}
