/* =========================================================
   HERO SECTION LAYOUT & CARDS (PRODUCTION & RESPONSIVE)
   ========================================================= */

.wl-hero, .wl-hero * { 
  box-sizing: border-box; 
}

.wl-hero {
  --navy: #051D38;
  --muted: #6B7280;
  --blue: #39AAE1;
  --ink: #231F20;
  position: relative;
  width: 100%;
  max-width: 1920px;
  min-height: 1471px;
  margin: 0 auto;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, #FFFFFF 0%, #B3E6FF 100%);
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

/* Background Grid Lines */
.wl-hero__grid {
  position: absolute;
  inset: 0;
  height: 100%;
  pointer-events: none;
  opacity: .72;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 8px,
    rgba(255, 255, 255, .58) 8px,
    rgba(255, 255, 255, .58) 9px
  );
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 27%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 27%, #000 100%);
}

/* Hero Text & Header */
.wl-hero__copy {
  position: absolute;
  z-index: 10;
  top: 206px;
  left: 50%;
  width: 100%;
  /* max-width: 769px; */
  transform: translateX(-50%);
  text-align: center;
  padding: 0 20px;
  will-change: transform, opacity;
}

.wl-hero__eyebrow {
  position: relative;
  display: inline-block;
  margin: 0 0 10px;
  color: var(--navy);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.25;
  font-weight: 700;
}

.wl-hero__spark {
  position: absolute;
  left: 18px;
  top: -25px;
  width: 15px;
  height: 17px;
}

.wl-hero__title {
  margin: 0;
  color: var(--navy);
  font-size: clamp(32px, 4.2vw, 60px);
  line-height: 1.25;
  letter-spacing: -1.8px;
  font-weight: 700;
}

.wl-hero__title .accent { 
  color: var(--blue); 
}

.wl-hero__description {
  max-width: 769px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.4;
  font-weight: 400;
}

.wl-hero__cta {
  margin: 35px auto 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 227px;
  height: 54px;
  padding: 4px 24px;
  border: 0;
  border-radius: 68px;
  background: var(--ink);
  color: #FFFFFF;
  font: 700 18px/24px "Plus Jakarta Sans", sans-serif;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0px 4px 7.6px rgba(0, 0, 0, 0.3), 0px 40px 80px 10px rgba(0, 0, 0, 0.06), 0px 26px 45px -22px rgba(0, 0, 0, 0.14), 0px 18px 18px -8px rgba(0, 0, 0, 0.3);
  transition: transform .25s ease, box-shadow .25s ease;
}

.wl-hero__cta:hover { 
  transform: translateY(-2px); 
}

/* Central Main Dashboard Frame */
.wl-dashboard {
  position: absolute;
  z-index: 5;
  width: 1200px;
  height: 854px;
  left: calc(50% - 1200px/2);
  top: 610px;
  background: #FFFFFF;
  box-shadow: -10px 0px 45.1px rgba(0, 0, 0, 0.15);
  border-radius: 11.51px;
  overflow: hidden;
  will-change: transform, opacity;
  transform: translateZ(0);
}

.wl-dashboard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Shared Floating Overlay Base Style */
.wl-card {
  position: absolute;
  background: #FFFFFF;
  box-sizing: border-box;
  overflow: hidden;
  will-change: transform, opacity;
  transform: translateZ(0);
}

.wl-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

/* Desktop Desktop Card Placements */
.wl-card--1 {
  z-index: 6;
  width: 320px;
  height: 220px;
  left: 125px;
  top: 600px;
  /* border: 1px solid #F3F4F6; */
  border-radius: 12px;
}

.wl-card--2 {
  z-index: 6;
  width: 260.67px;
  height: 250.38px;
  right: 185px;
  top: 596px;
  /* border: 0.766663px solid #F3F4F6; */
  border-radius: 9.2px;
}

.wl-card--3 {
  z-index: 6;
  width: 320px;
  height: 284.5px;
  left: 175px;
  bottom: 40px;
  /* border: 1px solid #F3F4F6; */
  border-radius: 12px;
}

.wl-card--4 {
  z-index: 3; /* Behind .wl-dashboard */
  width: 338.19px;
  height: 261px;
  right: 180px;
  bottom: 30px;
  /* border: 0.939405px solid #F3F4F6; */
  border-radius: 11.27px;
}

/* Mobile Stack Wrapper (Visible only on Tablet/Mobile) */
.wl-hero__cards-grid {
  display: none;
}

/* =========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================= */

/* 1. Laptop / Small Desktop (1200px - 1440px) */
@media (max-width: 1440px) {
  .wl-hero { min-height: 1250px; }
  .wl-hero__copy { top: 150px; }
  .wl-dashboard { width: 840px; height: 597px; left: calc(50% - 840px/2); top: 480px; }
  
  .wl-card--1 { left: 30px; top: 420px; width: 260px; height: 180px; }
  .wl-card--2 { right: 30px; top: 420px; width: 220px; height: 210px; }
  .wl-card--3 { left: 45px; bottom: 100px; width: 260px; height: 230px; }
  .wl-card--4 { right: 45px; bottom: 70px; width: 270px; height: 210px; }
}

/* 2. Medium Tablet (993px - 1199px) */
@media (max-width: 1199px) {
  .wl-hero { min-height: 1100px; }
  .wl-hero__copy { top: 100px; }
  .wl-dashboard { width: 700px; height: 498px; left: calc(50% - 700px/2); top: 420px; }
  
  .wl-card--1 { left: 15px; top: 380px; width: 210px; height: 145px; }
  .wl-card--2 { right: 15px; top: 380px; width: 180px; height: 170px; }
  .wl-card--3 { left: 20px; bottom: 120px; width: 210px; height: 185px; }
  .wl-card--4 { right: 20px; bottom: 90px; width: 220px; height: 170px; }
}

/* 3. Mobile & Small Tablet (< 992px) */
@media (max-width: 992px) {
  .wl-hero { 
    min-height: auto; 
    padding: 160px 20px 60px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
  }

  .wl-hero__copy { 
    position: relative; 
    top: 0; 
    left: 0; 
    transform: none; 
    margin-bottom: 40px; 
    padding: 0;
  }

  .wl-hero__spark { left: -18px; top: -1px; }

  .wl-dashboard {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 700px;
    height: auto;
    aspect-ratio: 1036 / 737;
    border-radius: 8px;
    box-shadow: 0px 10px 30px rgba(0,0,0,0.1);
  }

  /* Convert floating absolute cards into a clean responsive grid */
  .wl-card {
    display: none; /* Hide floating absolute cards */
  }

  .wl-hero__cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 700px;
    margin-top: 24px;
  }

  .wl-mobile-card {
    background: #FFFFFF;
    border: 1px solid #F3F4F6;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  }

  .wl-mobile-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}

/* 4. Small Mobile Phones (< 576px) */
@media (max-width: 576px) {
  .wl-hero { padding: 160px 16px 40px; }
  .wl-hero__description br { display: none; }
  .wl-hero__cards-grid { grid-template-columns: 1fr; } /* Stack 1 card per row */
}