/* ============================= */
/* LABS OVERVIEW PAGE */
/* ============================= */

/* ============================= */
/* HERO */
/* ============================= */

.page-hero.labs-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  padding: 160px 8vw 100px;
  overflow: hidden;
}

.labs-hero .page-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 20%, rgba(82, 104, 255, 0.22), transparent 28%),
    radial-gradient(circle at 78% 24%, rgba(130, 90, 255, 0.14), transparent 22%),
    linear-gradient(180deg, #050608 0%, #0b1026 42%, #050506 100%);
}

.labs-hero .page-hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.18;
  mask-image: radial-gradient(circle at center, black 58%, transparent 95%);
}

.labs-hero .page-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 6, 0.70) 0%, rgba(5, 5, 6, 0.46) 34%, rgba(5, 5, 6, 0.18) 62%, rgba(5, 5, 6, 0) 100%),
    linear-gradient(to bottom, rgba(5, 5, 6, 0.08), rgba(5, 5, 6, 0.26));
  z-index: 1;
}

.labs-hero .page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  display: grid;
  gap: clamp(20px, 2.4vw, 30px);
}

.labs-hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.08) contrast(1.02) saturate(1.05);
}

.hero-context-label {
  display: inline-block;
  width: auto;
  max-width: 100%;
  padding: 0;
  margin-bottom: 18px;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.labs-hero h1 {
  max-width: 22ch;
  text-wrap: balance;
  margin-bottom: 0;
  font-size: clamp(30px, 3vw, 46px);
}

.labs-hero p {
  max-width: 580px;
  margin-bottom: 0;
}

.page-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ============================= */
/* BUTTONS */
/* ============================= */

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  font-weight: 600;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.primary-button {
  background: linear-gradient(135deg, #1535cc, #0d65d0);
  color: #fff;
  box-shadow: 0 18px 38px rgba(12, 40, 160, 0.42);
}

.secondary-button {
  border: 2px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 34px rgba(5, 8, 18, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.primary-button:hover {
  box-shadow: 0 24px 48px rgba(12, 40, 160, 0.54);
}

.secondary-button:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 22px 40px rgba(5, 8, 18, 0.28);
}

/* ============================= */
/* OVERVIEW GRID */
/* ============================= */

.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.overview-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 30px 26px 26px;
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.065);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.20);
  overflow: hidden;
  transition:
    transform 0.32s ease,
    background 0.32s ease,
    border-color 0.32s ease,
    box-shadow 0.32s ease;
}

.overview-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.01) 26%,
    transparent 55%
  );
  pointer-events: none;
}

.overview-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.046);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 24px 55px rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.overview-card > span:not(.tile-learn-more) {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
}

.overview-card h3 {
  margin-bottom: 10px;
  font-size: clamp(17px, 1.25vw, 20px);
}

.overview-card p {
  max-width: 30ch;
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.62;
  flex: 1;
}

/* ============================= */
/* CTA STRIP */
/* ============================= */

.labs-cta-strip {
  position: relative;
  padding: 42px 34px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 22% 28%, rgba(82, 104, 255, 0.10), transparent 24%),
    radial-gradient(circle at 76% 72%, rgba(130, 90, 255, 0.08), transparent 22%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.labs-cta-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.012) 26%,
    transparent 55%
  );
  pointer-events: none;
}

.labs-cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.labs-cta-copy h2 {
  margin-bottom: 12px;
  max-width: 14ch;
}

.labs-cta-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 1180px) {
  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .page-hero.labs-hero {
    padding: 140px 6vw 80px;
    min-height: 78vh;
  }

  .labs-cta-inner {
    grid-template-columns: 1fr;
  }

  .labs-cta-actions {
    justify-content: flex-start;
  }
}

/* ============================= */
/* OVERVIEW CARD IMAGES */
/* ============================= */

.overview-card-img {
  margin: -30px -26px 20px;
  height: 180px;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  flex-shrink: 0;
}

.overview-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.overview-card:hover .overview-card-img img {
  transform: scale(1.05);
}

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

  .labs-cta-strip {
    padding: 30px 24px;
  }

  .page-hero-actions,
  .labs-cta-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
