/* ══════════════════════════════════════
   BASE & RESET
══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  background-color: #0F1117;
  color: #fff;
  font-family: 'Heebo', sans-serif;
}

body.lang-en {
  font-family: 'Inter', sans-serif;
}

/* ══════════════════════════════════════
   NAVBAR
══════════════════════════════════════ */
#navbar {
  background: transparent;
}

/* Language toggle always stays in the same physical spot */
.lang-toggle {
  position: fixed !important;
  top: 14px;
  right: 20px;
  z-index: 1001;
}

#navbar.scrolled {
  background: rgba(15, 17, 23, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(45, 55, 72, 0.5);
}

/* ══════════════════════════════════════
   HERO BACKGROUND
══════════════════════════════════════ */
.hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0, 212, 255, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 50%, rgba(124, 58, 237, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 10% 70%, rgba(0, 212, 255, 0.08) 0%, transparent 60%),
    #0F1117;
}

.grid-overlay {
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* ══════════════════════════════════════
   FLOATING ORBS
══════════════════════════════════════ */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orb-float 8s ease-in-out infinite;
  pointer-events: none;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(0, 212, 255, 0.06);
  top: 10%;
  left: 15%;
  animation-delay: 0s;
}

.orb-2 {
  width: 350px;
  height: 350px;
  background: rgba(124, 58, 237, 0.08);
  top: 20%;
  right: 10%;
  animation-delay: -3s;
}

.orb-3 {
  width: 250px;
  height: 250px;
  background: rgba(0, 212, 255, 0.05);
  bottom: 15%;
  left: 40%;
  animation-delay: -6s;
}

@keyframes orb-float {
  0%, 100% { transform: translateY(0) scale(1); }
  33% { transform: translateY(-30px) scale(1.05); }
  66% { transform: translateY(20px) scale(0.95); }
}

/* ══════════════════════════════════════
   HERO TYPOGRAPHY
══════════════════════════════════════ */
.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.1;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.gradient-text {
  background: linear-gradient(135deg, #00D4FF 0%, #7C3AED 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn-primary {
  background: linear-gradient(135deg, #00D4FF, #7C3AED);
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.25);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(45, 55, 72, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  border-color: #00D4FF;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════
   LANGUAGE TOGGLE
══════════════════════════════════════ */
.lang-btn.active {
  background: linear-gradient(135deg, #00D4FF, #7C3AED);
  color: #fff;
}

/* ══════════════════════════════════════
   NODES CANVAS
══════════════════════════════════════ */
.nodes-graphic {
  max-width: 700px;
  opacity: 0.85;
}

#nodesCanvas {
  width: 100%;
  height: auto;
}

/* ══════════════════════════════════════
   SECTION TAGS
══════════════════════════════════════ */
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #00D4FF;
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
}

/* ══════════════════════════════════════
   SERVICE ICON WRAPPERS (SVG, no emoji)
══════════════════════════════════════ */
.service-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.service-icon-cyan {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 212, 255, 0.05));
  border: 1px solid rgba(0, 212, 255, 0.25);
  color: #00D4FF;
}

.service-icon-purple {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(124, 58, 237, 0.05));
  border: 1px solid rgba(124, 58, 237, 0.25);
  color: #9D5FF0;
}

.service-card:hover .service-icon-wrap {
  transform: scale(1.08);
}

/* ══════════════════════════════════════
   TICKER DOT
══════════════════════════════════════ */
.ticker-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00D4FF, #7C3AED);
  flex-shrink: 0;
  margin-inline-end: 8px;
  vertical-align: middle;
}

/* ══════════════════════════════════════
   ABOUT PHOTO — PORTRAIT
══════════════════════════════════════ */
.about-portrait-wrap {
  position: relative;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(0, 212, 255, 0.28);
  box-shadow:
    0 0 0 6px rgba(0, 212, 255, 0.06),
    0 0 50px rgba(0, 212, 255, 0.2),
    0 0 100px rgba(124, 58, 237, 0.1);
  flex-shrink: 0;
}

.about-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  transition: transform 0.5s ease;
}

.about-portrait-wrap:hover .about-portrait-img {
  transform: scale(1.04);
}

.about-portrait-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(to bottom, transparent 60%, rgba(15,17,23,0.2) 100%);
  pointer-events: none;
}

@keyframes ring-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.05); opacity: 1; }
}

/* ══════════════════════════════════════
   STAT CARDS
══════════════════════════════════════ */
.stat-card {
  background: #1A1F2E;
  border: 1px solid #2D3748;
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.08);
  transform: translateY(-3px);
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1;
}

/* ══════════════════════════════════════
   INDUSTRY PILLS
══════════════════════════════════════ */
.industry-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.ind-pill {
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #9CA3AF;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.25s ease;
  cursor: default;
}

.ind-pill:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.ind-pill-cyan {
  color: #00D4FF;
  background: rgba(0,212,255,0.08);
  border-color: rgba(0,212,255,0.2);
}

.ind-pill-cyan:hover {
  background: rgba(0,212,255,0.15);
  border-color: rgba(0,212,255,0.4);
  box-shadow: 0 0 16px rgba(0,212,255,0.2);
}

.ind-pill-purple {
  color: #9D5FF0;
  background: rgba(124,58,237,0.1);
  border-color: rgba(124,58,237,0.25);
}

.ind-pill-purple:hover {
  background: rgba(124,58,237,0.18);
  border-color: rgba(124,58,237,0.45);
  box-shadow: 0 0 16px rgba(124,58,237,0.2);
}

/* ══════════════════════════════════════
   SERVICES — REDESIGNED LAYOUT
══════════════════════════════════════ */
.services-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --- Hero card (WhatsApp) --- */
.svc-hero-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #1A1F2E;
  border: 1px solid #2D3748;
  border-radius: 1.5rem;
  overflow: hidden;
  position: relative;
  min-height: 300px;
  transition: border-color 0.3s ease;
}

.svc-hero-card:hover {
  border-color: rgba(0, 212, 255, 0.4);
}

.svc-hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,212,255,0.04) 0%, transparent 55%);
  pointer-events: none;
}

.svc-hero-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.svc-hero-visual {
  background: linear-gradient(135deg, rgba(0,212,255,0.04), rgba(124,58,237,0.05));
  border-inline-start: 1px solid rgba(45,55,72,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* Fake chat preview */
.chat-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 280px;
}

.chat-preview-msg {
  padding: 10px 14px;
  font-size: 0.82rem;
  line-height: 1.45;
  max-width: 88%;
}

.chat-preview-msg.received {
  background: rgba(45,55,72,0.9);
  color: #D1D5DB;
  border-radius: 1rem 1rem 1rem 0.25rem;
  align-self: flex-start;
}

.chat-preview-msg.sent {
  background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(124,58,237,0.18));
  border: 1px solid rgba(0,212,255,0.2);
  color: #fff;
  border-radius: 1rem 1rem 0.25rem 1rem;
  align-self: flex-end;
}

.chat-preview-typing {
  padding: 10px 16px;
}

.chat-typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.chat-typing span {
  width: 6px;
  height: 6px;
  background: #00D4FF;
  border-radius: 50%;
  display: inline-block;
  animation: typing-bounce 1.2s infinite;
  opacity: 0.7;
}

.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

/* Checklist inside hero */
.svc-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.svc-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #9CA3AF;
}

.svc-checklist li::before {
  content: '✓';
  color: #00D4FF;
  font-weight: 800;
  flex-shrink: 0;
}

/* --- Pair row (Sales + Content) --- */
.svc-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.svc-card-alt {
  position: relative;
  padding: 2rem;
  background: #1A1F2E;
  border: 1px solid #2D3748;
  border-radius: 1.5rem;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.svc-card-alt:hover {
  border-color: rgba(0, 212, 255, 0.35);
  box-shadow: 0 0 30px rgba(0,212,255,0.05);
}

.svc-card-alt.svc-card-purple:hover {
  border-color: rgba(157, 95, 240, 0.35);
  box-shadow: 0 0 30px rgba(124,58,237,0.06);
}

.svc-card-num {
  position: absolute;
  top: 1.2rem;
  inset-inline-end: 1.5rem;
  font-size: 4rem;
  font-weight: 900;
  color: rgba(255,255,255,0.05);
  line-height: 1;
  pointer-events: none;
  letter-spacing: -0.04em;
}

.svc-card-num-purple {
  color: rgba(157,95,240,0.08);
}

/* Purple tag variant */
.tag.tag-purple {
  color: #9D5FF0;
  background: rgba(124,58,237,0.1);
  border-color: rgba(124,58,237,0.2);
}

/* --- Custom card (gradient border) --- */
.svc-custom-card {
  border-radius: 1.5rem;
  padding: 2px;
  background: linear-gradient(135deg, rgba(0,212,255,0.35) 0%, rgba(124,58,237,0.35) 100%);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.svc-custom-card:hover {
  background: linear-gradient(135deg, rgba(0,212,255,0.6) 0%, rgba(124,58,237,0.6) 100%);
  box-shadow: 0 0 40px rgba(0,212,255,0.08), 0 0 40px rgba(124,58,237,0.08);
}

.svc-custom-inner {
  background: #1A1F2E;
  border-radius: calc(1.5rem - 2px);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.svc-custom-left { flex: 1; }
.svc-custom-right { flex-shrink: 0; }

/* Mobile collapse */
@media (max-width: 767px) {
  .svc-hero-card {
    grid-template-columns: 1fr;
  }

  .svc-hero-visual {
    display: none;
  }

  .svc-pair {
    grid-template-columns: 1fr;
  }

  .svc-custom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ══════════════════════════════════════
   TICKER (kept for reference, unused)
══════════════════════════════════════ */
.ticker-track {
  animation: ticker-scroll 38s linear infinite;
  width: max-content;
  direction: ltr;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker-item {
  font-size: 0.95rem;
  font-weight: 600;
  color: #9CA3AF;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding-inline-end: 2.8rem;
}

/* ══════════════════════════════════════
   SERVICE CARDS
══════════════════════════════════════ */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.03) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #00D4FF;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

/* ══════════════════════════════════════
   VERTICAL TIMELINE — HOW IT WORKS
══════════════════════════════════════ */
.timeline {
  display: flex;
  flex-direction: column;
  max-width: 580px;
  margin: 0 auto;
}

.tl-step {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.tl-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.tl-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00D4FF, #7C3AED);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.6rem;
  color: #fff;
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.4), 0 0 80px rgba(0, 212, 255, 0.1);
  position: relative;
  flex-shrink: 0;
}

.tl-circle::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.25);
  animation: ring-pulse 2.5s ease-in-out infinite;
}

.tl-connector {
  width: 2px;
  height: 80px;
  margin-top: 6px;
  background: linear-gradient(to bottom, rgba(0, 212, 255, 0.5), rgba(124, 58, 237, 0.15));
  border-radius: 1px;
}

.tl-content {
  padding-top: 16px;
  padding-bottom: 52px;
  flex: 1;
}

.tl-last .tl-content {
  padding-bottom: 0;
}

/* Sequential reveal for timeline steps */
.tl-step.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.tl-step.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.tl-step:nth-child(1).reveal { transition-delay: 0s; }
.tl-step:nth-child(2).reveal { transition-delay: 0.28s; }
.tl-step:nth-child(3).reveal { transition-delay: 0.56s; }

/* ══════════════════════════════════════
   BENTO IMAGE GRID
══════════════════════════════════════ */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* Desktop: featured card left, 3 stacked right */
@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: 1.45fr 1fr;
    grid-template-rows: repeat(3, 190px);
  }

  .bento-featured {
    grid-row: 1 / 4;
  }
}

.bento-item {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(45, 55, 72, 0.7);
  cursor: default;
  min-height: 220px;
}

/* Number badge */
.bento-item::before {
  content: attr(data-num);
  position: absolute;
  top: 14px;
  inset-inline-start: 18px;
  font-size: 1.9rem;
  font-weight: 900;
  color: rgba(255,255,255,0.1);
  line-height: 1;
  z-index: 3;
  pointer-events: none;
  letter-spacing: -0.03em;
}

.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
  filter: brightness(0.65) saturate(0.85);
}

.bento-item:hover img {
  transform: scale(1.04);
  filter: brightness(0.5) saturate(1.1);
}

.bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.4rem;
  transition: background 0.3s ease;
}

.bento-item:hover .bento-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 55%, transparent 100%);
}

.bento-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #00D4FF;
  margin-bottom: 0.4rem;
}

/* featured card: larger label */
.bento-featured .bento-label {
  font-size: 0.85rem;
}

.bento-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.5;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.3s ease;
}

/* featured card desc always visible */
@media (min-width: 768px) {
  .bento-featured .bento-desc {
    opacity: 1;
    transform: translateY(0);
  }

  .bento-featured .bento-label {
    font-size: 1rem;
    margin-bottom: 0.6rem;
  }
}

.bento-item:hover .bento-desc {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile: horizontal scroll */
@media (max-width: 767px) {
  .bento-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding-bottom: 12px;
    scrollbar-width: none;
  }
  .bento-grid::-webkit-scrollbar { display: none; }

  .bento-item {
    flex-shrink: 0;
    width: 78vw;
    height: 320px;
    scroll-snap-align: start;
    min-height: unset;
  }

  .bento-item img {
    object-position: center top;
  }

  .bento-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.25) 60%, transparent 100%);
  }

  .bento-desc {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ══════════════════════════════════════
   CAL.COM EMBED
══════════════════════════════════════ */
.cal-embed-wrap {
  background: #1A1F2E;
}

/* Cal.com overrides */
[data-cal-inline] iframe {
  border-radius: 1rem;
}

/* ══════════════════════════════════════
   GLOW UTILITIES
══════════════════════════════════════ */
.glow-cyan {
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.45);
}

.glow-cyan-sm {
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.3);
}

/* ══════════════════════════════════════
   FLOATING BUTTONS
══════════════════════════════════════ */
.float-btn {
  position: fixed;
  bottom: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  transition: all 0.3s ease;
  border: none;
}

.float-btn:hover {
  transform: scale(1.1) translateY(-3px);
}

.float-right {
  right: 28px;
  background: linear-gradient(135deg, #00D4FF, #7C3AED);
}

.float-left {
  left: 28px;
}

/* ══════════════════════════════════════
   CHAT WIDGET
══════════════════════════════════════ */
.chat-widget {
  position: fixed;
  bottom: 96px;
  right: 28px;
  width: 340px;
  max-height: 480px;
  background: #1A1F2E;
  border: 1px solid #2D3748;
  border-radius: 1.25rem;
  z-index: 998;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 212, 255, 0.1);
  animation: chat-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chat-widget.hidden {
  display: none;
}

@keyframes chat-in {
  from { opacity: 0; transform: scale(0.85) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #2D3748;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(124, 58, 237, 0.05));
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 200px;
  max-height: 300px;
}

.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: #2D3748; border-radius: 2px; }

.chat-msg {
  max-width: 85%;
  padding: 0.6rem 0.9rem;
  border-radius: 1rem;
  font-size: 0.85rem;
  line-height: 1.5;
  animation: msg-in 0.2s ease;
}

@keyframes msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-msg.bot {
  background: #0F1117;
  border: 1px solid #2D3748;
  color: #D1D5DB;
  align-self: flex-start;
  border-radius: 1rem 1rem 1rem 0.25rem;
}

.chat-msg.user {
  background: linear-gradient(135deg, #00D4FF, #7C3AED);
  color: #fff;
  align-self: flex-end;
  border-radius: 1rem 1rem 0.25rem 1rem;
}

.chat-msg.typing {
  background: #0F1117;
  border: 1px solid #2D3748;
  align-self: flex-start;
  border-radius: 1rem 1rem 1rem 0.25rem;
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 0.75rem 1rem;
}

.typing-dot {
  width: 7px;
  height: 7px;
  background: #6B7280;
  border-radius: 50%;
  animation: typing-bounce 1.2s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
}

/* Bilingual separator line in opening message */
.chat-bilingual-sep {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 8px 0 6px;
}

/* Lead capture card */
.lead-card {
  background: linear-gradient(135deg, rgba(0,212,255,0.07), rgba(124,58,237,0.07));
  border: 1px solid rgba(0,212,255,0.18);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  animation: msg-in 0.25s ease;
}

.lead-card-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #00D4FF;
  margin-bottom: 0.7rem;
  letter-spacing: 0.03em;
}

.lead-input {
  width: 100%;
  background: rgba(15,17,23,0.8);
  border: 1px solid rgba(45,55,72,0.9);
  border-radius: 0.5rem;
  padding: 0.45rem 0.75rem;
  color: #fff;
  font-size: 0.82rem;
  outline: none;
  font-family: inherit;
  display: block;
  margin-top: 0.45rem;
  transition: border-color 0.2s;
}

.lead-input:first-of-type { margin-top: 0; }
.lead-input:focus { border-color: rgba(0,212,255,0.45); }
.lead-input::placeholder { color: #4B5563; }

.lead-submit-btn {
  margin-top: 0.65rem;
  width: 100%;
  padding: 0.5rem;
  border: none;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #00D4FF, #7C3AED);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s;
}

.lead-submit-btn:hover { opacity: 0.88; }
.lead-submit-btn:disabled { opacity: 0.5; cursor: default; }

.lead-or {
  text-align: center;
  font-size: 0.72rem;
  color: #4B5563;
  margin: 0.55rem 0;
}

.lead-wa-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.45rem;
  border-radius: 0.5rem;
  background: rgba(37,211,102,0.1);
  border: 1px solid rgba(37,211,102,0.25);
  color: #25D366;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.lead-wa-btn:hover { background: rgba(37,211,102,0.22); }

.chat-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid #2D3748;
}

.chat-input {
  flex: 1;
  background: #0F1117;
  border: 1px solid #2D3748;
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  color: #fff;
  font-size: 0.85rem;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

.chat-input:focus {
  border-color: rgba(0, 212, 255, 0.4);
}

.chat-input::placeholder {
  color: #4B5563;
}

.chat-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00D4FF, #7C3AED);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.2s;
  flex-shrink: 0;
}

.chat-send-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

/* ══════════════════════════════════════
   RTL / LTR OVERRIDES
══════════════════════════════════════ */
html[dir="ltr"] .chat-widget {
  right: 28px;
  left: auto;
}

html[dir="ltr"] #wa-btn {
  left: 28px;
}

html[dir="ltr"] .chat-msg.bot {
  border-radius: 1rem 1rem 1rem 0.25rem;
  align-self: flex-start;
}

html[dir="ltr"] .chat-msg.user {
  border-radius: 1rem 1rem 0.25rem 1rem;
  align-self: flex-end;
}

html[dir="ltr"] .process-line {
  left: 16.66%;
  right: 16.66%;
}

/* ══════════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 640px) {
  .chat-widget {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 88px;
  }

  .float-btn {
    width: 50px;
    height: 50px;
    bottom: 20px;
  }

  .float-right { right: 16px; }
  .float-left { left: 16px; }

  .nodes-graphic {
    display: none;
  }
}
