/* ============================================
   Homepage Sections
   ============================================ */

/* === Hero === */

.hero {
  padding-top: calc(var(--section-padding) + 60px); /* account for fixed nav */
  background: linear-gradient(135deg, var(--color-primary-50) 0%, var(--color-white) 50%, var(--color-accent-bg) 100%);
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
  position: relative;
  overflow: hidden;
}

/* Decorative gradient orb */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -5%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-primary-glow) 0%, transparent 70%);
  opacity: 0.6;
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.06) 0%, transparent 70%);
  pointer-events: none;
  animation: float 8s ease-in-out infinite reverse;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero h1 {
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-headline {
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-primary-700) 50%, var(--color-primary-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--color-primary-500);
  opacity: 0.5;
  animation: scrollBounce 2s ease-in-out infinite;
  filter: drop-shadow(0 0 4px rgba(14, 165, 233, 0.3));
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

.hero-body {
  font-size: var(--text-body-lg);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 520px;
}

/* Dashboard mockup */
.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-mockup {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(2, 132, 199, 0.12), var(--shadow-lg);
  overflow: hidden;
  width: 100%;
  max-width: 440px;
}

.mockup-header {
  display: flex;
  gap: 6px;
  padding: 14px 18px;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
}

.mockup-dot:first-child { background: #ef4444; }
.mockup-dot:nth-child(2) { background: #f59e0b; }
.mockup-dot:nth-child(3) { background: #22c55e; }

.mockup-body {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mockup-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.mockup-stat:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.mockup-stat-number {
  font-family: var(--font-mono);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  color: var(--color-primary-600);
  letter-spacing: -0.02em;
}

.mockup-stat-label {
  font-size: var(--text-small);
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-badges {
    justify-content: center;
  }
  .hero-body {
    margin-inline: auto;
  }
  .hero .btn-group {
    justify-content: center;
  }
  .hero-visual {
    order: -1;
  }
  .hero-mockup {
    max-width: 340px;
  }
}


/* === Problem Section === */

.problem-prose {
  margin-top: 24px;
}

.problem-prose p {
  font-size: var(--text-body-lg);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}


/* === Products Section === */

.section-sub {
  font-size: var(--text-body-lg);
  color: var(--color-text-secondary);
  margin-top: 12px;
  margin-bottom: 8px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

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

.product-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid var(--color-border);
  transition: border-color var(--dur-hover) var(--ease-hover),
              box-shadow var(--dur-hover) var(--ease-hover),
              transform var(--dur-hover) var(--ease-hover);
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card[data-product="safe"]:hover {
  border-color: var(--accent-safe);
  box-shadow: 0 8px 30px rgba(2, 132, 199, 0.12);
}

.product-card[data-product="speed"]:hover {
  border-color: var(--accent-speed);
  box-shadow: 0 8px 30px rgba(217, 119, 6, 0.12);
}

.product-card[data-product="pulse"]:hover {
  border-color: var(--accent-pulse);
  box-shadow: 0 8px 30px rgba(5, 150, 105, 0.12);
}

.product-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-icon-wrap svg {
  width: 28px;
  height: 28px;
}

.product-icon-safe {
  background: var(--accent-safe-light);
  color: var(--accent-safe);
}

.product-icon-speed {
  background: var(--accent-speed-light);
  color: var(--accent-speed);
}

.product-icon-pulse {
  background: var(--accent-pulse-light);
  color: var(--accent-pulse);
}

.product-card h3 {
  font-size: 22px;
  font-weight: 700;
}

.product-tagline {
  font-size: var(--text-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-card[data-product="safe"] .product-tagline { color: var(--accent-safe); }
.product-card[data-product="speed"] .product-tagline { color: var(--accent-speed); }
.product-card[data-product="pulse"] .product-tagline { color: var(--accent-pulse); }

.product-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-features li {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.product-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-green);
}

.product-link {
  font-weight: 600;
  font-size: var(--text-small);
  margin-top: auto;
  padding-top: 8px;
  transition: gap 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-card[data-product="safe"] .product-link { color: var(--accent-safe); }
.product-card[data-product="speed"] .product-link { color: var(--accent-speed); }
.product-card[data-product="pulse"] .product-link { color: var(--accent-pulse); }

.product-card:hover .product-link {
  gap: 10px;
}

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

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


/* === How It Works (Steps) === */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.step-card {
  text-align: center;
  padding: 24px 16px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary-600);
  color: var(--color-text-inverse);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-card p {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: none;
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    max-width: 400px;
    margin-inline: auto;
  }
  .step-card {
    display: flex;
    align-items: flex-start;
    text-align: left;
    gap: 16px;
    padding: 16px;
  }
  .step-number {
    flex-shrink: 0;
    margin-bottom: 0;
  }
}


/* === Differentiators === */

.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.diff-card {
  padding: 28px;
}

.diff-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  color: var(--color-primary-600);
}

.diff-icon svg {
  width: 32px;
  height: 32px;
}

.diff-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.diff-card p {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

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


/* === Comparison Table === */

.comparison-table-wrap {
  margin-top: 32px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-small);
}

.comparison-table th {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-label);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  text-align: left;
  padding: 14px 24px;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.comparison-table td {
  padding: 14px 24px;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table td:first-child {
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}

.comparison-table tbody tr:hover {
  background: var(--color-primary-50);
}

.savings-note {
  margin-top: 24px;
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  font-style: italic;
}


/* === Trust / Partners === */

.partner-block {
  max-width: 600px;
  margin: 16px auto 40px;
}

.partner-body {
  font-size: var(--text-body-lg);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.trust-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.trust-item-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-600);
}

.trust-item-icon svg {
  width: 28px;
  height: 28px;
}

.trust-item-label {
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--color-text);
}


/* === Final CTA === */

.section-cta-final {
  background: linear-gradient(135deg, var(--color-white) 0%, var(--color-primary-50) 50%, var(--color-accent-bg) 100%);
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
  position: relative;
  overflow: hidden;
}

.section-cta-final::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-primary-glow) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.section-cta-final > .container {
  position: relative;
  z-index: 1;
}

.section-cta-final h2 {
  margin-bottom: 16px;
}

.cta-final-body {
  font-size: var(--text-body-lg);
  color: var(--color-text-secondary);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.cta-final-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 32px;
}


/* === Dark Sections === */

.section-dark {
  background: linear-gradient(135deg, #0c1929 0%, #0f2137 40%, #112a45 100%);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(14, 165, 233, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(249, 115, 22, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.section-dark > .container {
  position: relative;
  z-index: 1;
}

.section-dark h2 {
  color: var(--color-white);
}


/* === Stats Grid === */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 16px;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  color: var(--color-primary-500);
  line-height: 1;
  letter-spacing: -0.03em;
  text-shadow: 0 0 30px rgba(14, 165, 233, 0.3);
}

.stat-suffix {
  font-family: var(--font-mono);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  color: var(--color-primary-500);
  line-height: 1;
  margin-left: 2px;
}

.stat-item .stat-number,
.stat-item .stat-suffix {
  display: inline;
}

.stat-item > span:first-child,
.stat-item > span:nth-child(2) {
  display: inline;
}

.stat-top {
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.stat-label {
  font-size: var(--text-small);
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 8px;
}

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

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


/* === Testimonials === */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--card-radius);
  padding: 28px;
  transition: border-color 0.3s ease, transform 0.3s var(--ease-reveal), box-shadow 0.3s ease;
}

.testimonial-card:hover {
  border-color: rgba(14, 165, 233, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(14, 165, 233, 0.1);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
}

.testimonial-stars svg {
  width: 18px;
  height: 18px;
  color: #f59e0b;
}

.testimonial-quote {
  font-size: var(--text-body);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary-600), var(--color-primary-500));
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-small);
  flex-shrink: 0;
}

.testimonial-name {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-small);
  color: var(--color-white);
}

.testimonial-role {
  display: block;
  font-size: var(--text-label);
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

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


/* === Logo Strip === */

.section-logo-strip {
  padding: clamp(32px, 4vw, 48px) 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.logo-strip-label {
  font-size: var(--text-small);
  color: var(--color-text-muted);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.logo-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  flex-wrap: wrap;
}

.logo-strip-item {
  font-family: var(--font-heading);
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 700;
  color: var(--color-text-muted);
  opacity: 0.5;
  letter-spacing: -0.01em;
  transition: opacity 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

.logo-strip-item:hover {
  opacity: 1;
  color: var(--color-primary-600);
}
