:root {
  --ink: #161b1f;
  --muted: #57616a;
  --paper: #fbfcf8;
  --soft: #eef5f0;
  --line: #dfe5de;
  --warehouse: #171d21;
  --warehouse-2: #222a2f;
  --tile: #f3f8ef;
  --yellow: #f5c64b;
  --green: #4fc17c;
  --blue: #4e95e8;
  --red: #f05260;
  --white: #ffffff;
  --shadow: 0 18px 44px rgba(18, 25, 30, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 14px 28px;
  border-bottom: 1px solid rgba(22, 27, 31, 0.08);
  background: rgba(251, 252, 248, 0.94);
  backdrop-filter: blur(16px);
}

.brand-link,
.top-nav,
.site-footer nav {
  display: flex;
  align-items: center;
}

.brand-link {
  gap: 12px;
  min-width: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-link img {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.top-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.top-nav a,
.site-footer a {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 750;
  text-decoration: none;
}

.top-nav a:hover,
.top-nav a:focus-visible,
.top-nav a[aria-current="page"],
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--ink);
  background: var(--soft);
  outline: none;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 82svh;
  padding: 64px 28px 72px;
  overflow: hidden;
  color: var(--white);
  background-color: var(--warehouse);
  background-image: url("media/boxjam-world.png");
  background-position: right 14% center;
  background-repeat: no-repeat;
  background-size: auto 108%;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(16, 21, 24, 0.42);
}

.hero::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: 64%;
  content: "";
  background: rgba(16, 21, 24, 0.42);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  margin: 0 auto;
  transform: translateX(-24%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.06;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: 4rem;
}

h2 {
  font-size: 2.35rem;
}

h3 {
  font-size: 1.18rem;
}

.lead {
  max-width: 600px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.22rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-size: 0.98rem;
  font-weight: 850;
  text-decoration: none;
}

.button.primary {
  color: var(--ink);
  background: var(--yellow);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.08);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: 3px solid rgba(245, 198, 75, 0.28);
}

.section-inner {
  width: min(1120px, calc(100% - 56px));
  margin: 0 auto;
}

.link-band,
.feature-band,
.gallery-band,
.faq-band {
  padding: 74px 0;
}

.link-band {
  background: var(--paper);
}

.section-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 30px;
}

.release-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.release-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 126px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 10px 26px rgba(18, 25, 30, 0.08);
  text-decoration: none;
}

.release-card:hover,
.release-card:focus-visible {
  border-color: rgba(22, 27, 31, 0.2);
  transform: translateY(-2px);
  outline: none;
}

.release-card strong,
.release-card small {
  display: block;
}

.release-card strong {
  font-size: 1.06rem;
}

.release-card small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.signal {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 5px;
  box-shadow: inset 0 -3px rgba(22, 27, 31, 0.12);
}

.signal.yellow {
  background: var(--yellow);
}

.signal.blue {
  background: var(--blue);
}

.signal.green {
  background: var(--green);
}

.feature-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.feature-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr;
  gap: 44px;
  align-items: start;
}

.feature-list {
  display: grid;
  gap: 16px;
}

.feature-list article,
.faq-list article {
  padding: 24px;
  border: 1px solid rgba(22, 27, 31, 0.08);
  border-radius: 8px;
  background: var(--white);
}

.feature-number {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 900;
}

.feature-list p,
.faq-list p,
.legal-document p {
  color: var(--muted);
}

.gallery-band {
  color: var(--white);
  background: var(--warehouse);
}

.gallery-band .section-heading h2 {
  color: var(--white);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.screenshot-grid figure {
  margin: 0;
}

.screenshot-grid img {
  width: 100%;
  aspect-ratio: 682 / 1221;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: var(--warehouse-2);
  box-shadow: var(--shadow);
}

.screenshot-grid figcaption {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.site-footer div {
  display: grid;
  gap: 2px;
}

.site-footer span {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.document-main {
  padding: 72px 0 86px;
}

.legal-document {
  width: min(840px, calc(100% - 56px));
  margin: 0 auto;
}

.legal-document h1 {
  margin-bottom: 28px;
  color: var(--ink);
  font-size: 3.1rem;
}

.legal-document h2 {
  margin-top: 38px;
  color: var(--ink);
  font-size: 1.42rem;
}

.legal-document p {
  margin: 14px 0 0;
  font-size: 1rem;
}

.legal-document a {
  color: #246db7;
  font-weight: 800;
}

.support-main {
  background: var(--paper);
}

.support-hero {
  padding: 78px 0;
  color: var(--white);
  background: var(--warehouse);
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 192px;
  gap: 42px;
  align-items: center;
}

.support-layout h1 {
  font-size: 3.2rem;
}

.support-layout .lead {
  color: rgba(255, 255, 255, 0.84);
}

.support-layout img {
  width: 192px;
  height: 192px;
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.support-layout .button {
  margin-top: 28px;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 900px) {
  .hero {
    min-height: 84svh;
    align-items: flex-end;
    padding-top: 84px;
    background-position: center top;
    background-size: auto 96%;
  }

  .hero::after {
    width: 100%;
    background: rgba(16, 21, 24, 0.34);
  }

  .hero-copy {
    margin: 0;
    transform: none;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  .lead {
    font-size: 1.08rem;
  }

  .release-grid,
  .feature-layout,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .screenshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
  }

  .top-nav,
  .site-footer nav {
    justify-content: flex-start;
  }

  .section-inner,
  .legal-document {
    width: min(100% - 36px, 1120px);
  }

  .hero {
    min-height: 82svh;
    padding: 44px 18px 52px;
  }

  h1,
  .legal-document h1,
  .support-layout h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 1.65rem;
  }

  .release-card {
    min-height: 0;
    padding: 18px;
  }

  .link-band,
  .feature-band,
  .gallery-band,
  .faq-band {
    padding: 54px 0;
  }

  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .support-layout {
    grid-template-columns: 1fr;
  }

  .support-layout img {
    width: 128px;
    height: 128px;
    border-radius: 24px;
  }
}
