:root {
  --bg: #01050f;
  --panel: rgba(6, 14, 29, 0.72);
  --line: rgba(139, 179, 255, 0.18);
  --text: #f8fbff;
  --muted: #b8c3d6;
  --blue: #1174ff;
  --blue-strong: #075dff;
  --green: #49e881;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 74% 22%, rgba(17, 116, 255, 0.24), transparent 32%),
    radial-gradient(circle at 18% 86%, rgba(0, 74, 185, 0.22), transparent 34%),
    linear-gradient(145deg, #01050f 0%, #061121 52%, #01050f 100%);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 0 clamp(18px, 5vw, 76px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(1,5,15,.74);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-weight: 850;
  letter-spacing: 7px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 28px rgba(17,116,255,.42);
}

.nav-download {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid rgba(139,179,255,.24);
  border-radius: 999px;
  color: rgba(248,251,255,.9);
  background: rgba(255,255,255,.045);
  font-size: .93rem;
  font-weight: 720;
}

.download-page {
  min-height: 100vh;
}

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(340px, 1fr);
  align-items: center;
  gap: clamp(26px, 5vw, 74px);
  padding: 112px clamp(18px, 6vw, 88px) 64px;
  overflow: hidden;
}

.hero-copy {
  width: min(100%, 620px);
  position: relative;
  z-index: 2;
}

.hero-media {
  order: 2;
  min-height: min(58vw, 590px);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(1,5,15,.92), rgba(1,5,15,.12) 34%, rgba(1,5,15,.08) 66%, rgba(1,5,15,.88)),
    linear-gradient(180deg, rgba(1,5,15,.08), rgba(1,5,15,.9)),
    url("/assets/bixi-hero-devices.png") center / cover no-repeat;
  box-shadow: 0 32px 120px rgba(0,0,0,.5), 0 0 80px rgba(17,116,255,.2);
}

.eyebrow {
  width: max-content;
  max-width: 100%;
  margin: 0 0 18px;
  padding: 7px 12px;
  border: 1px solid rgba(73,232,129,.32);
  border-radius: 999px;
  color: #dfffea;
  background: rgba(73,232,129,.08);
  font-size: .82rem;
  font-weight: 820;
}

h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.lead {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.65vw, 1.45rem);
  line-height: 1.58;
}

.download-card {
  width: min(100%, 430px);
  margin-top: 34px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(4,10,22,.64);
  box-shadow: 0 22px 70px rgba(0,0,0,.34);
  backdrop-filter: blur(12px);
}

.button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #0350e7);
  box-shadow: 0 18px 42px rgba(17,116,255,.32);
  font-size: 1.02rem;
  font-weight: 820;
}

.button-icon {
  position: relative;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.icon-download::before {
  position: absolute;
  left: 9px;
  top: 1px;
  width: 4px;
  height: 13px;
  border-radius: 999px;
  content: "";
  background: currentColor;
}

.icon-download::after {
  position: absolute;
  left: 3px;
  top: 8px;
  width: 13px;
  height: 13px;
  border-right: 4px solid currentColor;
  border-bottom: 4px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.download-card p {
  margin: 11px 0 1px;
  color: rgba(216,225,241,.78);
  text-align: center;
  font-size: .9rem;
}

#downloadCount {
  color: var(--green);
  font-weight: 860;
}

.text-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  color: rgba(248,251,255,.72);
  font-size: .96rem;
  font-weight: 680;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 6vw, 88px);
  border-top: 1px solid rgba(255,255,255,.07);
  color: rgba(216,225,241,.62);
  font-size: .9rem;
}

@media (max-width: 880px) {
  .site-header {
    min-height: 66px;
  }

  .hero {
    min-height: 100svh;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 20px;
    padding: 88px 18px 34px;
  }

  .hero-media {
    order: 0;
    width: min(100%, 520px);
    min-height: 320px;
    margin: 0 auto;
    border-radius: 16px;
    background-position: center;
  }

  .hero-copy {
    width: min(100%, 520px);
    margin: 0 auto;
    text-align: center;
  }

  .eyebrow {
    margin-inline: auto;
  }

  h1 {
    max-width: 470px;
    margin-inline: auto;
    font-size: clamp(2.45rem, 11vw, 4rem);
  }

  .lead {
    max-width: 450px;
    margin: 18px auto 0;
    font-size: 1.02rem;
  }

  .download-card {
    margin: 26px auto 0;
  }

  .text-link {
    justify-content: center;
  }
}

@media (max-width: 540px) {
  .site-header {
    padding: 0 14px;
  }

  .brand {
    gap: 9px;
    letter-spacing: 5px;
    font-size: .98rem;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .nav-download {
    min-height: 34px;
    padding: 0 12px;
    font-size: .86rem;
  }

  .hero {
    padding-inline: 14px;
    padding-bottom: 26px;
  }

  .hero-media {
    min-height: 270px;
    box-shadow: 0 22px 80px rgba(0,0,0,.44), 0 0 56px rgba(17,116,255,.17);
  }

  .download-card {
    border-radius: 16px;
    padding: 10px;
  }

  .button {
    min-height: 54px;
    border-radius: 12px;
    font-size: .98rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
    padding: 20px 14px;
    text-align: center;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 2.28rem;
  }

  .lead {
    font-size: .96rem;
  }

  .hero-media {
    min-height: 230px;
  }
}
