:root {
  --bg: #04030b;
  --text: #fff;
  --muted: rgba(255, 255, 255, .72);
  --line: rgba(255, 255, 255, .13);
  --card: rgba(12, 6, 30, .78);
  --pink: #ff3d88;
  --orange: #ff7a1d;
  --purple: #b000f5;
  --shadow: 0 24px 70px rgba(0, 0, 0, .42);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 66% 11%, rgba(255, 42, 68, .34), transparent 24%),
    radial-gradient(circle at 21% 93%, rgba(255, 0, 92, .28), transparent 24%),
    radial-gradient(circle at 75% 79%, rgba(16, 30, 255, .33), transparent 25%),
    url("../images/HaloLiveWSBG.png") center / cover no-repeat;
}

.site-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .92), transparent 19%, transparent 82%, rgba(0, 0, 0, .85)),
    linear-gradient(180deg, rgba(0, 0, 0, .62), transparent 44%, rgba(0, 0, 0, .46));
}

.site-header,
.hero,
.site-footer,
.info-content {
  position: relative;
  z-index: 1;
}

.site-header {
  width: min(1430px, calc(100% - 96px));
  height: 118px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: inline-flex;
  align-items: center;
}

.brand-link img {
  width: 185px;
  height: auto;
  filter: drop-shadow(0 0 14px rgba(255, 53, 157, .4));
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 64px;
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
}

.desktop-nav button,
.mobile-drawer button {
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.desktop-nav button:hover,
.footer-links a:hover {
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 65, 166, .68);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: currentColor;
}

.hero {
  width: min(980px, calc(100% - 48px));
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: minmax(360px, 510px) 1fr;
  align-items: center;
  gap: 66px;
}

.phone-wrap {
  position: relative;
  min-height: 620px;
}

.phone-wrap::after {
  content: "";
  position: absolute;
  left: 2%;
  right: -1%;
  bottom: 4%;
  height: 90px;
  background: radial-gradient(ellipse, rgba(0, 255, 218, .34), transparent 64%);
  filter: blur(6px);
}

.phone-image {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 500px;
  display: block;
  filter: drop-shadow(0 22px 38px rgba(0, 0, 0, .7));
}

.hero-copy {
  padding-bottom: 90px;
}

.hero h1 {
  margin: 0 0 58px;
  font-size: clamp(38px, 3.1vw, 48px);
  line-height: 1.35;
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 3px 22px rgba(0, 0, 0, .35);
}

.download-list {
  display: grid;
  gap: 26px;
}

.download-button {
  width: 250px;
  height: 66px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(100deg, var(--orange), var(--pink) 49%, var(--purple));
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: 56px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(175, 0, 245, .28), inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: transform .22s ease, filter .22s ease, box-shadow .22s ease;
}

.download-button:hover {
  transform: translateY(-3px);
  filter: saturate(1.12);
  box-shadow: 0 22px 42px rgba(175, 0, 245, .38), inset 0 1px 0 rgba(255, 255, 255, .24);
}

.button-icon {
  width: 25px;
  height: 25px;
  justify-self: end;
}

.button-icon img,
.social-links svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.social-links svg {
  fill: currentColor;
}

.social-links button:nth-child(3) svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer {
  width: min(690px, calc(100% - 40px));
  margin: 52px auto 0;
  padding-bottom: 50px;
  color: rgba(255, 255, 255, .74);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
  font-size: 14px;
}

.social-links {
  margin: 34px 0 24px;
  display: none;
  justify-content: center;
  gap: 36px;
}

.social-links button {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #fff;
  color: #05030a;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.social-links button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 22px rgba(255, 255, 255, .34);
}

.social-links svg {
  width: 24px;
  height: 24px;
}

.copyright {
  margin: 28px 0 0;
  font-size: 13px;
}

.mobile-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 4;
  width: min(300px, 76vw);
  padding: 92px 28px;
  background: rgba(8, 4, 22, .96);
  border-left: 1px solid var(--line);
  transform: translateX(105%);
  transition: transform .24s ease;
  display: grid;
  align-content: start;
  gap: 24px;
  color: #fff;
}

.drawer-open .mobile-drawer {
  transform: translateX(0);
}

.toast {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 9;
  min-width: 150px;
  transform: translate(-50%, -50%) scale(.96);
  padding: 12px 18px;
  border-radius: 14px;
  color: #fff;
  background: rgba(0, 0, 0, .84);
  border: 1px solid rgba(255, 255, 255, .18);
  text-align: center;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.info-page {
  overflow: auto;
}

.info-content {
  width: min(1050px, calc(100% - 56px));
  margin: 26px auto 0;
}

.content-card {
  min-height: 56vh;
  padding: clamp(28px, 4vw, 54px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.content-card h1,
.content-card h2 {
  margin: 0 0 24px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.18;
  font-style: italic;
}

.content-card h3 {
  margin: 30px 0 12px;
  color: #fff;
  font-size: 18px;
}

.content-card p,
.content-card li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.content-card p {
  margin: 14px 0;
}

.content-card ul,
.content-card ol {
  margin: 12px 0 0;
  padding-left: 22px;
}

.content-card table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  color: var(--muted);
  font-size: 14px;
  overflow: hidden;
  border-radius: 12px;
}

.content-card th,
.content-card td {
  border: 1px solid var(--line);
  padding: 12px;
  text-align: left;
}

.content-card th {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.info-footer {
  margin-top: 42px;
}

@media (max-width: 980px) {
  .site-header {
    width: min(100% - 40px, 760px);
  }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: none;
  }

  .hero {
    width: min(100% - 32px, 680px);
    margin-top: 0;
    grid-template-columns: 1fr;
    gap: 0;
    text-align: center;
  }

  .phone-wrap {
    min-height: 0;
  }

  .phone-image {
    width: min(82vw, 420px);
    margin: 0 auto;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .hero h1 {
    margin: 18px 0 30px;
    font-size: 34px;
  }

  .download-list {
    justify-items: center;
  }

  .site-footer {
    margin-top: 46px;
  }

  .footer-links {
    gap: 18px 34px;
  }
}

@media (max-width: 560px) {
  .site-shell {
    background-position: 49% 50%;
  }

  .site-header {
    height: 86px;
    width: calc(100% - 30px);
  }

  .brand-link img {
    width: 142px;
  }

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

  .download-button {
    width: min(275px, 88vw);
    height: 58px;
    grid-template-columns: 82px 1fr;
  }

  .site-footer {
    margin-top: 38px;
    padding-bottom: 32px;
  }

  .footer-links {
    flex-direction: column;
    gap: 14px;
  }

  .copyright {
    margin-top: 24px;
  }

  .info-content {
    width: calc(100% - 28px);
    margin-top: 6px;
  }

  .content-card {
    border-radius: 14px;
    padding: 24px 18px;
  }

  .content-card p,
  .content-card li {
    font-size: 14px;
  }
}
