/* =============================================================================
   QUIVA WEBSITE STYLES - CLEANED & OPTIMIZED
   ============================================================================= */

/* -----------------------------------------------------------------------------
   RESET & BASE STYLES
   ----------------------------------------------------------------------------- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* -----------------------------------------------------------------------------
   CSS CUSTOM PROPERTIES (VARIABLES)
   ----------------------------------------------------------------------------- */

:root {
  /* Colors - Primary */
  --primary-100: #f0f2ff;
  --primary-400: #a5b4fc;
  --primary-600: #6366f1;
  --primary-700: #4f46e5;

  /* Colors - Secondary */
  --secondary-600: #4641F2;

  /* Colors - Status */
  --success-500: #10b981;
  --error-600: #dc2626;
  --warning-500: #f59e0b;

  /* Colors - Grayscale */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Typography */
  --font-family: 'Rubik', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-size-xs: 0.7rem;
  --font-size-sm: 0.8rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.1rem;
  --font-size-xl: 1.2rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.5rem;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 20px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-3xl: 40px;
  --space-4xl: 60px;
  --space-5xl: 80px;

  /* Borders & Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 50px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 12px 40px rgba(99, 102, 241, 0.15);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* -----------------------------------------------------------------------------
   BASE TYPOGRAPHY & LAYOUT
   ----------------------------------------------------------------------------- */

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--gray-800);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* -----------------------------------------------------------------------------
   HEADER & NAVIGATION
   ----------------------------------------------------------------------------- */

header {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity var(--transition-base);
}

.logo:hover {
  opacity: 0.8;
}

.logo-image {
  height: 40px;
  width: auto;
}

.logo-text {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: white;
}

/* Navigation */
nav ul {
  display: flex;
  list-style: none;
  gap: var(--space-2xl);
}

nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-base);
  font-size: 0.95rem;
}

nav a:hover,
nav a.active {
  color: var(--primary-600);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.header-signin {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-base);
}

.header-signin:hover {
  color: var(--primary-600);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: var(--font-size-2xl);
  cursor: pointer;
}

.mobile-auth-links {
  display: none;
}

/* -----------------------------------------------------------------------------
   BUTTONS & CTA ELEMENTS
   ----------------------------------------------------------------------------- */

.btn-primary {
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  color: white;
  padding: var(--space-md) var(--space-2xl);
  border: none;
  border-radius: var(--radius-lg);
  font-size: var(--font-size-lg);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-base);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  display: inline-block;
  text-align: center;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background: transparent;
  color: white;
  padding: var(--space-md) var(--space-2xl);
  border: 2px solid var(--primary-600);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-lg);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-base);
  display: inline-block;
  text-align: center;
}

.btn-secondary:hover {
  background: rgba(99, 102, 241, 0.1);
  transform: translateY(-1px);
}

.btn-secondary-light {
  background: white;
  color: var(--primary-600);
  padding: var(--space-md) var(--space-2xl);
  border: 2px solid var(--primary-600);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-lg);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
  display: inline-block;
  text-align: center;
}

.btn-secondary-light:hover {
  background: var(--primary-600);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
}

.header-cta {
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  color: white;
  padding: var(--space-md) var(--space-lg);
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-base);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  display: inline-block;
  text-align: center;
}

.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* -----------------------------------------------------------------------------
   HERO SECTION
   ----------------------------------------------------------------------------- */

.hero {
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 50%, var(--gray-700) 100%);
  color: white;
  padding: 120px 0 var(--space-5xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: var(--font-size-6xl);
  font-weight: 800;
  margin-bottom: var(--space-xl);
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-lg);
  color: var(--gray-300);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-hook {
  font-size: var(--font-size-lg);
  color: var(--gray-400);
  margin-bottom: var(--space-3xl);
  font-style: italic;
}

.hero-cta {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  margin: var(--space-3xl) 0;
  flex-wrap: wrap;
}

.trust-indicators {
  margin-top: var(--space-3xl);
  display: flex;
  justify-content: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--gray-400);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.checkmark {
  color: var(--success-500);
  font-weight: bold;
}

.hero-media {
  margin-top: var(--space-4xl);
  display: flex;
  justify-content: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-visual {
  width: 100%;
  height: 350px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
  border: 2px dashed var(--primary-600);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--primary-600);
  font-weight: 600;
}

.hero-visual svg {
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-md);
  opacity: 0.7;
}

.hero-video {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: var(--radius-xl);
}

/* Animated Workflow Lines */
.workflow-lines {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.workflow-line {
  position: absolute;
  width: 100%;
  height: 100px;
}

.line-top {
  top: 20%;
}

.line-bottom {
  top: 70%;
}

.workflow-line::before {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 40%, transparent 100%);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

.line-top::before {
  animation: flowTopPath 12s ease-in-out infinite;
}

.line-bottom::before {
  animation: flowBottomPath 12s ease-in-out infinite;
  animation-delay: 6s;
}

.workflow-lines::before {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 40%, transparent 100%);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
  animation: flowMiddlePathRTL 15s ease-in-out infinite;
  animation-delay: 3s;
}

/* -----------------------------------------------------------------------------
   HERO ANIMATION
   ----------------------------------------------------------------------------- */

/* =============================================================================
   CONVERSATION TO AGENT TRANSFORMATION - HORIZONTAL LAYOUT
   Add this to your main.css file
   ============================================================================= */

/* Container - No background, more horizontal space */
.transformation-hero-container {
  position: relative;
  width: 100%;
  padding: var(--space-5xl) 0;
  overflow: visible;
}

/* Animated gradient orbs - Optional, can be removed if not needed */
.transformation-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: pulse 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.transformation-orb-1 {
  top: -100px;
  left: 10%;
  width: 300px;
  height: 300px;
  background: rgba(99, 102, 241, 0.08);
}

.transformation-orb-2 {
  bottom: -100px;
  right: 10%;
  width: 300px;
  height: 300px;
  background: rgba(139, 92, 246, 0.08);
  animation-delay: 1s;
}

.transformation-content-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Three-stage transformation layout - HORIZONTAL by default */
.transformation-stages {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-4xl);
  width: 100%;
}

/* ============================================
   LEFT: Conversation Stage
   ============================================ */
.conversation-stage {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.chat-interface {
  width: 100%;
  max-width: 480px;
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(12px);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--gray-700);
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--font-size-lg);
  flex-shrink: 0;
}

.chat-info h3 {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: white;
  margin: 0;
}

.chat-status {
  font-size: var(--font-size-sm);
  color: var(--success-500);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.chat-messages {
  margin-bottom: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.message-bubble {
  display: flex;
  opacity: 0;
  transform: translateY(1rem);
}

.message-bubble.left {
  justify-content: flex-start;
}

.message-bubble.right {
  justify-content: flex-end;
}

.bubble-content {
  max-width: 80%;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.bubble-content.left {
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  color: white;
  border-bottom-left-radius: var(--radius-sm);
}

.bubble-content.right {
  background: var(--gray-700);
  color: var(--gray-200);
  border-bottom-right-radius: var(--radius-sm);
}

.bubble-content p {
  font-size: var(--font-size-sm);
  line-height: 1.5;
  margin: 0;
}

.typing-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: var(--gray-700);
  border-radius: var(--radius-lg);
  border-bottom-left-radius: var(--radius-sm);
  width: fit-content;
  opacity: 0;
}

.typing-dots {
  display: flex;
  gap: 4px;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-400);
  border-radius: 50%;
  animation: bounce 1.4s ease-in-out infinite;
}

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

.typing-dot:nth-child(3) {
  animation-delay: 0.2s;
}

@keyframes bounce {

  0%,
  60%,
  100% {
    transform: translateY(0);
  }

  30% {
    transform: translateY(-8px);
  }
}

/* ============================================
   MIDDLE: Transformation Stage - ENHANCED PROGRESS ANIMATION
   ============================================ */
.transformation-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-3xl);
  flex-shrink: 0;
  min-width: 240px;
}

.particle-container {
  position: relative;
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Multiple progress tracks for depth */
.progress-tracks {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 60px;
  transform: translateY(-50%);
}

/* Main progress track */
.progress-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  transform: translateY(-50%);
  overflow: visible;
}

/* Animated progress wave */
.progress-wave {
  position: absolute;
  left: -100%;
  top: 50%;
  height: 20px;
  width: 80px;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(99, 102, 241, 0.3) 20%,
      rgba(139, 92, 246, 0.5) 50%,
      rgba(99, 102, 241, 0.3) 80%,
      transparent 100%);
  filter: blur(8px);
  transform: translateY(-50%);
  animation: waveFlow 2.5s ease-in-out infinite;
}

.progress-wave:nth-child(2) {
  animation-delay: 0.8s;
  opacity: 0.6;
}

.progress-wave:nth-child(3) {
  animation-delay: 1.6s;
  opacity: 0.4;
}

@keyframes waveFlow {
  0% {
    left: -100px;
  }

  100% {
    left: calc(100% + 100px);
  }
}

/* Glowing particles flowing along track */
.flow-particle {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  background: var(--primary-400);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 10px var(--primary-400),
    0 0 20px var(--primary-400),
    0 0 30px rgba(99, 102, 241, 0.3);
  animation: particleFlow 3s ease-in-out infinite;
  opacity: 0;
}

.flow-particle:nth-child(5) {
  animation-delay: 0.3s;
}

.flow-particle:nth-child(6) {
  animation-delay: 0.6s;
}

.flow-particle:nth-child(7) {
  animation-delay: 0.9s;
}

.flow-particle:nth-child(8) {
  animation-delay: 1.2s;
}

.flow-particle:nth-child(9) {
  animation-delay: 1.5s;
}

@keyframes particleFlow {
  0% {
    left: 0;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
  }

  5% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.2);
  }

  95% {
    opacity: 1;
  }

  100% {
    left: 100%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
}

/* Pulsing lines above and below */
.pulse-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent 0%,
      var(--primary-400) 50%,
      transparent 100%);
  opacity: 0;
  animation: linePulse 2s ease-in-out infinite;
}

.pulse-line.top {
  top: 20%;
  animation-delay: 0.2s;
}

.pulse-line.bottom {
  bottom: 20%;
  animation-delay: 0.8s;
}

@keyframes linePulse {

  0%,
  100% {
    opacity: 0;
    transform: scaleX(0);
  }

  50% {
    opacity: 0.5;
    transform: scaleX(1);
  }
}

/* Center icon with enhanced glow */
.center-icon-wrapper {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  animation: scaleIn 0.8s ease-out 1s forwards;
}

@keyframes scaleIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.glow-effect {
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle,
      rgba(99, 102, 241, 0.4) 0%,
      rgba(139, 92, 246, 0.2) 30%,
      transparent 70%);
  filter: blur(25px);
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {

  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* Rotating rings around center icon */
.rotation-ring {
  position: absolute;
  border: 2px solid transparent;
  border-top-color: var(--primary-400);
  border-right-color: var(--primary-400);
  border-radius: 50%;
  opacity: 0.3;
}

.rotation-ring.ring-1 {
  width: 100px;
  height: 100px;
  animation: rotateClockwise 4s linear infinite;
}

.rotation-ring.ring-2 {
  width: 120px;
  height: 120px;
  border-top-color: var(--secondary-600);
  border-right-color: var(--secondary-600);
  animation: rotateCounterClockwise 5s linear infinite;
}

@keyframes rotateClockwise {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes rotateCounterClockwise {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(-360deg);
  }
}

.center-icon {
  position: relative;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 32px rgba(99, 102, 241, 0.4),
    0 0 60px rgba(99, 102, 241, 0.2),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
  z-index: 5;
}

.center-icon svg {
  width: 40px;
  height: 40px;
  color: white;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {

  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }

  50% {
    transform: scale(1.1) rotate(180deg);
  }
}

/* Sparkle effects */
.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
  opacity: 0;
  animation: sparkle 2s ease-in-out infinite;
}

.sparkle:nth-child(1) {
  top: 10%;
  left: 20%;
  animation-delay: 0.2s;
}

.sparkle:nth-child(2) {
  top: 25%;
  right: 15%;
  animation-delay: 0.6s;
}

.sparkle:nth-child(3) {
  bottom: 15%;
  left: 30%;
  animation-delay: 1s;
}

.sparkle:nth-child(4) {
  bottom: 25%;
  right: 25%;
  animation-delay: 1.4s;
}

@keyframes sparkle {

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

  50% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 10px white;
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .transformation-stage {
    padding: var(--space-2xl) 0;
    min-width: auto;
  }

  .particle-container {
    height: 120px;
  }

  .center-icon {
    width: 64px;
    height: 64px;
  }

  .center-icon svg {
    width: 32px;
    height: 32px;
  }

  .rotation-ring.ring-1 {
    width: 80px;
    height: 80px;
  }

  .rotation-ring.ring-2 {
    width: 100px;
    height: 100px;
  }
}

/* ============================================
   RIGHT: Working Agent Stage
   ============================================ */
.agent-stage {
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

.agent-card {
  width: 100%;
  max-width: 480px;
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(12px);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: scale(0.95);
  animation: scaleIn 0.8s ease-out 2.5s forwards;
}

.agent-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-2xl);
  gap: var(--space-md);
}

.agent-info {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex: 1;
  min-width: 0;
}

.agent-avatar {
  width: 48px;
  height: 48px;
  background: #4641F2;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  flex-shrink: 0;
}

.agent-avatar svg {
  width: 24px;
  height: 24px;
  color: white;
}

.agent-details {
  flex: 1;
  min-width: 0;
}

.agent-details h3 {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: white;
  margin: 0;
}

.live-badge {
  padding: 6px var(--space-md);
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.live-badge span {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--success-500);
}

.capabilities {
  margin-bottom: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.capability-badge {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: rgba(51, 65, 85, 0.4);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateX(2rem);
  transition: all var(--transition-base);
}

.capability-badge:hover {
  background: rgba(51, 65, 85, 0.6);
  border-color: var(--gray-600);
}

.capability-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.capability-icon svg {
  width: 18px;
  height: 18px;
  color: white;
}

.capability-badge span {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--gray-200);
}

.agent-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--gray-700);
}

.agent-stat {
  text-align: center;
  opacity: 0;
}

.stat-value {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: white;
  display: block;
  margin-bottom: 4px;
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--gray-400);
}

/* ============================================
   ANIMATION CLASSES
   ============================================ */
.animate-message-1 {
  animation: fadeInUp 0.6s ease-out 0.5s forwards;
}

.animate-message-2 {
  animation: fadeInUp 0.6s ease-out 0.7s forwards;
}

.animate-message-3 {
  animation: fadeInUp 0.6s ease-out 0.9s forwards;
}

.animate-message-4 {
  animation: fadeInUp 0.6s ease-out 1.1s forwards;
}

.show-typing {
  opacity: 1;
  animation: fadeIn 0.3s ease-out 1.3s forwards;
}

.hide-typing {
  display: none;
}

.animate-capability-1 {
  animation: slideInRight 0.6s ease-out 2.7s forwards;
}

.animate-capability-2 {
  animation: slideInRight 0.6s ease-out 2.8s forwards;
}

.animate-capability-3 {
  animation: slideInRight 0.6s ease-out 2.9s forwards;
}

.animate-capability-4 {
  animation: slideInRight 0.6s ease-out 3.0s forwards;
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-stat-1 {
  animation: fadeIn 0.6s ease-out 3.1s forwards;
}

.animate-stat-2 {
  animation: fadeIn 0.6s ease-out 3.2s forwards;
}

.animate-stat-3 {
  animation: fadeIn 0.6s ease-out 3.3s forwards;
}

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

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

/* Particle animation */
@keyframes particleFloat {

  0%,
  100% {
    transform: translate(var(--tx), var(--ty)) translateY(0px);
    opacity: 1;
  }

  50% {
    transform: translate(var(--tx), var(--ty)) translateY(-10px);
    opacity: 0.6;
  }
}

.transformation-particle.active {
  opacity: 1;
  animation: particleFloat 2s ease-in-out infinite;
}

/* ============================================
   RESPONSIVE DESIGN - Stack on Mobile
   ============================================ */

/* Tablet - maintain horizontal but tighter */
@media (max-width: 1200px) {
  .transformation-stages {
    gap: var(--space-2xl);
  }

  .transformation-stage {
    padding: 0 var(--space-lg);
  }

  .particle-container {
    width: 100px;
    height: 100px;
  }

  .center-icon {
    width: 56px;
    height: 56px;
  }

  .center-icon svg {
    width: 28px;
    height: 28px;
  }
}

/* Mobile - STACK VERTICALLY */
@media (max-width: 768px) {
  .transformation-hero-container {
    padding: var(--space-4xl) 0;
  }

  .transformation-stages {
    grid-template-columns: 1fr;
    gap: var(--space-4xl);
  }

  .conversation-stage,
  .agent-stage {
    justify-content: center;
  }

  .chat-interface,
  .agent-card {
    max-width: 100%;
  }

  .transformation-stage {
    padding: var(--space-2xl) 0;
  }

  .chat-interface,
  .agent-card {
    padding: var(--space-xl);
  }

  .transformation-orb {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 640px) {
  .transformation-content-wrapper {
    padding: 0 var(--space-md);
  }

  .chat-interface,
  .agent-card {
    padding: var(--space-lg);
  }

  .bubble-content {
    max-width: 90%;
  }

  .agent-header {
    flex-wrap: wrap;
  }

  .agent-stats {
    gap: var(--space-md);
  }

  .stat-value {
    font-size: var(--font-size-xl);
  }

  .capability-badge {
    padding: var(--space-sm) var(--space-md);
  }

  .capability-icon {
    width: 32px;
    height: 32px;
  }
}


/* -----------------------------------------------------------------------------
   ANIMATIONS
   ----------------------------------------------------------------------------- */

@keyframes flowTopPath {
  0% {
    left: -10px;
    top: 50px;
    opacity: 0;
  }

  5% {
    opacity: 1;
  }

  20% {
    left: 25%;
    top: 50px;
  }

  25% {
    left: 25%;
    top: 20px;
  }

  30% {
    left: 25%;
    top: 20px;
  }

  35% {
    left: 75%;
    top: 20px;
  }

  40% {
    left: 75%;
    top: 50px;
  }

  45% {
    left: 75%;
    top: 80px;
  }

  50% {
    left: 75%;
    top: 80px;
  }

  80% {
    left: calc(100% + 10px);
    top: 80px;
    opacity: 1;
  }

  100% {
    left: calc(100% + 10px);
    top: 80px;
    opacity: 0;
  }
}

@keyframes flowBottomPath {
  0% {
    left: calc(100% + 10px);
    top: 20px;
    opacity: 0;
  }

  5% {
    opacity: 1;
  }

  20% {
    left: 75%;
    top: 20px;
  }

  25% {
    left: 75%;
    top: 50px;
  }

  30% {
    left: 75%;
    top: 80px;
  }

  35% {
    left: 25%;
    top: 80px;
  }

  40% {
    left: 25%;
    top: 50px;
  }

  45% {
    left: 25%;
    top: 20px;
  }

  50% {
    left: 25%;
    top: 20px;
  }

  80% {
    left: -10px;
    top: 20px;
    opacity: 1;
  }

  100% {
    left: -10px;
    top: 20px;
    opacity: 0;
  }
}

@keyframes flowMiddlePathRTL {
  0% {
    left: calc(100% + 10px);
    top: 45%;
    opacity: 0;
  }

  5% {
    opacity: 1;
  }

  25% {
    left: 60%;
    top: 45%;
  }

  30% {
    left: 60%;
    top: 35%;
  }

  40% {
    left: 40%;
    top: 35%;
  }

  45% {
    left: 40%;
    top: 55%;
  }

  55% {
    left: 40%;
    top: 55%;
  }

  80% {
    left: -10px;
    top: 55%;
    opacity: 1;
  }

  100% {
    left: -10px;
    top: 55%;
    opacity: 0;
  }
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes shimmerFeature {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }

  50% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }

  100% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
}

@keyframes slideInFeature {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes floatParticle {

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

  10% {
    opacity: 0.6;
  }

  50% {
    transform: translateY(-100px) scale(1);
    opacity: 0.8;
  }

  90% {
    opacity: 0.6;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* -----------------------------------------------------------------------------
   SECTION STYLES
   ----------------------------------------------------------------------------- */

.section {
  padding: var(--space-5xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}

.section-title {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: var(--gray-800);
}

.section-subtitle {
  font-size: var(--font-size-xl);
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

/* -----------------------------------------------------------------------------
   WHY AGENTS SECTION
   ----------------------------------------------------------------------------- */

.why-agents-section {
  padding: var(--space-5xl) 0;
  background: white;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-4xl);
}

.section-header h2 {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-lg);
  line-height: 1.2;
}

.section-header p {
  font-size: var(--font-size-xl);
  color: var(--gray-600);
  line-height: 1.6;
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-5xl);
}

.problem-card {
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  transition: all var(--transition-base);
  border: 1px solid var(--gray-200);
}

.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  background: white;
}

.problem-icon {
  font-size: 3rem;
  margin-bottom: var(--space-lg);
  display: block;
}

.problem-card h3 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: var(--space-md);
  line-height: 1.3;
}

.problem-card p {
  font-size: var(--font-size-base);
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.solution {
  background: linear-gradient(135deg, var(--primary-50), var(--secondary-50));
  border: 1px solid var(--primary-200);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  font-size: var(--font-size-sm);
  color: var(--gray-700);
  line-height: 1.5;
}

.solution strong {
  color: var(--primary-700);
}

.cta-section {
  background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
  border-radius: var(--radius-2xl);
  padding: var(--space-4xl) var(--space-2xl);
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2xl);
}

.cta-content h3 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.cta-content p {
  font-size: var(--font-size-lg);
  color: var(--gray-300);
  margin: 0;
}

.cta-buttons {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

.btn-primary,
.btn-secondary {
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-lg);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-base);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .why-agents-section {
    padding: var(--space-4xl) 0;
  }

  .section-header h2 {
    font-size: var(--font-size-3xl);
  }

  .section-header p {
    font-size: var(--font-size-lg);
  }

  .problems-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .cta-section {
    padding: var(--space-3xl) var(--space-lg);
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }
}

/* -----------------------------------------------------------------------------
   INTEGRATIONS SECTION
   ----------------------------------------------------------------------------- */

.integrations-section {
  background: white;
  overflow: hidden;
}

.integrations-grid {
  margin-top: var(--space-4xl);
}

.carousel-container {
  position: relative;
  overflow: hidden;
  margin: 0 calc(var(--space-lg) * -1);
}

.carousel-track {
  display: flex;
  animation: scroll 30s linear infinite;
  gap: var(--space-3xl);
  align-items: center;
}

.integration-logo {
  flex: 0 0 auto;
  width: 120px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  opacity: 0.7;
}

.integration-logo:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.integration-logo img {
  max-width: 80px;
  max-height: 50px;
  object-fit: contain;
  filter: opacity(0.7);
  transition: filter var(--transition-base);
}

.integration-logo:hover img {
  filter: grayscale(0%) opacity(1);
}

.logo-placeholder {
  font-size: var(--font-size-sm);
  color: var(--gray-400);
  font-weight: 500;
  text-align: center;
  padding: 10px;
}

.carousel-container:hover .carousel-track {
  animation-play-state: paused;
}

.carousel-container::before,
.carousel-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.carousel-container::before {
  left: 0;
  background: linear-gradient(90deg, white 0%, transparent 100%);
}

.carousel-container::after {
  right: 0;
  background: linear-gradient(270deg, white 0%, transparent 100%);
}

/* -----------------------------------------------------------------------------
   HOW IT WORKS SECTION
   ----------------------------------------------------------------------------- */

.how-it-works-section {
  background: var(--gray-50);
}

.how-it-works-section .content-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: var(--space-5xl);
  align-items: start;
  margin-top: var(--space-4xl);
}

.how-it-works-section .content-wrapper>* {
  min-width: 0;
}

.how-it-works-section .text-content {
  width: 100%;
}

.how-it-works-section .content-title {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: var(--gray-800);
  line-height: 1.2;
}

.how-it-works-section .content-description {
  font-size: var(--font-size-xl);
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: var(--space-2xl);
}

.how-it-works-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.how-it-works-features li {
  padding: var(--space-xs) 0;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--gray-700);
  font-size: var(--font-size-base);
}

.how-it-works-features li::before {
  content: "✓";
  color: var(--success-500);
  font-weight: bold;
  font-size: var(--font-size-lg);
  flex-shrink: 0;
}

.how-it-works-section .media-content {
  width: 100%;
  height: 650px;
  min-width: 0;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .how-it-works-section .content-wrapper {
    gap: var(--space-3xl);
  }


  .how-it-works-section .content-title {
    font-size: var(--font-size-3xl);
  }

  .how-it-works-section .content-description {
    font-size: var(--font-size-lg);
  }

  .how-it-works-section .media-content {
    height: 500px;
  }
}

@media (max-width: 480px) {
  .how-it-works-section .media-content {
    height: 500px;
  }

  .how-it-works-section .content-wrapper {
    gap: var(--space-2xl);
  }
}

/* -----------------------------------------------------------------------------
   SOCIAL PROOF SECTION
   ----------------------------------------------------------------------------- */

.social-proof-section {
  background: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-3xl);
  margin-bottom: var(--space-4xl);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  color: var(--primary-600);
  margin-bottom: 10px;
}

.stat-label {
  color: var(--gray-600);
  font-weight: 500;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-3xl);
  margin-top: var(--space-4xl);
}

.testimonial-card {
  background: var(--gray-50);
  padding: var(--space-3xl);
  border-radius: var(--radius-xl);
  border-left: 4px solid var(--primary-600);
}

.testimonial-quote {
  font-style: italic;
  margin-bottom: var(--space-lg);
  color: var(--gray-700);
  font-size: var(--font-size-lg);
}

.testimonial-author {
  font-weight: 600;
  color: var(--gray-800);
}

.testimonial-role {
  color: var(--gray-600);
  font-size: 0.9rem;
}

/* -----------------------------------------------------------------------------
   USE CASES SECTION
   ----------------------------------------------------------------------------- */

.use-cases-section {
  background: var(--gray-50);
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-2xl);
  margin-top: var(--space-4xl);
}

.use-case-card {
  background: white;
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.use-case-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.use-case-title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--gray-800);
}

.use-case-tagline {
  color: var(--primary-600);
  font-weight: 600;
  margin-bottom: 15px;
}

.use-case-description {
  color: var(--gray-600);
  margin-bottom: 15px;
}

.use-case-features {
  list-style: none;
  padding: 0;
}

.use-case-features li {
  padding: 3px 0;
  color: var(--gray-600);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.use-case-example {
  margin-top: 20px;
  padding: 15px;
  background: rgba(79, 70, 229, 0.1);
  border-left: 3px solid var(--primary-600);
  border-radius: 4px;
  font-size: 0.95rem;
  color: var(--gray-700);
}

.use-case-example strong {
  color: var(--primary-700);
  font-weight: 600;
}


/* ========================================
   CHALLENGE TABS SECTION
   ======================================== */

.why-agents-section .challenge-tabs {
  display: flex;
  gap: 12px;
  margin: 50px auto 40px;
  padding: 0 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  max-width: 1400px;
}

.why-agents-section .challenge-tabs::-webkit-scrollbar {
  height: 6px;
}

.why-agents-section .challenge-tabs::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: 3px;
}

.why-agents-section .challenge-tabs::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 3px;
}

.why-agents-section .challenge-tabs::-webkit-scrollbar-thumb:hover {
  background: var(--primary-600);
}

.challenge-tab {
  flex: 1;
  min-width: 200px;
  padding: 20px 24px;
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.challenge-tab:hover {
  background: var(--gray-50);
  border-color: var(--primary-400);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.challenge-tab.active {
  background: linear-gradient(135deg, var(--primary-100) 0%, rgba(139, 92, 246, 0.1) 100%);
  border-color: var(--primary-600);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25);
}

.challenge-tab .tab-icon {
  font-size: 2rem;
  line-height: 1;
}

.challenge-tab .tab-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-800);
}

.challenge-tab.active .tab-label {
  color: var(--primary-700);
}

/* Challenge Content Panels */
.challenge-content {
  position: relative;
  min-height: 500px;
  max-width: 1400px;
  margin: 0 auto;
}

.challenge-panel {
  display: none;
  animation: fadeInPanel 0.4s ease-in-out;
}

.challenge-panel.active {
  display: block;
}

@keyframes fadeInPanel {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

/* Challenge Layout */
.challenge-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px;
  background: var(--gray-50);
  border-radius: 16px;
  border: 2px solid var(--gray-200);
}

.challenge-left h3 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: var(--gray-900);
  line-height: 1.3;
}

/* Problem Details */
.challenge-details {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.detail-section h4 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-700);
  margin-bottom: 15px;
  font-weight: 600;
}

.problem-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.problem-list li {
  padding-left: 28px;
  position: relative;
  color: var(--gray-700);
  line-height: 1.6;
  font-size: 0.95rem;
}

.problem-list li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary-600);
  font-weight: bold;
}

/* Affected Roles Tags */
.affected-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.role-tag {
  display: inline-block;
  padding: 8px 16px;
  background: var(--primary-100);
  border: 1px solid var(--primary-200);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--primary-700);
  font-weight: 500;
  transition: all var(--transition-base);
}

.role-tag:hover {
  background: var(--primary-200);
  border-color: var(--primary-400);
}

/* Solution Box */
.solution-box {
  background: white;
  border: 2px solid var(--primary-200);
  border-radius: 16px;
  padding: 32px;
  height: fit-content;
  position: sticky;
  top: 100px;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
}

.solution-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--gray-100);
}

.solution-icon {
  font-size: 1.5rem;
}

.solution-header h4 {
  font-size: 1.3rem;
  color: var(--gray-900);
  margin: 0;
}

.solution-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--gray-700);
  margin-bottom: 24px;
}

.solution-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.solution-benefits li {
  padding-left: 28px;
  position: relative;
  color: var(--gray-700);
  line-height: 1.6;
  font-size: 0.95rem;
}

.solution-benefits li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success-500);
  font-weight: bold;
  font-size: 1.2rem;
}

.solution-benefits strong {
  color: var(--primary-700);
  font-weight: 600;
}

/* Solution Stat */
.solution-stat {
  text-align: center;
  padding: 24px;
  background: linear-gradient(135deg, var(--primary-50), rgba(139, 92, 246, 0.05));
  border-radius: 12px;
  border: 2px solid var(--primary-200);
}

.solution-stat .stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-600);
  margin-bottom: 8px;
  line-height: 1;
}

.solution-stat .stat-label {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.4;
}

/* View All Toggle */
.view-all-toggle {
  text-align: center;
  margin: 40px 0 20px;
}

.btn-text-link {
  background: none;
  border: 2px solid var(--primary-600);
  color: var(--primary-600);
  font-size: 1rem;
  cursor: pointer;
  padding: 12px 24px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.btn-text-link:hover {
  background: var(--primary-600);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* View All Mode */
body.view-all-mode .challenge-tabs {
  display: none;
}

body.view-all-mode .challenge-panel {
  display: block;
  margin-bottom: 40px;
}

body.view-all-mode .view-all-toggle .toggle-text-show {
  display: none;
}

body.view-all-mode .view-all-toggle .toggle-text-hide {
  display: inline;
}

/* Responsive Design for Challenge Tabs */
@media (max-width: 1200px) {
  .challenge-layout {
    gap: 30px;
    padding: 30px;
  }

  .challenge-left h3 {
    font-size: 1.6rem;
  }

  .solution-box {
    padding: 28px;
  }
}

@media (max-width: 1024px) {
  .challenge-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px;
  }

  .solution-box {
    position: relative;
    top: 0;
  }
}

@media (max-width: 768px) {
  .why-agents-section .challenge-tabs {
    flex-direction: column;
    padding: 0;
    gap: 10px;
  }

  .challenge-tab {
    min-width: auto;
    width: 100%;
    padding: 16px 20px;
  }

  .challenge-tab .tab-icon {
    font-size: 1.5rem;
  }

  .challenge-layout {
    padding: 24px;
    border-radius: 12px;
  }

  .challenge-left h3 {
    font-size: 1.4rem;
  }

  .solution-box {
    padding: 24px;
  }

  .solution-header h4 {
    font-size: 1.2rem;
  }

  .solution-stat .stat-number {
    font-size: 2rem;
  }

  .view-all-toggle {
    margin: 30px 0 15px;
  }

  .btn-text-link {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .challenge-tab {
    padding: 14px 16px;
  }

  .challenge-layout {
    padding: 20px;
  }

  .challenge-left h3 {
    font-size: 1.25rem;
  }

  .solution-box {
    padding: 20px;
  }

  .problem-list li,
  .solution-benefits li {
    font-size: 0.9rem;
  }
}


/* -----------------------------------------------------------------------------
   FEATURES SECTION
   ----------------------------------------------------------------------------- */

.features-section {
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.features-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.features-section .section-title {
  color: white;
}

.features-section .section-subtitle {
  color: var(--gray-300);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-2xl);
  margin-top: var(--space-5xl);
  position: relative;
  z-index: 2;
}

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-2xl);
  padding: var(--space-3xl);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0;
  transform: translateY(40px);
}

.feature-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: var(--shadow-xl);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-600), var(--secondary-600));
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-xl);
  position: relative;
  overflow: hidden;
}

.feature-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmerFeature 3s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.feature-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: white;
}

.feature-description {
  color: var(--gray-300);
  margin-bottom: var(--space-xl);
  font-size: 1.05rem;
  line-height: 1.6;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  padding: var(--space-xs) 0;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--gray-200);
  font-size: 0.95rem;
  opacity: 0;
  transform: translateX(-10px);
  animation: slideInFeature 0.6s ease-out forwards;
  animation-delay: calc(var(--item-delay, 0) * 0.1s);
}

.feature-list li::before {
  content: "✓";
  color: var(--success-500);
  font-weight: bold;
  font-size: var(--font-size-base);
  flex-shrink: 0;
}

.feature-card:hover .feature-list li {
  color: var(--gray-100);
}

/* Feature card animation delays */
.feature-card:nth-child(1) {
  animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
  animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
  animation-delay: 0.3s;
}

.feature-card:nth-child(4) {
  animation-delay: 0.4s;
}

.feature-card:nth-child(1) .feature-icon::before {
  --delay: 0s;
}

.feature-card:nth-child(2) .feature-icon::before {
  --delay: 0.5s;
}

.feature-card:nth-child(3) .feature-icon::before {
  --delay: 1s;
}

.feature-card:nth-child(4) .feature-icon::before {
  --delay: 1.5s;
}

/* Floating particles background */
.features-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.features-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--primary-600);
  border-radius: 50%;
  opacity: 0.4;
  animation: floatParticle 8s ease-in-out infinite;
}

.features-particle:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
}

.features-particle:nth-child(2) {
  left: 20%;
  animation-delay: 1s;
}

.features-particle:nth-child(3) {
  left: 30%;
  animation-delay: 2s;
}

.features-particle:nth-child(4) {
  left: 40%;
  animation-delay: 3s;
}

.features-particle:nth-child(5) {
  left: 50%;
  animation-delay: 4s;
}

.features-particle:nth-child(6) {
  left: 60%;
  animation-delay: 1.5s;
}

.features-particle:nth-child(7) {
  left: 70%;
  animation-delay: 2.5s;
}

.features-particle:nth-child(8) {
  left: 80%;
  animation-delay: 3.5s;
}

.features-particle:nth-child(9) {
  left: 90%;
  animation-delay: 0.5s;
}

/* -----------------------------------------------------------------------------
   PRICING SECTION
   ----------------------------------------------------------------------------- */

.pricing-section {
  background: var(--gray-900);
  color: white;
  padding: var(--space-5xl) 0;
  position: relative;
}

.pricing-section .section-title {
  color: white;
}

.pricing-section .section-subtitle {
  color: var(--gray-300);
}

/* Currency Selector Wrapper - Top Right */
.currency-selector-wrapper {
  position: absolute;
  top: var(--space-2xl);
  right: var(--space-2xl);
  z-index: 10;
}

/* Pricing Toggle */
.pricing-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: var(--space-3xl) 0 var(--space-4xl);
  gap: var(--space-lg);
}

.toggle-container {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.1);
  padding: var(--space-xs);
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.toggle-option {
  padding: 10px var(--space-lg);
  border-radius: 25px;
  cursor: pointer;
  transition: all var(--transition-base);
  font-weight: 500;
  color: var(--gray-300);
}

.toggle-option.active {
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  color: white;
  font-weight: 600;
}

.savings-badge {
  background: linear-gradient(135deg, var(--success-500), #059669);
  color: white;
  padding: 4px var(--space-sm);
  border-radius: var(--radius-2xl);
  font-size: var(--font-size-sm);
  font-weight: 600;
}

/* Currency Selector */
.currency-selector {
  position: relative;
}

.currency-selector select {
  padding: 10px var(--space-lg);
  padding-right: 40px;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  transition: all var(--transition-base);
}

.currency-selector select:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.currency-selector select:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-600);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.currency-selector select option {
  background: var(--gray-800);
  color: white;
  padding: var(--space-sm);
}

/* Main 3-Column Pricing Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
  max-width: 1000px;
  margin: 0 auto var(--space-5xl) auto;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  text-align: center;
  position: relative;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.pricing-card.popular {
  border: 2px solid var(--primary-600);
  transform: scale(1.05);
}

.pricing-card.popular:hover {
  transform: scale(1.05) translateY(-5px);
}

.popular-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  color: white;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-2xl);
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.plan-name {
  font-size: var(--font-size-2xl);
  font-weight: 600;
  margin-bottom: 10px;
  color: white;
}

.plan-price {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  color: var(--primary-600);
  margin-bottom: var(--space-lg);
}

.plan-description {
  color: var(--gray-400);
  margin-bottom: var(--space-2xl);
}

.plan-features {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-2xl);
  text-align: left;
}

.plan-features li {
  padding: var(--space-xs) 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-300);
}

.plan-cta {
  width: 100%;
  padding: var(--space-sm) var(--space-xl);
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-base);
  display: inline-block;
}

.plan-cta.primary {
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  color: white;
  border: none;
}

.plan-cta.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.plan-cta.secondary {
  background: transparent;
  color: var(--primary-600);
  border: 2px solid var(--primary-600);
}

.plan-cta.secondary:hover {
  background: var(--primary-600);
  color: white;
}

/* Horizontal Plan Boxes */
.horizontal-plans {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3xl);
}

.horizontal-plan {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  display: flex;
  align-items: center;
  gap: 50px;
}

.horizontal-plan-left {
  flex: 0 0 300px;
}

.horizontal-plan-left h3 {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
}

.horizontal-plan-left .price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-600);
  margin-bottom: 15px;
}

.horizontal-plan-left .description {
  color: var(--gray-400);
  margin-bottom: 25px;
  font-size: var(--font-size-base);
}

.horizontal-plan-right {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--gray-300);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .pricing-card.popular {
    transform: scale(1);
  }

  .pricing-card.popular:hover {
    transform: translateY(-5px);
  }

  .horizontal-plan {
    flex-direction: column;
    gap: var(--space-2xl);
  }

  .horizontal-plan-left {
    flex: 1;
    width: 100%;
  }

  .horizontal-plan-right {
    grid-template-columns: 1fr;
  }
  
  .currency-selector-wrapper {
    position: static;
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-2xl);
  }
}

@media (max-width: 768px) {
  .pricing-section {
    padding: var(--space-4xl) 0;
  }

  .plan-price {
    font-size: var(--font-size-3xl);
  }
}

/* -----------------------------------------------------------------------------
   SECURITY SECTION
   ----------------------------------------------------------------------------- */

.security-section {
  background: var(--gray-50);
  padding: 100px 0;
}

.security-content {
  display: flex;
  align-items: center;
  gap: var(--space-5xl);
  max-width: 1200px;
  margin: 0 auto;
}

.security-left {
  flex: 1;
  max-width: 500px;
}

.security-left .section-title {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: var(--gray-800);
  text-align: left;
}

.security-left .section-subtitle {
  font-size: var(--font-size-xl);
  color: var(--gray-600);
  margin-bottom: var(--space-3xl);
  text-align: left;
  line-height: 1.6;
}

.security-right {
  flex: 1;
}

.security-features {
  margin-bottom: 50px;
}

.security-feature {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: var(--space-sm) 0;
  color: var(--gray-700);
  font-size: 1.05rem;
  font-weight: 500;
}

.security-checkmark {
  color: var(--success-500);
  font-weight: bold;
  font-size: var(--font-size-xl);
  flex-shrink: 0;
}

.security-badges {
  display: flex;
  gap: var(--space-2xl);
  justify-content: flex-start;
  flex-wrap: wrap;
}

.security-badge {
  display: flex;
  align-items: center;
  gap: 15px;
  background: white;
  padding: var(--space-lg) 25px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--gray-200);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.security-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.badge-image {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.badge-text {
  display: flex;
  flex-direction: column;
}

.badge-title {
  font-weight: 700;
  color: var(--gray-800);
  font-size: var(--font-size-base);
}

.badge-subtitle {
  font-weight: 500;
  color: var(--gray-600);
  font-size: 0.9rem;
}

.security-cta {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

/* -----------------------------------------------------------------------------
   FINAL CTA SECTION
   ----------------------------------------------------------------------------- */

.final-cta-section {
  background: var(--gray-800);
  color: white;
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: var(--primary-600);
}

.cta-subtitle {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-3xl);
  color: var(--gray-300);
}

.risk-reversal {
  font-size: 0.9rem;
  color: var(--gray-400);
  margin-top: var(--space-lg);
}

/* -----------------------------------------------------------------------------
   FOOTER
   ----------------------------------------------------------------------------- */

footer {
  background: var(--gray-900);
  color: white;
  padding: var(--space-5xl) 0 var(--space-2xl);
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-5xl);
  margin-bottom: 50px;
}

.footer-left {
  max-width: 400px;
}

.footer-logo {
  margin-bottom: 25px;
}

.footer-logo .logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
}

.footer-description {
  color: var(--gray-300);
  line-height: 1.6;
  margin-bottom: var(--space-2xl);
  font-size: var(--font-size-base);
}

.footer-social {
  display: flex;
  gap: 15px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  color: var(--gray-300);
  text-decoration: none;
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
}

.social-link:hover {
  background: var(--primary-600);
  color: white;
  transform: translateY(-2px);
}

.footer-right {
  display: flex;
  justify-content: flex-end;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4xl);
  max-width: 800px;
  width: 100%;
}

.footer-column h4 {
  color: white;
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  padding: var(--space-sm) 0;
}

.footer-column ul li a {
  color: var(--gray-300);
  text-decoration: none;
  transition: color var(--transition-base);
  font-size: 0.95rem;
}

.footer-column ul li a:hover {
  color: var(--primary-400);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-3xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gray-400);
  font-size: 0.9rem;
}

/* -----------------------------------------------------------------------------
   BLOG STYLES
   ----------------------------------------------------------------------------- */

.blog-header {
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
  color: white;
  padding: 140px 0 var(--space-4xl);
  text-align: center;
}

.blog-title {
  font-size: var(--font-size-5xl);
  font-weight: 800;
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-subtitle {
  font-size: var(--font-size-xl);
  color: var(--gray-300);
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.6;
}

.blog-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-2xl);
  font-size: 0.9rem;
  color: var(--gray-400);
}

.blog-nav {
  background: white;
  border-bottom: 1px solid var(--gray-200);
  padding: 15px 0;
  position: sticky;
  top: 70px;
  z-index: 100;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
}

.category-nav {
  display: flex;
  list-style: none;
  gap: var(--space-2xl);
  margin: 0;
  padding: 0;
}

.category-nav a {
  color: var(--gray-600);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-base);
  padding: var(--space-xs) 0;
  border-bottom: 2px solid transparent;
}

.category-nav a:hover,
.category-nav a.active {
  color: var(--primary-600);
  border-bottom-color: var(--primary-600);
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: var(--space-xs) var(--space-sm);
  min-width: 280px;
}

.search-input {
  border: none;
  background: none;
  outline: none;
  flex: 1;
  font-size: 0.9rem;
  color: var(--gray-800);
}

.search-input::placeholder {
  color: var(--gray-500);
}

.search-button {
  background: none;
  border: none;
  color: var(--gray-500);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color var(--transition-base);
}

.search-button:hover {
  color: var(--primary-600);
}

.main-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-4xl);
  padding: var(--space-4xl) 0;
}

.content-area {
  min-width: 0;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-2xl);
  padding-bottom: 15px;
  border-bottom: 2px solid var(--gray-100);
}

/* Featured Post */
.featured-section {
  margin-bottom: var(--space-4xl);
}

.featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.featured-post:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.featured-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.featured-content {
  padding: var(--space-3xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: 15px;
  font-size: 0.85rem;
  color: var(--gray-500);
}

.featured-meta a {
  color: var(--primary-600);
  text-decoration: none;
  font-weight: 500;
}

.featured-title {
  margin-bottom: 15px;
}

.featured-title a {
  color: var(--gray-900);
  text-decoration: none;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  line-height: 1.3;
  transition: color var(--transition-base);
}

.featured-title a:hover {
  color: var(--primary-600);
}

.featured-excerpt {
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.read-more {
  color: var(--primary-600);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.95rem;
  transition: color var(--transition-base);
}

.read-more:hover {
  color: var(--primary-700);
}

/* Posts Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-4xl);
}

.post-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.post-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-content {
  padding: 25px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--gray-500);
}

.category-tag {
  background: var(--primary-100);
  color: var(--primary-700);
  padding: 3px var(--space-xs);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--font-size-xs);
}

.post-title {
  margin-bottom: var(--space-sm);
}

.post-title a {
  color: var(--gray-900);
  text-decoration: none;
  font-size: var(--font-size-lg);
  font-weight: 600;
  line-height: 1.4;
  transition: color var(--transition-base);
}

.post-title a:hover {
  color: var(--primary-600);
}

.post-excerpt {
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.tag {
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 2px var(--space-xs);
  border-radius: 4px;
  text-decoration: none;
  font-size: var(--font-size-xs);
  transition: background var(--transition-base);
}

.tag:hover {
  background: var(--gray-200);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-3xl);
}

.pagination a,
.pagination span {
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--gray-700);
  font-weight: 500;
  transition: all var(--transition-base);
}

.pagination a:hover {
  background: var(--primary-600);
  color: white;
  border-color: var(--primary-600);
}

.pagination .current {
  background: var(--primary-600);
  color: white;
  border-color: var(--primary-600);
}

/* Sidebar */
.sidebar {
  background: var(--gray-50);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  height: fit-content;
  position: sticky;
  top: 140px;
}

.sidebar-section {
  margin-bottom: var(--space-3xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--gray-200);
}

.sidebar-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.sidebar-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-lg);
}

/* Newsletter Form */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.newsletter-input {
  padding: var(--space-sm);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-base);
}

.newsletter-input:focus {
  border-color: var(--primary-600);
}

.newsletter-button {
  background: var(--primary-600);
  color: white;
  border: none;
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-base);
}

.newsletter-button:hover {
  background: var(--primary-700);
}

/* Category List */
.category-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.category-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xs) 0;
}

.category-link {
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-base);
}

.category-link:hover {
  color: var(--primary-600);
}

.post-count {
  background: var(--gray-200);
  color: var(--gray-600);
  padding: 2px var(--space-xs);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-sm);
  font-weight: 600;
}

/* Popular Posts */
.popular-posts {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.popular-post {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.popular-post-title a {
  color: var(--gray-800);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
  transition: color var(--transition-base);
}

.popular-post-title a:hover {
  color: var(--primary-600);
}

.popular-post-date {
  color: var(--gray-500);
  font-size: var(--font-size-sm);
  margin-top: 4px;
}

/* -----------------------------------------------------------------------------
   LEGAL PAGE STYLES
   ----------------------------------------------------------------------------- */

.legal-page-header {
  background: var(--gray-900);
  padding: var(--space-lg) 0;
}

.simple-logo img {
  height: 32px;
  width: auto;
}

.legal-page {
  background: var(--gray-50);
  padding: var(--space-4xl) 0;
  min-height: 80vh;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: var(--space-4xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.legal-header {
  margin-bottom: 50px;
  padding-bottom: var(--space-2xl);
  border-bottom: 2px solid var(--gray-100);
}

.legal-header h1 {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 15px;
  line-height: 1.2;
}

.legal-updated {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.legal-intro {
  font-size: var(--font-size-lg);
  color: var(--gray-700);
  line-height: 1.6;
  margin: 0;
}

.toc {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

.toc h2 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: var(--space-lg);
}

.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc li {
  margin-bottom: var(--space-xs);
}

.toc a {
  color: var(--primary-600);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.4;
}

.toc a:hover {
  text-decoration: underline;
  color: var(--primary-700);
}

.legal-sections section {
  margin-bottom: 50px;
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--gray-100);
}

.legal-sections section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.legal-sections h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-lg);
  scroll-margin-top: 100px;
}

.legal-sections h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 15px;
  margin-top: var(--space-2xl);
}

.legal-sections p {
  font-size: var(--font-size-base);
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.legal-sections ul {
  margin-bottom: var(--space-lg);
  padding-left: 0;
  list-style: none;
}

.legal-sections li {
  position: relative;
  padding-left: 25px;
  margin-bottom: var(--space-sm);
  color: var(--gray-700);
  line-height: 1.6;
}

.legal-sections li::before {
  content: "•";
  color: var(--primary-600);
  font-weight: bold;
  position: absolute;
  left: var(--space-xs);
}

.legal-sections strong {
  color: var(--gray-800);
  font-weight: 600;
}

.legal-sections a {
  color: var(--primary-600);
  text-decoration: underline;
}

.legal-sections a:hover {
  color: var(--primary-700);
}

.contact-info {
  background: var(--gray-50);
  border-left: 4px solid var(--primary-600);
  padding: 25px;
  margin-top: var(--space-lg);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.contact-info p {
  margin-bottom: var(--space-sm);
}

.contact-info p:last-child {
  margin-bottom: 0;
}

.legal-footer {
  margin-top: 50px;
  padding-top: var(--space-2xl);
  border-top: 2px solid var(--gray-100);
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* -----------------------------------------------------------------------------
   COOKIE NOTICE & MODAL STYLES
   ----------------------------------------------------------------------------- */

.privacy-banner {
  display: block;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  color: white;
  padding: var(--space-xl) var(--space-lg);
  z-index: 10000;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(100%);
  transition: transform var(--transition-base);
  min-height: 125px;
}

.privacy-banner.visible {
  transform: translateY(0);
}

.privacy-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2xl);
  min-height: 80px;
}

.privacy-banner-text {
  flex: 1;
  min-width: 0;
}

.cookie-title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: white;
  line-height: 1.3;
}

.cookie-description {
  font-size: 0.95rem;
  color: var(--gray-300);
  margin: 0;
  line-height: 1.5;
}

.cookie-link {
  color: var(--primary-400);
  text-decoration: underline;
}

.cookie-link:hover {
  color: var(--primary-300);
}

.privacy-banner-actions {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
  align-items: center;
}

.cookie-btn {
  padding: 12px var(--space-lg);
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  white-space: nowrap;
  line-height: 1.4;
}

.cookie-btn-primary {
  background: var(--primary-600);
  color: white;
}

.cookie-btn-primary:hover {
  background: var(--primary-700);
}

.cookie-btn-secondary {
  background: transparent;
  color: var(--gray-300);
  border: 1px solid var(--gray-600);
}

.cookie-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.cookie-btn-link {
  background: transparent;
  color: var(--primary-400);
  text-decoration: underline;
}

.cookie-btn-link:hover {
  color: var(--primary-300);
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.cookie-modal.visible {
  opacity: 1;
  visibility: visible;
}

.cookie-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.cookie-modal-container {
  position: relative;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform var(--transition-base);
}

.cookie-modal.visible .cookie-modal-container {
  transform: scale(1);
}

.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xl) var(--space-xl) var(--space-md);
  border-bottom: 1px solid var(--gray-200);
}

.cookie-modal-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--gray-800);
  margin: 0;
}

.cookie-modal-close {
  background: none;
  border: none;
  font-size: var(--font-size-2xl);
  color: var(--gray-400);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all var(--transition-base);
}

.cookie-modal-close:hover {
  background: var(--gray-100);
  color: var(--gray-600);
}

.cookie-modal-content {
  padding: var(--space-xl);
}

.cookie-modal-description {
  color: var(--gray-600);
  margin-bottom: var(--space-xl);
  font-size: var(--font-size-base);
  line-height: 1.6;
}

.cookie-categories {
  margin-bottom: var(--space-2xl);
}

.cookie-category {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
}

.cookie-category:last-child {
  margin-bottom: 0;
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.cookie-category-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--gray-800);
  margin: 0;
}

.cookie-category-description {
  color: var(--gray-600);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* Toggle Switch */
.cookie-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

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

.cookie-toggle-slider {
  position: relative;
  width: 44px;
  height: 24px;
  background-color: var(--gray-300);
  border-radius: 24px;
  transition: var(--transition-base);
}

.cookie-toggle-slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: var(--transition-base);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked+.cookie-toggle-slider {
  background-color: var(--primary-600);
}

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

.cookie-toggle-disabled .cookie-toggle-label {
  color: var(--gray-500);
  font-size: 0.9rem;
  font-weight: 500;
}

.cookie-modal-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* -----------------------------------------------------------------------------
   MODAL & FORM STYLES
   ----------------------------------------------------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.modal-container {
  position: relative;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform var(--transition-base);
}

.chat-embed-container {
  width: 100%;
  min-height: 500px;
  height: 60vh;
  max-height: 700px;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
}

.chat-embed-container flow-chat {
  flex: 1;
  display: block;
  width: 100%;
  height: 100%;
}

.modal-content:has(.chat-embed-container) .modal-form {
  padding: 0;
}

.modal-content:has(.chat-embed-container) .modal-header {
  padding-bottom: 1rem;
}

.modal.active .modal-container {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2xl) var(--space-2xl) var(--space-lg);
  border-bottom: 1px solid var(--gray-200);
}

.modal-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gray-800);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: var(--font-size-3xl);
  color: var(--gray-400);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.modal-close:hover {
  background: var(--gray-100);
  color: var(--gray-600);
}

.modal-content {
  padding: var(--space-2xl);
}

/* Form Styles */
/* =============================================================================
   REFACTORED MODAL SYSTEM - Replace the existing modal CSS with this
   ============================================================================= */

/* Rename existing .sales-form to .universal-form */
.universal-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* Add select field styling for the universal form */
.universal-form select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Enhanced error styling */
.universal-form .form-group.error input,
.universal-form .form-group.error select,
.universal-form .form-group.error textarea {
  border-color: var(--error-600);
  background-color: rgba(220, 38, 38, 0.05);
}

.universal-form .error-message {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.universal-form .error-message::before {
  content: "⚠";
  color: var(--error-600);
  font-size: var(--font-size-sm);
}

/* Keep the existing contact section styles as they are useful */
.contact-info-section {
  background: var(--gray-50);
  position: relative;
  overflow: hidden;
}

.contact-info-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-3xl);
  margin-top: var(--space-4xl);
  position: relative;
  z-index: 2;
}

.contact-option {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.contact-option:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-200);
}

.contact-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-600), var(--secondary-600));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.contact-option:hover::before {
  opacity: 1;
}

.contact-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-100), var(--primary-50));
  border: 2px solid var(--primary-200);
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-3xl);
  margin: 0 auto var(--space-xl);
  transition: all var(--transition-base);
}

.contact-option:hover .contact-icon {
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  border-color: var(--primary-600);
  transform: scale(1.1);
}

.contact-option h3 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--gray-800);
}

.contact-option p {
  color: var(--gray-600);
  margin-bottom: var(--space-xl);
  font-size: var(--font-size-base);
  line-height: 1.6;
}

.contact-option .btn-primary {
  width: 100%;
  max-width: 200px;
}

.alternative-contact {
  text-align: center;
  margin-top: var(--space-4xl);
  padding: var(--space-2xl);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  position: relative;
  z-index: 2;
}

.alternative-contact p {
  margin: 0;
  font-size: var(--font-size-lg);
  color: var(--gray-700);
}

.alternative-contact a {
  color: var(--primary-600);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-base);
}

.alternative-contact a:hover {
  color: var(--primary-700);
  text-decoration: underline;
}

/* Mobile responsiveness for contact section */
@media (max-width: 768px) {
  .contact-options {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    margin-top: var(--space-3xl);
  }

  .contact-option {
    padding: var(--space-2xl);
  }

  .contact-icon {
    width: 60px;
    height: 60px;
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-lg);
  }

  .contact-option h3 {
    font-size: var(--font-size-xl);
  }

  .contact-option .btn-primary {
    max-width: none;
  }

  .alternative-contact {
    margin-top: var(--space-3xl);
    padding: var(--space-lg);
  }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-group label {
  font-weight: 600;
  color: var(--gray-700);
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: var(--space-sm) var(--space-md);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  transition: all var(--transition-base);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-600);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.error-message {
  color: var(--error-600);
  font-size: var(--font-size-sm);
  font-weight: 500;
  display: none;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: var(--error-600);
}

.form-group.error .error-message {
  display: block;
}

.form-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 10px;
}

.btn-spinner {
  animation: spin 1s linear infinite;
}

/* Success Message */
.success-message {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
}

.success-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--success-500), #059669);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  color: white;
  font-size: var(--font-size-3xl);
  font-weight: bold;
}

.success-message h3 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 10px;
}

.success-message p {
  color: var(--gray-600);
  margin-bottom: var(--space-2xl);
  font-size: var(--font-size-lg);
}

/* -----------------------------------------------------------------------------
   PROTECTED CONTACT DETAILS
   ----------------------------------------------------------------------------- */

/* Turnstile and Protected Contact Styles */
.turnstile-wrapper {
  display: flex;
  justify-content: center;
  margin: 24px 0;
}

.form-section-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 32px 0 24px;
  color: #6b7280;
  font-size: 14px;
}

.form-section-divider::before,
.form-section-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e5e7eb;
}

.form-section-divider span {
  padding: 0 16px;
}

.protected-contact-info {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 2px solid #10b981;
  border-radius: 12px;
  padding: 20px;
  margin-top: 16px;
}

.contact-reveal {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-reveal svg {
  color: #10b981;
  flex-shrink: 0;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-label {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

.contact-number {
  font-size: 18px;
  font-weight: 600;
  color: #065f46;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-number:hover {
  color: #10b981;
}

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

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

/* -----------------------------------------------------------------------------
   RESPONSIVE DESIGN
   ----------------------------------------------------------------------------- */

@media (max-width: 1200px) {
  .pricing-grid {
    max-width: 900px;
  }

  .horizontal-plans {
    max-width: 900px;
  }
}

@media (max-width: 1024px) {
  .main-content {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
  }

  .featured-post {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .featured-image {
    height: 250px;
  }
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    gap: var(--space-2xl);
  }

  .pricing-card.popular {
    transform: none;
  }

  .pricing-card.popular:hover {
    transform: translateY(-5px);
  }

  .horizontal-plan {
    flex-direction: column;
    text-align: center;
    gap: var(--space-2xl);
  }

  .horizontal-plan-left {
    flex: none;
  }
}

@media (max-width: 768px) {
  :root {
    --space-lg: 16px;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .header-actions {
    display: none;
  }

  nav {
    display: none;
  }

  nav.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  nav ul {
    flex-direction: column;
    padding: var(--space-lg);
    gap: 10px;
  }

  .mobile-auth-links {
    display: block !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    margin-top: 10px;
  }

  .mobile-auth-links:first-of-type {
    border-top: none;
    padding-top: 5px;
  }

  .header-content {
    position: relative;
  }

  /* Hero Mobile */
  .hero {
    min-height: 70vh;
    padding: 100px 0 var(--space-4xl);
  }

  .hero h1 {
    font-size: var(--font-size-4xl);
  }

  .hero-subtitle {
    font-size: var(--font-size-xl);
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .trust-indicators {
    flex-direction: column;
    gap: 15px;
  }

  .hero-media {
    margin-top: var(--space-3xl);
  }

  .hero-visual,
  .hero-video {
    height: 250px;
  }

  .workflow-lines {
    display: none;
  }

  .section-title {
    font-size: var(--font-size-3xl);
  }

  /* Value Props Mobile */
  .value-prop-card {
    flex-direction: column !important;
    min-height: auto;
    text-align: center;
  }

  .value-prop-content {
    padding: var(--space-4xl);
  }

  .value-prop-title {
    font-size: var(--font-size-2xl);
  }

  /* Integrations Mobile */
  .carousel-track {
    gap: var(--space-lg);
  }

  .integration-logo {
    width: 100px;
    height: 70px;
  }

  .integration-logo img {
    max-width: 70px;
    max-height: 40px;
  }

  .logo-placeholder {
    font-size: var(--font-size-xs);
    padding: var(--space-xs);
  }

  /* Features Mobile */
  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-top: var(--space-4xl);
  }

  .feature-card {
    padding: var(--space-2xl);
  }

  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-lg);
  }

  .feature-title {
    font-size: 1.3rem;
  }

  .features-particles {
    display: none;
  }

  /* Pricing Mobile */
  .horizontal-plan {
    padding: var(--space-2xl) 25px;
    gap: 25px;
  }

  .horizontal-plan-left h3 {
    font-size: 1.7rem;
  }

  .horizontal-plan-left .price {
    font-size: 1.5rem;
  }

  .horizontal-plan-right {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  /* Security Mobile */
  .security-content {
    flex-direction: column;
    gap: 50px;
    text-align: center;
  }

  .security-left .section-title {
    text-align: center;
    font-size: var(--font-size-3xl);
  }

  .security-left .section-subtitle {
    text-align: center;
  }

  .security-cta {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .security-cta a {
    width: 100%;
    text-align: center;
    max-width: 280px;
  }

  .security-badges {
    justify-content: center;
  }

  .security-badge {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  /* Footer Mobile */
  footer {
    padding: var(--space-4xl) 0 var(--space-2xl);
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }

  .footer-left {
    max-width: none;
  }

  .footer-right {
    justify-content: center;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3xl);
    max-width: 400px;
  }

  .footer-social {
    justify-content: center;
  }

  /* Blog Mobile */
  .blog-header {
    padding: 120px 0 var(--space-3xl);
  }

  .blog-title {
    font-size: var(--font-size-3xl);
  }

  .blog-stats {
    flex-direction: column;
    gap: 10px;
  }

  .nav-content {
    flex-direction: column;
    gap: 15px;
  }

  .category-nav {
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
  }

  .search-box {
    min-width: 100%;
  }

  .main-content {
    padding: var(--space-3xl) 0;
  }

  .posts-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .sidebar {
    padding: var(--space-lg);
  }

  .pagination {
    flex-wrap: wrap;
  }

  /* Legal Mobile */
  .legal-content {
    padding: var(--space-3xl) var(--space-2xl);
    margin: 0 var(--space-lg);
  }

  .legal-header h1 {
    font-size: var(--font-size-3xl);
  }

  .legal-sections h2 {
    font-size: 1.4rem;
  }

  .legal-sections h3 {
    font-size: var(--font-size-xl);
  }

  .toc {
    padding: var(--space-lg);
  }

  /* Cookie & Modal Mobile */
  .privacy-banner-content {
    flex-direction: column;
    gap: var(--space-lg);
    text-align: center;
  }

  .privacy-banner-actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .cookie-btn {
    flex: 1;
    min-width: 120px;
  }

  .cookie-modal-container {
    width: 95%;
    margin: var(--space-lg);
  }

  .cookie-modal-actions {
    flex-direction: column;
  }

  .cookie-modal-actions .cookie-btn {
    width: 100%;
  }

  .cookie-category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  /* Form Mobile */
  .modal-container {
    width: 95%;
    margin: var(--space-lg);
  }

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

  .modal-header,
  .modal-content {
    padding: var(--space-lg);
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .footer-links {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    text-align: left;
  }

  .legal-content {
    padding: var(--space-2xl) var(--space-lg);
    margin: 0 10px;
  }

  .legal-header h1 {
    font-size: 1.8rem;
  }
}

/* -----------------------------------------------------------------------------
   UTILITY CLASSES & ACCESSIBILITY
   ----------------------------------------------------------------------------- */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus {
  outline: 2px solid var(--primary-600);
  outline-offset: 2px;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Screen reader only content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}