:root {
  color-scheme: dark;
  --page-pad: clamp(34px, 3.5vw, 68px);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: #000;
}

body {
  color: #f5f5f5;
  overflow-x: hidden;
  font-family: Arial, Helvetica, sans-serif;
}

.home {
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: #000;
}

.hero {
  position: relative;
  min-height: calc(100vh - clamp(148px, 18vh, 196px));
  overflow: hidden;
  background: #000;
}

.hero__network {
  position: absolute;
  z-index: 1;
  inset: 0 0 0 auto;
  width: 58%;
  background: url("/assets/home-network-final.png") right center / cover
    no-repeat;
}

.hero__shade {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    #000 0%,
    #000 43%,
    rgba(0, 0, 0, 0.94) 53%,
    rgba(0, 0, 0, 0.53) 69%,
    rgba(0, 0, 0, 0.05) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 3;
  width: min(64vw, 1160px);
  padding: clamp(40px, 5.1vh, 60px) 0 clamp(54px, 7vh, 80px) var(--page-pad);
}

.hero h1 {
  width: max-content;
  max-width: 100%;
  margin: 0;
  color: transparent;
  background: linear-gradient(
    180deg,
    #fff 0%,
    #eeeeee 27%,
    #c4c4c4 61%,
    #777 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(76px, 5.55vw, 108px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.014em;
  text-transform: uppercase;
}

.hero p {
  width: min(43vw, 760px);
  margin: clamp(23px, 2.8vh, 32px) 0 clamp(38px, 5vh, 52px);
  color: #dedede;
  font-size: clamp(20px, 1.4vw, 26px);
  font-weight: 400;
  line-height: 1.58;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: clamp(22px, 1.8vw, 34px);
}

.hero__actions a {
  height: clamp(62px, 7.4vh, 78px);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(28px, 2vw, 38px);
  border: 1px solid #d4d4d4;
  background: #000;
  color: #f4f4f4;
  font-size: clamp(15px, 1.05vw, 19px);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease;
}

.hero__actions a:first-child {
  width: clamp(335px, 23vw, 410px);
}

.hero__actions a:last-child {
  width: clamp(225px, 15.5vw, 285px);
}

.hero__actions b {
  margin-left: 25px;
  font-size: 1.45em;
  font-weight: 400;
  line-height: 1;
}

.hero__actions a:hover,
.hero__actions a:focus-visible {
  background: linear-gradient(135deg, #dedede, #929292);
  border-color: #f5f5f5;
  color: #070707;
}

@media (min-width: 1900px) {
  :root {
    --page-pad: clamp(58px, 4vw, 82px);
  }

  .hero__content {
    width: 62vw;
  }

  .hero__network {
    width: 61%;
  }
}

@media (max-width: 1120px) {
  .header {
    height: 138px;
  }

  .nav {
    gap: 26px;
  }

  .hero {
    min-height: calc(100vh - 138px);
  }

  .hero h1 {
    font-size: 68px;
  }

  .hero p {
    font-size: 18px;
  }
}

@media (max-width: 820px) {
  :root {
    --page-pad: 20px;
  }

  .header {
    height: 104px;
    align-items: center;
    padding-top: 10px;
  }

  .brand {
    gap: 10px;
  }

  .hero {
    min-height: calc(100vh - 104px);
  }

  .hero__network {
    width: 100%;
    opacity: 0.72;
    background-position: 58% center;
  }

  .hero__shade {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.45) 0%,
      rgba(0, 0, 0, 0.82) 42%,
      #000 76%
    );
  }

  .hero__content {
    width: auto;
    padding-top: 64px;
    padding-bottom: 52px;
  }

  .hero h1 {
    width: auto;
    font-size: clamp(50px, 14vw, 76px);
    line-height: 1;
  }

  .hero p {
    width: auto;
    max-width: 620px;
    font-size: 17px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions a,
  .hero__actions a:first-child,
  .hero__actions a:last-child {
    width: 100%;
    height: 58px;
  }
}

/* ==========================================================
   V3.1 — FINAL HOMEPAGE HEADER / HERO SEPARATION
   The logo size is approved. This only reserves enough header
   height so the hero can never overlap it.
   ========================================================== */

:root {
  --home-header-height: clamp(250px, 27vh, 300px);
}

.header {
  height: var(--home-header-height) !important;
  min-height: var(--home-header-height) !important;
  padding-top: clamp(22px, 2.8vh, 34px) !important;
  align-items: flex-start !important;
  overflow: visible !important;
}

.header .global-brand {
  top: 0 !important;
  align-self: flex-start !important;
}

.header .nav {
  padding-top: clamp(12px, 1.4vh, 20px) !important;
}

.hero {
  min-height: calc(100vh - var(--home-header-height)) !important;
}

.hero__content {
  padding-top: clamp(24px, 3.2vh, 42px) !important;
}

/* Ensure no decorative or background text can sit over the hero copy. */
.hero__network {
  z-index: 1 !important;
}

.hero__shade {
  z-index: 2 !important;
}

.hero__content {
  z-index: 3 !important;
}

@media (max-width: 1120px) {
  :root {
    --home-header-height: 210px;
  }

  .header {
    height: var(--home-header-height) !important;
    min-height: var(--home-header-height) !important;
  }

  .hero {
    min-height: calc(100vh - var(--home-header-height)) !important;
  }

  .hero__content {
    padding-top: 28px !important;
  }
}

@media (max-width: 820px) {
  :root {
    --home-header-height: 112px;
  }

  .header {
    height: var(--home-header-height) !important;
    min-height: var(--home-header-height) !important;
    padding-top: 10px !important;
    align-items: center !important;
  }

  .header .global-brand {
    top: 0 !important;
  }

  .home {
    min-height: auto;
  }

  .hero {
    min-height: auto !important;
  }

  .hero__content {
    width: 100% !important;

    padding-top: 44px !important;
    padding-right: var(--page-pad) !important;
    padding-bottom: 54px !important;
    padding-left: var(--page-pad) !important;
  }
}

/* ==========================================================
   FINAL HOMEPAGE VIEWPORT LAYOUT
   Fits in one screen when possible and scrolls when needed.
   ========================================================== */

@media (min-width: 821px) {
  html {
    min-height: 100%;
  }

  body.home-v2 {
    min-height: 100dvh;
    margin: 0;

    display: flex;
    flex-direction: column;

    overflow-x: hidden;
    overflow-y: auto;
  }

  body.home-v2 > .header {
    flex: 0 0 var(--home-header-height);
    height: var(--home-header-height) !important;
    min-height: var(--home-header-height) !important;
  }

  body.home-v2 > main {
    display: block !important;
    flex: 1 0 auto;
    min-height: 0;
    overflow: visible;
  }

  body.home-v2 .hero {
    display: flex !important;
    align-items: flex-start !important;

    width: 100%;
    min-height: calc(100dvh - var(--home-header-height) - 92px) !important;
    height: auto !important;

    overflow: visible;
  }

  body.home-v2 .hero__content {
    position: relative !important;
    z-index: 3 !important;

    padding-top: var(--ix-page-content-top) !important;
    padding-bottom: 32px !important;
  }

  body.home-v2 .hero__network {
    z-index: 1 !important;
  }

  body.home-v2 .hero__shade {
    z-index: 2 !important;
  }

  body.home-v2 > .global-footer {
    flex: 0 0 92px;
    width: 100%;
    height: 92px;
    min-height: 92px;

    margin: 0 !important;
    padding-top: 8px !important;
    padding-bottom: 10px !important;
  }

  body.home-v2 .global-footer__inner {
    height: 100%;
    min-height: 0;
  }
}
