/* ========================================
   TXMCONNECT - Modern Dodo-Style Design System
   Travel Experience Management Platform
   ======================================== */

/* ========================================
   CSS VARIABLES
   ======================================== */

:root {
  /* Core Colors (Dark Theme Default) */
  --bg-primary: #050505;
  --bg-secondary: #0a0a0a;
  --bg-tertiary: #111111;
  
  --card-bg: rgba(20, 20, 20, 0.6);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-hover-border: rgba(255, 255, 255, 0.2);

  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-tertiary: #71717a;

  /* Brand / Neon Accents */
  --accent-primary: #3b82f6; /* Electric Blue */
  --accent-secondary: #8b5cf6; /* Electric Purple */
  --accent-cyan: #06b6d4; /* Cyan Glow */
  --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --accent-hover: #2563eb;

  /* Functional Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #0ea5e9;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 5rem; /* Reduced from 6rem */

  /* Typography */
  --font-family:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-size-xs: 0.8rem;
  --font-size-sm: 0.95rem;
  --font-size-base: 1.05rem; /* Slightly larger base */
  --font-size-lg: 1.2rem;
  --font-size-xl: 1.4rem;
  --font-size-2xl: 1.75rem;
  --font-size-3xl: 2.25rem;
  --font-size-4xl: 3rem;
  --font-size-5xl: 4rem;

  /* Effects */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);
  --glass-blur: blur(12px);

  --transition-fast: 150ms ease;
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* --- DEFINING LEGACY VARIABLES FOR COMPATIBILITY --- */
  --txm-sapphire-blue: var(--accent-primary);
  --txm-signal-teal: var(--accent-cyan);
  --txm-deep-navy: var(--bg-tertiary);
  --txm-mist-white: var(--bg-secondary);
  --txm-slate-gray: var(--text-secondary);
  --white: var(--text-primary);
}

/* Light Mode Overrides */
html.light-mode {
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;

  --card-bg: rgba(255, 255, 255, 0.7);
  --card-border: rgba(0, 0, 0, 0.08);
  --card-hover-border: rgba(59, 130, 246, 0.5);

  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-tertiary: #9ca3af;

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.15);
  
  /* Legacy mappings for Light Mode */
  --txm-deep-navy: var(--bg-tertiary); /* Keeps background light */
  --txm-mist-white: var(--bg-secondary);
  --txm-slate-gray: var(--text-secondary);
  --white: var(--text-primary); /* Inverts 'white' text to dark */
}

/* Fix Hero H1 Gradient in Light Mode */
html.light-mode .hero h1 {
  background: linear-gradient(to bottom, #111827, #4b5563);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Fix Feature Text Gradient in Light Mode */
html.light-mode .feature-text h3 {
  background: linear-gradient(to right, #111827, #4b5563);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px; /* Restored to balanced size */
  background-color: var(--bg-primary);
  overflow-x: hidden;
  width: 100%;
}

/* Page Transitions */
body {
  opacity: 0;
  transition: opacity 0.4s ease-out;
}

body.page-loaded {
  opacity: 1;
}

/* ... existing styles ... */

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center; /* Vertically center content */
  gap: var(--space-2xl);
  max-width: 1400px;
  margin: 0 auto;
}

.hero-text {
  text-align: left;
}

.hero-image-container {
  position: relative;
  perspective: 1500px; /* Better depth */
  display: flex;
  justify-content: center;
  align-items: center;
  /* Removed manual margins/sizing to let grid handle it */
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.08), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.08), transparent 25%);
  background-attachment: fixed;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Selection */
::selection {
  background: rgba(59, 130, 246, 0.3);
  color: white;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
  line-height: 1.1;
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }

p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
  max-width: 65ch;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* ========================================
   LAYOUT & GRID
   ======================================== */

.container {
  max-width: 1400px; /* Increased from 1280px to fill wider screens */
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-2xl) 0; /* Reduced vertical padding */
  position: relative;
}

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

.grid {
  display: grid;
  gap: var(--space-md); /* Reduced gap */
}

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

@media (max-width: 1024px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ========================================
   COMPONENTS
   ======================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 4px;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  border: 1px solid transparent;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.6);
  filter: brightness(1.1);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

/* Light Mode Override for Secondary Button */
html.light-mode .btn-secondary {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
}
html.light-mode .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.1);
  border-color: var(--accent-primary);
}

/* Cards */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  transition: all var(--transition-base);
  backdrop-filter: var(--glass-blur);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
    rgba(255, 255, 255, 0.06), 
    transparent 40%
  );
  z-index: 0;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

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

.card:hover {
  border-color: var(--card-hover-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.card-header {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.card-bordered {
  background: transparent;
  border: 1px solid var(--card-border);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-primary { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-teal { background: rgba(20, 184, 166, 0.2); color: #2dd4bf; border: 1px solid rgba(20, 184, 166, 0.3); }
.badge-success { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: all var(--transition-base);
  border-bottom: 1px solid transparent;
  width: 100%;
  max-width: 100vw;
}

.navbar.scrolled {
  background: var(--navbar-bg-scrolled, rgba(5, 5, 5, 0.7));
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
}

.navbar-container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.navbar-link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  position: relative;
}

.navbar-link:hover, .navbar-link.active {
  color: var(--text-primary);
}

.navbar-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--text-primary);
  transition: width 0.3s ease;
}

html.light-mode .navbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.navbar-link:hover::after, .navbar-link.active::after {
  width: 100%;
}

.mobile-only-nav {
  display: none;
}

.navbar-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme Toggle (Hidden for now as we are essentially purely dark mode in this style) */
/* Theme Toggle - Slide Switch */
.theme-toggle {
  display: flex; 
  align-items: center;
  position: relative;
  width: 52px;
  height: 28px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--transition-base);
  padding: 0;
  /* Icon indicators (optional background images could go here) */
}

.theme-toggle::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text-primary);
  transition: transform var(--transition-bounce);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.theme-toggle:hover {
  border-color: var(--text-primary);
}

/* Slide to right in Light Mode */
html.light-mode .theme-toggle::after {
  transform: translateX(24px);
  background: #fbbf24; /* Sun color knob */
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

html.light-mode .theme-toggle {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: rgba(0, 0, 0, 0.1); /* Slight background for contrast if needed */
  border: 1px solid var(--card-border);
  border-radius: 4px;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}
.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin-bottom: 6px;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  padding-top: 120px; /* Reduced from 180px */
  min-height: 90vh;
  display: flex;
  align-items: flex-start; /* Changed from center to move content up */
  justify-content: center;
  text-align: center;
  background: 
    radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.15), transparent 50%);
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  background: linear-gradient(to bottom, #ffffff, #a1a1aa);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  max-width: 20ch;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  margin-left: auto;
  margin-right: auto;
}

/* Feature Grid Adjustments */
.grid-3 .card {
  height: 100%;
}

/* Footer */
.footer {
  border-top: 1px solid var(--card-border);
  padding: 3rem 0 1.5rem;
  background: var(--footer-bg, var(--bg-primary));
  position: relative;
  overflow: hidden;
}

html.light-mode .footer {
  background: #f3f4f6; /* Light gray for footer in light mode */
  border-top: 1px solid #e5e7eb;
}

/* Ensure no dark gradient affecting light mode */
html.light-mode .footer::after {
  opacity: 0.05; /* Tone down the glow */
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  opacity: 0.5;
}

.footer::after {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 200px;
  background: var(--accent-primary);
  filter: blur(100px);
  opacity: 0.15;
  pointer-events: none;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-section h4 {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-section p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 30ch;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a:hover {
  color: var(--accent-cyan);
  transform: translateX(4px);
  text-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
}

.footer-bottom {
  border-top: 1px solid var(--card-border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.footer-bottom a {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  margin-left: 1rem;
}

.footer-bottom a:hover {
  color: var(--text-primary);
}

@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 640px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .footer-section p {
    margin: 0 auto 1.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-bottom a {
    margin: 0 0.5rem;
  }
}

/* ========================================
   ANIMATIONS
   ======================================== */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* Delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Pulse Glow */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(59, 130, 246, 0.1); }
  50% { box-shadow: 0 0 25px rgba(59, 130, 246, 0.3); }
}

.animate-glow {
  animation: pulse-glow 3s infinite;
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .navbar-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    padding: 2rem;
    flex-direction: column;
    border-bottom: 1px solid var(--card-border);
    z-index: 1002; /* Ensure above toggle and everything else */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); /* Strong shadow for visual separation */
  }

  .navbar-menu.active {
    display: flex;
  }

  .mobile-only-nav {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--card-border);
  }
  
  .mobile-only-nav a {
     font-size: 1.1rem;
     color: var(--accent-primary);
  }

  .mobile-menu-toggle {
    display: block;
    position: relative;
    z-index: 1001; /* Ensure above everything */
  }
  
  .navbar-cta {
    display: none; /* Simplify mobile nav */
  }
  
  .hero {
    padding-top: 120px;
  }
}

/* ========================================
   PRICING TOGGLE 
   ======================================== */

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  margin-top: var(--space-lg);
}

.pricing-toggle-label {
  font-size: var(--font-size-lg);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  cursor: pointer;
}

.pricing-toggle-label.active {
  color: var(--text-primary);
  font-weight: 600;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.toggle-switch {
  position: relative;
  width: 64px;
  height: 36px;
  background-color: var(--card-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-switch.active {
  background-color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
  border-color: var(--accent-primary);
}

.toggle-switch-slider {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 26px;
  height: 26px;
  background-color: white;
  border-radius: 50%;
  transition: transform var(--transition-bounce);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active .toggle-switch-slider {
  transform: translateX(28px);
}

/* FORCE VISIBILITY FOR BLOG ARTICLES */
/* Overrides any JS animations that might hide content */
.article-content, 
.article-content > *,
.article-content p,
.article-content h2,
.article-content h3, 
.article-content ul, 
.article-content li,
.article-content div {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
  transition: none !important;
}
/* ========================================
   NEW REDESIGN GRID STYLES
   ======================================== */

/* Hero Grid Layout */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-2xl);
  max-width: 1400px;
  margin: 0 auto;
}

.hero-text {
  text-align: left;
}

.hero-image-container {
  position: relative;
  perspective: 1500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--card-border);
  transform: rotateY(-5deg) rotateX(2deg);
  transition: all 0.5s ease;
}

.hero-image:hover {
  transform: rotateY(0) rotateX(0) scale(1.02);
  box-shadow: 0 30px 60px -12px rgba(59, 130, 246, 0.2);
}

/* Feature Rows (App Ecosystem) */
.feature-section {
  padding: var(--space-3xl) 0;
  overflow: hidden;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.feature-row.reverse {
  direction: rtl; /* Quick way to flip columns, need to reset text direction */
}

.feature-row.reverse > * {
  direction: ltr; /* Reset text direction for children */
}

.feature-text h3 {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-md);
  background: linear-gradient(to right, #fff, #a1a1aa);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-text p {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  max-width: 50ch;
}

.feature-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
}

.feature-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  transition: transform 0.5s ease;
}

.feature-image-wrapper:hover img {
  transform: scale(1.03);
}

/* Gradient Blobs for Background */
.blob {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .hero-grid, .feature-row, .feature-row.reverse {
    grid-template-columns: 1fr;
    text-align: center;
    direction: ltr; /* Reset direction for mobile */
    gap: var(--space-lg); /* Increased from xl/md mix to reliable 2rem */
    margin-bottom: var(--space-lg);
  }

  .hero-text, .feature-text {
    text-align: center;
    margin: 0 auto;
  }

  .hero-text h1, .feature-text h3 {
    margin-left: auto;
    margin-right: auto;
  }
  
  .feature-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-image {
    transform: none; /* remove 3d effect on mobile */
    margin-top: var(--space-lg);
  }
  
  .hero-image:hover {
     transform: none;
  }
}

@media (max-width: 480px) {
  .hero-image-slideshow {
    border-radius: var(--radius-md);
  }
}

.hero-page {
  min-height: 50vh;
  padding-bottom: var(--space-xl);
  align-items: center;
}  
/* Mobile padding adjustments */
@media (max-width: 768px) {
  .section {
    padding: var(--space-lg) 0;
  }
  
  .container {
    padding: 0 var(--space-md); /* Ensure slightly more edge space */
  }
  
  .card {
    padding: var(--space-md) !important; /* Force readable padding on cards overriding inline styles if needed, but user inline styles might be specific. Let's see. */
  }
  
  /* Reduced font sizes for mobile */
  :root {
    --font-size-5xl: 2.5rem;
    --font-size-3xl: 1.75rem;
    
    /* Compact Spacing */
    --space-3xl: var(--space-lg); /* 2rem */
    --space-2xl: var(--space-md); /* 1.25rem */
    --space-xl: var(--space-sm);  /* 0.75rem */
  }
}

/* Hero Slideshow Animation */
/* Hero Slideshow Animation */
/* Hero 3D Container */
/* Hero 3D Container */
.hero-image-container {
  perspective: 1500px;
  transform-style: preserve-3d;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 40px; /* Space for floated badge */
}

/* 3D Wrapper handles the tilt and float */
/* 3D Wrapper handles the tilt and float */
.hero-3d-wrapper {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  /* 3D Tilt & Float + Scale Up */
  transform: scale(1.05) rotateY(-5deg) rotateX(2deg);
  animation: float 6s ease-in-out infinite;
}

/* Hero Slideshow Animation (Carousel + 3D) */
.hero-image-slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  /* Glassmorphic border & shadow */
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 20px 50px -10px rgba(0,0,0,0.6),
    0 0 15px rgba(50, 200, 200, 0.1);
  background: rgba(20, 20, 25, 0.8);
  backdrop-filter: blur(10px);
  
  /* Dynamic Ratio Transition */
  transition: aspect-ratio 0.5s ease-in-out;
}

@keyframes float {
  0% { transform: scale(1.05) rotateY(-5deg) rotateX(2deg) translateY(0px); }
  50% { transform: scale(1.05) rotateY(-5deg) rotateX(2deg) translateY(-15px); }
  100% { transform: scale(1.05) rotateY(-5deg) rotateX(2deg) translateY(0px); }
}

/* Floating Context Badge (Refactored) */
/* Floating Context Badge (Feature Card) */
.floating-badge {
  position: absolute;
  top: -100px; /* Moved down to avoid overlapping title */
  left: 50%;
  transform: translateX(-50%) translateZ(40px);
  background: rgba(30, 30, 35, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 12px 16px; /* Reduced padding */
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px; /* Reduced gap */
  box-shadow: 
    0 15px 35px rgba(0,0,0,0.4),
    0 0 20px rgba(0,0,0,0.2);
  z-index: 20;
  backdrop-filter: blur(12px);
  min-width: 220px; /* Reduced min-width */
  transition: opacity 0.3s ease;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 8px;
  margin-bottom: 4px;
}

.badge-title {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  color: #fff;
}

.badge-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.badge-list li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-list li::before {
  content: "•";
  color: var(--primary-color, #3b82f6); /* Use primary color or fallback */
  font-weight: bold;
}

.floating-badge .pulse {
  width: 8px;
  height: 8px;
  background-color: #28c840;
  border-radius: 50%;
  box-shadow: 0 0 8px #28c840;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

.floating-badge .pulse {
  width: 8px;
  height: 8px;
  background-color: #28c840;
  border-radius: 50%;
  box-shadow: 0 0 8px #28c840;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Browser Header (Mac Style) */
.browser-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
  z-index: 10;
}

.browser-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.browser-header .dot.red { background-color: #ff5f57; }
.browser-header .dot.yellow { background-color: #febc2e; }
.browser-header .dot.green { background-color: #28c840; }

.hero-slides-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  padding-top: 36px; /* Space for browser header */
}

.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Fixes blank space by filling container */
  object-position: top center; /* Aligns to top, crops bottom if needed */
  opacity: 1;
}

/* Remove active class dependency */
.hero-slide.active {
  opacity: 1; 
}

/* Adjust blob position for slideshow */
.hero-image-container .blob {
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140%; /* Larger bloom for 3D effect */
  height: 140%;
  opacity: 0.6;
}

/* Mobile Hero Adjustments */
@media (max-width: 768px) {
  .hero-3d-wrapper {
    animation: float-mobile 6s ease-in-out infinite !important;
  }
  
  .floating-badge {
    top: -100px; /* Closer on mobile */
    min-width: auto;
    width: 90%;
    padding: 12px;
  }
  
  .hero-image-container {
    padding-top: 140px; /* More space for badge on mobile */
    perspective: none; /* Flatten perspective */
  }

  .hero-slides-track {
    padding-top: 28px; /* Slightly compacted header on mobile */
  }
  
  .browser-header {
    height: 28px;
  }
  
  .browser-header .dot {
    width: 8px;
    height: 8px;
  }
}

@keyframes float-mobile {
  0% { transform: scale(1) translateY(0px); }
  50% { transform: scale(1) translateY(-10px); }
  100% { transform: scale(1) translateY(0px); }
}

/* ========================================
   COOKIE CONSENT BANNER
   ======================================== */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  width: 90%;
  max-width: 600px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  z-index: 9999;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
}

.cookie-banner.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cookie-content p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .cookie-actions {
    width: 100%;
    justify-content: center;
  }
}
