/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playlist+Script&display=swap');

/* CSS Custom Properties */
:root {
  /* Color System - Dark Theme (Zinc Palette) */
  --color-primary: #00D9A3;
  --color-primary-dark: #00B589;
  --color-primary-light: #33E3B5;

  /* Base Semantic Colors */
  --color-background: #09090B;
  /* Zinc 950 */
  --color-surface: #18181B;
  /* Zinc 900 */
  --color-surface-hover: #27272A;
  /* Zinc 800 */
  --color-border: #27272A;
  /* Zinc 800 */

  --color-text-primary: #FAFAFA;
  /* Zinc 50 */
  --color-text-secondary: #A1A1AA;
  /* Zinc 400 */
  --color-text-muted: #52525B;
  /* Zinc 600 */

  /* Neutral Scale (Adjusted for Dark Mode contexts if needed, but keeping standard for ref) */
  --color-neutral-50: #09090B;
  /* Zinc 950 (Re-mapped for dark backgrounds) */
  --color-neutral-100: #18181B;
  /* Zinc 900 */
  --color-neutral-200: #27272A;
  /* Zinc 800 */
  --color-neutral-300: #3F3F46;
  /* Zinc 700 */
  --color-neutral-400: #52525B;
  /* Zinc 600 */
  --color-neutral-500: #71717A;
  /* Zinc 500 */
  --color-neutral-600: #A1A1AA;
  /* Zinc 400 */
  --color-neutral-700: #D4D4D8;
  /* Zinc 300 */
  --color-neutral-800: #E4E4E7;
  /* Zinc 200 */
  --color-neutral-900: #FAFAFA;
  /* Zinc 50 - Used for High Contrast Stuff */

  /* Typography Scale */
  --font-brand: 'Playlist Script', cursive;
  --font-body: 'Inter', sans-serif;

  --text-xs: 0.75rem;
  /* 12px */
  --text-sm: 0.875rem;
  /* 14px */
  --text-base: 1rem;
  /* 16px */
  --text-lg: 1.125rem;
  /* 18px */
  --text-xl: 1.25rem;
  /* 20px */
  --text-2xl: 1.5rem;
  /* 24px */
  --text-3xl: 1.875rem;
  /* 30px */
  --text-4xl: 2.25rem;
  /* 36px */
  --text-5xl: 3rem;
  /* 48px */
  --text-6xl: 3.75rem;
  /* 60px */
  --text-7xl: 4.5rem;
  /* 72px */
  --text-8xl: 6rem;
  /* 96px */

  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --font-weight-black: 900;

  --leading-tight: 1.1;
  --leading-snug: 1.3;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;

  /* Spacing Scale */
  --space-1: 0.25rem;
  /* 4px */
  --space-2: 0.5rem;
  /* 8px */
  --space-3: 0.75rem;
  /* 12px */
  --space-4: 1rem;
  /* 16px */
  --space-6: 1.5rem;
  /* 24px */
  --space-8: 2rem;
  /* 32px */
  --space-12: 3rem;
  /* 48px */
  --space-16: 4rem;
  /* 64px */
  --space-24: 6rem;
  /* 96px */
  --space-32: 8rem;
  /* 128px */
  --space-48: 12rem;
  /* 192px */

  /* Layout Tokens */
  --container-width-sm: 640px;
  --container-width-md: 768px;
  --container-width-lg: 1024px;
  --container-width-xl: 1280px;
  --container-width-2xl: 1536px;
  --container-padding: 1.5rem;
  --nav-height: 80px;

  /* Border Radius */
  --radius-sm: 0.125rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-full: 9999px;

  /* Shadows */
  /* Shadows - Adjusted for Dark Mode (lighter/subtle glow or deeper shadows) */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3), 0 4px 6px -4px rgb(0 0 0 / 0.3);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.3), 0 8px 10px -6px rgb(0 0 0 / 0.3);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles & Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-background);
  color: var(--color-text-primary);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-tight);
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

h1 {
  font-size: var(--text-5xl);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-4xl);
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--text-3xl);
}

h4 {
  font-size: var(--text-2xl);
}

h5 {
  font-size: var(--text-xl);
}

h6 {
  font-size: var(--text-lg);
}

/* Responsive Typography */
@media (min-width: 1024px) {
  h1 {
    font-size: var(--text-7xl);
  }

  h2 {
    font-size: var(--text-5xl);
  }
}

p {
  margin-bottom: var(--space-4);
  color: var(--color-text-secondary);
  font-size: var(--text-base);
}

/* Brand Text Utility */
.brand-text {
  font-family: var(--font-brand);
  color: var(--color-primary);
}

/* Link Styles */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary);
}

/* Button Styles */
button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-weight: var(--font-weight-semibold);
  font-size: var(--text-base);
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-neutral-900);
  color: var(--color-background);
}

.btn-primary:hover {
  background-color: var(--color-primary);
  color: var(--color-neutral-50);
  /* Dark text on bright button */
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid var(--color-neutral-200);
  color: var(--color-text-primary);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Layout Utilities */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  max-width: var(--container-width-xl);
}

/* Responsive Utilities */
.hidden-mobile {
  display: none;
}

@media (min-width: 768px) {
  .hidden-mobile {
    display: block;
  }
}

.grid-cols-1-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-16);
  align-items: center;
}

@media (min-width: 1024px) {
  .grid-cols-1-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.grid-cols-footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .grid-cols-footer {
    grid-template-columns: 1fr 1fr;
  }
}

.order-mobile-2 {
  order: 2;
}

.order-mobile-1 {
  order: 1;
}

@media (min-width: 1024px) {
  .order-desktop-1 {
    order: 1;
  }

  .order-desktop-2 {
    order: 2;
  }
}

.hero-visual {
  display: none;
}

@media (min-width: 1024px) {
  .hero-visual {
    display: block;
  }
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.delay-100 {
  transition-delay: 100ms;
}

.delay-200 {
  transition-delay: 200ms;
}

.delay-300 {
  transition-delay: 300ms;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Hover Effects */
.step-card {
  transition: transform var(--transition-normal);
}

.step-card:hover {
  transform: translateX(10px);
}

.comparison-table tr,
.faq-item {
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.comparison-table tr:hover:not(:first-child),
.faq-item:hover {
  transform: scale(1.01);
  box-shadow: var(--shadow-md);
  background-color: var(--color-surface-hover);
  z-index: 10;
  position: relative;
}

/* Feature Image Hover */
.grid-cols-1-2>div[style*="overflow: hidden"] img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.grid-cols-1-2>div[style*="overflow: hidden"]:hover img {
  transform: scale(1.05);
}

/* Feature Image Hover - Specific Class */
.feature-image-container img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.6s ease;
  will-change: transform, filter;
}

.feature-image-container:hover img {
  transform: scale(1.05) rotate(1deg);
  filter: brightness(1.1);
}

/* Hero Animation Enhancements */
@keyframes pulse-glow {

  0%,
  100% {
    filter: drop-shadow(0 0 15px rgba(0, 217, 163, 0.2));
    transform: scale(1);
  }

  50% {
    filter: drop-shadow(0 0 30px rgba(0, 217, 163, 0.5));
    transform: scale(1.02);
  }
}

.hero-logo-glow {
  animation: pulse-glow 3s infinite ease-in-out, float 6s ease-in-out infinite;
}

/* Staggered Entrance */
.stagger-1 {
  animation-delay: 100ms;
}

.stagger-2 {
  animation-delay: 200ms;
}

.stagger-3 {
  animation-delay: 300ms;
}

.stagger-4 {
  animation-delay: 400ms;
}

/* Social Proof Marquee */
.marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.marquee-content {
  display: flex;
  gap: var(--space-12);
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
}

.marquee-content:hover {
  animation-play-state: paused;
}

.social-proof-tag {
  font-weight: var(--font-weight-bold);
  font-size: var(--text-2xl);
  color: var(--color-text-secondary);
  white-space: nowrap;
  padding: 0;
  border: none;
  background: transparent;
  opacity: 0.5;
  transition: all var(--transition-normal);
}

.social-proof-tag:hover {
  color: var(--color-primary);
  text-shadow: 0 0 20px rgba(0, 217, 163, 0.4);
  opacity: 1;
  transform: scale(1.1);
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - var(--space-6)));
  }

}

/* Chat Animation Component */
.chat-anim-container {
  width: 100%;
  height: 100%;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background-color: #0b141a;
  /* WhatsApp Dark Background */
  position: relative;
}

.chat-anim-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.chat-avatar {
  width: 40px;
  height: 40px;
  background: var(--color-neutral-300);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--color-background);
}

.chat-info {
  display: flex;
  flex-direction: column;
}

.chat-name {
  font-weight: 600;
  color: var(--color-text-primary);
  font-size: var(--text-sm);
}

.chat-status {
  font-size: var(--text-xs);
  color: var(--color-primary);
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.message-bubble {
  max-width: 80%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: var(--text-sm);
  position: relative;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(10px);
  animation-fill-mode: forwards;
}

.message-received {
  align-self: flex-start;
  background-color: var(--color-surface-hover);
  color: var(--color-text-primary);
  border-top-left-radius: 0;
}

.message-sent {
  align-self: flex-end;
  background-color: #005c4b;
  /* WhatsApp Dark Green */
  color: #fff;
  border-top-right-radius: 0;
}

.message-time {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  text-align: right;
  margin-top: 4px;
}

.message-received .message-time {
  color: rgba(255, 255, 255, 0.4);
}

/* Animations */
@keyframes message-appear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.anim-msg-1 {
  animation: message-appear 0.5s ease-out forwards;
  animation-delay: 0.5s;
}

.anim-msg-2 {
  opacity: 0;
  /* Hidden initially */
  animation: message-appear 0.5s ease-out forwards;
  animation-delay: 3.5s;
  /* Appears after typing */
}

/* Typing Indicator */
.typing-indicator {
  align-self: flex-end;
  background-color: #005c4b;
  padding: 12px 16px;
  border-radius: 12px;
  border-top-right-radius: 0;
  display: flex;
  gap: 4px;
  align-items: center;
  opacity: 0;
  animation: typing-show-hide 2s linear forwards;
  animation-delay: 1.2s;
  /* Starts after first message + pause */
  position: absolute;
  /* Absolute to not push layout when appearing/disappearing if needed, but relative usually better for flow. Let's try flow first but handle spacing. */
  position: relative;
  width: fit-content;
  display: none;
  /* Managed by animation usually, but display none prevents layout shift? No, simple opacity/height is better. */
  display: flex;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: typing-bounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typing-bounce {

  0%,
  80%,
  100% {
    transform: scale(0);
  }

  40% {
    transform: scale(1);
  }
}

@keyframes typing-show-hide {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  10% {
    opacity: 1;
    transform: translateY(0);
  }

  90% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(0);
    display: none;
    /* tricky with CSS only, usually height 0 */
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
  }
}

/* Responsive Utilities */
.grid-responsive-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .grid-responsive-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.comparison-table {
  width: 100%;
  min-width: 700px;
  /* Forces horizontal scroll on mobile */
  border-collapse: separate;
  border-spacing: 0;

}

/* Circuit Flow Animation */
.circuit-anim-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000;
}

.circuit-anim-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  opacity: 0.9;
}

.circuit-overlay {
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(135deg,
      transparent 40%,
      rgba(0, 217, 163, 0.1) 45%,
      rgba(0, 217, 163, 0.5) 50%,
      rgba(0, 217, 163, 0.1) 55%,
      transparent 60%);
  z-index: 2;
  mix-blend-mode: overlay;
  animation: circuit-flow 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}

@keyframes circuit-flow {
  0% {
    transform: translateX(-50%);
    opacity: 0;
  }

  30% {
    opacity: 1;
  }

  100% {
    transform: translateX(50%);
    opacity: 0;
  }
}