/* ================= WhatsApp Business API (BigNext WA) ================= */
.wa-hero { padding-bottom: 100px; }
.wa-hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
.wa-hero .eyebrow i { color: #25d366; }
.wa-hero .eyebrow::before { display: none; }
.wa-orb { background: #25d366 !important; opacity: 0.22 !important; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.btn-wa { background: linear-gradient(135deg, #25d366, #128c7e); color: #fff; box-shadow: 0 10px 30px -8px rgba(37, 211, 102, 0.6); }
.btn-wa:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 18px 40px -10px rgba(37, 211, 102, 0.75); }

/* Phone */
.wa-phone-wrap { position: relative; display: grid; place-items: center; }
.wa-phone {
  position: relative;
  width: 300px; height: 560px;
  border-radius: 44px;
  background: #0b141a;
  border: 10px solid #1b2330;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 80px rgba(37, 211, 102, 0.15);
  overflow: hidden;
  display: flex; flex-direction: column;
  animation: phoneFloat 7s ease-in-out infinite;
}
@keyframes phoneFloat { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
.wp-notch { position: absolute; top: 8px; left: 50%; width: 90px; height: 24px; margin-left: -45px; border-radius: 20px; background: #000; z-index: 2; }
.wp-head { display: flex; align-items: center; gap: 10px; padding: 40px 16px 12px; background: #1f2c34; color: #e9edef; }
.wp-head strong { display: block; font-size: 0.9rem; font-family: var(--font-head); font-weight: 600; }
.wp-head strong i { color: #25d366; font-size: 0.75rem; }
.wp-head small { font-size: 0.72rem; color: #8696a0; }
.wp-avatar { width: 38px; height: 38px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.wp-avatar img { width: 24px; }
.wp-body {
  flex: 1;
  padding: 14px 12px;
  display: flex; flex-direction: column; gap: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(37, 211, 102, 0.05), transparent 40%),
    #0b141a;
}
.wp-body > :first-child { margin-top: auto; }
.wb { max-width: 82%; padding: 8px 11px; border-radius: 10px; font-size: 0.8rem; line-height: 1.4; color: #e9edef; animation: wbIn 0.45s var(--ease-back) both; }
.wb.bot { background: #202c33; align-self: flex-start; border-top-left-radius: 2px; }
.wb.me { background: #005c4b; align-self: flex-end; border-top-right-radius: 2px; }
.wb small { display: block; text-align: right; font-size: 0.62rem; color: #8696a0; margin-top: 2px; }
.wb.me small::after { content: " ✓✓"; color: #53bdeb; }
.wb-btns { display: grid; gap: 4px; align-self: flex-start; width: 82%; animation: wbIn 0.45s var(--ease-back) both; }
.wb-btns span { padding: 8px; border-radius: 8px; background: #202c33; color: #53bdeb; text-align: center; font-size: 0.78rem; font-weight: 500; }
.wb-btns span.tap { animation: tap 0.6s ease; }
@keyframes tap { 50% { background: #2a3942; transform: scale(0.96); } }
.wb-card { align-self: flex-start; width: 82%; border-radius: 10px; overflow: hidden; background: #202c33; animation: wbIn 0.45s var(--ease-back) both; }
.wb-card .img { height: 80px; background: var(--grad); display: grid; place-items: center; color: #fff; font-size: 1.8rem; }
.wb-card div { padding: 8px 10px; font-size: 0.78rem; color: #e9edef; }
.wb-card b { color: #25d366; }
.wb-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 10px 12px; border-radius: 10px; background: #202c33; animation: wbIn 0.3s both; }
.wb-typing i { width: 6px; height: 6px; border-radius: 50%; background: #8696a0; animation: typing 1.2s infinite; }
.wb-typing i:nth-child(2) { animation-delay: 0.15s; } .wb-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes wbIn { from { opacity: 0; transform: translateY(14px) scale(0.92); } }

.wa-float {
  position: absolute;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  color: #fff; font-family: var(--font-head); font-weight: 500; font-size: 0.85rem;
  white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}
.wa-float i { color: #25d366; }
.wa-float.f1 { top: 14%; left: 0; }
.wa-float.f2 { bottom: 16%; right: 4%; animation-delay: -3s; }
@keyframes bob { 50% { translate: 0 -12px; } }

/* Features */
.wa-feats .card p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.wa-feats .card h3 { font-size: 1.15rem; }
.icon-box.wa-ic { background: linear-gradient(135deg, #25d366, #128c7e); box-shadow: 0 10px 24px -8px rgba(37, 211, 102, 0.6); }

/* Flow */
.flow-sec { overflow: hidden; isolation: isolate; }
.flow-sec .bg-grid {
  position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(110, 155, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(110, 155, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
}
.flow-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: center; }
.flow-sec p { color: #a9b6dc; font-size: 1.05rem; }
.check-list.light li { color: #dbe4ff; }
.check-list.light li::before { background: rgba(37, 211, 102, 0.18); color: #25d366; }
.flow-canvas {
  position: relative;
  aspect-ratio: 460 / 360;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(rgba(110, 155, 255, 0.18) 1px, transparent 1px) 0 0 / 18px 18px,
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(110, 155, 255, 0.2);
}
.flow-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.flow-svg path { fill: none; stroke: #25d366; stroke-width: 2; stroke-dasharray: 6 7; animation: dash 1.4s linear infinite; opacity: 0.8; }
@keyframes dash { to { stroke-dashoffset: -26; } }
.fnode {
  position: absolute; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 14px;
  background: #fff; color: var(--ink);
  font-family: var(--font-head); font-weight: 600; font-size: 0.85rem;
  box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}
.fnode i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); font-size: 0.8rem; }
.fnode b { color: #128c7e; }
.fnode.trig { left: 18%; top: 19.4%; }
.fnode.trig i { background: #dcfce7; color: #15803d; }
.fnode.menu { left: 60%; top: 50%; background: var(--grad); color: #fff; animation: menuPulse 2.6s ease-in-out infinite; }
.fnode.menu i { background: rgba(255, 255, 255, 0.2); color: #fff; }
@keyframes menuPulse { 50% { box-shadow: 0 0 0 10px rgba(47, 107, 255, 0.15), 0 16px 40px -14px rgba(0, 0, 0, 0.6); } }
.fnode.out { left: 92%; }
.fnode.o1 { top: 19.4%; } .fnode.o2 { top: 50%; } .fnode.o3 { top: 80.5%; }
.fnode.out { animation: outGlow 4.5s ease-in-out infinite; }
.fnode.o2 { animation-delay: 1.5s; } .fnode.o3 { animation-delay: 3s; }
@keyframes outGlow { 0%, 20%, 100% { box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.6); } 10% { box-shadow: 0 0 0 6px rgba(37, 211, 102, 0.35), 0 16px 40px -14px rgba(0, 0, 0, 0.6); } }

/* Use-case tabs */
.uc-tabs { max-width: 980px; margin: 0 auto; }
.uc-tablist { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.uct {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 100px;
  border: 1.5px solid var(--line); background: #fff; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; color: var(--ink-2);
  transition: all 0.35s var(--ease);
}
.uct:hover { border-color: var(--primary-200); color: var(--primary); transform: translateY(-2px); }
.uct.active { background: var(--grad); border-color: transparent; color: #fff; box-shadow: var(--shadow-glow); }
.uc-panels { position: relative; }
.ucp {
  display: none;
  grid-template-columns: 1fr auto; align-items: center; gap: 30px;
  padding: 44px;
  border-radius: var(--radius-xl);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  overflow: hidden;
}
.ucp.active { display: grid; animation: ucIn 0.6s var(--ease); }
@keyframes ucIn { from { opacity: 0; transform: translateY(20px) scale(0.98); } }
.ucp h3 { font-size: 1.6rem; margin-bottom: 18px; }
.ucp .big { font-size: 8rem; color: var(--primary-100); animation: bigIcon 0.8s var(--ease-back); }
@keyframes bigIcon { from { transform: scale(0.4) rotate(-20deg); opacity: 0; } }

/* Steps */
.wa-steps .card p { color: var(--muted); margin: 0; }
.ws-num { display: block; font-family: var(--font-head); font-weight: 800; font-size: 3rem; line-height: 1; margin-bottom: 14px; color: transparent; -webkit-text-stroke: 1.5px var(--primary-300); transition: color 0.4s; }
.wa-steps .card:hover .ws-num { color: var(--primary); -webkit-text-stroke-color: var(--primary); }
.wa-steps-cta { margin-top: 40px; }

@media (max-width: 1024px) {
  .wa-hero-inner, .flow-grid { grid-template-columns: 1fr; }
  .wa-phone-wrap { margin-top: 30px; }
}
@media (max-width: 680px) {
  .wa-phone { width: 260px; height: 500px; }
  .wa-float { font-size: 0.75rem; padding: 8px 12px; }
  .wa-float.f1 { left: 0; } .wa-float.f2 { right: 0; }
  .fnode { padding: 8px 10px; font-size: 0.68rem; gap: 6px; border-radius: 10px; }
  .fnode i { width: 22px; height: 22px; font-size: 0.65rem; }
  .fnode.trig { left: 22%; }
  .fnode.out { left: 86%; }
  .ucp { grid-template-columns: 1fr; padding: 30px 24px; }
  .ucp .big { display: none; }
  .uct { padding: 10px 16px; font-size: 0.88rem; }
}
