/* Net Universe home page — built from Figma "Web NET" › Home Desktop (38:196) and Home Mobile (5:1088).
   Shared pieces (navbar, buttons, contact, footer) come from styles.css. */

.home {
  --snow: #f1f2f2;
  --navy-950: #0f1a31;
  --gray-line: #edeeef;
  --font-text: "Lato", "Inter", system-ui, sans-serif;
}

.white-plain {
  background: #fff;
}

/* ---------- Shared section pieces ---------- */

.hm-section {
  padding: 100px 0;
}

.hm-badge {
  margin-bottom: 0;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 4px;
}

.hm-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 64px;
}

.hm-head.is-centered {
  align-items: center;
  text-align: center;
}

.hm-h2 {
  font-family: var(--font-head);
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

.dark .hm-h2 {
  color: var(--snow);
}

.hm-sub {
  max-width: 720px;
  margin-top: -4px;
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 1.6;
  color: var(--gray);
}

.dark .hm-sub {
  color: var(--text-light);
}

.hm-sub-lg {
  font-size: clamp(18px, 1.4vw, 20px);
  line-height: 1.4;
}

.hm-cta {
  align-self: flex-start;
}

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

.hm-hero {
  overflow: hidden;
  background: var(--navy);
}

.hm-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 640px) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  min-height: 720px;
}

.hm-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.hm-hero-title {
  font-family: var(--font-head);
  font-size: clamp(40px, 4.2vw, 60px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--snow);
}

.hm-hero-lead {
  font-family: var(--font-text);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.3;
  letter-spacing: 0.2px;
  color: var(--text-light);
}

.hm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 16px;
}

.hm-hero-art {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
}

/* The map bleeds to the right edge and fades in from the left, as in the design. */
.hm-hero-art img {
  width: calc(100% + var(--gutter) + 72px);
  margin-left: -72px;
  max-width: none;
  height: auto;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 100%);
}

/* ---------- Trusted logos ---------- */

.hm-trusted {
  padding: 64px 0;
  background: #fff;
  border-bottom: 1px solid rgba(194, 200, 210, 0.2);
}

.hm-trusted-title {
  margin-bottom: 40px;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.3;
  text-transform: uppercase;
  text-align: center;
  text-wrap: balance;
  color: var(--green);
}

.hm-trusted-logos {
  --marquee-gap: 40px;
  --marquee-logo: 128px;
  --marquee-duration: 80s;
}

/* ---------- What we do ---------- */

.hm-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 20px 0;
  border-radius: 16px;
  background: #fff;
}

.hm-services li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px;
}

.hm-services li + li {
  border-left: 1px solid #c2c8d2;
}

.hm-services img {
  width: 210px;
  height: 160px;
  object-fit: contain;
}

/* The provisioning artwork is square with extra padding around the figure. */
.hm-services .hm-svc-provisioning {
  width: 208px;
  height: 160px;
  object-fit: cover;
  object-position: 50% 30%;
}

.hm-services h3 {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  line-height: normal;
  text-align: center;
  color: var(--blue);
}

/* ---------- Flexible inventory ---------- */

.hm-models {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.hm-models li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 40px;
  border: 1px solid var(--gray-line);
  border-radius: 24px;
  background: radial-gradient(ellipse at center, #fff 0%, #f4f6fa 100%);
}

.hm-models h3 {
  font-family: var(--font-head);
  font-size: clamp(21px, 1.75vw, 25px);
  font-weight: 700;
  color: var(--navy);
}

.hm-models p {
  font-family: var(--font-text);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--gray);
}

.hm-models-note {
  margin-top: 64px;
  padding: 16px 32px;
  font-family: var(--font-text);
  font-size: clamp(20px, 1.95vw, 28px);
  font-style: italic;
  text-align: center;
  color: var(--gray);
}

/* ---------- Cycle ---------- */

.hm-cycle {
  padding: 100px 0 72px;
  background: radial-gradient(ellipse 70% 60% at 50% 55%, #0d162b 0%, #142544 100%);
}

.hm-cycle .hm-head {
  margin-bottom: 48px;
}

.hm-cycle-title {
  font-family: var(--font-head);
  font-size: clamp(32px, 3.5vw, 50px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--blue);
}

.hm-cycle-sub {
  font-family: var(--font-text);
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.6;
  letter-spacing: 0.72px;
  color: var(--snow);
}

/* The exported diagram has its own background; soften its edges into the section. */
.hm-cycle-diagram {
  width: 100%;
  max-width: 863px;
  height: auto;
  margin: 0 auto;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 78%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 78%, transparent 100%);
}

/* On desktop the diagram carries the steps visually; the list keeps them readable for screen readers. */
.hm-cycle-steps {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.hm-cycle-note {
  margin-top: 48px;
  font-family: var(--font-head);
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  color: var(--snow);
}

/* ---------- Solutions ---------- */

.hm-solutions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.hm-solutions li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 36px;
  border: 1px solid rgba(62, 86, 136, 0.4);
  border-radius: 16px;
  background: var(--navy);
}

.hm-solutions h3 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.hm-solutions p {
  /* Pushes "Learn More" to the card bottom so links line up across a row. */
  flex: 1;
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  color: #f4f6fa;
}

.hm-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 6px 0;
  font-family: var(--font-btn);
  font-size: 16px;
  font-weight: 700;
  color: var(--blue-on-dark);
}

.hm-link:hover {
  color: var(--cyan);
}

/* ---------- Return management ---------- */

.hm-returns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-bottom: 64px;
}

.hm-returns > li {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 40px;
  border-radius: 16px;
  background: var(--navy-950);
}

.hm-returns h3 {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  color: var(--snow);
}

/* ---------- Check lists ---------- */

.hm-checks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hm-checks li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-light);
}

.hm-checks li::before {
  content: "";
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: url("/assets/home/check-dark.png") center / 28px auto no-repeat;
}

.hm-checks.is-light li {
  color: var(--gray);
}

.hm-checks.is-light li::before {
  width: 20px;
  height: 20px;
  background-image: url("/assets/home/check-light.png");
  background-size: 30px auto;
}

/* Body-size text on the pale section: brand green deepened to reach AA (4.6:1). */
.hm-checks.is-green li {
  color: #34802b;
}

.hm-checks-lg {
  gap: 24px;
  margin-bottom: 40px;
}

.hm-checks-lg li {
  gap: 12px;
  font-size: clamp(17px, 1.4vw, 20px);
}

/* ---------- Split layouts (portal, trust, final CTA) ---------- */

.hm-split {
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  align-items: stretch;
  gap: 64px;
}

.hm-split.is-media-first {
  grid-template-columns: minmax(0, 539px) minmax(0, 1fr);
  align-items: start;
}

.hm-split-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hm-split-copy .hm-head {
  margin-bottom: 44px;
}

#why-us .hm-split-copy .hm-head {
  margin-bottom: 32px;
}

/* Portal section (Figma 88:2360): bullets 32px apart, button pinned to the bottom of the
   copy column, photo 664x652 cropped like the design. */
.hm-index #portal .hm-checks-lg {
  gap: 32px;
}

.hm-index #portal .hm-cta {
  margin-top: auto;
}

.hm-portal-photo {
  position: relative;
  min-height: 652px;
}

.hm-portal-photo img {
  position: absolute;
  inset: 0;
  /* Keeps the whole laptop in the near-square slot, and in the wide phone crop. */
  object-position: 60% 80%;
}

.hm-photo {
  overflow: hidden;
  border-radius: 24px;
}

.hm-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hm-photo-tall {
  aspect-ratio: 539 / 614;
}

.hm-photo-wide {
  aspect-ratio: 592 / 420;
}

.hm-final {
  padding: 120px 0;
}

.hm-final .hm-split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}

.hm-final .hm-split-copy .hm-head {
  margin-bottom: 32px;
}

/* ---------- Tablet ---------- */

@media (max-width: 1100px) {
  .hm-hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 48px;
    gap: 16px;
  }

  .hm-hero-art img {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  }

  .hm-models,
  .hm-returns {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hm-solutions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hm-split,
  .hm-split.is-media-first,
  .hm-final .hm-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hm-portal-photo {
    min-height: 0;
    aspect-ratio: 350 / 220;
  }

  .hm-photo-tall {
    aspect-ratio: 350 / 220;
  }

  .hm-photo-wide {
    aspect-ratio: 350 / 200;
  }

  .hm-br-desktop {
    display: none;
  }

  /* Home hero only (cybersecurity and hardware reuse .hm-hero-title): avoid a one-word last line. */
  .hm-index .hm-hero-title {
    text-wrap: balance;
  }
}

/* ---------- Mobile (Figma Home Mobile, 390px) ---------- */

@media (max-width: 760px) {
  .hm-section {
    padding: 48px 0;
  }

  .hm-head {
    gap: 8px;
    margin-bottom: 32px;
  }

  .hm-sub {
    margin-top: 0;
    font-size: 16px;
  }

  .hm-hero-grid {
    padding-top: 48px;
  }

  .hm-hero-copy {
    gap: 8px;
  }

  .hm-hero-title {
    font-size: 36px;
    margin-top: 8px;
  }

  .hm-hero-lead {
    margin-top: 8px;
    font-size: 16px;
  }

  .hm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 16px;
    margin-top: 16px;
  }

  .hm-actions .btn {
    padding: 0 12px;
    font-size: 15px;
  }

  .hm-trusted {
    padding: 32px 0;
  }

  .hm-trusted-title {
    margin-bottom: 20px;
    font-size: 13px;
  }

  .hm-trusted-logos {
    --marquee-gap: 20px;
    --marquee-logo: 96px;
  }

  .hm-services {
    grid-template-columns: 1fr;
    padding: 4px 16px;
  }

  .hm-services li + li {
    border-left: 0;
    border-top: 1px solid #c2c8d2;
  }

  .hm-services img,
  .hm-services .hm-svc-provisioning {
    width: 158px;
    height: 120px;
  }

  .hm-services h3 {
    font-size: 20px;
  }

  .hm-models li {
    padding: 24px;
  }

  .hm-models-note {
    margin-top: 32px;
    padding: 16px;
    font-size: 16px;
  }

  .hm-cycle {
    padding: 48px 0;
  }

  .hm-cycle .hm-head {
    margin-bottom: 32px;
  }

  /* Mobile shows the cycle as a vertical list instead of the circular diagram. */
  .hm-cycle-diagram {
    display: none;
  }

  .hm-cycle-steps {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    display: flex;
    flex-direction: column;
    gap: 36px;
  }

  .hm-cycle-steps li {
    display: grid;
    grid-template-columns: 92px 1fr;
    align-items: center;
    gap: 16px;
    padding: 0 16px;
  }

  /* Exported icons carry a square backdrop; fade it so only the glowing icon shows. */
  .hm-cycle-steps img {
    width: 92px;
    height: auto;
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 55%, transparent 72%);
    mask-image: radial-gradient(circle at 50% 50%, #000 55%, transparent 72%);
  }

  .hm-cycle-steps h3 {
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 700;
    color: var(--snow);
  }

  .hm-cycle-steps h3 span {
    margin-right: 4px;
    color: var(--green);
  }

  .hm-cycle-steps p {
    font-family: var(--font-text);
    font-size: 14px;
    color: var(--text-muted);
  }

  .hm-cycle-note {
    margin-top: 32px;
  }

  .hm-solutions {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hm-returns {
    margin-bottom: 32px;
  }

  .hm-returns > li {
    padding: 32px 24px;
  }

  .hm-cta {
    align-self: stretch;
  }

  .hm-checks-lg,
  .hm-index #portal .hm-checks-lg {
    gap: 16px;
    margin-bottom: 32px;
  }

  .hm-final {
    padding: 48px 0;
  }
}
