/* ================================================
   PIMES.AI - Hero + Demo Section Styles
   Modern, visual, animated design
   ================================================ */

/* ================================================
   HERO + DEMO COMBINED SECTION
   ================================================ */

.hero-demo-section {
  position: relative;
  min-height: 100vh;
  padding: 120px 0 60px;
  overflow: visible;
  background: var(--bg-color);
  /* Prevent layout shifts */
  contain: layout style;
  isolation: isolate;
}

.hero-demo-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      ellipse at 30% 20%,
      rgba(5, 49, 255, 0.06) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 70% 80%,
      rgba(152, 188, 240, 0.06) 0%,
      transparent 50%
    );
  pointer-events: none;
  z-index: 0;
}

/* Keep hero-bg-glow from causing scroll issues */
.hero-demo-section .hero-bg-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  transform: none !important;
  animation: none;
  opacity: 0.3;
}

/* Hero Compact */
.hero-compact {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 10;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: rgba(5, 49, 255, 0.08);
  border: 1px solid rgba(5, 49, 255, 0.15);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(5, 49, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 20px 5px rgba(5, 49, 255, 0.08);
  }
}

.hero-compact h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle-text {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* Integration Badges (Legacy - hidden) */
.integration-badges {
  display: none;
}

.badge-divider {
  width: 1px;
  height: 24px;
  background: rgba(175, 178, 180, 0.3);
}

/* Integration Badges Below Demo */
.integration-badges-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding: 1.5rem 2rem;
  background: rgba(242, 245, 246, 0.7);
  border: 1px solid rgba(175, 178, 180, 0.2);
  border-radius: 20px;
}

.integration-badges-bottom .badge-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  background: #fefefe;
  border: 1px solid rgba(175, 178, 180, 0.2);
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.integration-badges-bottom .badge-item:hover {
  background: #fefefe;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.integration-badges-bottom .badge-item i {
  font-size: 1.2rem;
}

.integration-badges-bottom .badge-item:nth-child(1) i {
  color: #056dff;
}
.integration-badges-bottom .badge-item:nth-child(2) i {
  color: #25d366;
}
.integration-badges-bottom .badge-item:nth-child(3) i {
  color: #e1306c;
}

.integration-badges-bottom .badge-item.highlight {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.integration-badges-bottom .badge-item.highlight i {
  color: #22c55e;
}

.integration-badges-bottom .badge-divider {
  width: 1px;
  height: 30px;
  background: rgba(175, 178, 180, 0.3);
}

/* Hero CTA */
.hero-cta-compact {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-large {
  padding: 1rem 2rem !important;
  font-size: 1rem !important;
}

.btn-ghost {
  padding: 1rem 2rem;
  background: transparent;
  border: 1px solid rgba(175, 178, 180, 0.4);
  color: var(--text-primary);
  border-radius: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-ghost:hover {
  background: rgba(5, 49, 255, 0.05);
  border-color: rgba(5, 49, 255, 0.3);
}

/* ================================================
   DEMO SHOWCASE CONTAINER
   ================================================ */

.demo-showcase-container {
  position: relative;
  z-index: 10;
}

/* 3-Column Demo Grid */
.demo-grid-triple {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
}

.demo-grid-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Chat Demo in 3-Column Layout */
.demo-grid-triple .chat-demo {
  background: #fefefe;
  border: 1px solid rgba(175, 178, 180, 0.25);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.06);
  height: 550px;
  display: flex;
  flex-direction: column;
}

.chat-demo-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  scroll-behavior: smooth;
}

/* Calendar Demo Hero */
.calendar-demo-hero {
  background: #fefefe;
  border: 1px solid rgba(175, 178, 180, 0.25);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  position: relative;
  height: 550px;
}

/* Channel Badge in Chat */
.chat-channel-badge {
  margin-left: auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

/* Appointment Toast */
.appointment-toast {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(254, 254, 254, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transform: translateY(150%);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 100;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.08),
    0 0 30px rgba(34, 197, 94, 0.08);
}

.appointment-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #22c55e;
  font-size: 1.2rem;
  animation: toastPulse 1s ease infinite;
}

@keyframes toastPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.toast-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.toast-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.toast-details {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ================================================
   LEGACY DATA FLOW STRIP (kept for compatibility)
   ================================================ */

.data-flow-strip {
  display: none; /* Hidden - using data-flow-panel instead */
}

/* ================================================
   HOW IT WORKS SECTION
   ================================================ */

.how-it-works-section {
  padding: 6rem 0;
  background: linear-gradient(
    180deg,
    var(--bg-color) 0%,
    rgba(215, 226, 235, 0.2) 50%,
    var(--bg-color) 100%
  );
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: rgba(5, 49, 255, 0.08);
  border: 1px solid rgba(5, 49, 255, 0.15);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-header p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Steps Container */
.steps-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.step-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-number {
  position: relative;
  margin-bottom: 1.5rem;
}

.step-number span {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  position: relative;
  z-index: 2;
}

.step-line {
  position: absolute;
  top: 50%;
  left: 100%;
  width: calc(100% + 2rem);
  height: 2px;
  background: linear-gradient(90deg, var(--accent-primary), transparent);
  transform: translateY(-50%);
  z-index: 1;
}

.step-card:last-child .step-line {
  display: none;
}

.step-content {
  background: #fefefe;
  border: 1px solid rgba(175, 178, 180, 0.2);
  border-radius: 20px;
  padding: 2rem;
  width: 100%;
  transition: all 0.3s ease;
}

.step-content:hover {
  border-color: rgba(5, 49, 255, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(5, 49, 255, 0.06);
}

.step-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(5, 49, 255, 0.08);
  border: 1px solid rgba(5, 49, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-primary);
  margin: 0 auto 1.25rem;
}

.step-icon.success {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.step-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.step-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Step Visuals */
.step-visual {
  margin-top: auto;
}

/* Mock Form */
.mock-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mock-input {
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  animation: inputShimmer 2s ease infinite;
}

.mock-btn {
  height: 36px;
  background: var(--gradient-main);
  border-radius: 8px;
  animation: btnPulse 2s ease infinite;
}

@keyframes inputShimmer {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.8;
  }
}

@keyframes btnPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

/* Config Items */
.config-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.config-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: rgba(242, 245, 246, 0.5);
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.config-item i:first-child {
  color: var(--accent-primary);
  width: 20px;
}

.config-item span {
  flex: 1;
  text-align: left;
}

.config-item i:last-child {
  color: #22c55e;
  opacity: 0;
  animation: checkAppear 0.5s ease forwards;
}

.config-item:nth-child(1) i:last-child {
  animation-delay: 0.5s;
}
.config-item:nth-child(2) i:last-child {
  animation-delay: 1s;
}
.config-item:nth-child(3) i:last-child {
  animation-delay: 1.5s;
}

@keyframes checkAppear {
  to {
    opacity: 1;
  }
}

/* Channel Connect */
.channel-connect {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.channel-icon {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.channel-icon.whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.channel-icon.instagram {
  background: linear-gradient(135deg, #833ab4, #e1306c, #f77737);
}

.channel-icon.web {
  background: var(--gradient-main);
}

.connect-pulse {
  position: absolute;
  inset: -4px;
  border: 2px solid currentColor;
  border-radius: 16px;
  animation: connectPulse 2s ease infinite;
}

.channel-icon.whatsapp .connect-pulse {
  border-color: #25d366;
}
.channel-icon.instagram .connect-pulse {
  border-color: #e1306c;
}
.channel-icon.web .connect-pulse {
  border-color: var(--accent-primary);
}

@keyframes connectPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2);
    opacity: 0;
  }
}

/* Results Preview */
.results-preview {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.result-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: rgba(242, 245, 246, 0.5);
  border-radius: 14px;
}

.result-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.result-icon.bookings {
  background: rgba(5, 49, 255, 0.1);
  color: var(--accent-primary);
}

.result-icon.leads {
  background: rgba(152, 188, 240, 0.25);
  color: var(--accent-primary);
}

.result-icon.data {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.result-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.result-number {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.result-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Steps CTA */
.steps-cta {
  text-align: center;
}

.cta-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ================================================
   CONTACT FORM STYLES
   ================================================ */

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

#contact-form input,
#contact-form textarea {
  padding: 1rem;
  background: #fefefe;
  border: 1px solid rgba(175, 178, 180, 0.3);
  border-radius: 16px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: #fefefe;
  box-shadow: 0 0 0 3px rgba(5, 49, 255, 0.1);
}

#contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

@media (max-width: 1200px) {
  .steps-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .step-line {
    display: none;
  }
}

@media (max-width: 900px) {
  .demo-grid-hero {
    grid-template-columns: 1fr;
  }

  .chat-demo {
    max-height: 450px;
  }

  .calendar-demo-hero {
    min-height: 400px;
  }
}

@media (max-width: 768px) {
  .hero-demo-section {
    padding: 100px 0 40px;
  }

  .hero-compact h1 {
    font-size: 2rem;
  }

  .hero-subtitle-text {
    font-size: 1rem;
  }

  .integration-badges {
    gap: 0.5rem;
  }

  .badge-item {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }

  .badge-divider {
    display: none;
  }

  .steps-container {
    grid-template-columns: 1fr;
  }

  .step-card {
    flex-direction: row;
    text-align: left;
    gap: 1.5rem;
  }

  .step-number {
    margin-bottom: 0;
  }

  .step-line {
    display: block;
    top: 100%;
    left: 50%;
    width: 2px;
    height: 4rem;
    background: linear-gradient(180deg, var(--accent-primary), transparent);
    transform: translateX(-50%);
  }

  .step-content {
    flex: 1;
  }

  .step-icon {
    margin: 0 0 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ================================================
   ANIMATION ENHANCEMENTS
   ================================================ */

/* Scroll-triggered animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.fade-in-up.visible,
.fade-in-up.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Hover effects for cards */
.card {
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(5, 49, 255, 0.08);
}

/* Calendar hover - subtle effect only */
.calendar-demo-hero:hover {
  border-color: rgba(5, 49, 255, 0.2);
}

/* ================================================
   FIX: Calendar & Demo Stability (no flickering)
   ================================================ */

/* Stabilize the entire demo container */
.demo-showcase-container {
  position: relative;
  z-index: 10;
  isolation: isolate;
}

.demo-grid-triple {
  position: relative;
  z-index: 5;
}

/* Keep the calendar stable */
.calendar-demo-hero {
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  perspective: 1000px;
}

.calendar-demo-hero.calendar-mega-pulse {
  will-change: transform, box-shadow;
}

/* Ensure constellation canvas doesn't affect layout */
.hero-demo-section .constellation-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  /* Prevent canvas from causing reflows */
  contain: strict;
}

/* ================================================
   DATA FLOW PANEL (Side Column) - Gnosari Style
   ================================================ */

.data-flow-panel {
  background: #fefefe;
  border: 1px solid rgba(175, 178, 180, 0.25);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  height: 550px;
}

.data-flow-panel .data-flow-header {
  padding: 0.75rem 1rem;
  background: rgba(242, 245, 246, 0.6);
  border-bottom: 1px solid rgba(175, 178, 180, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.data-flow-panel .data-flow-header h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.data-flow-panel .data-flow-header h4 i {
  color: var(--accent-primary);
}

/* Live indicator */
.live-indicator {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #22c55e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: livePulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 8px #22c55e;
}

@keyframes livePulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.85);
  }
}

/* Data Stream Container */
.data-stream {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  scroll-behavior: smooth;
}

/* Custom Scrollbar for Demo Panels */
.chat-demo-messages::-webkit-scrollbar,
.data-stream::-webkit-scrollbar {
  width: 4px;
}

.chat-demo-messages::-webkit-scrollbar-track,
.data-stream::-webkit-scrollbar-track {
  background: transparent;
}

.chat-demo-messages::-webkit-scrollbar-thumb,
.data-stream::-webkit-scrollbar-thumb {
  background: rgba(175, 178, 180, 0.2);
  border-radius: 10px;
}

/* Data Chip (individual piece of captured data) */
.data-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  background: rgba(242, 245, 246, 0.5);
  border: 1px solid rgba(175, 178, 180, 0.15);
  border-radius: 14px;
  font-size: 0.8rem;
  animation: chipEnter 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
  transform: translateX(-10px) scale(0.95);
}

.data-chip.exiting {
  animation: chipExit 0.25s ease-out forwards;
}

@keyframes chipEnter {
  0% {
    opacity: 0;
    transform: translateX(-10px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes chipExit {
  0% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(10px) scale(0.95);
  }
}

/* Chip category icon */
.chip-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.chip-icon.name {
  background: linear-gradient(135deg, #056dff, #98bcf0);
  color: white;
}

.chip-icon.service {
  background: linear-gradient(135deg, #22c55e, #10b981);
  color: white;
}

.chip-icon.time {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: white;
}

.chip-icon.date {
  background: linear-gradient(135deg, #056dff, #6b8cf0);
  color: white;
}

.chip-icon.message {
  background: linear-gradient(135deg, #98bcf0, #056dff);
  color: white;
}

/* Chip content */
.chip-content {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}

.chip-label {
  font-size: 0.65rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.chip-value {
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Status indicator on chip */
.chip-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: statusPulse 0.5s ease;
}

@keyframes statusPulse {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.5);
  }
  100% {
    transform: scale(1);
  }
}

/* Data Flow Footer */
.data-flow-footer {
  padding: 0.75rem 1rem;
  background: rgba(242, 245, 246, 0.6);
  border-top: 1px solid rgba(175, 178, 180, 0.15);
}

.db-visual-compact {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.db-visual-compact i {
  color: var(--accent-primary);
  font-size: 1rem;
}

.db-visual-compact .db-counter {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.db-visual-compact .db-counter.bump {
  color: #22c55e;
  transform: scale(1.2);
}

/* Empty state placeholder */
.data-stream-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-tertiary);
  font-size: 0.85rem;
  text-align: center;
  gap: 0.75rem;
}

.data-stream-empty i {
  font-size: 2rem;
  opacity: 0.3;
  animation: emptyPulse 2s ease-in-out infinite;
}

@keyframes emptyPulse {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.05);
  }
}

/* Legacy styles kept for compatibility */
.data-step {
  display: none;
}
.flow-arrow {
  display: none;
}

/* DB Visual */
.db-visual {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.db-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #22c55e;
  font-size: 0.85rem;
}

.db-stats {
  display: flex;
  flex-direction: column;
}

.db-stats .db-counter {
  font-size: 1.25rem;
  font-weight: 700;
  color: #22c55e;
  line-height: 1;
}

.db-stats span:last-child {
  font-size: 0.65rem;
  color: var(--text-secondary);
}

/* ================================================
   MOCK FORM (Step 1 Visual) - FIXED
   ================================================ */

.mock-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.mock-input {
  height: auto;
  padding: 0.75rem 1rem;
  background: rgba(242, 245, 246, 0.5);
  border: 1px solid rgba(175, 178, 180, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.mock-input i {
  color: var(--text-secondary);
  font-size: 0.9rem;
  opacity: 0.6;
}

.mock-input span {
  opacity: 0.5;
}

.mock-btn {
  height: auto;
  padding: 0.75rem 1rem;
  background: var(--gradient-main);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  animation: btnPulse 2s ease infinite;
}

/* ================================================
   SERVICES SECTION V2 - Què oferim
   ================================================ */

.services-section {
  padding: 7rem 0;
  background: linear-gradient(
    180deg,
    var(--bg-color) 0%,
    rgba(215, 226, 235, 0.18) 50%,
    var(--bg-color) 100%
  );
  position: relative;
  overflow: hidden;
}

.services-section::before {
  content: "";
  position: absolute;
  top: 10%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(5, 109, 255, 0.04) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.services-section::after {
  content: "";
  position: absolute;
  bottom: 5%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(152, 188, 240, 0.06) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

/* V2 Grid: Hero card spans full width, 2 cards below centered */
.services-grid-v2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}

/* Service Card Base */
.service-card {
  background: rgba(254, 254, 254, 0.9);
  border: 1px solid rgba(175, 178, 180, 0.2);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(5, 109, 255, 0.2);
  box-shadow:
    0 24px 80px rgba(5, 49, 255, 0.06),
    0 8px 24px rgba(0, 0, 0, 0.04);
}

.service-card__content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  z-index: 2;
}

/* Hero Card (spans full width) */
.service-card--hero {
  grid-column: 1 / -1;
  background: linear-gradient(
    135deg,
    rgba(5, 109, 255, 0.03) 0%,
    rgba(254, 254, 254, 0.95) 40%,
    rgba(152, 188, 240, 0.06) 100%
  );
  border-color: rgba(5, 109, 255, 0.12);
}

.service-card--hero .service-card__content {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto 1fr auto;
  column-gap: 2.5rem;
  row-gap: 0;
  padding: 3rem;
}

.service-card--hero .service-card__icon {
  grid-row: 1 / 3;
  grid-column: 1;
  width: 80px;
  height: 80px;
  font-size: 2rem;
  align-self: start;
}

.service-card--hero .service-card__badge {
  grid-row: 1;
  grid-column: 2;
  align-self: center;
}

.service-card--hero h3 {
  grid-row: 2;
  grid-column: 2;
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.service-card--hero p {
  grid-row: 3;
  grid-column: 1 / -1;
  font-size: 1.1rem;
  max-width: 700px;
}

.service-card--hero .service-card__features {
  grid-row: 4;
  grid-column: 1 / -1;
}

.service-card--hero .service-card__cta {
  grid-row: 5;
  grid-column: 1 / -1;
}

.service-card--hero:hover {
  border-color: rgba(5, 109, 255, 0.25);
  box-shadow:
    0 30px 90px rgba(5, 49, 255, 0.08),
    0 0 60px rgba(5, 109, 255, 0.04);
}

/* Glow effect for hero card */
.service-card__glow {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(5, 109, 255, 0.06) 0%,
    transparent 65%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.6s ease;
  opacity: 0.5;
}

.service-card--hero:hover .service-card__glow {
  opacity: 1;
}

/* Icon styles */
.service-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  position: relative;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.service-card:hover .service-card__icon {
  transform: scale(1.05);
}

.service-card__icon--robot {
  background: linear-gradient(
    135deg,
    rgba(5, 109, 255, 0.12),
    rgba(5, 109, 255, 0.06)
  );
  color: #056dff;
  border: 1px solid rgba(5, 109, 255, 0.15);
  box-shadow: 0 8px 24px rgba(5, 109, 255, 0.08);
}

.service-card__icon--channels {
  background: linear-gradient(
    135deg,
    rgba(37, 211, 102, 0.12),
    rgba(225, 48, 108, 0.08)
  );
  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.18);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.08);
}

.service-card__icon--calendar {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.12),
    rgba(139, 92, 246, 0.06)
  );
  color: #6366f1;
  border: 1px solid rgba(99, 102, 241, 0.15);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.08);
}

.service-card__icon--gear {
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.12),
    rgba(249, 115, 22, 0.06)
  );
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.15);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.08);
}

/* Badge */
.service-card__badge {
  display: inline-block;
  width: fit-content;
  padding: 0.3rem 0.9rem;
  background: rgba(5, 109, 255, 0.08);
  border: 1px solid rgba(5, 109, 255, 0.15);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

/* Card typography */
.service-card h3 {
  font-size: 1.35rem;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* Feature lists */
.service-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.service-card__features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0.5rem 0.75rem;
  background: rgba(242, 245, 246, 0.5);
  border-radius: 10px;
  transition: background 0.2s ease;
}

/* .service-card:hover .service-card__features li {
    background: rgba(242, 245, 246, 0.8);
} */

.service-card__features li i {
  font-size: 0.8rem;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.service-card__features--compact {
  grid-template-columns: 1fr;
}

.service-card__features--compact li {
  padding: 0.4rem 0;
  background: transparent;
  border-radius: 0;
}

.service-card__features--compact li i {
  color: #22c55e;
}

/* Channel pills */
.service-card__channel-icons {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.channel-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid;
  transition: all 0.3s ease;
}

.channel-pill.whatsapp {
  background: rgba(37, 211, 102, 0.08);
  border-color: rgba(37, 211, 102, 0.2);
  color: #128c7e;
}

.channel-pill.whatsapp i {
  color: #25d366;
}

.channel-pill.instagram {
  background: rgba(225, 48, 108, 0.06);
  border-color: rgba(225, 48, 108, 0.18);
  color: #833ab4;
}

.channel-pill.instagram i {
  color: #e1306c;
}

.channel-pill.web {
  background: rgba(5, 109, 255, 0.06);
  border-color: rgba(5, 109, 255, 0.15);
  color: var(--accent-primary);
}

.channel-pill.web i {
  color: var(--accent-primary);
}

.service-card:hover .channel-pill {
  transform: translateY(-2px);
}

/* CTA arrow link */
.service-card__cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-top: auto;
  padding-top: 1rem;
  transition: gap 0.3s ease;
}

.service-card:hover .service-card__cta {
  gap: 1rem;
}

.service-card__cta i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.service-card:hover .service-card__cta i {
  transform: translateX(4px);
}

/* Responsive */
@media (max-width: 1024px) {
  .services-grid-v2 {
    grid-template-columns: 1fr 1fr;
  }

  .service-card--hero {
    grid-column: 1 / -1;
  }

  .service-card--hero .service-card__content {
    display: flex;
    flex-direction: column;
  }

  .service-card--hero .service-card__icon {
    width: 64px;
    height: 64px;
    font-size: 1.6rem;
  }

  .service-card--hero h3 {
    font-size: 1.5rem;
  }

  .service-card__features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .services-section {
    padding: 5rem 0;
  }

  .services-grid-v2 {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .service-card__content {
    padding: 2rem;
  }

  .service-card--hero .service-card__content {
    padding: 2rem;
  }

  .service-card--hero h3 {
    font-size: 1.35rem;
  }

  .service-card h3 {
    font-size: 1.2rem;
  }
}

/* ================================================
   PRICING SECTION
   ================================================ */

.pricing-section {
  padding: 6rem 0;
  background: linear-gradient(
    180deg,
    rgba(215, 226, 235, 0.15) 0%,
    var(--bg-color) 50%,
    rgba(215, 226, 235, 0.15) 100%
  );
  position: relative;
}

/* Pricing Toggle */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.toggle-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.toggle-label:first-child {
  color: var(--text-primary);
}

.pricing-toggle.yearly .toggle-label:first-child {
  color: var(--text-secondary);
}

.pricing-toggle.yearly .toggle-label:last-child {
  color: var(--text-primary);
}

.discount-badge {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 20px;
}

.toggle-switch {
  position: relative;
  width: 56px;
  height: 30px;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(175, 178, 180, 0.2);
  border: 1px solid rgba(175, 178, 180, 0.3);
  border-radius: 30px;
  transition: all 0.3s ease;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  background: var(--gradient-main);
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 8px rgba(5, 49, 255, 0.3);
}

.toggle-switch input:checked + .toggle-slider {
  background: rgba(5, 49, 255, 0.12);
  border-color: rgba(5, 49, 255, 0.3);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(26px);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.pricing-card {
  background: linear-gradient(
    180deg,
    #fefefe 60%,
    rgba(215, 226, 235, 0.35) 100%
  );
  border: 1px solid rgba(175, 178, 180, 0.2);
  border-radius: 24px;
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: rgba(5, 49, 255, 0.15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}

.pricing-card.popular {
  border-color: rgba(5, 49, 255, 0.25);
  background: linear-gradient(
    180deg,
    #fefefe 40%,
    rgba(152, 188, 240, 0.25) 100%
  );
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #056dff;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-header {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 1.5rem;
}

.pricing-name {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

.price-period {
  font-size: 1rem;
  color: var(--text-secondary);
}

.price-billing-note {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: -0.25rem;
  margin-bottom: 0.75rem;
  min-height: 1.2em;
}

.pricing-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pricing-features li i {
  font-size: 0.8rem;
  width: 18px;
  text-align: center;
}

.pricing-features li i.fa-check {
  color: #22c55e;
}

.pricing-features li i.fa-xmark {
  color: var(--text-secondary);
  opacity: 0.5;
}

.pricing-features li.disabled {
  opacity: 0.5;
}

.pricing-card .btn {
  width: 100%;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  font-size: 0.9rem;
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(175, 178, 180, 0.4);
  color: var(--text-primary);
  border-radius: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-outline:hover {
  background: rgba(5, 49, 255, 0.05);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* ================================================
   RESPONSIVE - 3 Column Grid
   ================================================ */

@media (max-width: 1200px) {
  .demo-grid-triple {
    grid-template-columns: 1fr 1fr;
  }

  .demo-grid-triple .chat-demo,
  .calendar-demo-hero {
    height: 500px;
  }

  .data-flow-panel {
    grid-column: span 2;
    height: auto;
    min-height: 250px;
  }

  .data-stream {
    flex-direction: column;
    overflow-y: auto;
  }

  .data-chip {
    flex: 0 0 auto;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .demo-grid-triple {
    grid-template-columns: 1fr;
  }

  .demo-grid-triple .chat-demo {
    height: 450px;
  }

  .calendar-demo-hero {
    height: 400px;
  }

  .data-flow-panel {
    grid-column: span 1;
    height: auto;
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.popular {
    order: -1;
  }

  .integration-badges-bottom {
    gap: 0.75rem;
    padding: 1rem;
  }

  .chat-demo,
  .data-flow-panel {
    height: 420px !important;
    min-height: 420px !important;
  }

  .calendar-demo-hero {
    height: 580px !important;
    min-height: 580px !important;
  }

  .integration-badges-bottom .badge-item {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .integration-badges-bottom .badge-divider {
    display: none;
  }
}
