/* --- Base Styles & Variables --- */
:root {
  --primary-color: #00ffa3; /* Bright Mint Green */
  --secondary-color: #6a0dad; /* Deep Purple */
  --accent-color: #ff00ff; /* Magenta */
  --background-color: #070417; /* Very Dark Desaturated Blue/Purple */
  --text-color: #e0e0e0;
  --text-muted-color: #a0a0b0;
  --glass-bg: rgba(20, 15, 40, 0.5); /* Darker, less transparent glass */
  --glass-border: rgba(255, 255, 255, 0.15);
  --gradient-start: var(--primary-color);
  --gradient-mid: #00c6ff; /* Cyan */
  --gradient-end: var(--accent-color);
  --font-family: "Inter", sans-serif;
  --border-radius: 12px;
  --transition-speed: 0.3s;
  --container-width: 1140px;
  --header-height: 70px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px; /* Base font size */
}

body {
  font-family: var(--font-family);
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.7;
  overflow-x: hidden; /* Prevent horizontal scroll */
  position: relative; /* Needed for absolute positioning of canvas */
}

/* --- Canvas Background --- */
#threejs-canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0; /* Behind content */
  opacity: 0.25; /* Make it subtle */
  /* Add specific styles for your canvas if needed */
}

/* --- Content Wrapper --- */
.content-wrapper {
  position: relative;
  z-index: 1; /* Above canvas */
  width: 100%;
  overflow: hidden; /* Contains AOS animations */
}

/* --- Utility Classes --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.gradient-text {
  background: linear-gradient(
    90deg,
    var(--gradient-start),
    var(--gradient-mid),
    var(--gradient-end)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-flow 10s ease infinite; /* Subtle animation */
  background-size: 200% auto;
}

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

.glassmorphism {
  background: var(--glass-bg);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  border-radius: var(--border-radius);
  border: 1px solid var(--glass-border);
  padding: 1.5rem;
  transition: transform var(--transition-speed) ease,
    box-shadow var(--transition-speed) ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.glassmorphism:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.modern-shadow {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 1px 8px rgba(0, 0, 0, 0.1);
}

.alt-bg {
  background-color: rgba(15, 10, 30, 0.6); /* Slightly different dark bg */
}

.grid-2-col,
.grid-2-col-reversed {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.grid-2-col-reversed {
  grid-template-columns: 1fr 1fr; /* Default order */
}

@media (max-width: 992px) {
  .grid-2-col,
  .grid-2-col-reversed {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .grid-2-col-reversed .text-content {
    order: 1; /* Text below visual on mobile for reversed grid */
  }
  .grid-2-col-reversed .visual-content {
    order: 0;
  }
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem); /* Responsive font size */
  font-weight: 800;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 2rem;
}

h3 {
  font-size: clamp(1.4rem, 4vw, 1.8rem);
}

h4 {
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted-color);
  max-width: 65ch; /* Improve readability */
}

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

a:hover,
a:focus {
  color: var(--text-color);
  outline: none; /* Handled by focus styles */
}

/* --- Header --- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  background: rgba(7, 4, 23, 0.95); /* Slightly darker sticky bg */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  transition: background-color var(--transition-speed) ease;
}

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

.logo {
  display: flex; /* For aligning logo and indicator */
  align-items: center;
  gap: 0.6rem; /* Space between logo and indicator */
}

.logo img {
  display: block;
  transition: transform var(--transition-speed) ease;
}
.logo:hover img {
  transform: scale(1.05);
}

/* Live Indicator */
.live-indicator {
  width: 10px;
  height: 10px;
  background-color: #ff3b30; /* Red for live */
  border-radius: 50%;
  box-shadow: 0 0 8px 2px rgba(255, 59, 48, 0.7); /* Red glow */
  animation: live-pulse 1.5s infinite ease-in-out;
}

@keyframes live-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 8px 2px rgba(255, 59, 48, 0.7);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 12px 4px rgba(255, 59, 48, 0.9);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 8px 2px rgba(255, 59, 48, 0.7);
  }
}

.main-header nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: var(--text-muted-color);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--gradient-start),
    var(--gradient-mid)
  );
  transition: width var(--transition-speed) ease;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  /* Add .active class via JS if needed */
  color: var(--text-color);
}
.nav-link:hover::after,
.nav-link:focus::after {
  width: 100%;
}

#mobile-menu-toggle {
  display: none; /* Hidden by default */
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.8rem;
  cursor: pointer;
}

/* --- Buttons --- */
.cta-button {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.cta-button.primary {
  background: linear-gradient(
    90deg,
    var(--gradient-start),
    var(--gradient-mid),
    var(--gradient-end)
  );
  background-size: 200% auto;
  color: #000; /* Dark text on bright gradient */
  border: none;
  box-shadow: 0 4px 15px rgba(0, 255, 163, 0.3);
}
.cta-button.primary:hover,
.cta-button.primary:focus {
  background-position: right center; /* change gradient direction */
  box-shadow: 0 6px 20px rgba(0, 255, 163, 0.5);
  transform: translateY(-2px);
  color: #000;
}

.cta-button.secondary {
  background-color: var(--secondary-color);
  color: var(--text-color);
  box-shadow: 0 4px 15px rgba(106, 13, 173, 0.3);
}
.cta-button.secondary:hover,
.cta-button.secondary:focus {
  background-color: #8a2be2; /* Brighter purple */
  box-shadow: 0 6px 20px rgba(106, 13, 173, 0.5);
  transform: translateY(-2px);
  color: var(--text-color);
}

.cta-button.outline {
  background-color: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.cta-button.outline:hover,
.cta-button.outline:focus {
  background-color: rgba(0, 255, 163, 0.1);
  color: var(--text-color);
  border-color: var(--gradient-mid);
  transform: translateY(-2px);
}

.cta-button.large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}
.cta-button.small {
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(0, 255, 163, 0.3);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 6px 25px rgba(0, 255, 163, 0.6);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(0, 255, 163, 0.3);
  }
}

/* --- Sections --- */
.content-section {
  padding: 6rem 0;
}

/* --- Hero Section --- */
.hero-section {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: calc(var(--header-height) + 4rem) 0 4rem; /* Adjust padding for header */
  position: relative; /* For scroll indicator */
}

.hero-section .subtitle {
  font-size: 1.2rem;
  color: var(--text-muted-color);
  max-width: 60ch;
  margin: 0 auto 2.5rem;
}

.hero-stats {
  display: flex;
  justify-content: space-around; /* Changed from space-between to distribute items evenly */
  align-items: stretch; /* Make items same height */
  flex-wrap: wrap;
  gap: 1rem; /* Adjusted gap between items */
  margin: 2.5rem auto;
  max-width: 850px; /* Control the overall width */
  padding: 1.5rem 2rem;
  background: rgba(20, 15, 40, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  backdrop-filter: blur(5px);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.8rem; /* Gap between text and visual */
  text-align: left;
  padding: 0.5rem 0; /* Add padding for better spacing */
  flex: 1 1 150px; /* Allow flexing and set a base width */
  justify-content: center; /* Center content within flex item */
}

.stat-content {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Simplified Stat Visual - Blinking Light */
.stat-visual {
  width: 8px; /* Size of the light */
  height: 8px;
  background-color: var(--primary-color); /* Use the primary green */
  border-radius: 50%; /* Make it circular */
  box-shadow: 0 0 6px var(--primary-color), 0 0 10px rgba(0, 255, 163, 0.6); /* Add a glow */
  /* Apply the blinking animation */
  animation: blink 1.8s ease-in-out infinite;

  /* Reset any potential leftover styles */
  position: relative;
  overflow: visible;
  background-image: none; /* Ensure no leftover gradients */
}

/* Remove specific class adjustments if they existed */
.data-source-visual,
.agent-visual,
.signal-visual,
.latency-visual {
  /* No specific styles needed anymore, all use .stat-visual base */
}

/* Blinking Animation */
@keyframes blink {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 6px var(--primary-color), 0 0 10px rgba(0, 255, 163, 0.6);
  }
  50% {
    opacity: 0.4; /* Dim the light */
    box-shadow: 0 0 3px var(--primary-color); /* Reduce glow when dim */
  }
}

.cta-group {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem; /* Added margin */
}

.scroll-down-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  color: var(--text-muted-color);
  animation: bounce 2s infinite;
}

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

/* --- Problem Section - ENHANCED --- */
#problem.problem-enhanced {
  /* Optional: Slightly different background for contrast if needed */
  /* background: linear-gradient(180deg, var(--background-color) 0%, #0a061c 100%); */
  position: relative; /* For potential absolute positioning or overflows */
  overflow: hidden; /* Contain visual elements */
}

#problem.problem-enhanced h2 {
  text-align: center;
  margin-bottom: 1rem;
}

#problem.problem-enhanced .problem-subtitle {
  /* Target specific paragraph */
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3.5rem; /* More space before visualization */
  max-width: 65ch;
  color: var(--text-muted-color);
}

/* Wrapper for Visualization and Highlights */
.problem-visual-wrapper {
  position: relative;
  margin-bottom: 4rem; /* Space before reject text */
  min-height: 250px; /* Ensure space for visualization and cards */
  display: flex; /* Use flex for alignment */
  flex-direction: column; /* Stack visualization and cards */
  align-items: center; /* Center items horizontally */
}

/* Data Chaos Visualization */
.data-chaos-visualization {
  width: 100%;
  max-width: 800px; /* Slightly narrower? */
  height: 180px; /* Slightly taller */
  margin: 0 auto 0; /* Remove bottom margin, handled by wrapper */
  border-radius: var(--border-radius);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08); /* Slightly more visible border */
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15); /* Slightly stronger shadow */
  background-color: rgba(10, 6, 28, 0.5); /* Dark base */
  /* Layer 1: Animated Gradient Streaks */
  background-image: linear-gradient(
      170deg,
      transparent 40%,
      rgba(0, 255, 163, 0.1) 45%,
      rgba(106, 13, 173, 0.15) 55%,
      transparent 60%
    ),
    linear-gradient(
      10deg,
      transparent 45%,
      rgba(0, 200, 255, 0.1) 50%,
      rgba(255, 0, 255, 0.1) 55%,
      transparent 60%
    );
  background-size: 100% 300%, 100% 300%; /* Tall size for animation */
  background-repeat: no-repeat;
  animation: data-flow 8s linear infinite alternate; /* Flowing animation */
}
/* Layer 2: Static Grid/Noise (using ::before) */
.data-chaos-visualization::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
        /* Fine grid */ linear-gradient(
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    /* Subtle radial glow */
      radial-gradient(
        ellipse at center,
        rgba(106, 13, 173, 0.1),
        transparent 70%
      );
  background-size: 15px 15px, 15px 15px, 100% 100%;
  opacity: 0.7;
  z-index: 1;
}
/* Layer 3: Animated Particles/Dots (using ::after) */
.data-chaos-visualization::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Using multiple box-shadows to simulate particles */
  /* Generate these randomly with JS for better effect, or manually place a few */
  box-shadow: 50px 30px 1px 0px rgba(0, 255, 163, 0.7),
    /* Particle 1 */ 150px 80px 0px 0px rgba(255, 255, 255, 0.5),
    /* Particle 2 */ 250px 50px 1px 0px rgba(0, 200, 255, 0.6),
    /* Particle 3 */ 350px 100px 0px 0px rgba(255, 0, 255, 0.5),
    /* Particle 4 */ 450px 20px 1px 0px rgba(255, 255, 255, 0.4),
    /* Particle 5 */ 550px 90px 0px 0px rgba(0, 255, 163, 0.6),
    /* Particle 6 */ 650px 40px 1px 0px rgba(255, 0, 255, 0.7); /* Particle 7 */
  /* Add more for density */
  animation: particles-drift 20s linear infinite;
  z-index: 2; /* Above grid, below potential content if added later */
}
@keyframes data-flow {
  0% {
    background-position: 0% 0%, 0% 0%;
  }
  100% {
    background-position: 0% 100%, 0% 100%;
  }
}
@keyframes particles-drift {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translate(5px, 10px);
    opacity: 0;
  } /* Subtle drift + fade */
}

/* Integrated Highlights Container */
.problem-highlights.integrated-highlights {
  display: flex; /* Use flexbox for layout */
  justify-content: center; /* Center the items */
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  gap: 1.5rem; /* Gap between cards */
  width: 100%;
  max-width: 1000px; /* Slightly wider than visualization */
  margin-top: -50px; /* <<< Pull the cards UPWARDS to overlap visualization */
  position: relative; /* Ensure it's above the visualization's ::before */
  z-index: 10; /* Ensure cards are above visualization effects */
}

/* Pain Point Card Styling */
.pain-point-card {
  flex: 1 1 260px; /* Flex properties for responsiveness */
  max-width: 300px; /* Max width per card */
  padding: 1.5rem;
  text-align: center; /* Center text within card */
  /* Use the enhanced glassmorphism from features */
  background: var(--glass-bg);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-radius: var(--border-radius);
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-speed) ease,
    box-shadow var(--transition-speed) ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2); /* Slightly stronger shadow due to overlap */
}

.pain-point-card:hover {
  transform: translateY(-8px) scale(1.03); /* Enhanced hover lift/scale */
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

/* Pain Point Icon Container */
.pain-point-icon-container {
  width: 55px; /* Slightly smaller than feature icons */
  height: 55px;
  margin: 0 auto 1rem; /* Center horizontally, space below */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-speed) ease;
}

.pain-point-card:hover .pain-point-icon-container {
  transform: scale(1.1) rotate(5deg); /* Rotate opposite direction? */
}

.pain-point-icon-container .feature-icon {
  font-size: 1.6rem;
  line-height: 1;
  color: var(
    --primary-color
  ); /* Or maybe a different warning color like orange/red? */
  /* Example using orange: color: #ff8c00; */
}

/* Pain Point Text */
.pain-point-card p {
  margin-bottom: 0;
  font-weight: 500;
  color: var(--text-color);
  font-size: 1rem;
}

/* Reject Text Styling */
#problem.problem-enhanced .reject-text {
  text-align: center;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--text-muted-color);
  margin-top: 0; /* Removed default top margin as wrapper provides space */
  max-width: 55ch;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Adjustments for Problem Section */
@media (max-width: 768px) {
  #problem.problem-enhanced .problem-subtitle {
    margin-bottom: 2.5rem;
  }
  .data-chaos-visualization {
    height: 120px;
  }
  .integrated-highlights {
    margin-top: -30px; /* Reduce overlap on mobile */
    flex-direction: column; /* Stack cards vertically */
    align-items: center; /* Center stacked cards */
    gap: 1rem;
  }
  .pain-point-card {
    flex-basis: auto; /* Reset flex basis */
    width: 90%; /* Take most of the width */
    max-width: 320px; /* Limit max width */
  }
  .problem-visual-wrapper {
    margin-bottom: 3rem; /* Adjust space */
  }
}

/* --- Solution / How It Works Section --- */
#solution h2 {
  margin-bottom: 4rem; /* Increased margin */
}

.solution-layout {
  /* Specific layout styling */
  gap: 4rem; /* Increased gap */
}

.solution-steps-container {
  /* Optional: Add a subtle background or border to the steps area */
  /* background: rgba(20, 15, 40, 0.2); */
  /* border-radius: var(--border-radius); */
  /* padding: 2rem; */
  /* border: 1px solid var(--glass-border); */
}

.solution-steps {
  position: relative;
}

.step {
  position: relative; /* Needed for connector positioning */
  margin-bottom: 2.5rem; /* Increased spacing between steps */
  padding-left: 60px; /* More space for number + icon */
  display: flex; /* Use flex for better control */
  flex-direction: column; /* Stack header and content */
}

.step::before {
  content: "";
  position: absolute;
  left: 20px; /* Center of the 40px number circle */
  top: 40px; /* Start directly below the number circle (its height) */
  width: 2px;
  height: 100%; /* Span the full height of the step LI + margin */
  background: linear-gradient(
    to bottom,
    var(--gradient-mid),
    var(--accent-color),
    rgba(255, 0, 255, 0) /* Fade out */
  );
  z-index: 1; /* Behind the number */
  transform-origin: top;
}
/* Hide connector for the last step */
.step:last-of-type::before {
  display: none;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 0.8rem; /* Gap between number, icon, and title */
  margin-bottom: 0.5rem; /* Space between header and content */
}

.step-number {
  position: absolute;
  left: 0;
  top: 0; /* Align with top of step */
  width: 40px; /* Slightly larger number circle */
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  color: #000; /* Ensure contrast */
  font-size: 1.2rem;
  box-shadow: 0 0 15px rgba(0, 255, 163, 0.4); /* Add glow */
  z-index: 2; /* Above connector line */
}

.step-number.gradient-bg {
  background: linear-gradient(
    45deg,
    var(--gradient-start),
    var(--gradient-mid)
  );
}

.step-icon {
  font-size: 1.5rem; /* Adjust icon size */
  line-height: 1; /* Prevent extra space */
  /* margin-left: 40px; */ /* Space it past the absolute positioned number - Removed, handled by header gap */
}

.step h4 {
  margin-bottom: 0; /* Remove bottom margin from h4 */
  font-size: 1.3rem; /* Slightly larger title */
  color: var(--text-color);
  font-weight: 600;
}

.step-content p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--text-muted-color);
  /* padding-left: calc(40px + 0.8rem + 1.5rem); */ /* Align with title text - Removed, let step padding handle */
  max-width: 55ch; /* Limit line length for readability */
}

/* Hide connector after the last step */
.step:last-of-type::before {
  display: none;
}

/* Animation for connector line */
[data-aos="fade-left"].aos-animate .step::before {
  animation: draw-line 1s ease-out forwards;
  animation-delay: 0.5s; /* Start slightly after step fades in */
}

@keyframes draw-line {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

/* Visual Placeholder Enhancements */
.visual-placeholder.app-mockup-dynamic {
  position: relative;
  cursor: pointer;
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.perspective-tilt {
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
}

.perspective-tilt:hover {
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.visual-placeholder img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--border-radius); /* Ensure image also has radius */
}

/* Enhanced Play Button */
.play-button-overlay.enhanced-play {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(7, 4, 23, 0.3); /* Dark overlay */
  opacity: 0; /* Hidden by default */
  transition: opacity 0.3s ease;
  border-radius: var(--border-radius); /* Match parent */
}

.visual-placeholder:hover .play-button-overlay.enhanced-play {
  opacity: 1; /* Show on hover */
}

.enhanced-play svg {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease;
}

.enhanced-play svg circle {
  transition: all 0.3s ease;
}
.enhanced-play svg polygon {
  transition: fill 0.3s ease;
}

.visual-placeholder:hover .enhanced-play svg {
  transform: scale(1.1);
}
.visual-placeholder:hover .enhanced-play svg circle {
  fill: rgba(0, 255, 163, 0.2); /* Fill circle on hover */
  stroke: var(--primary-color);
}
.visual-placeholder:hover .enhanced-play svg polygon {
  fill: var(--primary-color); /* Change triangle color */
}

/* Responsive adjustments for Solution Section */
@media (max-width: 992px) {
  .solution-layout {
    gap: 3rem; /* Adjust gap for mobile */
  }
  .step {
    padding-left: 0; /* Remove padding */
    align-items: center; /* Center align items */
    text-align: center;
  }
  .step-header {
    justify-content: center; /* Center header items */
    flex-wrap: wrap; /* Allow wrapping if needed */
  }
  .step-number {
    position: static; /* Reset positioning */
    margin-bottom: 0.8rem;
  }
  .step-icon {
    margin-left: 0; /* Reset margin */
    font-size: 1.8rem; /* Maybe larger on mobile */
  }
  .step-content p {
    padding-left: 0; /* Reset padding */
    max-width: none; /* Remove max-width */
  }
  .step-connector {
    display: none; /* Hide connectors */
  }
  .perspective-tilt {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg); /* Remove tilt */
  }
  .perspective-tilt:hover {
    transform: scale(1.02); /* Keep scale on hover */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  }
  /* Center the CTA button */
  #solution .text-content > div:last-of-type {
    text-align: center;
  }
}

@media (max-width: 576px) {
  .step-header {
    flex-direction: column; /* Stack number, icon, title vertically */
    gap: 0.5rem;
  }
  .step h4 {
    font-size: 1.2rem;
  }
}

/* --- Features Section - ENHANCED --- */
#features h2 {
  text-align: center;
  margin-bottom: 3rem; /* More space below title */
}

.features-grid.enhanced-features {
  /* Target the enhanced grid */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem; /* Increased gap */
}

/* Enhanced Feature Item Styling */
.enhanced-features .feature-item {
  display: flex;
  flex-direction: column;
  text-align: left; /* Keep text left aligned */
  padding: 2rem; /* Slightly more padding */
  background: var(--glass-bg); /* Ensure glassmorphism */
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-radius: var(--border-radius);
  border: 1px solid transparent; /* Start with transparent border */
  position: relative; /* Needed for pseudo-elements */
  overflow: hidden; /* Contain pseudo-elements */
  transition: transform var(--transition-speed) ease,
    box-shadow var(--transition-speed) ease,
    border-color var(--transition-speed) ease; /* Smooth border transition */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Gradient Border on Hover */
.enhanced-features .feature-item::before {
  content: "";
  position: absolute;
  inset: 0; /* Covers the entire area */
  border-radius: inherit; /* Match parent's border radius */
  padding: 1px; /* Thickness of the border */
  background: linear-gradient(
    135deg,
    var(--gradient-start),
    var(--gradient-mid),
    var(--gradient-end)
  );
  -webkit-mask: /* Mask to create the border effect */ linear-gradient(#fff 0 0)
      content-box,
    linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; /* Punch out the middle */
  mask-composite: exclude;
  opacity: 0; /* Hidden by default */
  transition: opacity var(--transition-speed) ease;
  z-index: -1; /* Behind content */
}

.enhanced-features .feature-item:hover {
  transform: translateY(-6px) scale(1.02); /* More lift and slight scale */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.enhanced-features .feature-item:hover::before {
  opacity: 1; /* Show gradient border on hover */
}

/* Icon Container Styling */
.feature-icon-container {
  width: 60px; /* Increased size */
  height: 60px;
  margin-bottom: 1.5rem; /* More space below icon */
  border-radius: 50%; /* Circular */
  display: flex;
  align-items: center;
  justify-content: center;
  /* Subtle gradient background for the icon container */
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-speed) ease,
    box-shadow var(--transition-speed) ease;
}

.enhanced-features .feature-item:hover .feature-icon-container {
  transform: scale(1.08) rotate(-8deg); /* Icon slightly rotates/scales on card hover */
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1),
    0 4px 10px rgba(0, 255, 163, 0.2); /* Add subtle glow matching primary color */
}

.feature-icon-container .feature-icon {
  font-size: 1.8rem; /* Slightly larger icon */
  line-height: 1; /* Prevent extra spacing */
  color: var(--primary-color); /* Use primary color for icon */
}

/* Feature Title */
.enhanced-features .feature-item h4 {
  /* Removed display: flex and gap */
  margin-bottom: 0.8rem;
  color: var(--text-color);
  font-size: 1.25rem; /* Slightly larger title */
  font-weight: 600; /* Make title bolder */
}

/* Feature Description */
.enhanced-features .feature-item p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--text-muted-color);
  line-height: 1.6; /* Adjust line height if needed */
}

/* Optional: Add a subtle background pattern/noise to cards */
.enhanced-features .feature-item {
  /* background-image: url('path/to/noise.png'); or use CSS gradients */
  /* Example noise using CSS */
  /* background-image: linear-gradient(45deg, rgba(255,255,255,0.01) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.01) 75%), linear-gradient(-45deg, rgba(255,255,255,0.01) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.01) 75%); */
  /* background-size: 4px 4px; */
}

/* --- Technology Section - ENHANCED --- */
#technology.technology-enhanced {
  /* background: linear-gradient(180deg, rgba(15, 10, 30, 0.6) 0%, rgba(10, 6, 28, 0.8) 100%); */
  /* Optional darker gradient */
  position: relative;
}

/* Enhanced Text List Styling */
.tech-features-list {
  list-style: none;
  padding-left: 0;
  margin-top: 2rem;
}

.tech-features-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.5rem 0;
  position: relative;
}

/* Optional: line below each item */
/* .tech-features-list li::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 45px; // Align with text start
  width: calc(100% - 45px);
  height: 1px;
  background: var(--glass-border);
  opacity: 0.5;
} */

.feature-icon-tech {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px; /* Icon container size */
  height: 35px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--primary-color);
  font-size: 1.2rem; /* Icon size */
  flex-shrink: 0; /* Prevent shrinking */
}
/* Replace span content with actual SVG styling if using SVGs */
.feature-icon-tech svg {
  width: 18px;
  height: 18px;
  fill: var(--primary-color);
}
/* Hacky fix for emoji icons in spans */
.feature-icon-tech span {
  line-height: 1;
}

.tech-features-list li span:last-child {
  color: var(--text-muted-color);
  font-size: 1rem;
}

/* Enhanced Tech Diagram */
.tech-diagram-enhanced {
  display: flex;
  align-items: center; /* Vertically align columns */
  justify-content: space-between; /* Space out columns */
  gap: 1rem; /* Gap between elements */
  padding: 2rem 1rem;
  position: relative; /* For absolute positioned connectors */
  min-height: 350px;
  /* Optional: Add a subtle background to the diagram area */
  /* background: rgba(20, 15, 40, 0.3); */
  /* border-radius: var(--border-radius); */
  /* border: 1px dashed var(--glass-border); */
}

.diagram-column {
  display: flex;
  flex-direction: column;
  align-items: stretch; /* Make nodes full width of column */
  gap: 0.8rem;
  flex: 0 1 auto; /* Allow shrinking but not growing initially */
}
.diagram-column.sources-column,
.diagram-column.insights-column {
  flex-basis: 200px; /* Give sources/insights specific width */
}
.diagram-column.engine-column {
  flex: 1 1 auto; /* Allow engine to take more space */
  align-self: stretch; /* Make engine column stretch */
  justify-content: center; /* Center engine vertically */
}

.diagram-label {
  font-size: 0.9rem;
  color: var(--text-muted-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  font-weight: 500;
  text-align: center; /* Center label */
}

.diagram-node {
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  width: 100%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center; /* Center content */
  gap: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.diagram-node:hover {
  transform: scale(1.03);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.node-icon {
  font-size: 1.1rem;
  line-height: 1;
  opacity: 0.8;
}

/* Specific Node Styling */
.source-node,
.insight-node {
  background: var(--glass-bg); /* Reuse glassmorphism */
  border: 1px solid var(--glass-border);
  color: var(--text-muted-color);
}

.ai-engine-node {
  padding: 1.5rem 2rem; /* Larger padding */
  flex-direction: column; /* Stack icon/title/subtitle */
  border: 1px solid var(--primary-color); /* Highlight border */
  background: linear-gradient(
    145deg,
    rgba(0, 255, 163, 0.05),
    rgba(0, 255, 163, 0.15)
  ); /* Subtle gradient bg */
  box-shadow: 0 0 25px rgba(0, 255, 163, 0.2);
  color: var(--text-color);
  min-height: 150px; /* Ensure minimum height */
}

.ai-engine-node .node-icon.ai-icon {
  font-size: 2.5rem; /* Larger AI icon */
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  opacity: 1;
}
.ai-engine-node .node-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-color);
}
.ai-engine-node .node-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted-color);
  margin-top: 0.2rem;
}

/* Glow Animation for Engine */
.pulse-glow {
  animation: pulse-glow 2.5s infinite ease-in-out;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 25px rgba(0, 255, 163, 0.2);
  }
  50% {
    box-shadow: 0 0 35px rgba(0, 255, 163, 0.4);
  }
  100% {
    box-shadow: 0 0 25px rgba(0, 255, 163, 0.2);
  }
}

/* Connectors (Basic CSS Example - SVGs might be better for curves) */
.diagram-connectors {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Don't block interactions */
  overflow: hidden; /* Hide parts of lines if needed */
  z-index: -1; /* Behind nodes */
}

.connector-arrow {
  position: absolute;
  color: var(--primary-color);
  font-size: 1.5rem;
  opacity: 0.7;
  animation: arrow-pulse 1.5s infinite ease-in-out;
}
@keyframes arrow-pulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* Adjust positions based on your layout */
.arrow-in {
  left: calc(
    200px + 0.5rem
  ); /* After sources column + half gap (adjust if gap changes) */
  top: 50%;
  transform: translateY(-50%);
}
.arrow-out {
  right: calc(
    200px + 0.5rem
  ); /* Before insights column + half gap (adjust if gap changes) */
  top: 50%;
  transform: translateY(-50%);
}

/* Optional: Add simple lines (adjust positioning carefully) */
/* .connector-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-mid));
  opacity: 0.5;
}
.line-1 { top: 20%; left: 210px; width: calc(100% - 420px); } */
/* Add more lines and adjust positions */

/* Responsive adjustments for Tech Diagram */
@media (max-width: 992px) {
  /* Stack columns on mobile */
  .tech-diagram-enhanced {
    flex-direction: column;
    align-items: center; /* Center items horizontally */
    gap: 2rem;
  }
  .diagram-column {
    width: 90%; /* Make columns take width */
    max-width: 350px;
  }
  .diagram-column.sources-column,
  .diagram-column.insights-column {
    flex-basis: auto; /* Reset basis */
  }
  .ai-engine-node {
    padding: 1rem 1.5rem;
    min-height: auto;
  }
  .diagram-connectors {
    /* Hide complex connectors or simplify for vertical flow */
    display: none; /* Simplest option */
    /* Or adjust arrows for vertical */
  }
  /* Add simple vertical arrows if desired (Example) */
  .tech-diagram-enhanced::before,
  .tech-diagram-enhanced::after {
    content: "↓"; /* Down arrow */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: var(--primary-color);
    opacity: 0.7;
    animation: arrow-pulse 1.5s infinite ease-in-out;
  }
  .tech-diagram-enhanced::before {
    /* Arrow between Sources and Engine */
    top: calc(
      (3 * 40px) + (2 * 0.8rem) + 2rem
    ); /* Approx position after sources */
  }
  .tech-diagram-enhanced::after {
    /* Arrow between Engine and Insights */
    bottom: calc(
      (3 * 40px) + (2 * 0.8rem) + 2rem
    ); /* Approx position before insights */
  }
}

/* --- Validation Section - ENHANCED --- */
#validation {
  /* Optional different background */
  /* background: linear-gradient(180deg, var(--background-color) 0%, #0a061c 100%); */
  padding-bottom: 7rem; /* Extra padding */
  position: relative; /* For positioning elements */
}

#validation h2 {
  text-align: center;
  margin-bottom: 2rem; /* Standard space */
}

/* Optional Backer Logos Styling */
.backer-logos {
  text-align: center;
  margin-bottom: 4rem;
  padding: 2rem 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}
.logos-title {
  font-weight: 500;
  color: var(--text-muted-color);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.logo-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 3rem; /* Adjust gap between logos */
}
.logo-grid img {
  opacity: 0.7;
  transition: opacity var(--transition-speed) ease;
  filter: grayscale(50%) brightness(1.5); /* Subdue logos slightly */
}
.logo-grid img:hover {
  opacity: 1;
  filter: none;
}

/* --- Validation Section - ENHANCED --- */
#validation {
  /* Optional different background */
  /* background: linear-gradient(180deg, var(--background-color) 0%, #0a061c 100%); */
  padding-bottom: 7rem; /* Extra padding */
  position: relative; /* For positioning elements */
}

#validation h2 {
  text-align: center;
  margin-bottom: 2rem; /* Standard space */
}

/* Optional Backer Logos Styling */
.backer-logos {
  text-align: center;
  margin-bottom: 4rem;
  padding: 2rem 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}
.logos-title {
  font-weight: 500;
  color: var(--text-muted-color);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.logo-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 3rem; /* Adjust gap between logos */
}
.logo-grid img {
  opacity: 0.7;
  transition: opacity var(--transition-speed) ease;
  filter: grayscale(50%) brightness(1.5); /* Subdue logos slightly */
}
.logo-grid img:hover {
  opacity: 1;
  filter: none;
}

/* Enhanced Stats Grid */
.validation-stats.enhanced-stats {
  /* Target the enhanced grid */
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(260px, 1fr)
  ); /* Slightly larger min */
  gap: 2rem;
  margin: 0 auto 4.5rem; /* Increased space below */
  max-width: 950px; /* Slightly wider */
}

.validation-stat-item {
  /* Inherits glassmorphism */
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center; /* Center items */
  text-align: center;
  border: 1px solid var(--glass-border); /* Already has border from glassmorphism */
  transition: transform var(--transition-speed) ease,
    box-shadow var(--transition-speed) ease,
    border-color var(--transition-speed) ease; /* Added border transition */
  min-height: 220px; /* Ensure consistent height */
  position: relative; /* For potential pseudo elements */
}
.validation-stat-item:hover {
  transform: translateY(-8px) scale(1.03); /* More lift */
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
  border-color: var(--primary-color); /* Highlight border on hover */
}

/* Stat Icon Styling */
.stat-icon {
  font-size: 2rem; /* Larger icon */
  margin-bottom: 1rem;
  line-height: 1;
  opacity: 0.8;
  /* Optional: Add a background circle */
  /* display: inline-flex;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05); */
}

.validation-stat-item .stat-value {
  font-size: clamp(2.8rem, 6vw, 3.5rem);
  display: block;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.validation-stat-item p {
  margin-bottom: 1.5rem; /* Space before bar container */
  color: var(--text-muted-color);
  font-size: 0.9rem;
  line-height: 1.4;
  flex-grow: 1; /* Push bar container down */
}

.stat-bar-container {
  width: 80%; /* Bar container width relative to card */
  height: 6px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  /* margin-top: auto; */ /* Pushed down by flex-grow on p */
  overflow: hidden;
}

.stat-bar {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--gradient-start),
    var(--gradient-mid),
    var(--gradient-end)
  );
  border-radius: 3px;
  width: 0; /* Start at 0, JS animates this */
  transition: width 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.3s; /* Smoother ease-out, delayed */
}
/* JS will set the style.width directly based on data-width */

/* Testimonial Enhancements */
.testimonial-carousel-wrapper {
  margin-top: 4rem;
  position: relative;
}
.testimonial-heading {
  text-align: center;
  margin-bottom: 2.5rem; /* Keep space */
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--text-color);
}
.testimonial-carousel-container {
  position: relative; /* For positioning nav buttons */
  max-width: 750px; /* Adjust max width */
  margin: 0 auto; /* Center the container */
}
.testimonial-carousel {
  overflow: hidden;
  position: relative;
  min-height: 250px; /* Ensure minimum height */
  display: flex; /* Use flex for slides */
  /* --- Apply Enhanced Glassmorphism to the CONTAINER --- */
  background: rgba(20, 15, 40, 0.6); /* Slightly more opaque glass */
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-radius: var(--border-radius); /* Match container radius */
  border: 1px solid var(--glass-border);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15); /* Slightly softer shadow */
  padding: 3.5rem 2.5rem 2.5rem; /* Padding moved to the outer container */
}
.testimonial-slide {
  min-width: 100%; /* Take full width of the container */
  transition: opacity 0.6s ease, transform 0.6s ease;
  text-align: center;
  display: none; /* Hide inactive slides by default */
  flex-shrink: 0;
  opacity: 0;
  position: relative; /* For quote mark */
  /* --- REMOVE background/border/shadow from SLIDE --- */
  /* background: transparent; */ /* No background */
  /* backdrop-filter: none; */
  /* border: none; */ /* No border */
  /* box-shadow: none; */ /* No shadow */
  padding: 0; /* Remove padding from slide itself */
  /* --- Animation State --- */
  transform: translateX(20px) scale(0.98); /* Start slightly scaled down and offset */
}
.testimonial-slide.active {
  display: block; /* Show active slide */
  opacity: 1;
  transform: translateX(0) scale(1); /* Animate into place */
}
.quote-mark {
  position: absolute;
  top: -1.5rem; /* Adjust position relative to text block */
  left: -1rem; /* Adjust position */
  font-size: 5rem; /* Make slightly larger */
  color: var(--primary-color);
  opacity: 0.12; /* Slightly less opacity */
  line-height: 1;
  font-family: "Times New Roman", Times, serif; /* Ensure serif font */
  transform: rotate(-8deg); /* More tilt */
  z-index: 0; /* Behind text content */
  user-select: none; /* Prevent selection */
}
.testimonial-slide blockquote {
  border: none;
  padding: 0;
  margin: 0;
  position: relative; /* Ensure text is above quote mark */
  z-index: 1;
}
.testimonial-slide p {
  font-size: 1.1rem;
  font-style: normal;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}
.testimonial-slide strong {
  color: var(--primary-color);
  font-weight: 600;
}
.testimonial-slide footer {
  font-size: 0.9rem;
  color: var(--text-muted-color);
  font-weight: 500;
}
/* --- Keep Carousel Navigation & Dots Styling as before --- */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: calc(100% + 60px);
  left: -30px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.testimonial-carousel-container:hover .carousel-nav {
  opacity: 1;
}
.carousel-button {
  background: rgba(20, 15, 40, 0.7);
  border: 1px solid var(--glass-border);
  color: var(--text-color);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: background-color var(--transition-speed) ease,
    transform var(--transition-speed) ease;
  pointer-events: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
}
.carousel-button:hover {
  background: rgba(0, 255, 163, 0.2);
  transform: scale(1.1);
}
.carousel-dots {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--glass-border);
  opacity: 0.4;
  cursor: pointer;
  transition: background-color var(--transition-speed) ease,
    opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
}
.carousel-dot.active {
  background-color: var(--primary-color);
  opacity: 1;
  transform: scale(1.2);
}
.carousel-dot:hover {
  opacity: 0.7;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .validation-stats.enhanced-stats {
    grid-template-columns: 1fr; /* Stack stats */
    gap: 1.5rem;
    margin-bottom: 3.5rem;
  }
  .validation-stat-item {
    min-height: auto; /* Adjust height */
    padding: 1.5rem;
  }
  .testimonial-carousel {
    padding: 3rem 1.5rem 2rem; /* Adjust padding on container */
  }
  .testimonial-slide {
    /* padding stays 0 */
  }
  .quote-mark {
    font-size: 3.5rem;
    left: -0.5rem;
    top: -1rem;
  }
  .testimonial-slide p {
    font-size: 1rem;
  }
  .carousel-nav {
    width: calc(100% + 20px); /* Less extension */
    left: -10px;
    opacity: 1; /* Keep arrows visible on mobile */
  }
  .carousel-button {
    width: 40px;
    height: 40px;
  }
  .carousel-dots {
    bottom: -30px; /* Adjust dot position */
  }
  .backer-logos {
    margin-bottom: 3rem;
  }
  .logo-grid {
    gap: 2rem;
  }
}

/* --- Tokenomics Section - ENHANCED --- */
#tokenomics.tokenomics-enhanced {
  /* background: linear-gradient(180deg, rgba(10, 6, 28, 0.8) 0%, var(--background-color) 100%); */
  /* Optional gradient */
  position: relative;
  overflow: hidden; /* Contain potential connector overflows */
  padding-bottom: 6rem;
}

#tokenomics.tokenomics-enhanced h2 {
  text-align: center;
  margin-bottom: 1rem;
}
#tokenomics.tokenomics-enhanced .section-intro {
  text-align: center;
  max-width: 65ch;
  margin: 0 auto 4rem; /* Center and space below */
  color: var(--text-muted-color);
}

/* Ecosystem Visualization Container */
.token-ecosystem-viz {
  position: relative; /* Context for absolute positioning */
  display: flex; /* Use flex for alignment (optional) */
  justify-content: center;
  align-items: center;
  padding: 3rem 0; /* Padding around the whole viz */
  min-height: 500px; /* Ensure space */
}

/* Central Token Hub */
.token-hub {
  position: absolute; /* Position in the center */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10; /* Above connectors */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hub-core {
  width: 100px; /* Size of the central element */
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(
    145deg,
    var(--primary-color),
    var(--accent-color)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(0, 255, 163, 0.3), 0 0 15px rgba(255, 0, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 0.5rem;
  animation: hub-pulse 3s infinite ease-in-out;
}
@keyframes hub-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 30px rgba(0, 255, 163, 0.3), 0 0 15px rgba(255, 0, 255, 0.2);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(0, 255, 163, 0.5), 0 0 20px rgba(255, 0, 255, 0.3);
  }
}

.hub-symbol {
  font-size: 2.5rem;
  font-weight: bold;
  color: #fff; /* White symbol */
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.hub-label {
  font-weight: 600;
  color: var(--text-color);
  font-size: 1.1rem;
}

/* Utilities Grid */
.token-utilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2x2 Grid */
  grid-template-rows: repeat(2, auto);
  gap: 5rem 6rem; /* Larger gaps to accommodate hub/connectors */
  width: 100%;
  max-width: 800px; /* Max width of the grid */
  position: relative; /* Relative for connector absolute positioning */
}

/* Utility Card Styling */
.utility-card {
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative; /* Needed for connector */
  min-height: 220px; /* Consistent height */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* Center content vertically */
  border: 1px solid var(--glass-border);
  transition: transform var(--transition-speed) ease,
    box-shadow var(--transition-speed) ease;
}
.utility-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.utility-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.utility-icon {
  font-size: 1.8rem; /* Adjust icon size */
  line-height: 1;
  /* Consider specific colors per icon */
  /* color: var(--primary-color); */
}

.utility-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--text-color);
}

.utility-description {
  font-size: 0.9rem;
  color: var(--text-muted-color);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Connector Lines (Example using pseudo-elements) */
.card-connector {
  position: absolute;
  width: 2px; /* Line thickness */
  background: linear-gradient(
    to top,
    /* Gradient direction depends on card position */ transparent,
    rgba(0, 255, 163, 0.4),
    rgba(255, 0, 255, 0.3)
  );
  z-index: 5; /* Below hub, above background */
  opacity: 0.6;
  transform-origin: center bottom; /* Set origin for potential animations */
  /* Precise positioning requires calculations based on grid/hub layout */
  /* These positions are rough estimates and need adjustment */
}

/* Example Positioning (Adjust THESE carefully based on final layout/gaps) */
/* Note: These will likely need adjustment based on actual element sizes and gaps */
.access-card .card-connector {
  height: 70px; /* Adjust length */
  bottom: calc(100% + 10px); /* Start above card */
  left: 50%;
  transform: translateX(-50%) rotate(135deg); /* Angle towards top-left */
  transform-origin: bottom center;
}
.staking-card .card-connector {
  height: 70px;
  bottom: calc(100% + 10px);
  right: 50%;
  transform: translateX(50%) rotate(45deg); /* Angle towards top-right */
  transform-origin: bottom center;
}
.governance-card .card-connector {
  height: 70px;
  top: calc(100% + 10px); /* Start below card */
  left: 50%;
  transform: translateX(-50%) rotate(-135deg); /* Angle towards bottom-left */
  transform-origin: top center;
}
.value-card .card-connector {
  height: 70px;
  top: calc(100% + 10px);
  right: 50%;
  transform: translateX(50%) rotate(-45deg); /* Angle towards bottom-right */
  transform-origin: top center;
}
/* NOTE: Accurate connector positioning is complex and might be better with SVG or JS calculation,
   especially for responsiveness. The above CSS is a basic visual approximation. */

/* Responsive Adjustments */
@media (max-width: 992px) {
  .token-utilities-grid {
    gap: 4rem 3rem; /* Reduce gaps */
    max-width: 650px;
  }
  .hub-core {
    width: 80px;
    height: 80px;
  }
  .hub-symbol {
    font-size: 2rem;
  }
  .utility-card {
    min-height: 200px;
    padding: 1.5rem 1rem;
  }
  /* Adjust connector sizes/angles */
  .card-connector {
    height: 50px; /* Shorter connectors */
  }
}

@media (max-width: 768px) {
  .token-ecosystem-viz {
    padding: 2rem 0;
    min-height: auto; /* Let content define height */
    align-items: stretch; /* Allow grid to stretch */
  }
  .token-hub {
    position: relative; /* Stack hub above grid */
    transform: none;
    top: auto;
    left: auto;
    margin-bottom: 3rem; /* Space between hub and grid */
  }
  .token-utilities-grid {
    grid-template-columns: 1fr; /* Stack cards vertically */
    gap: 2rem; /* Vertical gap */
    max-width: 400px; /* Limit width when stacked */
    margin: 0 auto; /* Center stack */
  }
  .card-connector {
    display: none; /* Hide connectors in stacked layout */
  }
  .utility-card {
    min-height: auto;
  }
}

/* --- Footer --- */
.footer-section {
  background-color: #04020f; /* Even darker footer bg */
  padding: 5rem 0 2rem;
  border-top: 1px solid var(--glass-border);
}

#waitlist {
  text-align: center;
  margin-bottom: 4rem;
}
#waitlist h2 {
  margin-bottom: 0.5rem;
}
#waitlist p {
  max-width: 55ch;
  margin-left: auto;
  margin-right: auto;
}

.waitlist-form {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.waitlist-form input[type="email"] {
  flex-grow: 1;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--glass-border);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-color);
  font-size: 1rem;
  min-width: 250px; /* Ensure input doesn't get too small */
  transition: border-color var(--transition-speed) ease,
    box-shadow var(--transition-speed) ease;
}
.waitlist-form input[type="email"]:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(0, 255, 163, 0.3);
}
.waitlist-form input[type="email"]::placeholder {
  color: var(--text-muted-color);
  opacity: 0.8;
}

.privacy-note {
  font-size: 0.8em;
  margin-top: 1em;
  opacity: 0.7;
  color: var(--text-muted-color);
  width: 100%; /* Ensure it takes full width in flex context */
  text-align: center; /* Center the text */
}

/* Footer Bottom */
.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-logo img {
  opacity: 0.8; /* Slightly muted logo */
  transition: opacity var(--transition-speed) ease;
}
.footer-logo img:hover {
  opacity: 1;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  color: var(--text-muted-color);
  font-size: 1.4rem; /* Adjust if using icons */
  transition: color var(--transition-speed) ease,
    transform var(--transition-speed) ease;
  display: inline-block; /* Ensures transform works */
}
.social-links a:hover,
.social-links a:focus {
  color: var(--primary-color);
  transform: scale(1.1);
}
/* SVG icon styling */
.social-links svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  vertical-align: middle; /* Better alignment */
}

.legal-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  justify-content: center; /* Center links */
}

.legal-links a {
  font-size: 0.9rem;
  color: var(--text-muted-color);
}
.legal-links a:hover {
  color: var(--text-color);
  text-decoration: underline;
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-muted-color);
  opacity: 0.8;
  margin-bottom: 0;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }
  h1 {
    font-size: 2.2rem;
  }
  h2 {
    font-size: 1.8rem;
  }
  .content-section {
    padding: 4rem 0;
  }
  .hero-section {
    min-height: 80vh;
    padding-top: calc(var(--header-height) + 2rem); /* Less top padding */
  }
  .hero-stats {
    flex-direction: column; /* Stack stats vertically */
    gap: 1.5rem;
    padding: 1.5rem 1rem;
    align-items: center; /* Center items */
  }
  .stat-item {
    flex-basis: auto; /* Reset flex basis */
    width: 100%;
    max-width: 250px; /* Limit width */
    justify-content: flex-start; /* Align left within item */
  }
  .stat-value {
    font-size: 1.5rem;
  }
  .stat-label {
    font-size: 0.8rem;
  }

  /* Adjust blinking light size for mobile */
  .stat-visual {
    width: 6px;
    height: 6px;
    box-shadow: 0 0 4px var(--primary-color), 0 0 7px rgba(0, 255, 163, 0.5);
  }
  @keyframes blink {
    /* Adjust shadow for smaller size */
    0%,
    100% {
      opacity: 1;
      box-shadow: 0 0 4px var(--primary-color), 0 0 7px rgba(0, 255, 163, 0.5);
    }
    50% {
      opacity: 0.4;
      box-shadow: 0 0 2px var(--primary-color);
    }
  }

  .cta-group {
    flex-direction: column;
    gap: 1rem;
    width: 80%; /* Limit width */
    margin-left: auto;
    margin-right: auto;
  }
  .cta-group .cta-button {
    width: 100%; /* Make buttons full width */
  }

  .main-header nav {
    display: none; /* Hide desktop nav */
    /* Add styles for mobile menu display when active */
  }
  #mobile-menu-toggle {
    display: block; /* Show hamburger */
  }

  .features-grid.enhanced-features {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    gap: 1rem;
  }
  .waitlist-form {
    flex-direction: column; /* Stack form elements */
    width: 90%;
  }
  .waitlist-form input[type="email"],
  .waitlist-form button {
    width: 100%; /* Make input/button full width */
  }
}

/* Add to your style.css */
.waitlist-counter {
  text-align: center;
  margin-bottom: 2rem; /* Space before the form */
  font-size: 1.1rem;
  color: var(--text-muted-color);
}

.waitlist-counter strong {
  font-weight: 700;
  font-size: 1.5rem; /* Make number bigger */
  color: var(--primary-color); /* Use highlight color */
  margin-right: 0.5rem;
  display: inline-block; /* Allows potential animation transforms */
}

/* --- AOS Customizations (Optional) --- */
[data-aos="fade-up"] {
  transition-property: transform, opacity;
}
/* You can add more specific AOS tweaks if needed */
