/* Hero Main Section Stylesheet — ATM Labs 11ty Website (Highly Responsive & Premium) */

.hero-main {
  position: relative;
  width: 100%;
  height: 890px;
  min-height: min(890px, 90vh);
  overflow: hidden;
  background-color: #0e0f11;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 890' preserveAspectRatio='none'%3E%3Cpath d='M1440 0V890H1299.13C1282.07 889.43 1268.35 875.57 1268.18 858.39L1268.02 843.22L1266.46 844.78C1258.56 852.51 1244.25 863.52 1234.62 868.96C1215.43 879.67 1195.61 885.93 1172.87 888.02H1172.77L1158.12 889.38C1153.54 889.83 1149.12 890 1144.71 890H0V0L1440 0Z' fill='%23000'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 890' preserveAspectRatio='none'%3E%3Cpath d='M1440 0V890H1299.13C1282.07 889.43 1268.35 875.57 1268.18 858.39L1268.02 843.22L1266.46 844.78C1258.56 852.51 1244.25 863.52 1234.62 868.96C1215.43 879.67 1195.61 885.93 1172.87 888.02H1172.77L1158.12 889.38C1153.54 889.83 1149.12 890 1144.71 890H0V0L1440 0Z' fill='%23000'/%3E%3C/svg%3E");
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
}

.hero-main__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  background-color: #D9D9D8;
}

.hero-main__bg-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.hero-main__bg-img,
.hero-main__bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 1;
}

.hero-main__bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(74, 67, 90, 0.40);
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-main__inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(140px, 16vh, 180px) clamp(20px, 4vw, 44px) 0 clamp(20px, 4vw, 44px);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  box-sizing: border-box;
}

.hero-main__content {
  width: 100%;
  max-width: 650px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: clamp(24px, 3.5vw, 36px);
}

.hero-main__texts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(12px, 2vw, 18px);
  width: 100%;
}

.hero-main__eyebrow {
  font-family: "Oldschool Grotesk", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 500;
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  line-height: 1.2;
  letter-spacing: 0;
  color: #ffffff;
  margin: 0;
}

.hero-main__title {
  font-family: "Oldschool Grotesk", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 500;
  font-size: clamp(2rem, 4.8vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 45%, #F1F5F9 75%, #E2E8F0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0px 2px 10px rgba(0, 0, 0, 0.45));
  margin: 0;
  max-width: 623px;
  text-wrap: balance;
}

.hero-main__subtext {
  font-family: "Oldschool Grotesk", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  font-size: clamp(0.95rem, 1.35vw, 1.125rem);
  line-height: 1.5;
  letter-spacing: 0;
  color: #ffffff;
  margin: 0;
  max-width: 540px;
  text-wrap: pretty;
}

.hero-main__cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
}

.hero-main__cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  transition: transform 0.2s ease;
  max-width: 100%;
}

.hero-main__cta-primary-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 20px;
  background: #ffffff;
  color: #161414;
  font-family: "Oldschool Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: -1px;
  border-radius: 999px;
  white-space: nowrap;
}

.hero-main__cta-primary-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  color: #161414;
  flex-shrink: 0;
  margin-left: 0;
  transition: transform 0.2s ease;
}

.hero-main__cta-primary-circle svg {
  width: 10px;
  height: 10px;
}

.hero-main__cta-primary:hover {
  transform: translateY(-1px);
}

.hero-main__cta-primary:hover .hero-main__cta-primary-circle {
  transform: scale(1.05);
}

.hero-main__cta-secondary {
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  font-family: "Oldschool Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: -0.4px;
  text-decoration: none;
  border-bottom: 1px solid #ffffff;
  padding-bottom: 1px;
  transition: opacity 0.2s ease;
}

.hero-main__cta-secondary:hover {
  opacity: 0.85;
}

.hero-main__cta-secondary svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

.hero-main__cta-secondary:hover svg {
  transform: translateX(3px);
}

.hero-main__reputation {
  position: absolute;
  right: 40px;
  bottom: 99px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Responsive Breakpoints & Viewport Adaptations */

@media (max-width: 1279px) {
  .hero-main {
    min-height: auto;
    height: auto;
    mask-image: none;
    -webkit-mask-image: none;
    border-bottom-left-radius: 2rem;
    border-bottom-right-radius: 2rem;
  }

  .hero-main__inner {
    padding: clamp(120px, 14vh, 150px) 2rem 3rem 2rem;
  }

  .hero-main__reputation {
    position: relative;
    right: auto;
    bottom: auto;
    margin: 1.5rem 2rem 3rem 2rem;
    justify-content: flex-start;
  }
}

@media (max-width: 1023px) {
  .hero-main__inner {
    padding: clamp(100px, 12vh, 130px) 1.5rem 2rem 1.5rem;
  }

  .hero-main__reputation {
    margin: 1.5rem 1.5rem 2.5rem 1.5rem;
    justify-content: flex-start;
  }
}

@media (max-width: 639px) {
  .hero-main__inner {
    padding: 100px 1.25rem 1.5rem 1.25rem;
  }

  .hero-main__cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .hero-main__cta-primary-pill {
    font-size: 15px;
    padding: 0 16px;
  }

  .hero-main__cta-secondary {
    margin-left: 0;
  }

  .hero-main__reputation {
    margin: 1rem 1.25rem 2rem 1.25rem;
    width: calc(100% - 2.5rem);
  }
}

@media (max-width: 400px) {
  .hero-main__title {
    font-size: 1.85rem;
  }

  .hero-main__subtext {
    font-size: 0.9rem;
  }
}