/* ==========================================================================
   CONVERSION FOCUSED SEO CSS
   ========================================================================== */

/* --------------------------------------------------------------------------
   ANIMATIONS & REVEALS
   -------------------------------------------------------------------------- */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed,
.reveal-scale.revealed {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* --------------------------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------------------------- */
.conv-hero {
  padding: 180px 0 100px;
  background: linear-gradient(180deg, var(--clr-surface-2) 0%, var(--clr-surface) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.conv-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.conv-hero-label {
  display: inline-block;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--clr-accent);
  background: rgba(181, 36, 106, 0.08);
  border: 1px solid rgba(181, 36, 106, 0.15);
  border-radius: 40px;
  margin-bottom: 28px;
  box-shadow: 0 4px 15px rgba(181, 36, 106, 0.08);
}

.conv-hero-title {
  font-family: var(--font-headings);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--clr-primary);
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(26,46,68,0.05);
  white-space: nowrap;
}

.conv-hero-desc {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--clr-text-muted);
  margin-bottom: 40px;
  max-width: 680px;
  margin-inline: auto;
  font-weight: 400;
}

/* Subtle animated background grid */
.conv-hero-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(26, 46, 68, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 46, 68, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
  pointer-events: none;
  animation: bg-pan 30s linear infinite;
}
@keyframes bg-pan {
  0% { transform: translateY(0); }
  100% { transform: translateY(-40px); }
}

/* --------------------------------------------------------------------------
   SECTION 1: PERFORMANCE SEO BENTO GRID
   -------------------------------------------------------------------------- */
.conv-section {
  padding: 100px 0;
  position: relative;
  background: var(--clr-surface);
}

.conv-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.conv-label {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--clr-accent);
  margin-bottom: 16px;
}

.conv-header h2 {
  font-family: var(--font-headings);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--clr-primary);
  margin-bottom: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.conv-header p {
  color: var(--clr-text-muted);
  font-size: 1.15rem;
  line-height: 1.6;
}

.funnel-layout {
  display: flex;
  align-items: center;
  gap: 64px;
}

.funnel-content {
  flex: 1;
}

.funnel-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.funnel-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 20px;
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 4px 20px rgba(26,46,68,0.03);
}

.funnel-step:hover {
  transform: translateX(8px);
  border-color: var(--clr-accent-pale);
  box-shadow: 0 15px 30px rgba(26,46,68,0.06), 0 0 0 1px var(--clr-accent-pale);
}

.step-icon {
  width: 48px;
  height: 48px;
  background: var(--clr-accent-pale);
  color: var(--clr-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.step-text h3 {
  font-family: var(--font-headings);
  font-size: 1.25rem;
  color: var(--clr-primary);
  margin-bottom: 8px;
  font-weight: 700;
}

.step-text p {
  font-size: 0.95rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
}

/* Funnel Visual Container */
.funnel-visual {
  flex: 1.1;
  position: relative;
  height: 540px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, var(--clr-surface-2), var(--clr-surface));
  border-radius: 32px;
  border: 1px solid var(--clr-border);
  padding: 40px;
}

.funnel-layer {
  width: 100%;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: -16px; /* Overlap effect */
  box-shadow: 0 10px 30px rgba(26,46,68,0.06);
  position: relative;
  transition: transform 0.4s var(--ease-out);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.funnel-layer:nth-child(1) { width: 100%; z-index: 1; transform: scale(1); }
.funnel-layer:nth-child(2) { width: 90%; z-index: 2; transform: scale(0.98); }
.funnel-layer:nth-child(3) { width: 80%; z-index: 3; transform: scale(0.96); background: var(--clr-primary); color: #fff; border: none; }

.funnel-layer:hover {
  transform: translateY(-5px) scale(1.02);
  z-index: 10;
}

.layer-label { font-weight: 600; font-size: 1.05rem; }
.funnel-layer:nth-child(3) .layer-label { color: #fff; }
.funnel-layer:nth-child(3) .layer-value { color: var(--clr-accent-light); font-weight: 700; }

.layer-value { font-weight: 700; font-size: 1.2rem; color: var(--clr-primary); }

.floating-badge {
  position: absolute;
  top: 10%; right: -20px;
  background: var(--clr-accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(181, 36, 106, 0.3);
  animation: float 4s ease-in-out infinite;
  z-index: 10;
}

/* Remove old bento items */

/* --------------------------------------------------------------------------
   SECTION 2: CONVERSION INTELLIGENCE DASHBOARD
   -------------------------------------------------------------------------- */
.conv-intel {
  padding: 120px 0;
  background: var(--clr-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #fff;
}

.conv-intel .conv-header h2 { color: #fff; }
.conv-intel .conv-header p { color: #a0aec0; }
.conv-intel .conv-label { color: var(--clr-accent-light); }

.intel-split {
  display: flex;
  align-items: center;
  gap: 80px; /* Increased gap for breathing room */
}

.intel-content {
  flex: 1;
}

.intel-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.intel-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  gap: 20px;
  transition: all 0.3s ease;
}

.intel-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(181, 36, 106, 0.4);
  transform: translateX(10px);
}

.intel-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(181, 36, 106, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--clr-accent-light);
}

.intel-item h4 {
  font-family: var(--font-headings);
  font-size: 1.25rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.intel-item p {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.5;
}

/* Visual Dashboard Modules */
.intel-visual {
  flex: 1.2; /* Slightly wider for visual balance */
  position: relative;
  height: 460px; /* Compacted height */
}

.dashboard-module {
  position: absolute;
  background: #111e2f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mod-top {
  top: 10px; right: 0; width: 360px; z-index: 2;
  animation: float 6s ease-in-out infinite;
}

.mod-bottom {
  bottom: 10px; left: 0; width: 340px; z-index: 3;
  animation: float 8s ease-in-out infinite reverse;
}

.mod-back {
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 100%; height: 320px;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}

.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.metric-label { font-size: 0.85rem; color: #a0aec0; text-transform: uppercase; letter-spacing: 1px; }
.metric-value { font-size: 1.5rem; font-weight: 700; color: #fff; font-family: var(--font-headings); }
.metric-lift { color: #10b981; font-size: 0.9rem; font-weight: 600; display: flex; align-items: center; gap: 4px; }

/* --------------------------------------------------------------------------
   SECTION 3: PREMIUM CTA BANNER
   -------------------------------------------------------------------------- */
.conv-cta {
  padding: 80px 0 120px;
  background: var(--clr-surface);
}

.conv-cta-banner {
  background: linear-gradient(135deg, var(--clr-surface), var(--clr-surface-2));
  border: 1px solid var(--clr-border);
  border-radius: 32px;
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(26,46,68,0.05);
}

.conv-cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(181, 36, 106, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.conv-cta-banner h2 {
  font-family: var(--font-headings);
  font-size: 2.5rem;
  color: var(--clr-primary);
  margin-bottom: 20px;
  font-weight: 800;
  position: relative;
  z-index: 2;
}

.conv-cta-banner p {
  font-size: 1.15rem;
  color: var(--clr-text-muted);
  max-width: 500px;
  margin: 0 auto 32px;
  position: relative;
  z-index: 2;
}

.conv-cta-banner .btn {
  position: relative;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .funnel-layout {
    flex-direction: column;
  }
  
  .intel-split {
    flex-direction: column;
    gap: 40px;
  }
  
  .intel-visual {
    width: 100%;
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .conv-hero-title {
    white-space: normal;
  }

  .conv-hero {
    padding: 140px 0 80px;
  }
  
  .funnel-visual {
    padding: 24px;
    height: auto;
  }
  
  .floating-badge {
    position: static;
    display: inline-block;
    margin-bottom: 20px;
    animation: none;
  }

  .intel-visual {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .dashboard-module {
    position: static;
    width: 100%;
    animation: none;
    transform: none !important;
  }
  
  .mod-back { display: none; }
  
  .conv-cta-banner {
    padding: 40px 24px;
  }
  
  .conv-cta-banner h2 {
    font-size: 2rem;
  }
}

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