.home-pre-library-sections {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: visible;
  background: var(--bg-dark-1);
}

.home-features-section {
  position: relative;
  order: 2;
  z-index: 2;
  margin: 76px 0 70px;
  background: transparent;
}

.home-features-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 1.25fr) minmax(0, 1fr);
  grid-template-areas:
    "ssd visual years"
    "cpu visual uptime";
  gap: 24px;
  align-items: stretch;
  margin-top: 8px;
}

.home-latency-section {
  position: relative;
  z-index: 3;
  order: 1;
  margin: 0;
  overflow: visible;
  background: transparent;
}

.home-latency-section > .container {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.home-premium-latency {
  margin: 0;
  padding: 130px max(24px, calc((100vw - 1320px) / 2)) 120px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.home-premium-latency::before {
  left: -220px;
  top: 0;
}

.home-premium-latency .minecraft-latency-global {
  min-height: 650px;
}

.home-premium-latency .minecraft-latency-content {
  padding-top: 0;
}

.home-premium-latency .minecraft-latency-globe-side {
  top: -180px;
  right: -26vw;
  z-index: 5;
}

.home-features-showcase > .home-feature-card:nth-child(1) {
  grid-area: ssd;
}

.home-features-showcase > .home-features-visual {
  grid-area: visual;
}

.home-features-showcase > .home-feature-card:nth-child(3) {
  grid-area: years;
}

.home-features-showcase > .home-feature-card:nth-child(4) {
  grid-area: cpu;
}

.home-features-showcase > .home-feature-card:nth-child(5) {
  grid-area: uptime;
}

.home-feature-card .padding40 {
  min-height: 260px;
  overflow: hidden;
}

.home-features-visual {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  pointer-events: none;
}

.home-features-visual-glow {
  position: absolute;
  inset: 9% 2%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(var(--secondary-color-rgb), .3), rgba(var(--secondary-color-rgb), .11) 36%, transparent 67%),
    radial-gradient(circle at 50% 78%, rgba(255,255,255,.09), transparent 42%);
  filter: blur(38px);
  opacity: .78;
}

.home-features-server {
  position: relative;
  z-index: 1;
  width: min(650px, 118%);
  max-width: none;
  aspect-ratio: 1;
  transform: translate3d(0, var(--server-scroll-y, 0px), 0)
    rotate(var(--server-scroll-rotate, 0deg))
    scale(var(--server-scroll-scale, 1));
  transform-origin: center;
  filter: drop-shadow(0 34px 60px rgba(0,0,0,.42));
  transition: transform .08s linear;
  will-change: transform;
}

.home-features-server svg {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.home-support-modal-section {
  margin: 58px 0 74px;
}

.home-support-modal-section > .container {
  max-width: min(1440px, calc(100% - 48px));
}

.home-support-modal {
  display: grid !important;
  grid-template-columns: minmax(0, 50%) minmax(0, 50%) !important;
  align-items: stretch;
  min-height: clamp(520px, 68vh, 760px);
  width: 100%;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-support-visual,
.home-support-copy {
  min-width: 0;
}

.home-support-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100%;
  padding: clamp(26px, 4vw, 58px);
  background: transparent;
}

.home-support-visual::after {
  display: none;
}

.home-support-animation {
  position: relative;
  z-index: 1;
  width: min(500px, 74%);
  max-width: none;
  aspect-ratio: 1;
  filter: drop-shadow(0 24px 54px rgba(0, 0, 0, .38));
}

.home-support-animation svg {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.home-support-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  min-height: 100%;
  padding: clamp(34px, 5vw, 72px);
  background: transparent;
}

.home-support-copy h2 {
  color: #fff;
  font-size: clamp(42px, 5.4vw, 78px);
  line-height: .98;
  margin: 0 0 24px;
  max-width: 650px;
}

.home-support-copy p {
  color: rgba(255, 255, 255, .72);
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.35;
  margin: 0;
  max-width: 700px;
}

.home-support-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  margin-top: 30px;
  padding: 14px 22px;
  border: 1px solid rgba(38, 211, 103, .45);
  border-radius: 999px;
  background: #26d367;
  color: #fff;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(38, 211, 103, .24);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.home-support-whatsapp i {
  font-size: 22px;
}

.home-support-whatsapp:hover {
  transform: translateY(-2px);
  background: #20bf5d;
  color: #fff;
  box-shadow: 0 20px 42px rgba(38, 211, 103, .32);
}

.home-adventure-modal-section {
  margin-top: 8px;
}

.home-adventure-copy {
  padding-left: clamp(34px, 6vw, 96px);
}

.home-adventure-visual {
  padding: clamp(10px, 2vw, 30px);
}

.home-adventure-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 22px;
  padding: 9px 16px;
  border: 1px solid rgba(var(--secondary-color-rgb), .46);
  border-radius: 999px;
  background: rgba(var(--secondary-color-rgb), .12);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}

.home-adventure-badge::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-right: 9px;
  border-radius: 50%;
  background: #ed1c24;
  box-shadow: 0 0 18px rgba(237, 28, 36, .7);
}

.home-adventure-animation {
  width: min(860px, 145%);
  aspect-ratio: 16 / 9;
  transform: scale(1.22);
  transform-origin: center;
}

.home-outdated-modal-section {
  margin-top: 8px;
}

.home-outdated-animation {
  width: min(600px, 88%);
}

.home-rating-modal-section {
  margin-top: 8px;
}

.home-rating-copy {
  padding-left: clamp(34px, 6vw, 96px);
}

.home-rating-visual {
  padding: clamp(12px, 2.5vw, 36px);
}

.home-rating-animation {
  width: min(560px, 88%);
  aspect-ratio: 3000 / 2600;
  transform: scale(1);
  transform-origin: center;
}

.home-rating-seal {
  display: flex;
  align-items: center;
  width: fit-content;
  min-height: 70px;
  margin-top: 30px;
}

.home-rating-seal > div {
  display: flex;
  align-items: center;
}

.home-rating-seal iframe,
.home-rating-seal img,
.home-rating-seal object {
  max-width: 180px;
}

@media (max-width: 1199px) {
  .home-premium-latency .minecraft-latency-globe-side {
    top: auto;
    right: auto;
  }

  .home-features-showcase {
    grid-template-columns: minmax(0, 1fr) minmax(310px, 1fr);
    grid-template-areas:
      "ssd visual"
      "years visual"
      "cpu uptime";
  }

  .home-features-visual {
    min-height: 500px;
  }

  .home-features-server {
    width: min(580px, 122%);
  }
}

@media (max-width: 991px) {
  .home-premium-latency {
    padding: 82px 20px 78px;
  }

  .home-support-modal {
    grid-template-columns: 1fr !important;
    min-height: 0;
  }

  .home-support-visual {
    min-height: 360px;
    order: -1;
  }

  .home-support-copy {
    text-align: center;
    align-items: center;
  }

  .home-support-whatsapp {
    margin-left: auto;
    margin-right: auto;
  }

  .home-adventure-copy {
    order: 1;
    padding-left: clamp(34px, 5vw, 72px);
  }

  .home-adventure-visual {
    order: 2;
  }

  .home-rating-copy {
    order: 1;
    padding-left: clamp(34px, 5vw, 72px);
  }

  .home-rating-visual {
    order: 2;
  }

  .home-rating-seal {
    margin-left: auto;
    margin-right: auto;
  }

  .home-features-showcase {
    grid-template-columns: 1fr;
    grid-template-areas:
      "visual"
      "ssd"
      "years"
      "cpu"
      "uptime";
  }

  .home-features-visual {
    min-height: 420px;
  }

  .home-features-server {
    width: min(540px, 118%);
  }
}

@media (max-width: 575px) {
  .home-latency-section {
    margin-top: 0;
  }

  .home-support-modal-section {
    margin: 42px 0 58px;
  }

  .home-support-visual {
    min-height: 290px;
    padding: 24px;
  }

  .home-support-animation {
    width: 82%;
  }

  .home-adventure-animation {
    width: 132%;
    transform: scale(1.12);
  }

  .home-rating-animation {
    width: 88%;
    transform: scale(1);
  }

  .home-rating-seal {
    justify-content: center;
  }

  .home-support-copy h2 {
    font-size: 38px;
  }

  .home-support-copy p {
    font-size: 22px;
  }

  .home-support-whatsapp {
    width: 100%;
    max-width: 320px;
    padding: 14px 16px;
  }

  .home-adventure-badge {
    margin-bottom: 18px;
  }

  .home-premium-latency {
    margin: 0;
    padding: 64px 14px 60px;
  }

  .home-features-showcase {
    gap: 18px;
  }

  .home-feature-card .padding40 {
    min-height: 220px;
  }

  .home-features-visual {
    min-height: 330px;
  }

  .home-features-server {
    width: 128%;
  }
}
