/* ====================================
   HOME PAGE STYLES
   Premium Huly-Inspired Layout
   ==================================== */

/* ====================================
   HERO SECTION
   ==================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: #070B1A;
  padding: 0;
}

/* Background Carousel */
.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-carousel-slide.active {
  opacity: 1;
}

.hero-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  animation: heroSlideZoom 18s ease-in-out infinite;
  filter: brightness(0.85) saturate(1.1);
}

@keyframes heroSlideZoom {
  0%, 100% { transform: scale(1.02); }
  50% { transform: scale(1.08); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Left-heavy dark gradient — text zone dark, right shows images */
  background:
    linear-gradient(100deg,
      rgba(5, 8, 20, 0.92) 0%,
      rgba(10, 15, 35, 0.85) 25%,
      rgba(10, 15, 35, 0.70) 45%,
      rgba(20, 30, 60, 0.50) 65%,
      rgba(20, 30, 60, 0.35) 100%
    ),
    /* Bottom vignette for nav dots + top vignette for header blend */
    linear-gradient(to top, rgba(5, 8, 20, 0.80) 0%, transparent 18%),
    linear-gradient(to bottom, rgba(5, 8, 20, 0.60) 0%, transparent 12%);
}

/* Particles canvas */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* Slide progress bar */
.hero-slide-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.06);
  z-index: 7;
}

.hero-slide-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #06b6d4);
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 10px rgba(99,102,241,0.4);
}

/* Scan line effect */
.hero-scanline {
  position: absolute;
  top: -5%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.3), rgba(6,182,212,0.25), transparent);
  z-index: 3;
  pointer-events: none;
  animation: heroScanLine 8s linear infinite;
}

@keyframes heroScanLine {
  0% { top: -5%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 105%; opacity: 0; }
}

.hero-inner {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 100px;
}

/* Navigation Dots */
.hero-carousel-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  gap: 12px;
}

.hero-carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.hero-carousel-dot:hover {
  border-color: rgba(255,255,255,0.8);
}

.hero-carousel-dot.active {
  background: #6366f1;
  border-color: #6366f1;
  box-shadow: 0 0 12px rgba(99,102,241,0.6);
  transform: scale(1.15);
}

/* Animated Background Mesh (behind carousel) */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  opacity: 0.6;
  animation: meshFloat 20s ease-in-out infinite;
}

@keyframes meshFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(2%, -2%) scale(1.02); }
  66% { transform: translate(-2%, 2%) scale(0.98); }
}

.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

.hero-content {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: 720px;
  /* Glass-morphism text container */
  background: linear-gradient(180deg, rgba(11, 16, 34, 0.78) 0%, rgba(13, 18, 38, 0.72) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.38),
    0 0 60px rgba(99, 102, 241, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: box-shadow 320ms var(--ease-in-out-smooth), border-color 320ms var(--ease-in-out-smooth), transform 320ms var(--ease-in-out-smooth);
  text-wrap: balance;
  will-change: transform;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hero-content::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 28%, transparent 72%, rgba(99, 102, 241, 0.05));
  pointer-events: none;
  z-index: 0;
}

.hero-content::after {
  content: '';
  position: absolute;
  top: -40px;
  left: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.14) 0%, rgba(99, 102, 241, 0.05) 42%, transparent 72%);
  filter: blur(18px);
  pointer-events: none;
  z-index: 0;
}

.hero-content > * {
  position: relative;
  z-index: 1;
}

.hero-content:hover {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.42),
    0 0 70px rgba(99, 102, 241, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .hero-content {
    text-align: center;
    text-wrap: pretty;
  }
}

@media (min-width: 769px) {
  .hero-content {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content,
  .hero-content:hover {
    transform: none;
  }

  .hero-content {
    transition: box-shadow 240ms ease, border-color 240ms ease;
  }

  .hero-content::after {
    filter: blur(14px);
  }
}

@supports not (backdrop-filter: blur(1px)) {
  .hero-content {
    background: rgba(11, 16, 34, 0.9);
  }
}

@supports not (-webkit-backdrop-filter: blur(1px)) {
  .hero-content {
    background: rgba(11, 16, 34, 0.9);
  }
}

@supports not (text-wrap: balance) {
  .hero-content {
    text-wrap: initial;
  }
}

/* Hero Stats Row */
.hero-stats-row {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-8);
  flex-wrap: wrap;
}

.hero-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(99, 102, 241, 0.18);
  font-size: var(--text-sm);
  color: #C9D1E3;
}

.hero-stat-chip strong {
  color: #22d3ee;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.5), 0 0 25px rgba(99, 102, 241, 0.25);
}

/* ====================================
   HERO BRAND STAMP — Growth Hacking®
   ==================================== */

.hero-brand-stamp {
  display: inline-flex;
  align-items: baseline;
  gap: 0.18em;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: var(--space-6);
  position: relative;
  letter-spacing: -0.03em;
}

/* Sweeping shimmer bar that travels left→right across the stamp */
.hero-brand-stamp::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255,255,255,0.18) 50%,
    transparent 80%
  );
  animation: stampSweep 3.5s ease-in-out infinite;
  pointer-events: none;
  border-radius: 4px;
}

@keyframes stampSweep {
  0%   { left: -80%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 160%; opacity: 0; }
}

.hero-brand-growth {
  background: linear-gradient(135deg, #a5b4fc 0%, #818cf8 50%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  animation: heroBrandGrowth 4s ease-in-out infinite;
}

@keyframes heroBrandGrowth {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.6)) drop-shadow(0 0 20px rgba(129, 140, 248, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 16px rgba(129, 140, 248, 1)) drop-shadow(0 0 32px rgba(99, 102, 241, 0.6)) drop-shadow(0 0 60px rgba(99, 102, 241, 0.25));
  }
}

.hero-brand-hacking {
  background: linear-gradient(135deg, #e879f9 0%, #c084fc 40%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  animation: heroBrandHacking 4s ease-in-out infinite;
  animation-delay: 0.6s;
}

@keyframes heroBrandHacking {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(192, 132, 252, 0.6)) drop-shadow(0 0 20px rgba(168, 85, 247, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 16px rgba(232, 121, 249, 1)) drop-shadow(0 0 32px rgba(192, 132, 252, 0.7)) drop-shadow(0 0 60px rgba(139, 92, 246, 0.3));
  }
}

/* Hero ® — large, glowing, bold */
.hero-brand-tm {
  font-size: 0.38em;
  font-weight: 800;
  color: #22d3ee;
  position: relative;
  top: -1.4em;
  margin-left: 0.02em;
  display: inline-block;
  animation: heroTmPulse 2.2s ease-in-out infinite;
  text-shadow:
    0 0 6px rgba(34, 211, 238, 1),
    0 0 14px rgba(6, 182, 212, 0.8),
    0 0 28px rgba(34, 211, 238, 0.6),
    0 0 50px rgba(99, 102, 241, 0.3);
}

@keyframes heroTmPulse {
  0%, 100% {
    color: #22d3ee;
    text-shadow:
      0 0 5px rgba(34, 211, 238, 0.9),
      0 0 12px rgba(6, 182, 212, 0.6),
      0 0 24px rgba(34, 211, 238, 0.4);
    transform: scale(1);
  }
  33% {
    color: #c084fc;
    text-shadow:
      0 0 8px rgba(192, 132, 252, 1),
      0 0 18px rgba(168, 85, 247, 0.8),
      0 0 36px rgba(139, 92, 246, 0.5),
      0 0 60px rgba(99, 102, 241, 0.3);
    transform: scale(1.12);
  }
  66% {
    color: #818cf8;
    text-shadow:
      0 0 8px rgba(129, 140, 248, 1),
      0 0 18px rgba(99, 102, 241, 0.8),
      0 0 36px rgba(129, 140, 248, 0.5),
      0 0 60px rgba(34, 211, 238, 0.25);
    transform: scale(1.06);
  }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 500;
  color: #22d3ee;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-8);
  backdrop-filter: blur(12px);
  text-shadow: 0 0 12px rgba(6, 182, 212, 0.5), 0 0 28px rgba(99, 102, 241, 0.25);
}

.hero-tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.8), 0 0 20px rgba(99, 102, 241, 0.4);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.hero-title {
  margin-bottom: var(--space-6);
  line-height: 1.08;
  color: #FFFFFF;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 4.8vw, 4.1rem);
  letter-spacing: -0.045em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.32);
}

.hero-title {
  text-wrap: balance;
}

.hero-title .highlight {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 24%, #c7d2fe 58%, #8b5cf6 85%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  letter-spacing: -0.03em;
  /* Glow filter is on .typewriter-container parent — not here,
     because filter + background-clip:text + transparent fill = invisible shadow */
}

.hero-description {
  font-size: var(--text-xl);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-10);
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-actions .btn {
  min-width: 220px;
  justify-content: center;
}

.hero-visual {\n  display: none; /* Replaced by full-width carousel */\n}

/* Floating Elements — repositioned for full-width hero */
.hero-float {
  position: absolute;
  border-radius: var(--radius-xl);
  background: rgba(26, 26, 36, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid var(--color-dark-border);
  padding: var(--space-4) var(--space-6);
  animation: float 6s ease-in-out infinite;
}

/* Floating element glow */
.hero-float::before {
  content: '';
  position: absolute;
  inset: -8px;
  background: radial-gradient(
    ellipse,
    rgba(99, 102, 241, 0.3),
    transparent 70%
  );
  border-radius: inherit;
  animation: floatGlow 4s ease-in-out infinite;
  z-index: -1;
  filter: blur(12px);
  opacity: 0.5;
}

@keyframes floatGlow {
  0%, 100% {
    opacity: 0.3;
    transform: scale(0.9);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.2);
  }
}

.hero-float-1 {
  top: 10%;
  right: -5%;
  animation-delay: 0s;
}

.hero-float-1::before {
  background: radial-gradient(
    ellipse,
    rgba(99, 102, 241, 0.4),
    transparent 70%
  );
}

.hero-float-2 {
  bottom: 15%;
  left: -5%;
  animation-delay: 2s;
}

.hero-float-2::before {
  background: radial-gradient(
    ellipse,
    rgba(6, 182, 212, 0.4),
    transparent 70%
  );
  animation-delay: 1s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
  
  .hero-content {
    text-align: center;
    max-width: 100%;
    padding: clamp(20px, 3vw, 36px);
    border-radius: 16px;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-stats-row {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
  }
  
  .hero-inner {
    padding-top: calc(var(--header-height) + 30px);
    padding-bottom: 60px;
  }
  
  .hero-stats-row {
    justify-content: center;
  }
}

/* ====================================
   SERVICE PILLARS SECTION
   ==================================== */

.pillars {
  background: var(--color-dark-elevated);
  position: relative;
}
.pillars::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(99,102,241,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(6,182,212,0.06) 0%, transparent 60%);
  pointer-events: none;
}

/* Removed harsh top border line for smooth scrolling */
/* Replaced with subtle gradient fade-in effect */
.pillars::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(
    to bottom,
    rgba(12, 12, 20, 0.8) 0%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.pillar-card {
  background: rgba(26, 26, 36, 0.4);
  backdrop-filter: blur(20px);
  border: 1px solid var(--color-dark-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  transition: all var(--transition-smooth);
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.pillar-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.pillar-card:hover::before {
  opacity: 0.05;
}

.pillar-card:hover {
  transform: translateY(-8px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.pillar-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: var(--space-6);
  transition: all var(--transition-base);
}

.pillar-card:hover .pillar-icon {
  background: rgba(99, 102, 241, 0.2);
  transform: scale(1.1) rotate(5deg);
}

.pillar-title {
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
}

.pillar-description {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 1;
  text-shadow: 0 0 10px rgba(99, 102, 241, 0.1);
}

.pillar-features {
  list-style: none;
  position: relative;
  z-index: 1;
}

.pillar-features li {
  padding: var(--space-2) 0;
  padding-left: var(--space-6);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  position: relative;
}

.pillar-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

.pillar-cta {
  margin-top: var(--space-6);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-primary-light);
  font-weight: 500;
  transition: gap var(--transition-base);
  position: relative;
  z-index: 1;
}

.pillar-card:hover .pillar-cta {
  gap: var(--space-3);
}

@media (max-width: 1024px) {
  .pillar-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* ====================================
   STATS SECTION
   ==================================== */

.stats {
  background: var(--color-dark);
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  opacity: 0.7;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-12);
  position: relative;
  z-index: 2;
}

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

.stat-value {
  font-size: var(--text-4xl);
  font-weight: 700;
  font-family: var(--font-display);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: var(--space-3);
}

.stat-label {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
}

@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* ====================================
   CASE STUDIES PREVIEW
   ==================================== */

.case-studies-preview {
  background: var(--color-dark-elevated);
  position: relative;
  overflow: hidden;
}

.case-studies-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(99, 102, 241, 0.18), transparent 30%),
    radial-gradient(circle at 85% 25%, rgba(6, 182, 212, 0.14), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(139, 92, 246, 0.12), transparent 35%);
  opacity: 0.85;
  pointer-events: none;
}

.case-card-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary-light);
  transition: all 0.3s ease;
}

.case-card:hover .case-card-cta {
  color: #fff;
  transform: translateX(4px);
}

/* Make the case-card <a> tag behave like article */
a.case-card {
  text-decoration: none;
  color: inherit;
  display: flex;
}

.case-study-grid {
  position: relative;
  z-index: 1;
  align-items: stretch;
}

.case-card {
  background: linear-gradient(180deg, rgba(30, 30, 44, 0.85) 0%, rgba(18, 18, 26, 0.92) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-smooth);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.case-card:hover {
  transform: translateY(-8px);
  border-color: rgba(129, 140, 248, 0.35);
  box-shadow: 0 24px 60px rgba(8, 15, 40, 0.42), 0 0 0 1px rgba(99, 102, 241, 0.12);
}

.case-card-media {
  position: relative;
}

.case-order {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-full);
  background: rgba(10, 10, 15, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-text-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.case-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: var(--color-dark-surface);
}

.case-content {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.case-header-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.case-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent-light);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.case-title {
  font-size: clamp(1.1rem, 1rem + 0.35vw, 1.4rem);
  line-height: 1.35;
  margin-bottom: 0;
  min-height: calc(1.35em * 2);
}

.case-description {
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
  max-width: 54ch;
  text-shadow: 0 0 10px rgba(99, 102, 241, 0.08);
}

.case-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-dark-border);
  margin-top: auto;
}

.case-metric {
  min-width: 0;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.case-metric-value {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary-light);
  display: block;
  margin-bottom: var(--space-1);
}

.case-metric-label {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 900px) {
  .case-title {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .case-image {
    height: 220px;
  }

  .case-metrics {
    grid-template-columns: 1fr;
  }
}

/* ====================================
   TESTIMONIALS
   ==================================== */

.testimonials {
  background: var(--color-dark);
  position: relative;
}
.testimonials::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(139,92,246,0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(6,182,212,0.06) 0%, transparent 55%);
  pointer-events: none;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.testimonial-card {
  background: rgba(26, 26, 36, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid var(--color-dark-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  background: rgba(26, 26, 36, 0.8);
  border-color: rgba(255, 255, 255, 0.12);
}

.testimonial-quote {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  font-style: italic;
  margin-bottom: var(--space-6);
  position: relative;
  padding-left: var(--space-6);
}

.testimonial-quote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -10px;
  font-size: var(--text-4xl);
  color: var(--color-primary);
  opacity: 0.3;
  font-family: Georgia, serif;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.testimonial-avatar {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-lg);
}

/* Avatar glow effect */
.testimonial-avatar::before {
  content: '';
  position: absolute;
  inset: -6px;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.4),
    rgba(139, 92, 246, 0.2) 50%,
    transparent 70%
  );
  border-radius: 50%;
  animation: avatarGlow 3s ease-in-out infinite;
  z-index: -1;
  filter: blur(10px);
}

@keyframes avatarGlow {
  0%, 100% {
    opacity: 0.3;
    transform: scale(0.9);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}

.testimonial-card:hover .testimonial-avatar::before {
  animation: avatarGlowHover 1.5s ease-in-out infinite;
}

@keyframes avatarGlowHover {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.4);
  }
}

.testimonial-info {
  flex: 1;
}

.testimonial-name {
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}

.testimonial-role {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 768px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .cta-container {
    padding: var(--space-8);
  }
}

/* ====================================
   CTA SECTION
   ==================================== */

.cta {
  background: var(--color-dark-elevated);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  opacity: 0.3;
}

/* Animated light orbs */
.cta::after {
  content: '';
  position: absolute;
  inset: -50%;
  background: 
    radial-gradient(
      circle at 20% 40%,
      rgba(99, 102, 241, 0.15),
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 60%,
      rgba(6, 182, 212, 0.12),
      transparent 40%
    ),
    radial-gradient(
      circle at 50% 80%,
      rgba(139, 92, 246, 0.1),
      transparent 35%
    );
  animation: ctaLightOrbs 15s ease-in-out infinite;
  opacity: 0.8;
  z-index: 0;
}

@keyframes ctaLightOrbs {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }
  33% {
    transform: translate(5%, 10%) scale(1.1);
    opacity: 0.9;
  }
  66% {
    transform: translate(-5%, -5%) scale(0.95);
    opacity: 0.7;
  }
}

.cta-container {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  padding: var(--space-12);
  border-radius: var(--radius-2xl);
  background: linear-gradient(180deg, rgba(26, 26, 36, 0.55) 0%, rgba(18, 18, 26, 0.82) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(16px);
}

.cta-tag {
  margin-bottom: var(--space-5);
}

.cta-title {
  margin-bottom: var(--space-6);
}

.cta-description {
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: var(--space-10);
  text-shadow: 0 0 20px rgba(99, 102, 241, 0.15), 0 0 40px rgba(139, 92, 246, 0.08);
}

.cta-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ====================================
   FOOTER
   ==================================== */

.footer {
  background: var(--color-dark);
  /* Removed harsh border-top, using gradient fade instead */
  padding: var(--space-20) 0 var(--space-8);
  position: relative;
  overflow: hidden;
}

/* Subtle gradient separator instead of harsh line */
.footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(99, 102, 241, 0.15) 20%,
    rgba(6, 182, 212, 0.15) 50%,
    rgba(99, 102, 241, 0.15) 80%,
    transparent 100%
  );
  z-index: 2;
}

/* Footer ambient light */
.footer::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 0;
  right: 0;
  height: 200%;
  background: 
    radial-gradient(
      ellipse at 30% 0%,
      rgba(99, 102, 241, 0.08),
      transparent 50%
    ),
    radial-gradient(
      ellipse at 70% 0%,
      rgba(6, 182, 212, 0.06),
      transparent 50%
    );
  animation: footerLightDrift 18s ease-in-out infinite;
  opacity: 0.6;
  pointer-events: none;
}

@keyframes footerLightDrift {
  0%, 100% {
    transform: translateY(0) scaleX(1);
    opacity: 0.5;
  }
  50% {
    transform: translateY(-20px) scaleX(1.1);
    opacity: 0.8;
  }
}

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

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-bottom: var(--space-6);
  display: flex;
  flex-direction: row;
  align-items: center;
  position: relative;
}

/* Footer logo ambient glow — continuous, matches site palette */
.footer-logo::before {
  content: '';
  position: absolute;
  inset: -12px -18px;
  background: radial-gradient(
    ellipse at 30% 50%,
    rgba(99, 102, 241, 0.3) 0%,
    rgba(192, 132, 252, 0.18) 40%,
    rgba(34, 211, 238, 0.08) 70%,
    transparent 100%
  );
  filter: blur(14px);
  animation: footerLogoGlow 3s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
}

@keyframes footerLogoGlow {
  0%, 100% {
    opacity: 0.5;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.footer-slogan {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-primary-light);
  font-style: italic;
  margin-bottom: var(--space-4);
  letter-spacing: 0.02em;
}

.footer-description {
  color: var(--color-text-tertiary);
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.footer-section-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-5);
}

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

.footer-links li {
  margin-bottom: var(--space-3);
}

.footer-links a {
  color: var(--color-text-tertiary);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-primary-light);
}

/* Footer inline brand trademark */
.footer-brand-inline {
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  display: inline;
}

.footer-tm-inline {
  font-size: 0.72em;
  font-weight: 800;
  color: #c084fc;
  position: relative;
  top: -0.45em;
  margin-left: 0.02em;
  display: inline-block;
  animation: footerTmGlow 3s ease-in-out infinite;
  text-shadow:
    0 0 5px rgba(192, 132, 252, 0.9),
    0 0 12px rgba(129, 140, 248, 0.6),
    0 0 24px rgba(99, 102, 241, 0.4);
}

@keyframes footerTmGlow {
  0%, 100% {
    color: #c084fc;
    text-shadow:
      0 0 4px rgba(192, 132, 252, 0.8),
      0 0 10px rgba(129, 140, 248, 0.5),
      0 0 20px rgba(99, 102, 241, 0.3);
  }
  50% {
    color: #22d3ee;
    text-shadow:
      0 0 8px rgba(34, 211, 238, 1),
      0 0 18px rgba(6, 182, 212, 0.8),
      0 0 34px rgba(129, 140, 248, 0.5),
      0 0 55px rgba(99, 102, 241, 0.25);
  }
}

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  position: relative;
}

.footer-bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(99, 102, 241, 0.25) 30%,
    rgba(192, 132, 252, 0.35) 50%,
    rgba(34, 211, 238, 0.25) 70%,
    transparent 100%
  );
  animation: footerLineGlow 4s ease-in-out infinite;
}

@keyframes footerLineGlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.footer-social {
  display: flex;
  gap: var(--space-4);
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-dark-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.social-link:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }
}

/* ============================================================
   ✨ EYE-CATCHING ANIMATIONS — PREMIUM VISUAL LAYER
   ============================================================ */

/* --- HERO: Animated Laser Grid Lines (subtle, futuristic) --- */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  animation: gridDrift 30s linear infinite;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 80%);
}

@keyframes gridDrift {
  0%   { background-position: 0 0; }
  100% { background-position: 80px 80px; }
}

/* --- HERO TAG: Ring pulse behind the dot --- */
.hero-tag-dot::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0;
  animation: dotRing 2s ease-out infinite;
}

.hero-tag-dot {
  position: relative;
}

@keyframes dotRing {
  0%   { opacity: 0.7; transform: scale(1); }
  100% { opacity: 0; transform: scale(3.5); }
}

/* --- STAT ITEMS: Neon underline sweep on visible --- */
.stat-item.visible .stat-value {
  animation: statReveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
             statShine 4s ease-in-out 0.8s infinite;
}

@keyframes statReveal {
  0%   { opacity: 0; transform: translateY(20px) scale(0.85); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes statShine {
  0%, 100% {
    filter: drop-shadow(0 0 0px rgba(99,102,241,0));
  }
  50% {
    filter: drop-shadow(0 0 12px rgba(99,102,241,0.7)) drop-shadow(0 0 30px rgba(192,132,252,0.3));
  }
}

/* --- PILLAR CARDS: Neon border trace on hover --- */
.pillar-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  border: 2px solid transparent;
  background: linear-gradient(var(--color-dark-elevated), var(--color-dark-elevated)) padding-box,
              linear-gradient(135deg, #6366f1, #c084fc, #22d3ee, #6366f1) border-box;
  background-size: 100% 100%, 300% 300%;
  opacity: 0;
  transition: opacity var(--transition-slow);
  animation: borderTrace 4s linear infinite paused;
}

.pillar-card:hover::after {
  opacity: 1;
  animation-play-state: running;
}

@keyframes borderTrace {
  0%   { background-position: 100% 100%, 0% 0%; }
  100% { background-position: 100% 100%, 300% 300%; }
}

/* --- GLASS CARDS: Shimmer sweep on hover --- */
.glass-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 10%,
    rgba(255, 255, 255, 0.07) 50%,
    transparent 90%
  );
  border-radius: inherit;
  transition: none;
  pointer-events: none;
  z-index: 2;
}

.glass-card {
  overflow: hidden;
  position: relative;
}

.glass-card:hover::after {
  animation: glassShimmer 0.7s ease-in-out forwards;
}

@keyframes glassShimmer {
  0%   { left: -100%; }
  100% { left: 160%; }
}

/* --- SECTION TAGS: Breathing glow ring --- */
.section-tag {
  position: relative;
  overflow: visible;
  animation: tagBreath 3s ease-in-out infinite;
}

@keyframes tagBreath {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(99,102,241,0),
                inset 0 0 0 0 rgba(99,102,241,0);
  }
  50% {
    box-shadow: 0 0 12px 2px rgba(99,102,241,0.3),
                inset 0 0 8px rgba(99,102,241,0.1);
  }
}

/* --- TESTIMONIAL CARDS: Top glow border animate --- */
.testimonial-card {
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  right: auto;
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #818cf8, #c084fc, #22d3ee, transparent);
  animation: testimonialLineSlide 5s ease-in-out infinite;
  border-radius: 1px;
}

@keyframes testimonialLineSlide {
  0%   { left: -100%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 150%; opacity: 0; }
}

/* --- CTA BUTTON PRIMARY: Aurora pulse ring --- */
.btn-primary.glow {
  overflow: visible;
}

.btn-primary.glow::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  opacity: 0;
  animation: auroraRing 3s ease-in-out infinite;
  z-index: -1;
  filter: blur(8px);
}

@keyframes auroraRing {
  0%, 100% { opacity: 0; transform: scale(1); }
  50%       { opacity: 0.55; transform: scale(1.06); }
}

/* --- HERO FLOAT CARDS: Colored border accent --- */
.hero-float-1 {
  border-color: rgba(99,102,241,0.35);
  animation: float 6s ease-in-out infinite,
             floatBorderPulse1 3s ease-in-out infinite;
}

.hero-float-2 {
  border-color: rgba(34,211,238,0.35);
  animation: float 6s ease-in-out infinite,
             floatBorderPulse2 3s ease-in-out infinite;
  animation-delay: 2s, 1s;
}

@keyframes floatBorderPulse1 {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99,102,241,0), 0 8px 32px rgba(0,0,0,0.4); }
  50%       { box-shadow: 0 0 20px 4px rgba(99,102,241,0.35), 0 8px 32px rgba(0,0,0,0.4); }
}

@keyframes floatBorderPulse2 {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,211,238,0), 0 8px 32px rgba(0,0,0,0.4); }
  50%       { box-shadow: 0 0 20px 4px rgba(34,211,238,0.35), 0 8px 32px rgba(0,0,0,0.4); }
}

/* --- FOOTER SOCIAL LINKS: Glow on hover --- */
.social-link:hover {
  box-shadow: 0 0 12px rgba(99,102,241,0.5), 0 0 24px rgba(192,132,252,0.25);
}

/* --- HERO SECTION: Slow drifting orbs (background depth) --- */
.hero-content::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  left: -180px;
  top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(99,102,241,0.09) 0%, transparent 70%);
  border-radius: 50%;
  animation: orbDrift1 18s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes orbDrift1 {
  0%, 100% { transform: translateY(-50%) scale(1); opacity: 0.7; }
  33%       { transform: translateY(-60%) scale(1.15) translateX(30px); opacity: 1; }
  66%       { transform: translateY(-40%) scale(0.9) translateX(-20px); opacity: 0.6; }
}

/* --- STAGGER 5 & 6 for existing classes --- */
.stagger-5 { transition-delay: 500ms; }
.stagger-6 { transition-delay: 600ms; }

/* ====================================
   GRADIENT TEXT — CLEAN (no blur glow)
   ==================================== */
