/* ===== PIA — Custom Properties ===== */
:root {
  --pia-bg: #04081a;
  --pia-bg-alt: #070c1f;
  --pia-wa: #25d366;
  --pia-wa-dark: #128c7e;
  --pia-wa-bg: #0b141a;
  --pia-wa-panel: #202c33;
  --pia-wa-input: #2a3942;
  --pia-wa-sent: #005c4b;
  --pia-wa-received: #202c33;
  --pia-blue: #0c34ff;
  --pia-blue-dark: #0028cc;
  --pia-blue-light: #4d6aff;
  --pia-cyan: #00d4ff;
  --pia-glow: rgba(12, 52, 255, 0.4);
  --pia-text: #ffffff;
  --pia-text-muted: rgba(255, 255, 255, 0.55);
  --pia-text-subtle: rgba(255, 255, 255, 0.3);
  --pia-card-bg: rgba(255, 255, 255, 0.03);
  --pia-card-border: rgba(255, 255, 255, 0.06);
  --pia-card-hover-border: rgba(12, 52, 255, 0.5);
  --pia-radius: 20px;
  --pia-radius-sm: 12px;
}

/* ===== LIGHT THEME ===== */
[data-theme="light"] {
  --pia-bg: #f2f5ff;
  --pia-bg-alt: #e6ebff;
  --pia-text: #04081a;
  --pia-text-muted: rgba(4,8,26,0.55);
  --pia-text-subtle: rgba(4,8,26,0.3);
  --pia-card-bg: rgba(255,255,255,0.82);
  --pia-card-border: rgba(12,52,255,0.1);
  --pia-card-hover-border: rgba(12,52,255,0.4);
  --pia-glow: rgba(12,52,255,0.14);
}
/* Nav scrolled light */
[data-theme="light"] .pia-nav.scrolled {
  background: rgba(242,245,255,0.96);
  border-bottom-color: rgba(12,52,255,0.12);
}
/* White logos → dark (full wordmark only, not the colored isotype) */
[data-theme="light"] .pia-nav-logo-full,
[data-theme="light"] .pia-footer-logo img { filter: invert(1); }
/* Footer border */
[data-theme="light"] .pia-footer { border-top-color: rgba(4,8,26,0.08); }
/* Stats row */
[data-theme="light"] .pia-stats-row {
  background: rgba(255,255,255,0.82);
  border-color: rgba(12,52,255,0.1);
}
[data-theme="light"] .pia-stat-divider {
  background: linear-gradient(180deg, transparent, rgba(4,8,26,0.12), transparent);
}
/* Module cards need a real shadow on light bg */
[data-theme="light"] .pia-mod-card:hover {
  box-shadow: 0 8px 32px rgba(12,52,255,0.1);
}
/* Demo tabs on light */
[data-theme="light"] .pia-demo-tab {
  border-color: rgba(4,8,26,0.12);
  color: rgba(4,8,26,0.5);
  background: rgba(4,8,26,0.03);
}
[data-theme="light"] .pia-demo-tab:hover {
  background: rgba(4,8,26,0.06);
  color: rgba(4,8,26,0.8);
  border-color: rgba(4,8,26,0.18);
}
[data-theme="light"] .pia-demo-tab.active {
  background: rgba(12,52,255,0.08);
  border-color: rgba(12,52,255,0.4);
  color: var(--pia-blue);
}
/* Hero WA badge on light */
[data-theme="light"] .pia-hero-badge {
  background: rgba(12,52,255,0.07);
  border-color: rgba(12,52,255,0.25);
}
/* How section connector shimmer stays visible */
[data-theme="light"] .pia-how-connector::after {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.95), transparent);
}

/* ===== THEME TOGGLE BUTTON ===== */
.pia-theme-btn {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  color: var(--pia-text-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.pia-theme-btn:hover { background: rgba(255,255,255,0.12); color: var(--pia-text); }
[data-theme="light"] .pia-theme-btn {
  border-color: rgba(4,8,26,0.14);
  background: rgba(4,8,26,0.04);
  color: var(--pia-text-muted);
}
[data-theme="light"] .pia-theme-btn:hover { background: rgba(4,8,26,0.08); color: var(--pia-text); }
/* Show/hide sun vs moon */
.pia-theme-icon-light { display: none; }
[data-theme="light"] .pia-theme-icon-dark  { display: none; }
[data-theme="light"] .pia-theme-icon-light { display: block; }

/* ── Float badges (dark backdrop → white pill) ── */
[data-theme="light"] .pia-wa-float-badge {
  background: rgba(255,255,255,0.92);
  border-color: rgba(12,52,255,0.14);
  color: var(--pia-text);
  box-shadow: 0 4px 20px rgba(0,0,0,0.07), 0 1px 4px rgba(12,52,255,0.06);
}

/* ── Module card icons: white on dark → dark on light ── */
[data-theme="light"] .pia-mod-icon img {
  filter: brightness(0) opacity(0.55);
}
[data-theme="light"] .pia-mod-card:hover .pia-mod-icon img {
  filter: brightness(0) saturate(100%) invert(28%) sepia(90%) saturate(2500%) hue-rotate(218deg) brightness(115%);
}

/* ── Module action text on hover: white → brand blue ── */
[data-theme="light"] .pia-mod-card:hover .pia-mod-action {
  color: var(--pia-blue);
}

/* ── Module card hover: lighter shadow ── */
[data-theme="light"] .pia-mod-card:hover {
  box-shadow: 0 0 40px rgba(12,52,255,0.1), 0 12px 32px rgba(0,0,0,0.07);
}

/* ── Step numbers: slightly more opaque on light bg ── */
[data-theme="light"] .pia-step-number {
  background: linear-gradient(135deg, rgba(12,52,255,0.2) 0%, rgba(12,52,255,0.09) 100%);
}

/* ── CTA backdrop: less saturated on light ── */
[data-theme="light"] .pia-cta-backdrop {
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(12,52,255,0.1) 0%, transparent 70%);
}

/* ── Hero isotype: during drift phase, darken filter so it reads as a mark not a white blur ── */
[data-theme="light"] .pia-hero-iso-bg {
  opacity: 0.07;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar { display: none; }
body {
  font-family: 'Open Sans', sans-serif;
  background: var(--pia-bg);
  color: var(--pia-text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
body::-webkit-scrollbar { display: none; }

.pia-container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* Gradient text */
.pia-gradient-text {
  background: linear-gradient(135deg, var(--pia-blue) 0%, var(--pia-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Section label */
.pia-section-label {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--pia-blue-light);
  margin-bottom: 16px;
  display: block;
}

/* Section title */
.pia-section-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  color: var(--pia-text);
  margin-bottom: 16px;
}

/* Scroll reveal — Apple 3D spring */
.pia-reveal {
  opacity: 0;
  transform: perspective(1100px) rotateX(14deg) translateY(64px) scale(0.97);
  transition:
    opacity 0.7s ease,
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.pia-reveal.visible {
  opacity: 1;
  transform: perspective(1100px) rotateX(0deg) translateY(0px) scale(1);
}
.pia-reveal-delay-1 { transition-delay: 0.1s; }
.pia-reveal-delay-2 { transition-delay: 0.2s; }
.pia-reveal-delay-3 { transition-delay: 0.3s; }
.pia-reveal-delay-4 { transition-delay: 0.4s; }
.pia-reveal-delay-5 { transition-delay: 0.5s; }
.pia-reveal-delay-6 { transition-delay: 0.6s; }

/* ===== PIA ICON ===== */
.pia-icon-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pia-icon { position: relative; z-index: 1; }

/* Hero icon: soft glow drop-shadow on mascot */
.pia-hero-icon .pia-icon {
  filter: drop-shadow(0 0 24px rgba(12,52,255,0.45)) drop-shadow(0 0 8px rgba(43,192,232,0.3));
}

.pia-glow-halo {
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(12,52,255,0.35) 0%, transparent 70%);
  animation: pia-pulse 2.5s ease-in-out infinite;
  z-index: 0;
}
@keyframes pia-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.08); }
}

/* ===== HERO ===== */
.pia-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--pia-bg);
}

#pia-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.pia-hero-iso-bg {
  position: absolute;
  width: min(680px, 90vw);
  height: min(680px, 90vw);
  object-fit: contain;
  top: 50%;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  animation:
    pia-iso-intro 4.2s cubic-bezier(0.16, 1, 0.3, 1) forwards,
    pia-iso-drift 22s ease-in-out 4.2s infinite;
}
@keyframes pia-iso-intro {
  /* Materializa desde blur grande */
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.6);
    filter: brightness(1) saturate(1) blur(28px);
  }
  /* Pico visible: logo limpio y grande */
  20% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1.5);
    filter: brightness(1) saturate(1) blur(0px);
  }
  /* Sostiene visible un momento */
  38% {
    opacity: 0.88;
    transform: translate(-50%, -50%) scale(1.28);
    filter: brightness(1.4) saturate(0.7) blur(0px);
  }
  /* Se retira al fondo */
  100% {
    opacity: 0.055;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    filter: brightness(8) saturate(0.2) blur(1.5px);
  }
}
@keyframes pia-iso-drift {
  0%, 100% { transform: translate(-50%, -50%) scale(1)    rotate(0deg); }
  30%       { transform: translate(-50%, -53%) scale(1.04) rotate(4deg); }
  65%       { transform: translate(-50%, -47%) scale(0.96) rotate(-4deg); }
}

.pia-hero-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(12,52,255,0.18) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.pia-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 120px 0 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Icon sizing via CSS custom property set on the mount element */
.pia-hero-icon { margin-bottom: 24px; }
.pia-hero-icon .pia-icon        { width: var(--icon-size, 120px); height: var(--icon-size, 120px); }
.pia-hero-icon .pia-icon-wrapper { width: var(--icon-size, 120px); height: var(--icon-size, 120px); }

.pia-wordmark {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(72px, 14vw, 120px);
  letter-spacing: -4px;
  line-height: 1;
  margin-bottom: 4px;
  animation: pia-fade-up 0.9s ease both;
}

.pia-product-name {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(12px, 2vw, 15px);
  font-weight: 500;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--pia-text-muted);
  margin-bottom: 32px;
  animation: pia-fade-up 0.9s 0.1s ease both;
}

.pia-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border: 1px solid rgba(12,52,255,0.5);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pia-blue-light);
  background: rgba(12,52,255,0.08);
  margin-bottom: 32px;
  box-shadow: 0 0 20px rgba(12,52,255,0.15);
  animation: pia-fade-up 0.9s 0.2s ease both;
}

.pia-badge-dot {
  color: var(--pia-cyan);
  font-size: 10px;
  animation: pia-pulse 2s ease-in-out infinite;
}

.pia-hero-tagline {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 4.5vw, 52px);
  line-height: 1.15;
  color: var(--pia-text);
  max-width: 720px;
  margin-bottom: 20px;
  animation: pia-fade-up 0.9s 0.3s ease both;
}

.pia-hero-desc {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
  color: var(--pia-text-muted);
  max-width: 560px;
  margin-bottom: 56px;
  animation: pia-fade-up 0.9s 0.4s ease both;
}

.pia-scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: pia-fade-up 0.9s 0.6s ease both;
}

.pia-scroll-text {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--pia-text-subtle);
}

.pia-scroll-arrow {
  font-size: 20px;
  color: var(--pia-text-subtle);
  animation: pia-bounce 1.8s ease-in-out infinite;
}

@keyframes pia-fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pia-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* ===== CHAT SECTION ===== */
.pia-chat-section {
  padding: 120px 0;
  background: var(--pia-bg);
  position: relative;
}
.pia-chat-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(12,52,255,0.3), transparent);
}

.pia-chat-header { text-align: center; margin-bottom: 64px; }

.pia-chat-subtitle {
  font-size: 17px;
  color: var(--pia-text-muted);
  max-width: 500px;
  margin: 16px auto 0;
  line-height: 1.6;
}

.pia-chat-window {
  max-width: 680px;
  margin: 0 auto;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(12,52,255,0.3);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 0 80px rgba(12,52,255,0.12), 0 30px 80px rgba(0,0,0,0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.pia-chat-win-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}

.pia-chat-avatar-sm .pia-icon         { width: 32px; height: 32px; }
.pia-chat-avatar-sm .pia-icon-wrapper { width: 32px; height: 32px; }
.pia-chat-avatar-sm .pia-glow-halo   { display: none; }

.pia-chat-win-info  { display: flex; flex-direction: column; flex: 1; }
.pia-chat-win-name  { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 15px; color: var(--pia-text); }
.pia-chat-win-status { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--pia-text-muted); }

.pia-status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  display: inline-block;
}

.pia-win-dots { display: flex; gap: 6px; margin-left: auto; }
.pia-win-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.12); }

.pia-chat-messages {
  padding: 24px 20px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: opacity 0.4s ease;
}

.pia-msg { display: flex; flex-direction: column; max-width: 85%; animation: pia-msg-in 0.3s ease both; }
.pia-msg-user { align-self: flex-end; align-items: flex-end; }
.pia-msg-pia  { align-self: flex-start; align-items: flex-start; }

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

.pia-msg-bubble { padding: 12px 16px; border-radius: 16px; font-size: 14px; line-height: 1.55; }

.pia-msg-user .pia-msg-bubble {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--pia-text);
  border-bottom-right-radius: 4px;
}

.pia-msg-pia .pia-msg-bubble {
  background: rgba(12,52,255,0.15);
  border: 1px solid rgba(12,52,255,0.35);
  border-left: 3px solid var(--pia-blue);
  color: var(--pia-text);
  border-bottom-left-radius: 4px;
  box-shadow: 0 0 20px rgba(12,52,255,0.1);
}

.pia-msg-sender { font-size: 11px; font-weight: 600; letter-spacing: 0.5px; margin-bottom: 4px; color: var(--pia-text-muted); }
.pia-msg-pia .pia-msg-sender { color: var(--pia-blue-light); }

/* Typing indicator */
.pia-typing {
  display: flex;
  gap: 5px;
  padding: 14px 18px;
  background: rgba(12,52,255,0.1);
  border: 1px solid rgba(12,52,255,0.25);
  border-left: 3px solid var(--pia-blue);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.pia-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--pia-blue-light); animation: pia-typing-dot 1.2s ease-in-out infinite; }
.pia-typing span:nth-child(2) { animation-delay: 0.2s; }
.pia-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes pia-typing-dot {
  0%, 60%, 100% { transform: translateY(0);   opacity: 0.4; }
  30%            { transform: translateY(-5px); opacity: 1; }
}

/* Inline text cursor */
.pia-text-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--pia-blue-light);
  margin-left: 1px;
  vertical-align: text-bottom;
  animation: pia-blink 0.8s step-end infinite;
}
@keyframes pia-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Fake input */
.pia-chat-input-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.2);
}
.pia-chat-input-field {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--pia-text-muted);
  min-height: 42px;
  display: flex;
  align-items: center;
}
.pia-chat-placeholder { flex: 1; font-size: 14px; color: var(--pia-text-muted); }
.pia-input-cursor { color: var(--pia-blue-light); font-weight: 300; animation: pia-blink 0.8s step-end infinite; }
.pia-chat-send {
  width: 40px; height: 40px;
  border: none;
  border-radius: 10px;
  background: var(--pia-blue);
  color: white;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(12,52,255,0.4);
}

/* ===== CÓMO FUNCIONA ===== */
.pia-how {
  padding: 120px 0;
  background: var(--pia-bg-alt);
  position: relative;
  overflow: hidden;
}
.pia-how::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 100%, rgba(12,52,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.pia-how-header { text-align: center; margin-bottom: 80px; }

.pia-how-steps { display: flex; align-items: center; }

.pia-how-step {
  flex: 1;
  text-align: center;
  padding: 40px 32px;
  position: relative;
}

.pia-step-number {
  font-family: 'Manrope', sans-serif;
  font-weight: 900;
  font-size: 88px;
  line-height: 1;
  background: linear-gradient(135deg, rgba(12,52,255,0.15) 0%, rgba(0,212,255,0.08) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

.pia-step-icon { font-size: 48px; margin-bottom: 20px; position: relative; z-index: 1; margin-top: 40px; }
.pia-step-title { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 24px; color: var(--pia-text); margin-bottom: 12px; position: relative; z-index: 1; }
.pia-step-desc  { font-size: 15px; line-height: 1.65; color: var(--pia-text-muted); max-width: 240px; margin: 0 auto; position: relative; z-index: 1; }

/* Connector line */
.pia-how-connector {
  flex-shrink: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--pia-blue), var(--pia-cyan));
  position: relative;
  overflow: hidden;
}
.pia-how-connector::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
  animation: pia-shimmer 2s ease-in-out infinite;
}
@keyframes pia-shimmer {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

@media (max-width: 768px) {
  .pia-how-steps { flex-direction: column; }
  .pia-how-connector {
    width: 2px; height: 40px;
    background: linear-gradient(180deg, var(--pia-blue), var(--pia-cyan));
  }
  .pia-how-connector::after { animation: pia-shimmer-v 2s ease-in-out infinite; }
  @keyframes pia-shimmer-v {
    from { transform: translateY(-100%); }
    to   { transform: translateY(100%); }
  }
}

/* ===== MÓDULOS ===== */
.pia-modules { padding: 120px 0; background: var(--pia-bg); }

.pia-modules-header { text-align: center; margin-bottom: 64px; }
.pia-modules-subtitle { font-size: 17px; color: var(--pia-text-muted); margin-top: 16px; max-width: 420px; margin-left: auto; margin-right: auto; }

.pia-modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pia-mod-card {
  background: var(--pia-card-bg);
  border: 1px solid var(--pia-card-border);
  border-radius: var(--pia-radius);
  padding: 32px 28px;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.pia-mod-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(12,52,255,0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.pia-mod-card:hover {
  border-color: var(--pia-card-hover-border);
  transform: translateY(-4px);
  box-shadow: 0 0 40px rgba(12,52,255,0.15), 0 20px 40px rgba(0,0,0,0.3);
}
.pia-mod-card:hover::before { opacity: 1; }

.pia-mod-icon { width: 52px; height: 52px; margin-bottom: 20px; }
.pia-mod-icon img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1) opacity(0.7);
  transition: filter 0.3s ease;
}
.pia-mod-card:hover .pia-mod-icon img {
  filter: brightness(0) saturate(100%) invert(38%) sepia(98%) saturate(2000%) hue-rotate(218deg) brightness(120%);
}

.pia-mod-title { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 17px; color: var(--pia-text); margin-bottom: 12px; }

.pia-mod-action {
  font-size: 14px;
  color: var(--pia-text-muted);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 16px;
  padding: 10px 12px;
  background: rgba(12,52,255,0.08);
  border-left: 2px solid rgba(12,52,255,0.3);
  border-radius: 0 6px 6px 0;
  transition: border-left-color 0.3s ease, color 0.3s ease;
}
.pia-mod-card:hover .pia-mod-action { border-left-color: var(--pia-blue); color: rgba(255,255,255,0.8); }

.pia-mod-tag { font-size: 11px; color: var(--pia-text-subtle); letter-spacing: 0.5px; }

@media (max-width: 900px) { .pia-modules-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pia-modules-grid { grid-template-columns: 1fr; } }

/* ===== STATS + BENEFITS ===== */
.pia-stats-section {
  padding: 120px 0;
  background: var(--pia-bg-alt);
  position: relative;
}
.pia-stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(12,52,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* Stats row */
.pia-stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 96px;
  padding: 56px 48px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 24px;
}
.pia-stat { flex: 1; text-align: center; padding: 0 24px; }
.pia-stat-number {
  font-family: 'Manrope', sans-serif;
  font-weight: 900;
  font-size: clamp(48px, 7vw, 72px);
  background: linear-gradient(135deg, var(--pia-blue) 0%, var(--pia-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1;
  margin-bottom: 12px;
}
.pia-stat-label { font-size: 14px; color: var(--pia-text-muted); line-height: 1.5; max-width: 180px; margin: 0 auto; }

.pia-stat-divider { width: 1px; height: 80px; background: linear-gradient(180deg, transparent, rgba(255,255,255,0.1), transparent); flex-shrink: 0; }

/* Benefits */
.pia-benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.pia-benefit {
  background: var(--pia-card-bg);
  border: 1px solid var(--pia-card-border);
  border-radius: var(--pia-radius);
  padding: 36px 28px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.pia-benefit:hover { border-color: rgba(12,52,255,0.3); box-shadow: 0 0 30px rgba(12,52,255,0.08); }

.pia-benefit-icon  { font-size: 36px; margin-bottom: 20px; }
.pia-benefit-title { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 18px; color: var(--pia-text); margin-bottom: 12px; }
.pia-benefit-desc  { font-size: 14px; line-height: 1.65; color: var(--pia-text-muted); }

@media (max-width: 768px) {
  .pia-stats-row { flex-direction: column; gap: 40px; padding: 40px 24px; }
  .pia-stat-divider { width: 80px; height: 1px; }
  .pia-benefits-grid { grid-template-columns: 1fr; }
}

/* ===== NAV ===== */
.pia-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.pia-nav.scrolled {
  background: rgba(4,8,26,0.9);
  border-bottom: 1px solid rgba(12,52,255,0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.pia-nav-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 20px 0;
  transition: padding 0.3s ease;
}
.pia-nav.scrolled .pia-nav-inner { padding: 14px 0; }

.pia-nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.pia-nav-logo img { height: 32px; }
.pia-nav-logo-iso { display: none; }
@media (max-width: 768px) {
  .pia-nav-logo-full { display: none; }
  .pia-nav-logo-iso  { display: block; }
}

.pia-nav-product {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 15px;
  background: linear-gradient(135deg, var(--pia-blue) 0%, var(--pia-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.pia-nav-links { display: flex; gap: 32px; list-style: none; margin: 0 auto; }
.pia-nav-links a { font-size: 14px; font-weight: 500; color: var(--pia-text-muted); text-decoration: none; transition: color 0.2s ease; }
.pia-nav-links a:hover { color: var(--pia-text); }

.pia-nav-cta {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
  background: var(--pia-blue);
  color: white;
  text-decoration: none;
  border-radius: 100px;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 0 20px rgba(12,52,255,0.3);
}
.pia-nav-cta:hover { background: var(--pia-blue-light); box-shadow: 0 0 32px rgba(12,52,255,0.5); }

/* ===== CTA SECTION ===== */
.pia-cta {
  position: relative;
  padding: 160px 0;
  overflow: hidden;
  text-align: center;
  background: var(--pia-bg);
}
.pia-cta-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(0,40,204,0.4) 0%, transparent 70%);
  pointer-events: none;
}

.pia-cta-bg-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.07;
}
.pia-cta-bg-icon .pia-icon         { width: 500px; height: 500px; }
.pia-cta-bg-icon .pia-icon-wrapper  { width: 500px; height: 500px; }

.pia-cta-inner { position: relative; z-index: 1; }

.pia-cta-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 900;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.1;
  color: var(--pia-text);
  margin-bottom: 20px;
}
.pia-cta-subtitle { font-size: 18px; color: var(--pia-text-muted); max-width: 480px; margin: 0 auto 48px; line-height: 1.6; }

.pia-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 18px;
  padding: 18px 40px;
  background: var(--pia-blue);
  color: white;
  text-decoration: none;
  border-radius: 100px;
  box-shadow: 0 0 60px rgba(12,52,255,0.5), 0 20px 40px rgba(0,0,0,0.3);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  margin-bottom: 24px;
}
.pia-cta-btn:hover {
  background: var(--pia-blue-light);
  box-shadow: 0 0 80px rgba(12,52,255,0.7), 0 20px 40px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}
.pia-cta-btn-arrow { font-size: 20px; transition: transform 0.2s ease; display: inline-block; }
.pia-cta-btn:hover .pia-cta-btn-arrow { transform: translateX(4px); }

.pia-cta-note { font-size: 14px; color: var(--pia-text-subtle); display: block; }
.pia-cta-note a { color: var(--pia-blue-light); text-decoration: none; }
.pia-cta-note a:hover { text-decoration: underline; }

/* ===== FOOTER ===== */
.pia-footer {
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  background: var(--pia-bg);
}
.pia-footer-inner { display: flex; align-items: center; gap: 24px; }
.pia-footer-logo img { height: 28px; opacity: 0.7; transition: opacity 0.2s ease; }
.pia-footer-logo:hover img { opacity: 1; }
.pia-footer-copy { flex: 1; text-align: center; font-size: 13px; color: var(--pia-text-subtle); }
.pia-footer-link { font-size: 13px; color: var(--pia-text-subtle); text-decoration: none; transition: color 0.2s ease; white-space: nowrap; }
.pia-footer-link:hover { color: var(--pia-blue-light); }

@media (max-width: 768px) {
  .pia-nav-links { display: none; }
  .pia-nav-inner { gap: 10px; }
  .pia-nav-logo { flex: 1; min-width: 0; } /* pushes toggle + CTA to the right */
  .pia-nav-cta { padding: 9px 16px; font-size: 13px; }
  .pia-nav-product { font-size: 13px; }
  .pia-footer-inner { flex-direction: column; text-align: center; gap: 12px; }
  .pia-cta { padding: 100px 0; }
  .pia-cta-btn { font-size: 16px; padding: 16px 32px; }
  .pia-cta-bg-icon { display: none; }
}

/* ===== FINAL RESPONSIVE ===== */
@media (max-width: 768px) {
  /* Hero */
  .pia-hero-inner { padding: 100px 0 60px; }
  .pia-wordmark   { font-size: 64px; letter-spacing: -2px; }
  .pia-hero-tagline { font-size: 26px; }
  .pia-hero-desc    { font-size: 16px; margin-bottom: 40px; }

  /* Chat */
  .pia-chat-section { padding: 80px 0; }
  .pia-chat-header  { margin-bottom: 40px; }

  /* How */
  .pia-how { padding: 80px 0; }
  .pia-how-header { margin-bottom: 48px; }
  .pia-step-desc { max-width: 100%; }

  /* Modules */
  .pia-modules { padding: 80px 0; }

  /* Stats */
  .pia-stats-section { padding: 80px 0; }
  .pia-stats-row { margin-bottom: 56px; }
}

@media (max-width: 480px) {
  .pia-hero-icon { --icon-size: 100px !important; }
  .pia-wordmark  { font-size: 52px; }
  .pia-section-title { font-size: 30px; }
  .pia-how-step { padding: 32px 16px; }
}

/* ===== INTEGRATIONS ===== */
.pia-integrations {
  padding: 120px 0;
  background: var(--pia-bg);
  position: relative;
  overflow: hidden;
}
.pia-integrations::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 50% at 80% 50%, rgba(12,52,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.pia-int-header {
  text-align: center;
  margin-bottom: 72px;
}
.pia-int-sub {
  font-size: 17px;
  color: var(--pia-text-muted);
  margin-top: 12px;
}

.pia-int-block { margin-bottom: 52px; }
.pia-int-block:last-child { margin-bottom: 0; }

.pia-int-block-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--pia-text-muted);
  margin-bottom: 20px;
}
.pia-int-block-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pia-int-dot-channel { background: #25d366; }
.pia-int-dot-hr      { background: var(--pia-blue); }

/* Communication channel chips */
.pia-int-channels {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.pia-int-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px 12px 14px;
  background: var(--pia-card-bg);
  border: 1px solid var(--pia-card-border);
  border-radius: 100px;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--pia-text);
  white-space: nowrap;
  cursor: default;
  transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
  backdrop-filter: blur(8px);
}
.pia-int-chip:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.16);
  box-shadow: 0 10px 32px rgba(0,0,0,0.18);
}
[data-theme="light"] .pia-int-chip:hover {
  border-color: rgba(12,52,255,0.22);
  box-shadow: 0 10px 28px rgba(12,52,255,0.1);
}

/* HR platforms marquee */
.pia-int-marquee-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}
.pia-int-marquee-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: pia-int-scroll 28s linear infinite;
}
.pia-int-marquee-track:hover { animation-play-state: paused; }
@keyframes pia-int-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.pia-int-chip-hr {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--pia-card-bg);
  border: 1px solid var(--pia-card-border);
  border-radius: 100px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--pia-text);
  white-space: nowrap;
  cursor: default;
}
.pia-int-hr-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pia-int-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--pia-text-subtle);
  text-align: center;
}

@media (max-width: 600px) {
  .pia-integrations { padding: 80px 0; }
  .pia-int-chip { font-size: 13px; padding: 10px 18px 10px 12px; gap: 8px; }
  .pia-int-chip svg { width: 18px; height: 18px; }
  .pia-int-channels { gap: 10px; }
}

/* ===== DEMO TABS ===== */
.pia-demo-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}
.pia-demo-tab {
  padding: 9px 20px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.5);
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  line-height: 1;
}
.pia-demo-tab:hover {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.18);
}
.pia-demo-tab.active {
  background: rgba(12,52,255,0.18);
  border-color: rgba(12,52,255,0.55);
  color: #fff;
  box-shadow: 0 0 24px rgba(12,52,255,0.2);
}
@media (max-width: 600px) {
  .pia-demo-tab { font-size: 12px; padding: 8px 14px; }
}

/* ===== WHATSAPP HERO BADGE ===== */
.pia-hero-wa-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(37,211,102,0.1);
  border: 1px solid rgba(37,211,102,0.3);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pia-wa);
  margin-bottom: 28px;
  box-shadow: 0 0 24px rgba(37,211,102,0.12);
  animation: pia-fade-up 0.9s 0.15s ease both;
}

/* ===== WHATSAPP CHAT SCENE ===== */
.pia-wa-scene {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 0 40px;
}

/* Floating action confirmations around the phone */
.pia-wa-float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255,255,255,0.055);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.pia-float-emoji { font-size: 16px; }
.pia-float-1 { top: 14%;  left:  4%; animation: pia-float-badge 3.4s ease-in-out infinite; }
.pia-float-2 { top: 42%;  right: 3%; animation: pia-float-badge 4s   ease-in-out 0.7s infinite; }
.pia-float-3 { bottom: 16%; left: 6%; animation: pia-float-badge 3.8s ease-in-out 1.3s infinite; }
@keyframes pia-float-badge {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

/* Glow behind phone */
.pia-wa-glow {
  position: absolute;
  width: 300px;
  height: 520px;
  background: radial-gradient(ellipse, rgba(37,211,102,0.1) 0%, rgba(12,52,255,0.06) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
}

/* ===== PHONE FRAME ===== */
.pia-wa-phone {
  width: 320px;
  background: var(--pia-wa-bg);
  border-radius: 44px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.07),
    0 0 0 9px rgba(0,0,0,0.7),
    0 0 0 10px rgba(255,255,255,0.04),
    0 40px 100px rgba(0,0,0,0.6),
    0 0 80px rgba(37,211,102,0.07),
    0 0 120px rgba(12,52,255,0.1);
}

/* Status bar */
.pia-wa-statusbar {
  background: var(--pia-wa-panel);
  padding: 10px 20px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pia-wa-time-disp {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.pia-wa-signal-icons {
  font-size: 10px;
  color: rgba(255,255,255,0.75);
  letter-spacing: 1px;
}

/* WA header bar */
.pia-wa-header {
  background: var(--pia-wa-panel);
  padding: 8px 14px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.4);
}
.pia-wa-back {
  flex-shrink: 0;
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
}
.pia-wa-avatar .pia-icon         { width: 36px; height: 36px; }
.pia-wa-avatar .pia-icon-wrapper {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(37,211,102,0.4);
}
.pia-wa-avatar .pia-glow-halo { display: none; }
.pia-wa-contact-info { flex: 1; min-width: 0; }
.pia-wa-contact-name {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.pia-wa-online { font-size: 12px; color: var(--pia-wa); }
.pia-wa-brand-logo { flex-shrink: 0; }

/* ===== MESSAGES AREA ===== */
.pia-wa-messages {
  background: var(--pia-wa-bg);
  min-height: 320px;
  max-height: 360px;
  overflow-y: auto;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  scrollbar-width: none;
  transition: opacity 0.4s ease;
}
.pia-wa-messages::-webkit-scrollbar { display: none; }

.pia-wa-msg {
  display: flex;
  animation: pia-msg-in 0.25s ease both;
  margin-bottom: 2px;
}
.pia-wa-msg-user { justify-content: flex-end; }
.pia-wa-msg-pia  { justify-content: flex-start; }

.pia-wa-bubble {
  max-width: 82%;
  padding: 8px 12px 6px;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.5;
  position: relative;
  word-break: break-word;
}
.pia-wa-msg-user .pia-wa-bubble {
  background: var(--pia-wa-sent);
  color: #e9edef;
  border-bottom-right-radius: 2px;
}
.pia-wa-msg-pia .pia-wa-bubble {
  background: var(--pia-wa-received);
  color: #e9edef;
  border-bottom-left-radius: 2px;
}

/* Bubble tails */
.pia-wa-msg-user .pia-wa-bubble::after {
  content: '';
  position: absolute;
  bottom: 0; right: -7px;
  width: 0; height: 0;
  border-left: 8px solid var(--pia-wa-sent);
  border-top: 8px solid transparent;
}
.pia-wa-msg-pia .pia-wa-bubble::before {
  content: '';
  position: absolute;
  bottom: 0; left: -7px;
  width: 0; height: 0;
  border-right: 8px solid var(--pia-wa-received);
  border-top: 8px solid transparent;
}

.pia-wa-text { display: block; }

.pia-wa-ts {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  float: right;
  margin-left: 8px;
  margin-top: 2px;
  white-space: nowrap;
}
.pia-wa-check { color: #53bdeb; }

/* WA typing bubble */
.pia-wa-bubble.pia-wa-typing { padding: 10px 14px; }
.pia-wa-typing-dots { display: flex; gap: 4px; align-items: center; }
.pia-wa-typing-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  animation: pia-typing-dot 1.2s ease-in-out infinite;
}
.pia-wa-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.pia-wa-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

/* ===== WA LOCATION MESSAGE ===== */
.pia-wa-bubble.pia-wa-location {
  padding: 0;
  overflow: hidden;
  min-width: 210px;
  max-width: 230px;
  border-radius: 8px;
}
.pia-wa-location-map {
  width: 100%;
  height: 105px;
  background-color: #d4ead0;
  background-image:
    repeating-linear-gradient(rgba(255,255,255,0.72) 2px, transparent 2px, transparent 50px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.72) 2px, transparent 2px, transparent 50px),
    repeating-linear-gradient(rgba(255,255,255,0.28) 1px, transparent 1px, transparent 14px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.28) 1px, transparent 1px, transparent 14px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pia-wa-location-map::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 56%; height: 9px;
  background: rgba(33,150,243,0.28);
}
.pia-wa-location-pin {
  position: relative; z-index: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.28));
}
.pia-wa-location-footer {
  padding: 7px 10px 2px;
  background: var(--pia-wa-sent);
}
.pia-wa-location-name {
  font-size: 13px; font-weight: 600;
  color: #e9edef; margin-bottom: 1px;
}
.pia-wa-location-addr {
  font-size: 11px;
  color: rgba(233,237,239,0.62);
}
.pia-wa-bubble.pia-wa-location .pia-wa-ts {
  display: block;
  text-align: right;
  padding: 0 8px 5px;
  background: var(--pia-wa-sent);
  margin-top: -2px;
}

/* ===== WA INPUT BAR ===== */
.pia-wa-input-bar {
  background: var(--pia-wa-panel);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(0,0,0,0.4);
}
.pia-wa-emoji-btn {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1;
  cursor: default;
}
.pia-wa-input-field {
  flex: 1;
  background: var(--pia-wa-input);
  border-radius: 22px;
  padding: 8px 14px;
  font-size: 13.5px;
  color: #e9edef;
  min-height: 38px;
  display: flex;
  align-items: center;
}
.pia-wa-input-text { flex: 1; color: #e9edef; min-width: 0; }
.pia-wa-input-field .pia-input-cursor {
  color: rgba(255,255,255,0.5);
  font-weight: 300;
  animation: pia-blink 0.8s step-end infinite;
}
.pia-wa-attach-btn {
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: default;
}
.pia-wa-mic-btn {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border: none;
  border-radius: 50%;
  background: var(--pia-wa);
  color: white;
  display: flex; align-items: center; justify-content: center;
  cursor: default;
}

/* WA integration badge (in chat section header) */
.pia-wa-integration-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(37,211,102,0.09);
  border: 1px solid rgba(37,211,102,0.25);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pia-wa);
  margin-top: 20px;
}

/* Step WA icon wrapper */
.pia-step-icon-wa {
  width: 52px; height: 52px;
  margin: 0 auto 16px;
  margin-top: 40px;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}

/* Parallax hero (driven by JS) */
.pia-hero-inner { will-change: transform, opacity; }

/* ===== RESPONSIVE WHATSAPP ===== */
@media (max-width: 900px) {
  .pia-wa-float-badge { display: none; }
  .pia-wa-scene { padding: 32px 0 24px; }
}
@media (max-width: 600px) {
  .pia-wa-phone {
    width: min(300px, 92vw);
    border-radius: 36px;
  }
  .pia-wa-messages { min-height: 260px; max-height: 280px; }
  .pia-wa-bubble { font-size: 13px; padding: 7px 10px 5px; }
  .pia-wa-input-field { font-size: 13px; padding: 7px 12px; }
}
@media (max-width: 380px) {
  .pia-wa-phone { width: 92vw; border-radius: 28px; }
  .pia-wa-contact-name { font-size: 14px; }
  .pia-demo-tabs { gap: 5px; }
  .pia-demo-tab { font-size: 11px; padding: 7px 12px; }
}

/* ===== ACCESSIBILITY ===== */
.pia-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 12px 24px;
  background: var(--pia-blue);
  color: #fff;
  font-weight: 700;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  font-size: 14px;
}
.pia-skip-link:focus {
  left: 50%;
  transform: translateX(-50%);
}
