/* ============================================================
   HOME PAGE — Hero, Stats Bar, Services, About, Technologies,
               Testimonials, Blog Preview, CTA
   ============================================================ */

/* ---- Hero ---- */

.hero {
  background: linear-gradient(135deg, #0A1628 0%, var(--color-primary-dark) 30%, var(--color-primary) 70%, #1A6BC4 100%);
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-block: var(--space-24);
}

/* Mesh pattern overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(0, 149, 124, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(109, 40, 217, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

/* Animated dots / grid */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* Hero image slider */
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-slider__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 20, 50, 0.62);
  z-index: 1;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-6);
  backdrop-filter: blur(8px);
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(1.3); }
}

.hero__eyebrow {
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.hero__title {
  font-size: clamp(2.25rem, 5vw + 0.5rem, 4rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
}

.hero__title span {
  color: var(--color-accent);
}

.hero__subtitle {
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.75;
  margin-bottom: var(--space-10);
  max-width: 640px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.hero__trust-item svg {
  color: var(--color-accent);
}

/* ---- Stats Bar ---- */

.stats-bar {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stats-bar__item {
  padding: var(--space-7) var(--space-6);
  text-align: center;
  position: relative;
}

.stats-bar__item + .stats-bar__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: var(--color-border);
}

.stats-bar__value {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}

.stats-bar__label {
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

/* ---- Services Grid ---- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

/* ---- Services Section ---- */

.services-section {
  position: relative;
  background: linear-gradient(160deg, #f8fbff 0%, #eef5ff 55%, #f0fdf9 100%);
  overflow: hidden;
}

.services-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0, 85, 165, 0.11) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

.services-section::after {
  content: '';
  position: absolute;
  top: -200px;
  left: -120px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 85, 165, 0.12) 0%, transparent 65%);
  filter: blur(50px);
  pointer-events: none;
}

/* ---- About Section ---- */

.about-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #d8ecff 0%, #c8dff8 45%, #c8f0e8 100%);
  isolation: isolate;
}

.about-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.about-bg__blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.about-bg__blob--1 {
  width: 480px;
  height: 480px;
  top: -140px;
  right: -100px;
  background: radial-gradient(circle, rgba(0, 85, 165, 0.28) 0%, transparent 65%);
  filter: blur(40px);
}

.about-bg__blob--2 {
  width: 360px;
  height: 360px;
  bottom: -80px;
  left: 5%;
  background: radial-gradient(circle, rgba(0, 149, 124, 0.24) 0%, transparent 65%);
  filter: blur(35px);
}

.about-bg__blob--3 {
  width: 220px;
  height: 220px;
  top: 35%;
  left: 42%;
  background: radial-gradient(circle, rgba(109, 40, 217, 0.18) 0%, transparent 65%);
  filter: blur(30px);
}

.about-bg__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0, 85, 165, 0.18) 1px, transparent 1px);
  background-size: 28px 28px;
}

.about-bg__rings {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 560px;
  height: 560px;
  opacity: 1;
}

.about-photo {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 85, 165, 0.18), 0 4px 16px rgba(0, 0, 0, 0.10);
  position: relative;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 380px;
}

.about-section .about-text {
  font-size: var(--font-size-lg);
  line-height: 1.75;
  margin-bottom: var(--space-6);
  color: var(--color-text);
}

.about-section .about-text strong {
  color: var(--color-primary);
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.about-stat-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-7) var(--space-6);
  text-align: center;
  transition: box-shadow var(--transition-base);
}

.about-stat-card:hover {
  box-shadow: var(--shadow-md);
}

.about-stat-card--primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.about-stat-card--accent {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.about-stat-card--primary .stat-block__value,
.about-stat-card--primary .stat-block__label {
  color: var(--color-white);
}

.about-stat-card--accent .stat-block__value,
.about-stat-card--accent .stat-block__label {
  color: var(--color-white);
}

.about-stat-card--primary .stat-block__label,
.about-stat-card--accent .stat-block__label {
  opacity: 0.85;
}

/* ---- Technologies / Scapa Band ---- */

.scapa-band {
  background: linear-gradient(135deg, #0A1628 0%, var(--color-primary-dark) 40%, #003060 100%);
  position: relative;
  overflow: hidden;
}

.scapa-band::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;
}

.scapa-band .section__eyebrow {
  color: var(--color-accent);
}

.scapa-band .section__eyebrow::before {
  background: var(--color-accent);
}

.scapa-band .section__title {
  color: var(--color-white);
}

.scapa-band .section__subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.scapa-band__cta {
  text-align: center;
  margin-top: var(--space-12);
}

.procedures-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  position: relative;
  z-index: 1;
}

/* ---- Testimonials Section ---- */

.testimonials-section {
  background: linear-gradient(140deg, #eef4ff 0%, #e6f0ff 40%, #e8faf5 100%);
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0, 85, 165, 0.10) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}

.testimonials-section::after {
  content: '';
  position: absolute;
  bottom: -180px;
  right: -100px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(0, 149, 124, 0.18) 0%, transparent 65%);
  filter: blur(45px);
  pointer-events: none;
}

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

/* ---- Blog Preview ---- */

.blog-section {
  background: linear-gradient(155deg, #fff8f0 0%, #fffbf5 40%, #f5fff9 100%);
  position: relative;
  overflow: hidden;
}

.blog-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(109, 40, 217, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.blog-section::after {
  content: '';
  position: absolute;
  top: -150px;
  right: -80px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(109, 40, 217, 0.12) 0%, transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}

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

/* ---- Home Responsive ---- */

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

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

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

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

@media (max-width: 768px) {
  .hero {
    min-height: 70vh;
    padding-block: var(--space-16);
  }

  .hero__title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

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

  .stats-bar__item + .stats-bar__item::before {
    display: none;
  }

  .stats-bar__item:nth-child(even)::before {
    display: block;
  }

  .services-grid,
  .procedures-grid,
  .testimonials-grid,
  .blog-preview-grid {
    grid-template-columns: 1fr;
  }

  .hero__trust {
    gap: var(--space-4);
  }
}

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

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    justify-content: center;
  }
}
