/* Marketing page styles with Linear-inspired dark theme */

/* Import Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Color palette (Linear-inspired) */
:root {
  --bg-primary: #0d0d0d;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #2a2a2a;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-tertiary: #6b7280;
  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;
  --border-color: #2a2a2a;
  --glassmorphism-bg: rgba(255, 255, 255, 0.05);
  --glassmorphism-border: rgba(255, 255, 255, 0.1);
  
  /* Enhanced glass variables */
  --glass-bg-light: rgba(255, 255, 255, 0.08);
  --glass-bg-medium: rgba(255, 255, 255, 0.12);
  --glass-bg-heavy: rgba(255, 255, 255, 0.18);
  --glass-border-light: rgba(255, 255, 255, 0.15);
  --glass-border-medium: rgba(255, 255, 255, 0.25);
  --glass-border-heavy: rgba(255, 255, 255, 0.35);
  --glass-shadow-light: 0 8px 32px rgba(0, 0, 0, 0.3);
  --glass-shadow-medium: 0 12px 48px rgba(0, 0, 0, 0.4);
  --glass-shadow-heavy: 0 20px 80px rgba(0, 0, 0, 0.5);
  --glass-blur-light: 24px;
  --glass-blur-medium: 32px;
  --glass-blur-heavy: 48px;
}

/* Typography */
.font-inter {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

/* Enhanced layered glass background */
body {
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 10%, rgba(139, 92, 246, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(6, 182, 212, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 50% 70%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(6, 182, 212, 0.1) 0%, transparent 40%),
    linear-gradient(180deg, 
      rgba(139, 92, 246, 0.03) 0%, 
      transparent 20%,
      transparent 80%,
      rgba(6, 182, 212, 0.03) 100%);
  pointer-events: none;
  z-index: 0;
  animation: backgroundShift 30s ease-in-out infinite;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.15) 1px, transparent 0);
  background-size: 20px 20px;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: overlay;
}

@keyframes backgroundShift {
  0%, 100% {
    filter: hue-rotate(0deg);
  }
  50% {
    filter: hue-rotate(30deg);
  }
}

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

.gradient-text-accent {
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* General section title styling */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
  text-align: center;
  margin-bottom: 1rem;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}

/* General section subtitle styling */
.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary, #a0a0a0);
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.6;
}

/* Analytics cards styling */
.analytics-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.analytics-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.08) 0%, 
    rgba(6, 182, 212, 0.04) 100%
  );
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 12px;
  pointer-events: none;
}

.analytics-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.1),
    0 20px 40px rgba(0, 0, 0, 0.25),
    0 8px 32px rgba(139, 92, 246, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-color: rgba(139, 92, 246, 0.4);
}

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

.analytics-card:hover .w-12 {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

/* Audience cards styling */
.audience-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.audience-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.08) 0%, 
    rgba(6, 182, 212, 0.04) 100%
  );
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 12px;
  pointer-events: none;
}

.audience-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.1),
    0 20px 40px rgba(0, 0, 0, 0.25),
    0 8px 32px rgba(139, 92, 246, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-color: rgba(139, 92, 246, 0.4);
}

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

.audience-card:hover .w-12 {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

/* Glassmorphism effects */
.glass-card {
  background: var(--glassmorphism-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glassmorphism-border);
  border-radius: 12px;
  box-shadow: 
    0 4px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Enhanced glass utilities */
.glass-light {
  background: var(--glass-bg-light);
  backdrop-filter: blur(var(--glass-blur-light));
  -webkit-backdrop-filter: blur(var(--glass-blur-light));
  border: 1px solid var(--glass-border-light);
  box-shadow: 
    var(--glass-shadow-light),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.glass-medium {
  background: 
    linear-gradient(135deg, 
      var(--glass-bg-medium) 0%, 
      var(--glass-bg-light) 50%,
      rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(var(--glass-blur-medium));
  -webkit-backdrop-filter: blur(var(--glass-blur-medium));
  border: 1px solid var(--glass-border-medium);
  box-shadow: 
    var(--glass-shadow-medium),
    inset 0 2px 0 rgba(255, 255, 255, 0.15),
    inset 0 -2px 0 rgba(0, 0, 0, 0.15);
  position: relative;
}

.glass-medium::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.2) 0%, 
    transparent 50%,
    rgba(255, 255, 255, 0.05) 100%);
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.5;
}

.glass-heavy {
  background: 
    linear-gradient(135deg, 
      var(--glass-bg-heavy) 0%, 
      var(--glass-bg-medium) 50%,
      var(--glass-bg-light) 100%);
  backdrop-filter: blur(var(--glass-blur-heavy));
  -webkit-backdrop-filter: blur(var(--glass-blur-heavy));
  border: 1px solid var(--glass-border-heavy);
  box-shadow: 
    var(--glass-shadow-heavy),
    inset 0 4px 0 rgba(255, 255, 255, 0.2),
    inset 0 -4px 0 rgba(0, 0, 0, 0.2),
    0 0 80px rgba(139, 92, 246, 0.1);
  position: relative;
  overflow: hidden;
}

/* Glass shine effect */
.glass-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  transform: rotate(45deg) translateY(100%);
  transition: transform 0.6s ease-out;
  pointer-events: none;
}

.glass-shine:hover::after {
  transform: rotate(45deg) translateY(-100%);
}

/* Frosted glass effect */
.glass-frosted {
  background: 
    radial-gradient(
      circle at 50% 0%,
      rgba(255, 255, 255, 0.15) 0%,
      rgba(255, 255, 255, 0.05) 50%,
      transparent 100%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(255, 255, 255, 0.02) 100%
    );
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  position: relative;
}

.glass-frosted::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.03) 2px,
      rgba(255, 255, 255, 0.03) 4px
    );
  border-radius: inherit;
  pointer-events: none;
}

/* Glass morphism borders */
.glass-border-glow {
  position: relative;
}

.glass-border-glow::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, 
    var(--accent-purple) 0%, 
    var(--accent-cyan) 50%,
    var(--accent-purple) 100%);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease-out;
  z-index: -1;
  filter: blur(8px);
}

.glass-border-glow:hover::before {
  opacity: 0.5;
}

/* Chromatic aberration effect */
.glass-chromatic {
  position: relative;
}

.glass-chromatic::before,
.glass-chromatic::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.glass-chromatic::before {
  filter: blur(0.02em);
  transform: translateX(-0.02em);
  color: rgba(255, 0, 0, 0.5);
}

.glass-chromatic::after {
  filter: blur(0.02em);
  transform: translateX(0.02em);
  color: rgba(0, 255, 255, 0.5);
}

/* Button styles */
.btn-primary {
  background: 
    linear-gradient(135deg, 
      rgba(139, 92, 246, 0.9) 0%, 
      rgba(6, 182, 212, 0.9) 100%),
    linear-gradient(135deg, 
      rgba(255, 255, 255, 0.2) 0%, 
      transparent 50%);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 
    0 4px 24px rgba(139, 92, 246, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  transition: left 0.5s ease-out;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 8px 32px rgba(139, 92, 246, 0.4),
    0 4px 16px rgba(6, 182, 212, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.4),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:active {
  transform: translateY(0) scale(1);
  box-shadow: 
    0 2px 8px rgba(139, 92, 246, 0.3),
    inset 0 1px 0 rgba(0, 0, 0, 0.1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.2);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-ghost::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(
      circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    );
  opacity: 0;
  transition: opacity 0.3s ease-out;
  pointer-events: none;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover::before {
  opacity: 1;
}

/* Hero section animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Float animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

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

// Card hover effects
.feature-card {
  transition: all 0.3s ease-out;
  
  &:hover {
    transform: translateY(-4px);
    box-shadow: 
      0 12px 48px rgba(0, 0, 0, 0.6),
      inset 0 1px 0 rgba(255, 255, 255, 0.15);
  }
}


/* Pulse animation for Clevra comparison */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 
      0 4px 24px rgba(0, 0, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      0 0 20px rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow: 
      0 4px 24px rgba(0, 0, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      0 0 40px rgba(139, 92, 246, 0.6),
      0 0 60px rgba(6, 182, 212, 0.3);
    border-color: rgba(139, 92, 246, 0.6);
    transform: scale(1.02);
  }
}

.comparison-visual .after {
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40%, 43% {
    transform: translateX(-50%) translateY(-10px);
  }
  70% {
    transform: translateX(-50%) translateY(-5px);
  }
  90% {
    transform: translateX(-50%) translateY(-2px);
  }
}

// Gradient mesh background
.gradient-mesh {
  background: 
    radial-gradient(ellipse at top left, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at top right, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
}

// Utility classes for spacing (8px grid)
.space-y-8 > * + * {
  margin-top: 2rem;
}

.space-y-16 > * + * {
  margin-top: 4rem;
}

.space-y-24 > * + * {
  margin-top: 6rem;
}

// Responsive breakpoints
@media (max-width: 768px) {
  .btn-primary,
  .btn-ghost {
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
    min-height: 44px; // Touch-friendly
  }
}

/* Floating Glass Panels - Removed */

// Accessibility improvements
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
}

/* Performance optimizations */
.glass-light,
.glass-medium,
.glass-heavy,
.glass-frosted,
.feature-card,
.pricing-card,
.editor-mockup {
  transform: translateZ(0);
  will-change: transform, opacity;
  contain: layout style paint;
}

/* Reduce backdrop-filter on low-end devices */
@media (max-width: 768px) {
  .glass-light,
  .glass-medium,
  .glass-heavy {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
}

/* GPU acceleration hints */
.btn-primary,
.btn-ghost,
.feature-card:hover,
.pricing-card:hover {
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px;
}

// Focus styles
:focus-visible {
  outline: 2px solid var(--accent-purple);
  outline-offset: 2px;
  border-radius: 4px;
}

// Selection styles
::selection {
  background: rgba(139, 92, 246, 0.3);
  color: white;
}

::-moz-selection {
  background: rgba(139, 92, 246, 0.3);
  color: white;
}

/* AI Image Generation Section Enhancements */
.image-gen-mockup {
  position: relative;
  overflow: hidden;
}

.image-gen-mockup::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
  animation: rotate-glow 20s linear infinite;
}

@keyframes rotate-glow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Enhanced AI suggestion box */
.ai-suggestion-enhanced {
  position: relative;
  overflow: hidden;
  animation: subtle-glow 2s ease-in-out infinite;
}

@keyframes subtle-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.2); }
  50% { box-shadow: 0 0 30px rgba(139, 92, 246, 0.4); }
}

/* Animated gradient cards */
.gradient-card-animated {
  position: relative;
  background: linear-gradient(135deg, var(--glassmorphism-bg), var(--glass-bg-light));
  overflow: hidden;
}

.gradient-card-animated::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(139, 92, 246, 0.1) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Icon pulse animation */
.icon-pulse {
  animation: icon-pulse 2s ease-in-out infinite;
}

@keyframes icon-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Typing effect for demo */
.typing-effect {
  overflow: hidden;
  white-space: nowrap;
  animation: typing 3s steps(50, end);
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

/* Image placeholder animation */
.image-placeholder-animated {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.1) 0%,
    rgba(6, 182, 212, 0.1) 50%,
    rgba(139, 92, 246, 0.1) 100%
  );
  background-size: 200% 200%;
  animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Hero Visual Container */
.hero-visual {
  width: 100%;
}

/* Hero Chat Demo Styles */
.hero-chat-demo {
  width: 100%;
  height: 500px;
  position: relative;
}

.chat-demo-wrapper {
  height: 100%;
  width: 100%;
  background: rgba(26, 26, 26, 0.4);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}

/* Chat Interface */
.chat-interface {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background: rgba(15, 15, 15, 0.6);
}

.chat-header {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.chat-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.restart-button {
  padding: 0.25rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.restart-button:hover {
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.1);
}

.restart-button svg {
  width: 16px;
  height: 16px;
}

.chat-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
}

.chat-context {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'SF Mono', monospace;
}

.chat-history {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Chat Messages */
.chat-message {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.chat-message.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.chat-message.user .message-content {
  display: flex;
  justify-content: flex-end;
}

.chat-message.user .message-text {
  background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 12px 12px 0 12px;
  max-width: 80%;
  font-size: 0.875rem;
}

.chat-message.ai .message-content {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.ai-icon {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
}

.chat-message.ai .message-text {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1rem;
  border-radius: 0 12px 12px 12px;
  max-width: 80%;
  font-size: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-message.ai.final .message-text {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

/* Typing Animation */
.typing-dots {
  display: flex;
  gap: 4px;
  padding: 0.5rem 1rem;
}

.typing-dots span {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: typing-dot 1.4s infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing-dot {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.3;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

/* Chat Input */
.chat-input-container {
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.typing-indicator {
  position: absolute;
  bottom: 100%;
  left: 1rem;
  right: 1rem;
  margin-bottom: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.typing-indicator.hidden {
  display: none;
}

.cursor {
  animation: blink 1s infinite;
  color: #8b5cf6;
  font-weight: normal;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.chat-input-wrapper {
  position: relative;
}

.chat-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
  cursor: text;
}


/* Responsive Design for Chat Demo */
@media (max-width: 640px) {
  .hero-chat-demo {
    height: 400px;
  }
  
  .chat-message.user .message-text,
  .chat-message.ai .message-text {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }
  
  .chat-header {
    padding: 0.75rem;
  }
  
  .chat-history {
    padding: 0.75rem;
  }
}

/* Mobile Hero Section Layout */
@media (max-width: 1023px) {
  .hero-section .grid {
    display: flex;
    flex-direction: column-reverse;
  }
  
  .hero-visual {
    order: -1;
    margin-bottom: 2rem;
  }
  
  .hero-content {
    order: 1;
  }
  
  .hero-chat-demo {
    margin-top: -15rem;
  }
}

/* Use Case Showcase Section */
.use-case-showcase-bg {
  background: linear-gradient(135deg, 
    rgb(17, 17, 17) 0%, 
    rgb(27, 27, 27) 50%, 
    rgb(15, 15, 15) 100%
  );
  position: relative;
}

.use-case-showcase-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* Glass Card for Use Case Showcase */
.use-case-showcase-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 12px 48px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.use-case-showcase-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 
    0 24px 80px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(139, 92, 246, 0.15),
    0 0 0 1px rgba(139, 92, 246, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(139, 92, 246, 0.4);
}

/* Floating Sparkles Animation */
.sparkles-container {
  position: relative;
  height: 80px;
  width: 100%;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: linear-gradient(45deg, #8b5cf6, #06b6d4);
  border-radius: 50%;
  opacity: 0;
  animation: sparkle-float 4s ease-in-out infinite;
}

.sparkle::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.8) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(2px);
}

.sparkle-1 {
  top: 20%;
  left: 15%;
  animation-delay: 0s;
  animation-duration: 3.5s;
}

.sparkle-2 {
  top: 40%;
  left: 80%;
  animation-delay: 0.7s;
  animation-duration: 4.2s;
}

.sparkle-3 {
  top: 10%;
  left: 60%;
  animation-delay: 1.2s;
  animation-duration: 3.8s;
}

.sparkle-4 {
  top: 60%;
  left: 25%;
  animation-delay: 2s;
  animation-duration: 4s;
}

.sparkle-5 {
  top: 30%;
  left: 40%;
  animation-delay: 2.8s;
  animation-duration: 3.6s;
}

.sparkle-6 {
  top: 50%;
  left: 70%;
  animation-delay: 3.5s;
  animation-duration: 4.1s;
}

@keyframes sparkle-float {
  0%, 100% {
    opacity: 0;
    transform: translateY(0px) scale(0);
  }
  
  10% {
    opacity: 1;
    transform: translateY(-10px) scale(1);
  }
  
  20% {
    opacity: 0.8;
    transform: translateY(-20px) scale(1.2);
  }
  
  30% {
    opacity: 0.6;
    transform: translateY(-15px) scale(0.8);
  }
  
  40% {
    opacity: 0.9;
    transform: translateY(-25px) scale(1.1);
  }
  
  60% {
    opacity: 0.4;
    transform: translateY(-30px) scale(0.6);
  }
  
  80% {
    opacity: 0.2;
    transform: translateY(-40px) scale(0.4);
  }
}

/* Animated Background Orbs */
.gradient-orb-1 {
  position: absolute;
  top: 20%;
  left: 15%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  animation: float-orb-1 8s ease-in-out infinite;
}

.gradient-orb-2 {
  position: absolute;
  bottom: 20%;
  right: 15%;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(50px);
  animation: float-orb-2 10s ease-in-out infinite;
}

@keyframes float-orb-1 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }
  33% {
    transform: translate(-20px, -30px) scale(1.1);
    opacity: 0.8;
  }
  66% {
    transform: translate(20px, -10px) scale(0.9);
    opacity: 0.7;
  }
}

@keyframes float-orb-2 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-30px, 20px) scale(1.2);
    opacity: 0.7;
  }
}

/* Modern Use Case Showcase Section */
.modern-showcase-section {
  display: none;
  background: 
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 60% 80% at 0% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 80% at 100% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
  position: relative;
}

.modern-gradient-mesh {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 25% 25%, rgba(139, 92, 246, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(6, 182, 212, 0.03) 0%, transparent 50%),
    conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(139, 92, 246, 0.02) 60deg, transparent 120deg);
  animation: gradient-pulse 8s ease-in-out infinite;
}

@keyframes gradient-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Floating Dots */
.floating-dots {
  position: absolute;
  inset: 0;
}

.dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.6), rgba(6, 182, 212, 0.4));
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
  animation: float-dot 6s ease-in-out infinite;
}

.dot-1 {
  top: 20%;
  left: 15%;
  animation-delay: 0s;
  animation-duration: 8s;
}

.dot-2 {
  top: 30%;
  right: 20%;
  animation-delay: 2s;
  animation-duration: 7s;
}

.dot-3 {
  bottom: 25%;
  left: 25%;
  animation-delay: 4s;
  animation-duration: 9s;
}

.dot-4 {
  bottom: 40%;
  right: 15%;
  animation-delay: 6s;
  animation-duration: 6s;
}

@keyframes float-dot {
  0%, 100% {
    transform: translateY(0px) translateX(0px);
    opacity: 0.6;
  }
  33% {
    transform: translateY(-20px) translateX(10px);
    opacity: 1;
  }
  66% {
    transform: translateY(10px) translateX(-15px);
    opacity: 0.8;
  }
}

/* Modern Typography */
.modern-text-container {
  max-width: 800px;
  margin: 0 auto;
}

.headline-wrapper {
  margin-bottom: 2rem;
}

.modern-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.headline-light {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
}

.headline-accent {
  color: #ffffff;
  font-weight: 600;
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.headline-accent::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  border-radius: 1px;
}

/* Rotating Showcase */
.rotating-showcase {
  position: relative;
  margin-top: 1rem;
}

.use-case-rotator {
  display: inline-block;
  position: relative;
  min-height: 1.5em;
}

.modern-gradient-text {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-cyan) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.modern-cursor {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: #8b5cf6;
  animation: cursor-pulse 1.2s ease-in-out infinite;
  margin-left: 0;
}

.text-underline {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  border-radius: 2px;
  animation: underline-expand 3.5s ease-in-out infinite;
}

/* Animations */
@keyframes gradient-flow {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes cursor-pulse {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

@keyframes underline-expand {
  0%, 90%, 100% {
    width: 0;
  }
  45% {
    width: 60%;
  }
}

/* Responsive Design for Modern Showcase */
@media (max-width: 1024px) {
  .modern-showcase-section {
    padding: 6rem 0;
  }
  
  .modern-headline {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
  }
  
  .modern-gradient-text {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
  }
  
  .modern-cursor {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
  }
}

@media (max-width: 768px) {
  .modern-showcase-section {
    padding: 4rem 0;
  }
  
  .modern-text-container {
    max-width: 600px;
  }
  
  .modern-headline {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
  }
  
  .modern-gradient-text {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
  }
  
  .modern-cursor {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-left: 2px;
  }
  
  .headline-accent::after {
    height: 1.5px;
    bottom: -2px;
  }
  
  .text-underline {
    height: 2px;
    bottom: -4px;
  }
  
  /* Hide some floating dots on mobile for better performance */
  .dot-3,
  .dot-4 {
    display: none;
  }
  
  /* Reduce dot size on mobile */
  .dot {
    width: 6px;
    height: 6px;
  }
}

@media (max-width: 480px) {
  .modern-showcase-section {
    padding: 3rem 0;
  }
  
  .modern-headline {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    text-align: center;
  }
  
  .modern-gradient-text {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    display: block;
    margin-top: 0.5rem;
  }
  
  .modern-cursor {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
  }
  
  /* Stack headline parts vertically on very small screens */
  .headline-wrapper {
    text-align: center;
  }
  
  /* Reduce padding and margins */
  .max-w-6xl {
    padding: 0 1rem;
  }
}

/* Responsive styles for use case showcase */
@media (max-width: 768px) {
  .use-case-showcase-card {
    padding: 3rem 2rem;
    border-radius: 20px;
  }
  
  .use-case-text {
    text-align: center;
    line-height: 1.1;
  }
  
  .use-case-rotator-container {
    text-align: center;
  }
  
  .sparkles-container {
    height: 60px;
  }
  
  .gradient-orb-1 {
    width: 120px;
    height: 120px;
    top: 10%;
    left: 5%;
  }
  
  .gradient-orb-2 {
    width: 100px;
    height: 100px;
    bottom: 10%;
    right: 5%;
  }
}

@media (max-width: 640px) {
  .use-case-showcase-card {
    padding: 2rem 1.5rem;
    border-radius: 16px;
  }
  
  .use-case-text {
    line-height: 1.2;
  }
  
  .rotating-text {
    display: block;
    margin-top: 0.5rem;
  }
  
  .sparkles-container {
    height: 40px;
    margin-bottom: 1.5rem;
  }
  
  .sparkle {
    width: 3px;
    height: 3px;
  }
  
  .sparkle::before {
    width: 6px;
    height: 6px;
    top: -1.5px;
    left: -1.5px;
  }
  
  .gradient-orb-1,
  .gradient-orb-2 {
    display: none; /* Hide orbs on very small screens for better performance */
  }
}

/* Text shadow enhancement for better readability */
.use-case-text {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.rotating-text {
  text-shadow: 
    0 0 20px rgba(139, 92, 246, 0.3),
    0 2px 20px rgba(0, 0, 0, 0.8);
}