@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette - Echo9X Custom */
  --bg-primary: #07080b;
  --bg-secondary: #0d0f15;
  --bg-tertiary: #151822;
  --bg-glow: #1a102f;
  
  --color-cream: #eceae2;
  --color-lavender: #d1c4e9;
  --color-rose: #e5c3d1;
  
  --color-purple: #8b5cf6;
  --color-pink: #ec4899;
  --color-violet: #6d28d9;
  
  --text-primary: #eceae2;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --gradient-accent: linear-gradient(135deg, var(--color-purple) 0%, var(--color-pink) 100%);
  --gradient-glow: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(236, 72, 153, 0.05) 50%, rgba(0, 0, 0, 0) 100%);
  --gradient-dark: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  
  /* Borders & Glassmorphism */
  --border-color: rgba(236, 234, 226, 0.08);
  --border-glow: rgba(139, 92, 246, 0.2);
  --glass-bg: rgba(13, 15, 21, 0.75);
  --glass-border: rgba(236, 234, 226, 0.06);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  
  /* Typography */
  --font-headings: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Spacing */
  --section-padding: 7rem 0;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(rgba(236, 234, 226, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 234, 226, 0.012) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: center;
  pointer-events: none;
  z-index: 0;
}

/* Base Typo */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utility Layout */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: var(--section-padding);
  position: relative;
}

.grid {
  display: grid;
  gap: 2rem;
}

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

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

/* Decorative Glow Blobs */
.glow-blob {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, rgba(236, 72, 153, 0.05) 50%, rgba(0,0,0,0) 80%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
}

.glow-1 { top: 10%; left: -100px; }
.glow-2 { top: 40%; right: -200px; }
.glow-3 { bottom: 10%; left: 20%; }

/* Buttons & Interactive */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, #ec4899 0%, #7c3aed 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: 1;
  border-radius: 9999px;
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5), 0 0 15px rgba(236, 72, 153, 0.3);
}

.btn-primary > * {
  position: relative;
  z-index: 2;
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-lavender);
  color: #fff;
  transform: translateY(-2px);
}

/* Shared Header/Navbar */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: all var(--transition-normal);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  padding: 0.75rem 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  transition: height var(--transition-normal);
}

.header.scrolled .container {
  height: 70px;
}

/* Echo9X Logo Recreated SVG */
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-svg {
  height: 56px;
  width: auto;
  aspect-ratio: 25 / 8;
  display: block;
  transition: height var(--transition-normal);
}

.header.scrolled .logo-svg {
  height: 46px;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  gap: 2.2rem;
  align-items: center;
}

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

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: width var(--transition-normal);
}

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

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 110;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    padding: 3rem;
    transition: right var(--transition-slow);
    z-index: 105;
  }
  .nav-menu.active {
    right: 0;
  }
  .nav-menu .btn {
    width: 100%;
  }
}

/* Custom Text Styles */
.text-gradient {
  background: linear-gradient(135deg, var(--color-cream) 20%, var(--color-lavender) 60%, var(--color-rose) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-purple-pink {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  font-family: var(--font-headings);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-title-wrap {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.section-title-wrap.left {
  text-align: left;
  margin-left: 0;
}

.section-title {
  margin-bottom: 1.2rem;
}

.section-desc {
  font-size: 1.15rem;
  line-height: 1.6;
}

/* Glass Card Component */
.glass-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
  z-index: 1;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(800px circle at var(--x, 0px) var(--y, 0px), rgba(139, 92, 246, 0.08), transparent 40%);
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

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

.glass-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.08);
}

/* Service Card Specific */
.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(139, 92, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--color-lavender);
  font-size: 1.8rem;
  border: 1px solid rgba(139, 92, 246, 0.2);
  transition: all var(--transition-normal);
}

.glass-card:hover .card-icon {
  background: var(--gradient-accent);
  color: #fff;
  border-color: transparent;
  transform: scale(1.1);
}

.card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-lavender);
  gap: 0.4rem;
}

.card-link i {
  transition: transform var(--transition-fast);
}

.glass-card:hover .card-link i {
  transform: translateX(4px);
}

/* Hero Section Styles */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 160px;
  padding-bottom: 80px;
  background-image: radial-gradient(circle at 70% 30%, var(--bg-glow) 0%, var(--bg-primary) 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 4rem;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 1.2rem;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-ctas {
    justify-content: center;
  }
}

/* Hero Interactive Dashboard SVG */
.hero-visual {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  border-radius: 20px;
  background: rgba(13, 15, 21, 0.6);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), 0 20px 50px rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  position: relative;
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  background: linear-gradient(135deg, rgba(139,92,246,0.3) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* Trusted Partner Section */
.partners-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 4rem 0;
}

.partners-title {
  text-align: center;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.partner-logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  gap: 3rem;
  opacity: 0.6;
}

.partner-logo {
  height: 32px;
  filter: grayscale(1) brightness(1.5);
  transition: opacity var(--transition-fast);
}

.partner-logo:hover {
  opacity: 1;
  filter: none;
}

/* Value Props Grid */
.props-grid {
  margin-top: 4rem;
}

.prop-card {
  display: flex;
  gap: 1.2rem;
}

.prop-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(236, 72, 153, 0.1);
  border: 1px solid rgba(236, 72, 153, 0.2);
  color: var(--color-rose);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.prop-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* Industries Cards */
.industry-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.industry-card:hover {
  border-color: var(--color-lavender);
  background: var(--bg-tertiary);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.industry-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.industry-icon {
  font-size: 1.5rem;
  color: var(--color-rose);
}

.industry-title {
  font-size: 1.2rem;
}

.industry-note {
  grid-column: 1 / -1;
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-color);
  border-radius: 12px;
  color: var(--text-secondary);
  margin-top: 1.5rem;
}

/* Why Choose Us Split */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

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

.why-bullets {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.why-bullet-item {
  display: flex;
  gap: 1rem;
}

.why-bullet-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.why-bullet-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}

/* Step Process Visual */
.process-grid {
  grid-template-columns: repeat(5, 1fr);
  position: relative;
  margin-top: 4rem;
}

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

.process-step {
  text-align: center;
  position: relative;
}

.process-step::after {
  content: '';
  position: absolute;
  top: 30px;
  left: calc(50% + 35px);
  width: calc(100% - 70px);
  height: 2px;
  background: dashed rgba(139, 92, 246, 0.2);
  z-index: 1;
}

.process-step:last-child::after {
  display: none;
}

@media (max-width: 1024px) {
  .process-step::after { display: none; }
}

.process-num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.5rem;
  margin: 0 auto 1.5rem auto;
  color: var(--color-lavender);
  z-index: 2;
  position: relative;
  transition: all var(--transition-normal);
}

.process-step:hover .process-num {
  border-color: var(--color-purple);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
  color: #fff;
  background: var(--gradient-accent);
}

.process-title {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

/* Results & Case Study Widget */
.results-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.results-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (max-width: 768px) {
  .results-stats-row { grid-template-columns: repeat(2, 1fr); }
}

.stat-item {
  text-align: center;
  padding: 2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
}

.stat-number {
  font-size: 3.5rem;
  font-family: var(--font-headings);
  font-weight: 800;
  margin-bottom: 0.5rem;
  display: block;
}

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

/* Case Study Tabbed Interface */
.cases-widget {
  margin-top: 3rem;
}

.tab-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  overflow-x: auto;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.6rem 1.5rem;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}

.tab-btn.active {
  color: var(--color-cream);
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -17px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient-accent);
  transition: width var(--transition-normal);
}

.tab-btn.active::after {
  width: 100%;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 900px) {
  .tab-content.active { grid-template-columns: 1fr; gap: 2.5rem; }
}

.case-body h4 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.case-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 0.3rem 1rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 500;
}

.case-metrics-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.case-metric {
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.1);
  padding: 1.2rem;
  border-radius: 12px;
}

.case-metric-val {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-lavender);
  display: block;
}

.case-visual-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* FAQ Accordion */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.faq-item {
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.faq-item.active {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 5px 20px rgba(139, 92, 246, 0.05);
}

.faq-trigger {
  width: 100%;
  padding: 1.5rem 2rem;
  background: none;
  border: none;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--text-primary);
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 1.1rem;
}

.faq-icon {
  font-size: 1.2rem;
  color: var(--color-rose);
  transition: transform var(--transition-normal);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out;
  padding: 0 2rem;
}

.faq-item.active .faq-content {
  padding-bottom: 1.5rem;
}

.faq-content p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Final CTA Section */
.cta-section {
  background: linear-gradient(135deg, #100b21 0%, #1c0e27 100%);
  border-top: 1px solid var(--border-color);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.08) 0%, transparent 60%);
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

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

.cta-wrap h2 {
  margin-bottom: 1rem;
}

.cta-wrap p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
}

/* Footer Styles */
.footer {
  background: #050608;
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 2.5rem 0;
}

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

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr; gap: 3rem; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.footer-about p {
  margin: 1.2rem 0;
  font-size: 0.95rem;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-normal);
}

.social-link:hover {
  background: var(--gradient-accent);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
}

.footer-column h5 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-headings);
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-link {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-link:hover {
  color: var(--text-primary);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* Animations Reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Contact Page Calendar Simulator */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .contact-split { grid-template-columns: 1fr; gap: 3rem; }
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-normal);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-purple);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .form-checkbox-group { grid-template-columns: 1fr; }
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-label input {
  accent-color: var(--color-purple);
}

/* Booking Widget */
.booking-widget {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.booking-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.booking-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  text-align: center;
}

.cal-day-header {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 0.5rem 0;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-secondary);
}

.cal-day.muted {
  color: rgba(255,255,255,0.1);
  pointer-events: none;
}

.cal-day.active {
  background: var(--gradient-accent);
  color: #fff;
  font-weight: 600;
}

.cal-day:not(.muted):not(.active):hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.time-slot {
  padding: 0.6rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  text-align: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: rgba(255,255,255,0.01);
}

.time-slot.active {
  border-color: var(--color-pink);
  color: #fff;
  background: rgba(236, 72, 153, 0.1);
}

.time-slot:not(.active):hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--text-secondary);
}

.booking-confirm-card {
  text-align: center;
  padding: 3rem 2rem;
}

.confirm-success-icon {
  font-size: 3.5rem;
  color: #10b981;
  margin-bottom: 1.5rem;
}

/* Service Detail Lists */
.service-feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.service-feature-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.service-feature-item i {
  color: var(--color-rose);
  font-size: 0.85rem;
}

/* Testimonial Section Styles */
.testimonials-section {
  background: var(--bg-secondary);
}

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

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

.testimonial-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.testimonial-rating {
  color: #fbbf24;
  margin-bottom: 1.2rem;
}

.testimonial-quote {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  font-size: 1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #2d3748;
}

.testimonial-meta h5 {
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.testimonial-meta span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Blog Styles */
.blog-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

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

.blog-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-lavender);
}

.blog-img-wrap {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-secondary);
}

.blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-img {
  transform: scale(1.05);
}

.blog-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  padding: 0.25rem 0.85rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-lavender);
}

.blog-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.blog-title {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.blog-excerpt {
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.blog-readmore {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-rose);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.blog-readmore i {
  transition: transform var(--transition-fast);
}

.blog-card:hover .blog-readmore i {
  transform: translateX(4px);
}

/* Case Study Template Detail Layout */
.case-detail-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-top: 3rem;
}

@media (max-width: 900px) {
  .case-detail-grid { grid-template-columns: 1fr; }
}

.case-sidebar-card {
  position: sticky;
  top: 120px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 16px;
}

.case-stat-block {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.case-stat-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.case-content-rich h3 {
  margin: 2.5rem 0 1rem 0;
}

.case-content-rich h3:first-child {
  margin-top: 0;
}

.case-content-rich p {
  margin-bottom: 1.5rem;
}

.case-content-rich ul {
  list-style: disc;
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.case-content-rich li {
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Scrollytelling & Pulsating Sonar Echo Waves
   ========================================================================== */

/* Sonar Echo Waves */
.echo-waves-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.echo-wave-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1000px;
  height: 1000px;
  pointer-events: none;
}

.echo-circle {
  stroke: var(--color-purple);
  stroke-width: 1px;
  fill: none;
  transform-origin: center;
  animation: echoPulse 12s infinite cubic-bezier(0.1, 0.8, 0.3, 1);
  opacity: 0;
}

.echo-circle:nth-child(1) { animation-delay: 0s; }
.echo-circle:nth-child(2) { animation-delay: 3s; stroke: var(--color-pink); }
.echo-circle:nth-child(3) { animation-delay: 6s; stroke: var(--color-lavender); }
.echo-circle:nth-child(4) { animation-delay: 9s; stroke: var(--color-rose); }

@keyframes echoPulse {
  0% {
    transform: scale(0.1);
    opacity: 0.8;
  }
  50% {
    opacity: 0.3;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

/* Scrollytelling Section Layout */
.scrolly-section {
  position: relative;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  min-height: 500vh; /* Pinned area for 5 steps */
}

.scrolly-section .grid-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: 
    linear-gradient(rgba(236, 234, 226, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 234, 226, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 1;
}

.sticky-wrapper {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 2;
}

.scrolly-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 4rem;
  height: 100%;
  position: relative;
  z-index: 3;
}

.scrolly-text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding-right: 2rem;
}

.scrolly-header {
  margin-bottom: 3rem;
}

.scrolly-header .tagline {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-purple);
  margin-bottom: 0.75rem;
}

.scrolly-steps-wrapper {
  position: relative;
  height: 250px; /* Space for step descriptions */
}

.scrolly-step-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.scrolly-step-item.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.scrolly-step-num {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 3rem;
  line-height: 1;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.scrolly-step-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Right Side Visuals */
.scrolly-visual-col {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scrolly-visual-viewport {
  width: 100%;
  height: 380px;
  max-width: 480px;
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--border-glow);
  background: rgba(13, 15, 21, 0.85);
  backdrop-filter: blur(20px);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}

.visual-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.visual-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: all;
}

.visual-slide-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.visual-slide-tag {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-lavender);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.visual-slide-status {
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  color: var(--text-secondary);
}

.visual-slide-status-live {
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 9999px;
  color: #10B981;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.visual-slide-status-live::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #10B981;
  border-radius: 50%;
  display: inline-block;
  animation: radarPulse 1.5s infinite;
}

.visual-slide-status-scale {
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  background: rgba(236, 72, 153, 0.1);
  border: 1px solid rgba(236, 72, 153, 0.3);
  border-radius: 9999px;
  color: var(--color-pink);
  font-weight: 700;
}

.visual-slide-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

/* Slide 1 - Discovery Visuals */
.audit-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.audit-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.audit-item.done i {
  color: #10B981;
}

.mini-chart {
  width: 100%;
  height: 120px;
  overflow: visible;
}

.chart-path-pulse {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawPath 3s forwards cubic-bezier(0.4, 0, 0.2, 1);
}

.glow-point {
  animation: pulseGlow 2s infinite alternate;
}

/* Slide 2 - Strategy Visuals */
.funnel-viz-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 0;
}

.funnel-node {
  width: 100%;
  max-width: 280px;
  padding: 0.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.funnel-node.highlight {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.15);
}

.funnel-node span {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.funnel-node small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.funnel-arrow {
  color: var(--color-rose);
  font-size: 1.1rem;
}

/* Slide 3 - Launch Visuals */
.launch-viz-container {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
}

.pulse-radar {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-dot {
  width: 12px;
  height: 12px;
  background: #10B981;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 15px #10B981;
}

.pulse-radar::after, .pulse-radar::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid #10B981;
  border-radius: 50%;
  animation: radarRing 2s infinite linear;
  opacity: 0;
}

.pulse-radar::before {
  animation-delay: 1s;
}

.live-stats-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
}

.metric-mini-card {
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: center;
}

.metric-mini-card span {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.metric-mini-card strong {
  font-size: 1.2rem;
  font-family: var(--font-headings);
  color: var(--text-primary);
}

/* Slide 4 - Optimize Visuals */
.optimize-viz-container {
  justify-content: center;
  height: 100%;
}

.chart-path-anim {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawPath 2.5s forwards cubic-bezier(0.4, 0, 0.2, 1);
}

/* Slide 5 - Scale Visuals */
.scale-viz-container {
  justify-content: center;
  position: relative;
}

.scale-chart {
  width: 100%;
  height: 140px;
  overflow: visible;
}

.scale-line-anim {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawPath 3.5s forwards ease-in-out;
}

.scale-rocket-icon {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 1.75rem;
  color: var(--color-pink);
  animation: floatUp 3s infinite ease-in-out;
}

.scale-stats {
  display: flex;
  justify-content: space-around;
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

.scale-stats strong {
  color: var(--text-primary);
  font-size: 1.1rem;
}

/* Keyframe Animations */
@keyframes drawPath {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes pulseGlow {
  from {
    r: 4px;
    filter: drop-shadow(0 0 1px var(--color-pink));
  }
  to {
    r: 6px;
    filter: drop-shadow(0 0 8px var(--color-pink));
  }
}

@keyframes radarPulse {
  0% { opacity: 0.3; }
  50% { opacity: 1; }
  100% { opacity: 0.3; }
}

@keyframes radarRing {
  0% {
    transform: scale(0.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

@keyframes floatUp {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* Responsive Scrollytelling Fallback */
@media (max-width: 1024px) {
  .scrolly-container {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .scrolly-section {
    min-height: auto !important;
    padding: 4.5rem 0;
  }
  
  .sticky-wrapper {
    position: relative !important;
    height: auto !important;
    overflow: visible !important;
  }
  
  .scrolly-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .scrolly-text-col {
    padding-right: 0;
  }
  
  .scrolly-steps-wrapper {
    height: auto !important;
    display: flex;
    flex-direction: column;
    gap: 3rem;
  }
  
  .scrolly-step-item {
    position: relative !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: all !important;
    border-left: 2px solid var(--border-glow);
    padding-left: 1.5rem;
  }
  
  .scrolly-visual-col {
    display: none; /* Hide visual column on mobile layout for better UX */
  }
}

/* ===================================================
   Scrollytelling Section – Scroll-driven BG Transitions
   =================================================== */

/* Base: section has a smooth background transition */
.scrolly-section {
  background-color: #07080b;
  background-image: none;
  transition: background-color 0.9s cubic-bezier(0.4, 0, 0.2, 1),
              background-image 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Step 0 – Discovery: deep slate with purple glow */
.scrolly-section[data-active-step="0"] {
  background-color: #0a0c12;
  background-image: radial-gradient(ellipse 60% 55% at 70% 45%, rgba(109, 40, 217, 0.18) 0%, rgba(7, 8, 11, 0) 70%);
}

/* Step 1 – Strategy: cosmic blue */
.scrolly-section[data-active-step="1"] {
  background-color: #070a13;
  background-image: radial-gradient(ellipse 65% 55% at 65% 40%, rgba(37, 99, 235, 0.22) 0%, rgba(7, 8, 11, 0) 70%);
}

/* Step 2 – Launch: violet/magenta */
.scrolly-section[data-active-step="2"] {
  background-color: #0d0814;
  background-image: radial-gradient(ellipse 60% 55% at 70% 50%, rgba(139, 92, 246, 0.24) 0%, rgba(7, 8, 11, 0) 70%);
}

/* Step 3 – Optimize: rose/deep pink */
.scrolly-section[data-active-step="3"] {
  background-color: #130710;
  background-image: radial-gradient(ellipse 65% 50% at 60% 45%, rgba(236, 72, 153, 0.22) 0%, rgba(7, 8, 11, 0) 70%);
}

/* Step 4 – Scale: deep emerald */
.scrolly-section[data-active-step="4"] {
  background-color: #050d0a;
  background-image: radial-gradient(ellipse 60% 55% at 65% 45%, rgba(16, 185, 129, 0.2) 0%, rgba(7, 8, 11, 0) 70%);
}

/* ===================================================
   Per-Section Background Transitions (other sections)
   =================================================== */

/* Each <section> gets a smooth entrance tint via scroll-driven class added by JS */
/* Each <section> has a relative position to house background visual elements */
section {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.scrolly-section {
  overflow: visible !important;
}

/* Base style for section background elements overlay */
.section-bg-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Ensure section content container sits above background effects */
section > .container {
  position: relative;
  z-index: 2;
}

/* ==========================================
   1. Hero Section BG Visuals (Radar & Sonar ripples)
   ========================================== */
#hero-section .bg-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(236, 234, 226, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 234, 226, 0.015) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center top;
}

#hero-section .bg-concentric-circles {
  position: absolute;
  top: 35%;
  left: 70%;
  transform: translate(-50%, -50%) scale(calc(0.7 + var(--scroll-percent, 0) * 0.45));
  width: 600px;
  height: 600px;
  transition: transform 0.2s ease-out;
}

#hero-section .circle {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(139, 92, 246, 0.03);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: echoRipple 9s infinite linear;
}

#hero-section .circle.c1 { width: 200px; height: 200px; animation-delay: 0s; }
#hero-section .circle.c2 { width: 400px; height: 400px; animation-delay: 3s; }
#hero-section .circle.c3 { width: 600px; height: 600px; animation-delay: 6s; }

@keyframes echoRipple {
  0% {
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 0;
    border-color: rgba(139, 92, 246, 0.2);
  }
  30% {
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.4);
    opacity: 0;
    border-color: rgba(236, 72, 153, 0);
  }
}

/* ==========================================
   2. Partners Section BG (Subtle horizontal glowing line)
   ========================================== */
#partners-section .bg-wave-stream {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(236, 72, 153, 0.06) 0%, transparent 70%);
  opacity: 0;
  transform: translateY(calc(var(--scroll-percent, 0.5) * 60px - 30px));
  transition: opacity 1.5s ease, transform 0.3s ease-out;
}

#partners-section[data-section-active="true"] .bg-wave-stream {
  opacity: 1;
}

/* ==========================================
   3. Services Section BG (Grid Glow)
   ========================================== */
#services-section {
  background: linear-gradient(180deg, #07080b 0%, #0a0d16 100%);
}

#services-section .bg-grid-glow {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(139, 92, 246, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.012) 1px, transparent 1px);
  background-size: 40px 40px;
}

#services-section .bg-pulse-dots {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 30%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 85% 70%, rgba(236, 72, 153, 0.06) 0%, transparent 40%);
  opacity: 0.3;
  transform: scale(calc(0.95 + var(--scroll-percent, 0) * 0.15)) rotate(calc(var(--scroll-percent, 0) * 10deg));
  transition: opacity 1.5s ease, transform 0.4s ease-out;
}

#services-section[data-section-active="true"] .bg-pulse-dots {
  opacity: 1;
}

/* ==========================================
   4. Industries Section BG (Drifting sonar waves)
   ========================================== */
#industries-section {
  background-color: #0a0d16;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

#industries-section .bg-sonar-radar {
  position: absolute;
  top: 50%;
  left: 20%;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(236, 72, 153, 0.03);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(calc(0.65 + var(--scroll-percent, 0) * 0.5)) rotate(calc(var(--scroll-percent, 0) * -120deg));
  opacity: 0;
  transition: opacity 1.5s ease, transform 0.3s ease-out;
}

#industries-section[data-section-active="true"] .bg-sonar-radar {
  opacity: 1;
}

#industries-section .bg-drift-blobs .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.1;
  mix-blend-mode: screen;
}

#industries-section .bg-drift-blobs .blob.b1 {
  width: 350px;
  height: 350px;
  background: var(--color-purple);
  top: 15%;
  right: 8%;
  transform: translate(calc(var(--scroll-percent, 0) * 60px - 30px), calc(var(--scroll-percent, 0) * -40px + 20px));
  transition: transform 0.4s ease-out;
}

#industries-section .bg-drift-blobs .blob.b2 {
  width: 300px;
  height: 300px;
  background: var(--color-pink);
  bottom: 10%;
  left: 5%;
  transform: translate(calc(var(--scroll-percent, 0) * -50px + 25px), calc(var(--scroll-percent, 0) * 40px - 20px));
  transition: transform 0.4s ease-out;
}

/* ==========================================
   5. Why Choose Section BG (Geometric net/matrix)
   ========================================== */
#why-choose-section {
  background: linear-gradient(180deg, #0a0d16 0%, #07080b 100%);
}

#why-choose-section .bg-geometric-net {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 25%, rgba(139, 92, 246, 0.1) 0%, transparent 60%);
  opacity: 0;
  transform: scale(calc(0.9 + var(--scroll-percent, 0) * 0.2)) rotate(calc(var(--scroll-percent, 0) * 15deg));
  transition: opacity 1.5s ease, transform 0.3s ease-out;
}

#why-choose-section[data-section-active="true"] .bg-geometric-net {
  opacity: 1;
}

/* ==========================================
   6. Results Section BG (Rise line charts grid)
   ========================================== */
#results-section {
  background: linear-gradient(180deg, #07080b 0%, #0a0c12 100%);
}

#results-section .bg-chart-grid {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70%;
  background: linear-gradient(0deg, rgba(139, 92, 246, 0.04) 0%, transparent 100%);
  border-bottom: 1px solid rgba(139, 92, 246, 0.08);
  opacity: 0;
  transform: translateY(calc(var(--scroll-percent, 0) * -40px + 20px));
  transition: opacity 2s ease, transform 0.3s ease-out;
}

#results-section[data-section-active="true"] .bg-chart-grid {
  opacity: 1;
}

/* ==========================================
   7. Testimonials Section BG (Morphing warm liquid blobs)
   ========================================== */
#testimonials-section {
  background: linear-gradient(180deg, #0a0c12 0%, #0b070f 100%);
}

#testimonials-section .bg-morphing-blobs {
  position: absolute;
  inset: 0;
}

#testimonials-section .morph-blob {
  position: absolute;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  filter: blur(50px);
  opacity: 0.06;
  animation: morphing 14s infinite alternate ease-in-out;
}

#testimonials-section .morph-blob.m1 {
  width: 400px;
  height: 400px;
  background: var(--color-purple);
  left: 10%;
  top: 15%;
}

#testimonials-section .morph-blob.m2 {
  width: 350px;
  height: 350px;
  background: var(--color-pink);
  right: 10%;
  bottom: 15%;
  animation-delay: -7s;
}

@keyframes morphing {
  0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50% { border-radius: 30% 60% 70% 30% / 50% 60% 30% 70%; }
  100% { border-radius: 50% 50% 20% 80% / 20% 80% 60% 40%; }
}

/* ==========================================
   8. FAQ Section BG (Pulsing sound waves)
   ========================================== */
#faq-section {
  background: linear-gradient(180deg, #0b070f 0%, #060e0a 100%);
}

#faq-section .bg-soundwave {
  position: absolute;
  bottom: 8%;
  left: 6%;
  display: flex;
  gap: 8px;
  align-items: flex-end;
  height: 120px;
  opacity: 0.12;
}

#faq-section .bg-soundwave span {
  width: 4px;
  height: 25px;
  background: var(--color-lavender);
  border-radius: 2px;
  animation: soundwaveBounce 1.4s infinite ease-in-out;
}

#faq-section .bg-soundwave span:nth-child(2) { animation-delay: 0.2s; height: 50px; }
#faq-section .bg-soundwave span:nth-child(3) { animation-delay: 0.4s; height: 75px; }
#faq-section .bg-soundwave span:nth-child(4) { animation-delay: 0.6s; height: 100px; }
#faq-section .bg-soundwave span:nth-child(5) { animation-delay: 0.8s; height: 60px; }
#faq-section .bg-soundwave span:nth-child(6) { animation-delay: 1.0s; height: 35px; }

@keyframes soundwaveBounce {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(2.2); }
}

/* ==========================================
   9. Final CTA BG (Expanding echo ripples)
   ========================================== */
#cta-section {
  background: linear-gradient(160deg, #060e0a 0%, #07080b 100%);
}

#cta-section .bg-expanding-echo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: ctaPulse 4.5s infinite ease-in-out;
}

@keyframes ctaPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.4; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.9; }
}

/* ===================================================
   Framework Scrollytelling Custom Visual Layout Styles
   =================================================== */

/* Concentric diamond/rectangle ripples */
.framework-waves-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.framework-wave-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1000px;
  height: 1000px;
  pointer-events: none;
}

.framework-ripple {
  stroke: var(--color-pink);
  stroke-width: 1.5px;
  fill: none;
  transform-origin: center;
  animation: frameworkRipplePulse 10s infinite cubic-bezier(0.15, 0.85, 0.35, 1);
  opacity: 0;
}

.framework-ripple:nth-child(1) { animation-delay: 0s; }
.framework-ripple:nth-child(2) { animation-delay: 3.3s; stroke: var(--color-purple); }
.framework-ripple:nth-child(3) { animation-delay: 6.6s; stroke: var(--color-lavender); }

@keyframes frameworkRipplePulse {
  0% {
    transform: scale(0.2) rotate(45deg);
    opacity: 0.7;
  }
  50% {
    opacity: 0.25;
  }
  100% {
    transform: scale(1.3) rotate(45deg);
    opacity: 0;
  }
}

/* Background transitions for Framework Section specifically */
#framework-scrolly-section[data-active-step="0"] {
  background-color: #07060c;
  background-image: radial-gradient(ellipse 60% 55% at 75% 45%, rgba(139, 92, 246, 0.16) 0%, rgba(7, 8, 11, 0) 70%);
}

#framework-scrolly-section[data-active-step="1"] {
  background-color: #0d060e;
  background-image: radial-gradient(ellipse 65% 55% at 70% 40%, rgba(236, 72, 153, 0.18) 0%, rgba(7, 8, 11, 0) 70%);
}

#framework-scrolly-section[data-active-step="2"] {
  background-color: #050b11;
  background-image: radial-gradient(ellipse 60% 55% at 65% 50%, rgba(59, 130, 246, 0.2) 0%, rgba(7, 8, 11, 0) 70%);
}

/* Framework steps list item layout */
.framework-step-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.framework-step-item.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* framework visual slide container */
.framework-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.framework-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: all;
}

/* Stage 1: Traffic nodes style */
.traffic-loop-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
}

.traffic-nodes {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.node {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--glass-shadow);
}

.node.meta { background: #1877F2; top: 15px; left: 15px; }
.node.google { background: #EA4335; top: 15px; right: 15px; }
.node.audience { background: var(--color-purple); bottom: 15px; left: 50%; transform: translateX(-50%); }
.node.center-funnel {
  background: var(--gradient-accent);
  width: 54px;
  height: 54px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 25px rgba(139,92,246,0.5);
  border: 1px solid rgba(255,255,255,0.25);
  font-size: 1.25rem;
}

.traffic-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Stage 2: CRO mockup wireframe styles */
.cro-loop-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.wireframe-page {
  width: 250px;
  height: 170px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(5px);
}

.wf-hero {
  height: 25px;
  background: linear-gradient(90deg, rgba(139,92,246,0.25), rgba(236,72,153,0.1));
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.05);
}

.wf-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wf-input {
  height: 22px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  border-radius: 5px;
}

.wf-button {
  height: 26px;
  background: var(--color-pink);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  animation: buttonPulse 2s infinite alternate ease-in-out;
}

@keyframes buttonPulse {
  0% { transform: scale(1); opacity: 0.85; }
  100% { transform: scale(1.04); opacity: 1; box-shadow: 0 0 12px rgba(236,72,153,0.5); }
}

/* Stage 3: CRM / Offline Sync Logs layout */
.sync-loop-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: 100%;
  justify-content: center;
}

.sync-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.server-node, .crm-node {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  text-align: center;
  font-size: 1.1rem;
  color: var(--color-lavender);
}

.server-node small, .crm-node small {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  display: block;
  margin-top: 0.25rem;
}

.sync-path {
  font-size: 1.25rem;
  color: var(--color-pink);
}

.sync-arrow {
  animation: arrowMove 1.5s infinite linear;
}

@keyframes arrowMove {
  0% { transform: translateX(-8px); opacity: 0.3; }
  50% { opacity: 1; }
  100% { transform: translateX(8px); opacity: 0.3; }
}

.sync-logs {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
  background: rgba(0,0,0,0.3);
  padding: 0.75rem;
  border-radius: 8px;
  font-family: monospace;
  font-size: 0.75rem;
  border: 1px solid var(--border-color);
}

/* Mobile responsive fallback override for framework scrolly loop */
@media (max-width: 768px) {
  #framework-scrolly-section {
    min-height: auto !important;
    padding: 4.5rem 0;
  }
  
  .framework-step-item {
    position: relative !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: all !important;
    border-left: 2px solid var(--border-glow);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .framework-step-item:last-child {
    margin-bottom: 0;
  }
}

/* ==========================================================================
   Triptych Cards - Services / Core Capabilities Section
   ========================================================================== */
.services-scrolly-section {
  position: relative;
  width: 100%;
  background: radial-gradient(circle at 50% 20%, #0d091a 0%, var(--bg-primary) 80%);
  overflow: visible !important; /* Critical for sticky position */
}

/* Desktop layout: sticky scrollytelling */
@media (min-width: 769px) {
  .services-scrolly-section {
    height: 300vh; /* Extra scroll height for scrollytelling */
  }

  .services-sticky-wrapper {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
  }

  .services-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
  }

  .services-header-row {
    width: 100%;
    margin-bottom: 2.5rem;
    text-align: center;
  }

  .services-cards-row {
    position: relative;
    width: 100%;
    height: 520px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .triptych-cards-container {
    position: relative;
    width: 100%;
    height: 100%;
  }

  /* Card stack and transitions */
  .triptych-card {
    position: absolute;
    top: 0;
    left: 50%;
    width: 380px;
    height: 520px;
    margin-left: -190px; /* Half of width to absolute center the card */
    border-radius: 20px;
    background: rgba(13, 15, 21, 0.92); /* Slightly more opaque - skips backdrop-filter cost */
    border: 1px solid rgba(236, 234, 226, 0.07);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255,255,255,0.04);
    overflow: hidden;
    transform-origin: bottom center;
    will-change: transform; /* Promote to own GPU compositing layer */
  }

  /* Core transition fallback (JS will override these inline on scroll) */
  .triptych-card.card-1 {
    z-index: 12;
    transform: translate3d(0, 0, 0) rotate(-4deg);
  }

  .triptych-card.card-2 {
    z-index: 11;
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  .triptych-card.card-3 {
    z-index: 10;
    transform: translate3d(0, 0, 0) rotate(4deg);
  }
}

/* Card aesthetics shared styling */
.triptych-card {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
}

.triptych-card .card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.triptych-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
  line-height: 1.25;
}

.triptych-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

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

.card-num {
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--color-purple);
  font-weight: 700;
}

.card-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: var(--color-lavender);
  font-weight: 600;
}

/* Services items inside cards */
.triptych-services-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex-grow: 1;
}

.triptych-service-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.triptych-service-item .service-bullet {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--color-rose);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: all var(--transition-normal);
}

.triptych-card:hover .triptych-service-item .service-bullet {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.25);
  color: var(--color-lavender);
}

.triptych-service-item h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.triptych-service-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Interactive SVG panels in cards */
.card-graphic-panel {
  margin-top: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 0.75rem;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.graphic-svg {
  width: 100%;
  height: 100%;
}

.pulse-dot {
  animation: svgDotPulse 2s infinite ease-in-out;
}

@keyframes svgDotPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.5); opacity: 1; filter: drop-shadow(0 0 4px var(--color-purple)); }
}

/* Hover effects */
@media (min-width: 769px) {
  .triptych-card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 25px 60px rgba(139, 92, 246, 0.15);
  }
}

@keyframes indicatorPulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.3); opacity: 1; }
}

/* Utility */
.text-center {
  text-align: center;
}

.text-center .section-desc {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Mobile responsive layout */
@media (max-width: 768px) {
  .services-scrolly-section {
    padding: 5rem 0;
    overflow: hidden !important;
  }
  
  .services-sticky-wrapper {
    position: relative !important;
    height: auto !important;
    width: 100%;
  }

  .services-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 0 1.25rem;
  }

  .services-header-row {
    text-align: center;
    margin-bottom: 0;
  }

  .services-cards-row {
    height: auto !important;
  }

  .triptych-cards-container {
    position: relative !important;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    height: auto !important;
  }

  .triptych-card {
    position: relative !important;
    left: auto !important;
    margin-left: 0 !important;
    width: 100% !important;
    height: auto !important;
    transform: none !important;
    border-color: var(--border-color) !important;
  }
}

/* ==========================================================================
   Site Footer — QuoteVelocity-Inspired Redesign
   ========================================================================== */

.site-footer {
  position: relative;
  background: #0a0b10;
  overflow: hidden;
  border-top: 1px solid rgba(236, 234, 226, 0.06);
}

/* --- Decorative vertical grid lines --- */
.footer-grid-lines {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 0;
}

.footer-grid-lines span {
  display: block;
  width: 1px;
  height: 100%;
  background: rgba(236, 234, 226, 0.04);
}

/* --- Headline CTA row --- */
.footer-headline-row {
  position: relative;
  z-index: 1;
  padding: 7rem 0 5rem;
  border-bottom: 1px solid rgba(236, 234, 226, 0.06);
}

.footer-headline-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}

.footer-eyebrow {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-purple, #8b5cf6);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
}

.footer-big-title {
  font-family: var(--font-headings);
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 0;
}

.footer-big-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-pink) 50%, var(--color-lavender) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  text-decoration: none;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(236, 234, 226, 0.25);
  transition: color 0.3s ease, border-color 0.3s ease, gap 0.3s ease;
}

.footer-cta-link:hover {
  color: var(--color-purple);
  border-color: var(--color-purple);
  gap: 1.25rem;
}

.footer-cta-arrow {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.footer-cta-link:hover .footer-cta-arrow {
  transform: translate(3px, -3px);
}

/* --- Nav row --- */
.footer-nav-row {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
  border-bottom: 1px solid rgba(236, 234, 226, 0.06);
}

.footer-nav-container {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Brand column */
.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-logo-mark {
  text-decoration: none;
  display: inline-block;
}

.footer-logo-text {
  font-family: var(--font-headings);
  font-weight: 900;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-lavender) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 240px;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0.85rem 0;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-muted);
  font-size: 0.825rem;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-contact-item i {
  color: var(--color-purple);
  font-size: 0.85rem;
  width: 16px;
  text-align: center;
}

.footer-contact-item:hover {
  color: var(--text-primary);
}


.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(236, 234, 226, 0.08);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.footer-social-link:hover {
  color: var(--text-primary);
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.08);
}

/* Nav columns */
.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-nav-label {
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  opacity: 0.6;
}

.footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.footer-nav-list li {
  border-top: 1px solid rgba(236, 234, 226, 0.05);
}

.footer-nav-list li:last-child {
  border-bottom: 1px solid rgba(236, 234, 226, 0.05);
}

.footer-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.25s ease;
}

.footer-nav-link svg {
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  flex-shrink: 0;
  color: var(--color-purple);
}

.footer-nav-link:hover {
  color: var(--text-primary);
}

.footer-nav-link:hover svg {
  opacity: 1;
  transform: translate(0, 0);
}

/* --- Bottom bar --- */
.footer-bottom-bar {
  position: relative;
  z-index: 1;
  padding: 1.5rem 0;
}

.footer-bottom-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-copyright {
  font-size: 0.8rem;
  font-family: var(--font-mono, monospace);
  color: var(--text-muted);
  opacity: 0.5;
}

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

.footer-legal-links a {
  font-size: 0.8rem;
  font-family: var(--font-mono, monospace);
  color: var(--text-muted);
  opacity: 0.5;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: opacity 0.25s ease;
}

.footer-legal-links a:hover {
  opacity: 1;
  color: var(--text-primary);
}

/* Mobile */
@media (max-width: 768px) {
  .footer-headline-row {
    padding: 4rem 0 3rem;
  }

  .footer-big-title {
    font-size: clamp(3rem, 12vw, 5rem);
  }

  .footer-nav-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-nav-row {
    padding: 3rem 0;
  }

  .footer-bottom-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .footer-grid-lines span:nth-child(3),
  .footer-grid-lines span:nth-child(4),
  .footer-grid-lines span:nth-child(5) {
    display: none;
  }
}
