/* ==========================================================================
   Home page (index.html)
   Static hero, product grid, about band, business-model band, careers and
   the contact call to action.
   Artwork:
     ../image/Network_Switch_Chip.png     hero (supplied render)
     ../image/CO8.png                     about
     ../image/join-us/fair-workplace.jpg  careers
     ../image/contact/contact-us-banner.jpg  contact call to action
   ========================================================================== */

.home-container {
  width: min(1000px, calc(100% - 48px));
  margin-inline: auto;
}

.home-section-title {
  margin: 0;
  font-size: 36px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0b0a1e;
}

.home-section-sub {
  margin: 10px 0 0;
  font-size: 19px;
  line-height: 1.5;
  color: #8a8d93;
}

/* ---------- buttons ---------- */
.home-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  background: #a80812;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.home-btn:hover {
  background: #8d060f;
  color: #fff;
}

.home-btn__icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-btn--sm {
  height: 32px;
  padding: 0 14px;
  font-size: 14px;
}

.home-btn--sm .home-btn__icon {
  width: 13px;
  height: 13px;
}

/* ---------- hero ---------- */
.home-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 560px;
  padding: 96px 0;
  overflow: hidden;
  background: #140509;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(10, 5, 10, 0.78) 0%,
    rgba(10, 5, 10, 0.62) 45%,
    rgba(10, 5, 10, 0.5) 100%
  );
}

.home-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 88px;
  align-items: start;
  width: min(1000px, calc(100% - 48px));
  margin-inline: auto;
  color: #fff;
}

.home-hero__title {
  margin: 0;
  font-size: 40px;
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.home-hero__rule {
  margin: 28px 0 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.home-hero__subtitle {
  margin: 22px 0 0;
  font-size: 19px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.home-hero__text {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
}

.home-hero__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  margin-top: 32px;
}

.home-hero__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.home-hero__link:hover {
  opacity: 0.75;
  color: #fff;
}

.home-hero__arrow {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- products ---------- */
.home-products {
  padding: 44px 0 56px;
  background: #fff;
}

.home-products__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.home-product {
  display: flex;
  flex-direction: column;
  border: 1px solid #e6e7ea;
  background: #fff;
}

.home-product__media {
  display: block;
  aspect-ratio: 640 / 400;
  overflow: hidden;
  background: #eef0f3;
}

.home-product__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-product__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px 24px 26px;
}

.home-product__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
  color: #111;
}

.home-product__text {
  flex: 1;
  margin: 12px 0 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: #6b7078;
}

.home-product__text strong {
  font-weight: 700;
  color: #333;
}

.home-product__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.home-product__body .home-btn {
  margin-top: 20px;
}

.home-product__actions .home-btn {
  margin-top: 0;
}

/* ---------- about ---------- */
.home-company {
  padding: 104px 0 84px;
  overflow: hidden;
  background: #f5f6f8;
}

.home-company__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
  gap: 118px;
  align-items: center;
}

.home-company__body p {
  margin: 20px 0 0;
  font-size: 18px;
  line-height: 1.85;
  color: #6b7078;
}

.home-company__body p + p {
  margin-top: 16px;
}

.home-company__body .home-btn {
  margin-top: 32px;
}

.home-company__figure {
  position: relative;
  margin: 0;
}

.home-company__figure img {
  display: block;
  width: 100%;
  height: auto;
}

.home-company__figure::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -28px;
  width: 78px;
  height: 62px;
  border-right: 2px solid #a80812;
  border-bottom: 2px solid #a80812;
}

/* ---------- business model band ---------- */
.home-model {
  padding: 34px 0 60px;
  color: #fff;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.07) 0 1px,
      transparent 1px 84px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.07) 0 1px,
      transparent 1px 84px
    ),
    linear-gradient(90deg, #950b18 0%, #b9131b 38%, #d11725 72%, #e0394a 100%);
}

.home-model__inner {
  width: min(800px, calc(100% - 48px));
  margin-inline: auto;
}

.home-model__title {
  margin: 0;
  font-size: 30px;
  line-height: 1.42;
  font-weight: 700;
  color: #fff;
}

.home-model__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.home-model__list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
}

.home-model__icon {
  width: auto;
  height: 52px;
  max-width: 72px;
  object-fit: contain;
}

/* ---------- careers ---------- */
.home-careers {
  padding: 56px 0 64px;
  background: #fff;
}

.home-careers__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  margin-top: 44px;
}

.home-careers__figure {
  margin: 0;
}

.home-careers__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 474 / 300;
  object-fit: cover;
  object-position: center 32%;
}

.home-careers__body p {
  margin: 0;
  font-size: 18px;
  line-height: 1.85;
  color: #6b7078;
}

.home-careers__body .home-btn {
  margin-top: 32px;
}

/* ---------- contact call to action ---------- */
.home-contact {
  display: flex;
  align-items: center;
  min-height: 400px;
  padding: 88px 0;
  color: #fff;
  background:
    linear-gradient(
      90deg,
      rgba(8, 12, 20, 0.6) 0%,
      rgba(8, 12, 20, 0.28) 42%,
      rgba(8, 12, 20, 0) 68%
    ),
    url("../image/contact/contact-us-cta.jpg") center / cover no-repeat #0d1520;
}

.home-contact__title {
  margin: 0;
  font-size: 32px;
  line-height: 1.3;
  font-weight: 700;
  color: #fff;
}

.home-contact__text {
  max-width: 420px;
  margin: 18px 0 0;
  font-size: 20px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

.home-contact__body .home-btn {
  margin-top: 28px;
}

/* ---------- responsive ---------- */
@media screen and (max-width: 991.98px) {
  .home-section-title {
    font-size: 30px;
  }

  .home-section-sub {
    font-size: 17px;
  }

  .home-hero {
    min-height: 0;
    padding: 64px 0;
  }

  .home-hero__content {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .home-hero__title {
    font-size: 30px;
  }

  .home-hero__rule {
    margin-top: 24px;
  }

  .home-hero__subtitle {
    margin-top: 18px;
    font-size: 17px;
  }

  .home-hero__text {
    font-size: 15px;
  }

  .home-hero__actions {
    align-items: flex-start;
    gap: 14px;
    margin-top: 28px;
  }

  .home-products__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-company {
    padding: 72px 0 64px;
  }

  .home-company__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .home-company__body p,
  .home-careers__body p {
    font-size: 16px;
  }

  .home-company__figure::after {
    right: -16px;
    bottom: -16px;
    width: 60px;
    height: 46px;
  }

  .home-model {
    padding: 36px 0 52px;
  }

  .home-model__title {
    font-size: 24px;
  }

  .home-model__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
    margin-top: 36px;
  }

  .home-careers {
    padding: 48px 0 56px;
  }

  .home-careers__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    margin-top: 32px;
  }

  .home-contact {
    min-height: 340px;
    padding: 64px 0;
  }

  .home-contact__title {
    font-size: 26px;
  }

  .home-contact__text {
    max-width: 360px;
    font-size: 17px;
  }
}

@media screen and (max-width: 575.98px) {
  .home-hero {
    min-height: 0;
    padding: 48px 0;
  }

  .home-hero__title {
    font-size: 24px;
  }

  .home-hero__subtitle {
    font-size: 15px;
  }

  .home-hero__text {
    font-size: 14px;
  }

  .home-section-title {
    font-size: 26px;
  }

  .home-products__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-company {
    padding: 56px 0 52px;
  }

  .home-model__list {
    gap: 28px 16px;
  }

  .home-careers {
    padding: 40px 0 48px;
  }

  .home-contact {
    min-height: 280px;
    padding: 48px 0;
  }

  .home-contact__title {
    font-size: 22px;
  }

  .home-contact__text {
    font-size: 15px;
  }
}
