/**
 * Single responsibility: Layout and visual styles for new sections —
 * value props (S2), checkout (S4), testimonials (S6), and comparison table (S7).
 */

/* ─── Section 2: Value Props ─────────────────────────────────────────────────── */
/* ─── Section 2: Value Props (Innovative Design) ────────────────────────────── */
.value-props-section {
  position: relative;
  padding: var(--space-20) 0; /* Balanced spacing */
  background-color: #f8fafc;
}

/* Background Decorative elements */
.value-props-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.value-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
}

.value-orb--1 {
  top: -10%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
}

.value-orb--2 {
  bottom: -5%;
  right: -5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
}

.premium-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-6); /* Drastically reduced from 10 */
  position: relative;
  z-index: 1;
}

.pillar-card {
  position: relative;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-6); /* Reduced from 8 */
  display: flex;
  align-items: center;
  gap: var(--space-4);
  transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
  overflow: hidden;
}

.pillar-card_icon {
  width: 52px;
  height: 52px;
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  transition: all 0.4s ease;
}

.pillar-card_icon svg {
  width: 24px;
  height: 24px;
}

.pillar-card_label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: #64748b; /* Explicit dark slate */
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.pillar-card_title {
  font-size: var(--font-size-lg);
  font-weight: 800;
  color: #1e293b; /* Explicit dark slate */
}

.pillar-card_glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.pillar-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-accent);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.08);
}

.pillar-card:hover .pillar-card_icon {
  background: var(--color-accent);
  color: white;
  transform: rotate(-10deg) scale(1.1);
}

.pillar-card:hover .pillar-card_glow {
  opacity: 1;
}

/* Header & Body */
.value-props_header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-16);
  padding-top: var(--space-8);
  position: relative;
  z-index: 1;
}

.value-props_body {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: #475569; /* Explicit dark slate */
  line-height: 1.6;
}

/* Solution Card Premium */
.solution-card-premium-wrapper {
  position: relative;
  max-width: 1000px;
  margin-inline: auto;
  z-index: 1;
}

.solution-card-premium {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-3xl);
  padding: var(--space-12);
  width: 100%;
  box-shadow: 
    0 40px 80px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden; /* Perfect clipping for the top line */
}

.solution-card-premium::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #3b82f6, #6366f1, #8b5cf6);
  border-radius: var(--radius-3xl) var(--radius-3xl) 0 0; /* Match card corners */
}

.solution-card_top {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-bottom: var(--space-8); /* Reduced from 12 */
}

.solution-card_icon-main {
  width: 64px;
  height: 64px;
  background: #eff6ff;
  border: 2px solid #dbeafe;
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.solution-card_icon-main svg {
  width: 32px;
  height: 32px;
}

.solution-card_heading {
  font-size: var(--font-size-3xl);
  font-weight: 900;
  color: #0f172a; /* Deep dark slate */
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 4px;
}

.solution-card_sub {
  font-size: var(--font-size-base);
  color: #64748b; /* Muted slate */
  font-weight: 500;
}

.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4) var(--space-10); /* Reduced from 6x12 */
  margin-bottom: var(--space-10); /* Reduced from 12 */
}

.solution-grid-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: var(--radius-xl);
  transition: all 0.3s ease;
}

.solution-grid-item:hover {
  background: white;
  border-color: #3b82f6;
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.solution-grid-item_check {
  width: 28px;
  height: 28px;
  background: #dcfce7;
  color: #16a34a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.solution-grid-item_check svg {
  width: 14px;
  height: 14px;
}

.solution-grid-item_text {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: #334155; /* Solid slate */
}

/* Enhanced Floating Side Badges */
.solution-float-badge {
  position: absolute;
  background: white;
  padding: 10px 20px;
  border-radius: var(--radius-2xl);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--font-size-base);
  font-weight: 800;
  z-index: 10;
  animation: floatUpDown 6s ease-in-out infinite;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.solution-float-badge--left {
  top: 15px; /* Top Right */
  right: -50px;
  left: auto;
  color: #3b82f6;
  background: linear-gradient(to left, white, #eff6ff);
  animation-delay: 0s;
}

.solution-float-badge--right {
  bottom: -20px; /* Bottom Right */
  right: -50px;
  top: auto;
  color: #8b5cf6;
  background: linear-gradient(to left, white, #f5f3ff);
  animation-delay: 3s;
}

.float-badge_icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
}

.solution-float-badge--left .float-badge_icon {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.solution-float-badge--right .float-badge_icon {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

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

.solution-footer {
  text-align: center;
  margin-top: var(--space-4);
}

.btn-innovative {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-12);
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-lg);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-innovative--sm {
  padding: var(--space-4) var(--space-8);
  font-size: var(--font-size-base);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.btn-innovative:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 30px 60px rgba(37, 99, 235, 0.4);
}

.btn-innovative svg {
  width: 22px;
  height: 22px;
  transition: transform 0.4s ease;
}

.btn-innovative:hover svg {
  transform: translateX(5px);
}

/* ─── Section 4: Checkout ────────────────────────────────────────────────────── */
.checkout-section {
}

.checkout-grid {
  display: grid;
  grid-template-columns: 7fr 3fr; /* 70% / 30% split layout */
  gap: var(--space-16);
  align-items: center;
}

.checkout-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.checkout-heading {
  font-size: clamp(var(--font-size-3xl), 4vw, var(--font-size-5xl));
  font-weight: 900;
  color: var(--color-text-primary);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.checkout-body {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  line-height: 1.75;
}

.checkout-body-sub {
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  line-height: 1.75;
  opacity: 0.85;
}

.checkout-cta-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.checkout-cta-caption {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* ─── Checkout Visual Composite UI ─────────────────────────────────────────── */
.checkout-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 520px;
  padding: var(--space-24);
}

.checkout-visual-composite {
  position: relative;
  width: 100%;
  max-width: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* Translucent Back Layer from the image */
.checkout-visual-back-layer {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-3xl);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.04);
  z-index: 0;
}

/* Main Content Card (White in image) */
.stat-card--main {
  background: #efefef;
  border-radius: var(--radius-3xl);
  padding: var(--space-12);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  box-shadow:
    0 50px 100px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.02);
  position: relative;
  z-index: 5;
}

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

.stat-icon {
  width: 52px;
  height: 52px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.stat-icon svg {
  width: 26px;
  height: 26px;
}

.stat-title {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.stat-value {
  font-size: 7.5rem;
  font-weight: 900;
  color: #1e293b;
  line-height: 0.8;
  letter-spacing: -0.06em;
  display: flex;
  align-items: baseline;
  gap: var(--space-3); /* Increased gap to prevent overlap */
  margin-top: var(--space-2);
}

.stat-unit {
  font-size: 2rem;
  color: #64748b;
  font-weight: 700;
  letter-spacing: 0.01em;
  transform: translateY(-0.5rem);
}

.stat-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-green);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  white-space: nowrap;
}

.stat-subtitle svg {
  width: 22px;
  height: 22px;
}

.stat-progress {
  width: 100%;
  height: 10px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
}

.stat-progress_bar {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 88%;
  background: linear-gradient(90deg, #3b82f6, #6366f1);
  border-radius: var(--radius-pill);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* Floating Badges (Dark from image) */
.stat-card-float {
  position: absolute;
  background: #0f172a;
  padding: 7px;
  border-radius: var(--radius-2xl);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--font-size-sm);
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  animation: statFloatUpDown 10s ease-in-out infinite;
  z-index: 20; /* High z-index to stay on top */
  transition: all 0.4s cubic-bezier(0.2, 0, 0, 1);
}

.stat-card-float:hover {
  transform: translateY(-12px) scale(1.08) !important;
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.3);
}

.float-icon {
  width: 36px;
  height: 36px;
  background: rgba(59, 130, 246, 0.15);
  border-radius: var(--radius-lg); /* Rounded box for icon */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  flex-shrink: 0;
}

.float-icon svg {
  width: 20px;
  height: 20px;
}

.stat-card-float--1 {
  top: -10%;
  right: -5%;
  animation-delay: 0s;
}
.stat-card-float--2 {
  bottom: 15%;
  left: -28%;
  animation-delay: 2.5s;
}
.stat-card-float--3 {
  bottom: -15%;
  right: 8%;
  animation-delay: 5s;
}

@keyframes statFloatUpDown {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(8px, -20px) rotate(1deg);
  }
  66% {
    transform: translate(-5px, -8px) rotate(-1.5deg);
  }
}

/* ─── Section 6: Testimonials ────────────────────────────────────────────────── */
.testimonials-section {
}

.testimonials-rating-row {
  text-align: center;
  margin-bottom: var(--space-12);
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-5);
}

.rating-stars {
  color: #fbbf24;
  font-size: var(--font-size-lg);
  letter-spacing: 2px;
}
.rating-text {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
}

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

.review-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.review-card::before {
  content: '"';
  position: absolute;
  top: var(--space-4);
  right: var(--space-6);
  font-size: 5rem;
  color: rgba(59, 130, 246, 0.08);
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}

.review-card:hover {
  border-color: var(--color-border-card);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.review-card_stars {
  color: #fbbf24;
  font-size: var(--font-size-sm);
  letter-spacing: 2px;
}

.review-card_text {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: 1.75;
  flex: 1;
}

.review-card_author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.review-card_avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--color-accent),
    var(--color-accent-dark)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-lg);
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.review-card_name {
  font-weight: 700;
  color: var(--color-text-primary);
  font-size: var(--font-size-sm);
}
.review-card_role {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

/* ─── Section 7: Comparison Table ───────────────────────────────────────────── */
.comparison-section {
}

.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table thead th {
  padding: var(--space-6) var(--space-6);
  text-align: left;
  font-size: var(--font-size-base);
  font-weight: 800;
  border-bottom: 2px solid rgba(59, 130, 246, 0.3);
  background: rgba(13, 24, 41, 0.8);
  letter-spacing: -0.01em;
}

.comparison-table thead .col-feature {
  color: var(--color-text-primary);
  width: 25%;
}
.comparison-table thead .col-elixir {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.2),
    rgba(59, 130, 246, 0.08)
  );
  color: var(--color-white);
  border-bottom-color: var(--color-accent);
  text-align: center;
  border-left: 1px solid rgba(59, 130, 246, 0.4);
  border-right: 1px solid rgba(59, 130, 246, 0.4);
  box-shadow: inset 0 0 20px rgba(59, 130, 246, 0.1);
}
.comparison-table thead .col-elixir span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}
.comparison-table thead .col-traditional {
  color: var(--color-text-secondary);
  text-align: center;
}

.comparison-table tbody tr {
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition-fast);
}
.comparison-table tbody tr:last-child {
  border-bottom: none;
}
.comparison-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.comparison-table td {
  padding: var(--space-6) var(--space-6);
  font-size: var(--font-size-base);
  vertical-align: middle;
}

.comparison-table .td-feature {
  color: var(--color-text-primary);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.01);
}

.comparison-table .td-elixir {
  text-align: center;
  color: var(--color-white);
  font-weight: 700;
  background: rgba(59, 130, 246, 0.08);
  border-left: 1px solid rgba(59, 130, 246, 0.2);
  border-right: 1px solid rgba(59, 130, 246, 0.2);
}

.comparison-table .td-elixir .win-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: var(--radius-pill);
  padding: 5px var(--space-4);
  font-size: var(--font-size-sm);
  color: white;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.comparison-table .td-traditional {
  text-align: center;
  color: var(--color-text-secondary);
  font-weight: 500;
  opacity: 0.8;
}

.comparison-table .td-elixir .win-pill svg {
  width: 12px;
  height: 12px;
  color: var(--color-green);
}

/* ─── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .checkout-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .checkout-content {
    align-items: center;
  }
  .checkout-cta-group {
    align-items: center;
  }
  .speed-ring {
    width: 220px;
    height: 220px;
  }
  .speed-ring_number {
    font-size: 2.5rem;
  }
  .solution-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

@media (max-width: 768px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .solution-card-premium {
    padding: var(--space-8) var(--space-6);
    overflow: hidden; /* Prevent floating badges from causing scroll */
  }
  .solution-float-badge {
    display: none; /* Hide floating badges on small screens */
  }
  .premium-pillars {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .solution-tagline-modern {
    flex-direction: column;
    gap: var(--space-4);
    align-items: flex-start;
  }
  .solution-card_top {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }
}
