:root {
  color-scheme: light;
  --orange-light: #fba451;
  --orange: #f74200;
  --orange-deep: #ec2b00;
  --orange-border: #ffb15b;
  --blue: #0675e8;
  --ink: #0a3c84;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  overflow-x: hidden;
  background: #086ac8;
  font-family: Arial, Helvetica, sans-serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.landing {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  background: #0878d6;
}

.hero-art {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-art--mobile,
.mobile-brand,
.player-cutout,
.access-panel__frame--mobile {
  display: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.social-rail {
  position: absolute;
  z-index: 2;
  top: 6.5%;
  left: 5.2%;
  width: clamp(54.6px, 6.5vw, 80.6px);
  height: clamp(201.5px, 50.7vh, 266.5px);
  display: grid;
  place-items: center;
}

.social-rail__title {
  display: none;
}

.social-rail__frame {
  position: absolute;
  inset: 0;
  left: -6%;
  right: auto;
  width: 112%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.social-rail__items {
  position: relative;
  display: grid;
  width: 74%;
  height: 86%;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  padding: 0;
}

.social-link {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  transition: transform 160ms ease, filter 160ms ease;
}

.social-link:not([aria-disabled="true"]):hover {
  transform: scale(1.1);
  filter: brightness(1.08);
}

.social-link[aria-disabled="true"] {
  cursor: default;
}

.social-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.social-link--facebook img {
  transform: scale(0.82);
}

.speed-check {
  position: absolute;
  z-index: 2;
  top: 40.2%;
  left: 51.4%;
  width: clamp(200px, 28.5vw, 390px);
  height: clamp(36px, 5.4vw, 70px);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 4px 4px rgb(116 43 0 / 32%));
  transition: transform 160ms ease, filter 160ms ease;
}

.speed-check__needle-cover,
.speed-check__needle {
  position: absolute;
  z-index: 1;
  top: 26%;
  left: 14.2%;
  width: 1.5%;
  height: 27.2%;
  margin-left: -0.75%;
  border-radius: 999px;
  transform-origin: 50% 100%;
  pointer-events: none;
}

.speed-check__needle-cover {
  background: linear-gradient(180deg, #ff941a 0%, #ff6a0c 52%, #f64000 100%);
  transform: rotate(38deg);
}

.speed-check__needle {
  background: linear-gradient(90deg, #fff 0%, #fff 55%, #f3f7ff 100%);
  filter: drop-shadow(0 0 1px rgb(255 255 255 / 85%));
  animation: speedometer-sweep 1.8s ease-in-out infinite alternate;
}

.speed-check:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.015);
  filter: drop-shadow(0 7px 7px rgb(116 43 0 / 38%));
}

.speed-check:focus {
  outline: none;
}

.speed-check:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 999px;
}

.speed-check:disabled {
  cursor: progress;
}

.speed-check img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.speed-check span {
  position: absolute;
  inset: 0 0 0 14%;
  display: grid;
  place-items: center;
  padding-inline: 9%;
  color: #fff;
  font-size: clamp(12px, 1.15vw, 18px);
  font-weight: 800;
  letter-spacing: 0.035em;
  text-shadow: 0 1px 3px rgb(123 47 0 / 55%);
}

.access-panel {
  position: absolute;
  z-index: 1;
  right: 3%;
  bottom: 5.5%;
  width: min(60%, 1010px);
  aspect-ratio: 2.15 / 1;
  display: grid;
  place-items: center;
}

.access-panel__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.access-grid {
  position: absolute;
  inset: 12% 8% 13%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(5px, 0.85vw, 12px);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.access-card {
  container-type: inline-size;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: min-content minmax(min-content, 1fr) min-content;
  gap: clamp(2px, 0.35vw, 5px);
  padding: clamp(3px, 0.35vw, 5px) clamp(4px, 0.48vw, 7px);
  overflow: hidden;
  border: 1px solid rgb(72 169 255 / 65%);
  border-radius: clamp(7px, 0.95vw, 14px);
  background: linear-gradient(155deg, rgb(255 255 255 / 96%), rgb(223 247 255 / 94%));
  box-shadow: 0 2px 5px rgb(0 60 156 / 24%), inset 0 0 0 1px rgb(255 255 255 / 84%);
}

.access-card__top {
  position: relative;
  display: flex;
  min-height: 15%;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--blue);
  font-size: clamp(9px, 0.85vw, 12px);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
}

.access-card__top::before {
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 12%;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0 32%, #a9d8ff 32% 90%, transparent 90%);
  content: "";
}

.access-card__label {
  position: relative;
  z-index: 1;
  min-width: 27%;
  max-width: 55%;
  padding: 0.36em 0.9em;
  border: 1px solid #0c46e8;
  border-radius: 999px;
  background: #fff;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signal-bars {
  position: relative;
  z-index: 1;
  display: flex;
  width: 11%;
  height: 1em;
  align-items: end;
  justify-content: flex-end;
  gap: 3px;
  padding-left: 8px;
  background: #fff;
  transform: skewX(-24deg);
}

.signal-bars i {
  display: block;
  width: 5px;
  height: 35%;
  background: #087cff;
}

.signal-bars i:nth-child(2) { height: 55%; }
.signal-bars i:nth-child(3) { height: 75%; }
.signal-bars i:nth-child(4) { height: 100%; }

.access-card__latency {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 2px 5%;
  overflow: hidden;
  border-radius: clamp(8px, 1.7vw, 24px);
  background: #eaf2ff;
  color: #1558a6;
  font-size: clamp(8px, 0.85vw, 12px);
  font-weight: 700;
  white-space: nowrap;
}

.access-card__latency > span { display: block; }

.access-card__latency strong {
  display: block;
  max-width: 100%;
  margin-top: 2px;
  overflow: hidden;
  color: #092c87;
  font-size: clamp(17px, 2vw, 28px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.access-card.is-measuring .access-card__latency strong {
  animation: latency-number-hop 190ms ease-in-out infinite alternate;
  transform-origin: left center;
}

@keyframes latency-number-hop {
  from { transform: translateY(2px) scale(0.97); }
  to { transform: translateY(-2px) scale(1.03); }
}

.speedometer {
  position: absolute;
  top: 50%;
  right: 5%;
  width: clamp(24px, 4.4vw, 54px);
  aspect-ratio: 1;
  transform: translateY(-50%);
}

.speedometer > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.speedometer__dial {
  position: absolute;
  top: 30%;
  left: 29%;
  width: 47%;
  height: 47%;
  overflow: visible;
  border-radius: 50%;
  background: radial-gradient(ellipse at 43% 34%, #fff 0%, #f8fcff 48%, #e7f2ff 100%);
  box-shadow: inset 0 0 0 1px rgb(201 229 255 / 70%);
}

.speedometer__needle {
  position: absolute;
  bottom: 45%;
  left: 50%;
  width: 9%;
  height: 53%;
  margin-left: -4.5%;
  clip-path: polygon(50% 0, 100% 84%, 60% 100%, 40% 100%, 0 84%);
  background: linear-gradient(90deg, #ff7b00, #ff3d00 54%, #ffa21b);
  filter: drop-shadow(0 0 1px rgb(255 97 0 / 65%));
  transform-origin: 50% 100%;
  animation: speedometer-sweep 1.8s ease-in-out infinite alternate;
}

.speedometer__hub {
  position: absolute;
  top: 55%;
  left: 50%;
  width: 25%;
  height: 25%;
  border: 1px solid #74c5ff;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #45c9ff 0%, #087df5 55%, #003ee4 100%);
  box-shadow: 0 0 2px #fff;
  transform: translate(-50%, -50%);
}

@keyframes speedometer-sweep {
  from { transform: rotate(-48deg); }
  to { transform: rotate(48deg); }
}

.access-card__button {
  display: flex;
  width: 92%;
  justify-self: center;
  box-sizing: border-box;
  min-height: clamp(17px, 2vw, 28px);
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 3px 7px;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--orange-border);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--orange-light), var(--orange) 67%, var(--orange-deep));
  box-shadow: 0 2px 4px rgb(204 62 0 / 24%), inset 0 1px 1px rgb(255 255 255 / 75%);
  color: #fff;
  font-size: clamp(7px, 0.8vw, 11px);
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  text-shadow: 0 1px 1px rgb(144 39 0 / 28%);
  white-space: nowrap;
  transition: filter 150ms ease, transform 150ms ease;
}

.access-card__button:hover:not(.is-unconfigured) {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.access-card__button.is-unconfigured {
  cursor: default;
}

.access-card__arrow {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  height: 1em;
  font-size: 1.15em;
  line-height: 1;
}

@container (max-width: 180px) {
  .access-card__top {
    font-size: 9px;
  }

  .access-card__label {
    min-width: 0;
    padding-inline: 0.65em;
  }

  .access-card__latency {
    padding: 4px 28% 4px 6px;
    font-size: clamp(7px, 6cqi, 10px);
  }

  .access-card__latency strong {
    font-size: clamp(12px, 13cqi, 19px);
  }

  .speedometer {
    right: 2%;
    width: clamp(22px, 20cqi, 32px);
  }

  .access-card__button {
    min-height: 23px;
    gap: 2px;
    padding-inline: 3px;
    font-size: clamp(7px, 6.2cqi, 10px);
  }
}

@container (max-width: 145px) {
  .access-card__arrow {
    display: none;
  }

  .access-card__latency {
    padding-right: 25%;
  }

  .access-card__latency strong {
    font-size: 12px;
  }
}

.page-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 1700px) {
  .landing {
    max-height: 1200px;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .access-panel {
    right: 2%;
    bottom: 3%;
    width: 67%;
    aspect-ratio: 2.05 / 1;
  }

  .access-grid {
    inset: 12% 8% 13%;
    gap: 7px;
  }

  .access-card {
    gap: 3px;
    padding: 5px;
  }

  .access-card__top {
    font-size: clamp(9px, 1.05vw, 11px);
  }

  .access-card__latency {
    padding: 2px 5%;
    font-size: clamp(8px, 0.95vw, 10px);
  }

  .access-card__latency strong {
    font-size: clamp(15px, 1.8vw, 20px);
  }

  .speedometer {
    width: clamp(24px, 3.8vw, 36px);
  }

  .access-card__button {
    min-height: 22px;
    font-size: clamp(8px, 0.9vw, 10px);
  }
}

@media (max-width: 760px) {
  .landing {
    height: 100svh;
    min-height: 640px;
    padding-bottom: 0;
    background: #0784dc;
  }

  .hero-art--desktop {
    display: none;
  }

  .hero-art--mobile {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
  }

  .mobile-brand {
    position: absolute;
    z-index: 1;
    top: 3.5%;
    left: 16%;
    display: block;
    width: 68%;
    height: auto;
  }

  .mobile-brand__art {
    display: block;
    width: 100%;
    height: auto;
  }

  .player-cutout {
    position: absolute;
    z-index: 1;
    top: 24%;
    left: 1%;
    display: block;
    width: 64%;
    height: 34%;
    object-fit: contain;
    object-position: center bottom;
    pointer-events: none;
  }

  .social-rail {
    position: absolute;
    z-index: 2;
    top: 43.5%;
    right: 5%;
    left: auto;
    width: min(46%, 270px);
    height: auto;
    aspect-ratio: 2078 / 757;
    margin: 0;
    transform: none;
  }

  .social-rail__title {
    position: absolute;
    top: -32%;
    right: 0;
    left: auto;
    display: block;
    width: max-content;
    max-width: calc(100vw - 24px);
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 999px;
    background: rgba(4, 47, 119, 0.88);
    box-shadow: 0 2px 8px rgba(0, 34, 88, 0.42);
    color: #fff;
    font-size: clamp(13px, 3.4vw, 18px);
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
    white-space: nowrap;
  }

  .speed-check {
    display: none;
  }

  .access-panel {
    position: absolute;
    right: auto;
    bottom: 1.5%;
    left: 2%;
    width: 96%;
    height: 47%;
    max-height: none;
    aspect-ratio: auto;
    margin: 0;
  }

  .access-panel__frame:not(.access-panel__frame--mobile) {
    display: none;
  }

  .access-panel__frame--mobile {
    display: block;
  }

  .access-grid {
    inset: 8% 8%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: clamp(5px, 1.7vw, 10px);
  }

  .access-card {
    gap: clamp(2px, 0.5vw, 4px);
    padding: clamp(3px, 0.8vw, 6px) clamp(4px, 1vw, 7px);
    border-radius: 12px;
  }

  .access-card__top {
    min-height: clamp(14px, 2.8vw, 17px);
    font-size: clamp(8px, 1.8vw, 10px);
  }

  .access-card__latency {
    font-size: clamp(8px, 1.7vw, 10px);
    padding-right: 24%;
  }

  .access-card__latency strong {
    max-width: 100%;
    overflow: hidden;
    font-size: clamp(14px, 4vw, 22px);
  }

  .speedometer {
    right: 3%;
    width: clamp(24px, 5.8vw, 32px);
  }

  .access-card__button {
    min-height: clamp(21px, 2.6vh, 28px);
    font-size: clamp(8px, 2.1vw, 12px);
  }

  .social-rail__frame {
    display: block;
    inset: auto;
    top: 50%;
    left: 50%;
    width: 32%;
    height: 260.68%;
    object-fit: fill;
    transform: translate(-50%, -50%) rotate(-90deg);
  }

  .social-rail__items {
    display: flex;
    width: 86%;
    height: 60%;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding: 0;
  }

  .social-link {
    width: 25%;
    height: 100%;
    max-width: 64px;
  }

  .social-link--facebook img {
    transform: scale(0.9);
  }
}

@media (max-width: 380px) {
  .mobile-brand {
    width: 72%;
    left: 14%;
  }

  .social-rail {
    right: 3%;
    width: 49%;
  }

  .access-panel {
    height: 50%;
    bottom: 1%;
  }

  .access-grid {
    inset: 7% 7%;
    gap: 4px;
  }

  .access-card {
    gap: 2px;
    padding: 3px;
  }

  .access-card__top {
    font-size: 8px;
  }

  .access-card__latency strong {
    font-size: 14px;
  }

  .access-card__button {
    min-height: 20px;
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .speedometer__needle { animation: none; }
  .speed-check__needle { animation: none; }
  .access-card.is-measuring .access-card__latency strong { animation: none; }
}
