/* =====================================================
   ECHO VIRTUAL SUPPORT — Advanced Visual Layer
   Upgrades: Grid Hero, Bento Stats, Glow Cards,
   Dot-Grid Dark Section, Timeline Process,
   Gradient Borders, Dramatic Testimonials
   ===================================================== */

/* ===== HERO: GRID LINES + MESH GRADIENT ===== */
.hero {
  background:
    linear-gradient(180deg, #F0F4FF 0%, #FFFFFF 55%, #F8FAFF 100%);
  position: relative;
}

/* Subtle CSS grid lines overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(66,133,244,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(66,133,244,0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 1;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 30%, black 40%, transparent 100%);
}

/* Override hero-content to be above the grid */
.hero-content { z-index: 3; }

/* Hero glow orbs enhanced */
.hero-orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(66,133,244,0.22), transparent 70%);
  top: -200px; left: -250px;
}
.hero-orb-2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(155,114,207,0.18), transparent 70%);
  top: 30%; right: -200px;
}
.hero-orb-3 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(52,168,83,0.12), transparent 70%);
  bottom: -100px; left: 20%;
}

/* Hero headline — bigger */
.hero-headline {
  font-size: clamp(52px, 8vw, 96px);
  letter-spacing: -4px;
}

/* Badge upgrade — glassmorphism */
.hero-badge {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(66,133,244,0.2);
  box-shadow: 0 4px 20px rgba(66,133,244,0.1);
}

/* Hero visual card — diagonal clip */
.hero-visual-card {
  border-radius: 28px;
  box-shadow: 0 40px 100px rgba(66,133,244,0.18), 0 8px 32px rgba(0,0,0,0.1);
}

/* Stats row upgrade */
.hero-stats {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(66,133,244,0.15);
  box-shadow: 0 8px 40px rgba(66,133,244,0.1);
}

/* ===== BENTO GRID STATS SECTION ===== */
.bento-section {
  background: var(--dark-bg);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
/* Dot pattern background */
.bento-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.bento-cell {
  background: var(--dark-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.bento-cell:hover {
  border-color: rgba(66,133,244,0.35);
  transform: translateY(-4px);
}
.bento-cell::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(66,133,244,0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.bento-cell:hover::before { opacity: 1; }

/* Sizing helpers */
.bc-span-4 { grid-column: span 4; }
.bc-span-3 { grid-column: span 3; }
.bc-span-6 { grid-column: span 6; }
.bc-span-8 { grid-column: span 8; }

.bento-stat-num {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 1;
  margin-bottom: 8px;
}
.bento-stat-num.grad {
  background: linear-gradient(135deg, #4285F4, #9B72CF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.bento-stat-num.grad-green {
  background: linear-gradient(135deg, #34A853, #00BCD4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.bento-stat-num.grad-red {
  background: linear-gradient(135deg, #EA4335, #FBBC04);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.bento-stat-label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.bento-stat-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  margin-top: 6px;
  line-height: 1.6;
}
.bento-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.bento-tag.blue { background: rgba(66,133,244,0.15); color: #4285F4; }
.bento-tag.green { background: rgba(52,168,83,0.15); color: #34A853; }
.bento-tag.purple { background: rgba(155,114,207,0.15); color: #9B72CF; }
.bento-tag.yellow { background: rgba(251,188,4,0.15); color: #FBBC04; }

.bento-feature-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  line-height: 1.3;
  margin-bottom: 10px;
}
.bento-feature-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
}
.bento-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-top: 20px;
}
.bento-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.bento-icon svg { width: 22px; height: 22px; }
.bento-icon.blue { background: rgba(66,133,244,0.15); color: #4285F4; }
.bento-icon.green { background: rgba(52,168,83,0.15); color: #34A853; }
.bento-icon.purple { background: rgba(155,114,207,0.15); color: #9B72CF; }
.bento-icon.yellow { background: rgba(251,188,4,0.15); color: #FBBC04; }
.bento-icon.red { background: rgba(234,67,53,0.15); color: #EA4335; }

/* Large bento hero cell */
.bc-hero {
  background: linear-gradient(135deg, rgba(66,133,244,0.12), rgba(155,114,207,0.08));
  border-color: rgba(66,133,244,0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}
.bc-hero-headline {
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1px;
  line-height: 1.25;
}

/* Pricing preview bento cell */
.bc-pricing {
  background: linear-gradient(135deg, rgba(52,168,83,0.12), rgba(0,188,212,0.06));
  border-color: rgba(52,168,83,0.2);
}

/* ===== SECTION DIVIDER — DIAGONAL ===== */
.section-divider {
  height: 80px;
  overflow: hidden;
  position: relative;
  z-index: 5;
}
.section-divider svg {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 100%;
}

/* ===== ENHANCED SERVICE CARDS — GLOW ON HOVER ===== */
.service-card {
  border-radius: 24px;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.service-card:hover {
  transform: translateY(-10px) scale(1.015);
  box-shadow: 0 32px 80px rgba(66,133,244,0.18), 0 0 0 1px rgba(66,133,244,0.2) inset;
  border-color: rgba(66,133,244,0.3);
}
/* Gradient border effect on hover using pseudo */
.service-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(66,133,244,0.4), rgba(155,114,207,0.4), rgba(52,168,83,0.2));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.service-card:hover::before { opacity: 1; }

/* Image aspect ratio — more landscape for visual impact */
.service-card-img {
  aspect-ratio: 4 / 3;
}

/* ===== FEATURED SERVICE ROWS — More dramatic ===== */
.featured-service-row {
  background: var(--white);
  border: 1px solid transparent;
  background-clip: padding-box;
  position: relative;
  overflow: visible;
}
.featured-service-row::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(66,133,244,0.15), rgba(155,114,207,0.1), transparent);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.featured-service-row:hover::before { opacity: 1; }
.featured-service-row:hover {
  box-shadow: 0 40px 100px rgba(66,133,244,0.12);
  border-color: rgba(66,133,244,0.08);
}

.fsr-number {
  font-size: 120px;
  font-weight: 900;
  letter-spacing: -8px;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px rgba(66,133,244,0.12);
  position: absolute;
  top: -20px; right: 20px;
  pointer-events: none;
  user-select: none;
}

/* ===== DARK SECTION — DOT GRID ===== */
.dark-section {
  background: var(--dark-bg);
  position: relative;
}
.dark-section-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}
.dark-section > .container { position: relative; z-index: 2; }

/* ===== TIMELINE PROCESS ===== */
.timeline-section {
  background: var(--white);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.timeline-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
/* Connecting line */
.timeline-grid::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(12.5%);
  right: calc(12.5%);
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--purple), var(--green));
  z-index: 0;
}
.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.timeline-num {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.timeline-step.active .timeline-num,
.timeline-step:hover .timeline-num {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: white;
  border-color: transparent;
  transform: scale(1.15);
  box-shadow: 0 8px 32px rgba(66,133,244,0.35);
}
.timeline-step-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
  color: var(--text-primary);
}
.timeline-step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== TESTIMONIALS — DRAMATIC REDESIGN ===== */
.testimonials-section { background: var(--off-white); position: relative; overflow: hidden; }
.testimonials-section::before {
  content: '"';
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  font-size: 400px;
  font-family: Georgia, serif;
  color: rgba(66,133,244,0.04);
  pointer-events: none;
  line-height: 1;
}
.testimonials-masonry {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  align-items: start;
}
.tcard {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.4s ease;
}
.tcard:hover {
  transform: translateY(-8px) rotate(-0.5deg);
  box-shadow: 0 40px 80px rgba(0,0,0,0.1);
}
.tcard.featured {
  background: var(--dark-bg);
  border-color: rgba(255,255,255,0.06);
}
.tcard.featured .testimonial-text { color: rgba(255,255,255,0.7); }
.tcard.featured .author-name { color: var(--white); }
.tcard.featured .author-role { color: rgba(255,255,255,0.4); }
.tcard-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  border-radius: 3px 3px 0 0;
  opacity: 0;
  transition: opacity 0.3s;
}
.tcard:hover .tcard-accent { opacity: 1; }
.tcard.featured .tcard-accent { opacity: 1; }
.tcard-quote {
  font-size: 64px;
  line-height: 0.8;
  color: rgba(66,133,244,0.15);
  font-family: Georgia, serif;
  margin-bottom: 12px;
  display: block;
}
.tcard.featured .tcard-quote { color: rgba(255,255,255,0.1); }
.stars-row { display: flex; gap: 3px; margin-bottom: 16px; }
.star { color: #FBBC04; font-size: 14px; }

/* ===== CTA — FULL BLEED UPGRADE ===== */
.cta-card {
  background: linear-gradient(135deg, #0D0D12 0%, #0F1628 50%, #0D0D12 100%);
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
/* Animated gradient border */
.cta-card::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(66,133,244,0.5), rgba(155,114,207,0.5), rgba(52,168,83,0.3), rgba(66,133,244,0.5));
  background-size: 300% 300%;
  z-index: -1;
  animation: rotateGradient 6s ease infinite;
}
@keyframes rotateGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.cta-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.cta-content { position: relative; z-index: 2; }

/* CTA headline — oversized gradient text */
.cta-headline {
  font-size: clamp(40px, 6vw, 80px);
  letter-spacing: -3px;
  line-height: 1.0;
}

/* ===== ABOUT SECTION ENHANCEMENTS ===== */
.about-section {
  background: linear-gradient(180deg, var(--off-white) 0%, var(--white) 100%);
  position: relative;
}
.about-section::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(66,133,244,0.06), transparent 70%);
  pointer-events: none;
}

/* Showcase image upgrade */
.showcase-img {
  border-radius: 28px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.14);
  transition: transform 0.5s ease;
}
.image-showcase:hover .showcase-img { transform: scale(1.02); }

/* ===== SECTION HEADLINE — SIZE BOOST ===== */
.section-headline {
  font-size: clamp(38px, 5vw, 64px);
  letter-spacing: -2.5px;
}

/* ===== MARQUEE UPGRADE ===== */
.marquee-band {
  background: linear-gradient(90deg, #0D0D12, #161625, #0D0D12);
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.marquee-track {
  font-size: 11px;
  letter-spacing: 2.5px;
  color: rgba(255,255,255,0.4);
}
.marquee-track .sep { color: var(--blue); font-size: 16px; }
/* Second marquee row — reverse direction */
.marquee-band.reverse .marquee-track {
  animation-direction: reverse;
  animation-duration: 40s;
}

/* ===== VALUE SECTION — full bleed gradient bg ===== */
.value-section {
  background: linear-gradient(135deg, #F8FAFB 0%, #EFF4FF 50%, #F8FAFB 100%);
  position: relative;
}
.value-section::before {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--off-white));
  pointer-events: none;
}

/* ===== FEATURE ITEMS — LIGHT THEME ===== */
.feature-item-light {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  font-size: 15px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.feature-item-light:last-child { border-bottom: none; }
.feature-item-light:hover { color: var(--text-primary); }
.feature-check-light {
  width: 24px; height: 24px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: white; font-weight: 700; flex-shrink: 0;
}

/* ===== FOOTER — wordmark upgrade ===== */
.footer-wordmark {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.07;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .bento-grid { grid-template-columns: repeat(6, 1fr); }
  .bc-span-4 { grid-column: span 3; }
  .bc-span-3 { grid-column: span 3; }
  .bc-span-6 { grid-column: span 6; }
  .bc-span-8 { grid-column: span 6; }
  .timeline-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .timeline-grid::before { display: none; }
  .testimonials-masonry { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bc-span-4, .bc-span-3, .bc-span-6, .bc-span-8 { grid-column: span 2; }
  .timeline-grid { grid-template-columns: 1fr; }
  .testimonials-masonry { grid-template-columns: 1fr; }
  .hero-headline { letter-spacing: -2px; }
  .fsr-number { display: none; }
}

/* ===== MOBILE BOTTOM NAV — GLASSMORPHISM ===== */
.mobile-nav {
  position: fixed;
  bottom: 24px;
  left: 20px;
  right: 20px;
  height: 72px;
  background: rgba(22, 22, 31, 0.75);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  display: none;
  align-items: center;
  justify-content: space-around;
  padding: 0 12px;
  z-index: 2000;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(255,255,255,0.05);
}

@media (max-width: 768px) {
  .mobile-nav { display: flex; }
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
  text-decoration: none;
  flex: 1;
}

.mobile-nav-item svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.2px;
}

.mobile-nav-item span {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mobile-nav-item.active {
  color: var(--blue);
}

.mobile-nav-item:active {
  transform: scale(0.92);
}

/* ===== FLOATING ACTION HUB (FAB) ===== */
.fab-container {
  position: fixed;
  bottom: 110px; /* Above mobile nav */
  right: 24px;
  z-index: 1900;
  display: none;
}

@media (max-width: 768px) {
  .fab-container { display: block; }
}

.fab-main {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(66, 133, 244, 0.4);
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fab-main svg {
  width: 24px;
  height: 24px;
  transition: transform 0.4s ease;
}

.fab-container.open .fab-main {
  transform: rotate(135deg);
  background: var(--red);
}

.fab-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.4;
  animation: fabPulse 2s infinite;
  z-index: -1;
}

@keyframes fabPulse {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.8); opacity: 0; }
}

.fab-hub {
  position: absolute;
  bottom: 70px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fab-container.open .fab-hub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.fab-action {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(22, 22, 31, 0.9);
  backdrop-filter: blur(10px);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: var(--transition);
}

.fab-action svg { width: 20px; height: 20px; }

.fab-action:active { transform: scale(0.9); }

/* ===== SPRING MICRO-INTERACTIONS ===== */
.spring-tap {
  transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.spring-tap:active {
  transform: scale(0.94);
}

/* Scroll progress indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  z-index: 2100;
  transition: width 0.1s ease-out;
}

/* Adjust original footer for mobile nav height */
@media (max-width: 768px) {
  .footer { padding-bottom: 120px; }
}
