*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --bg: #070707;
  --panel: rgba(14, 14, 14, .86);
  --panel-solid: #101010;
  --border: rgba(255, 255, 255, .11);
  --border-soft: rgba(255, 255, 255, .07);
  --text: #f2f2f2;
  --text-2: #a6a6a6;
  --text-3: #6d6d6d;
  --accent: #ffffff;
  --ready: #7df0a0;
  --shadow: rgba(0, 0, 0, .55);
}

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

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(120deg, rgba(255,255,255,.025) 0 1px, transparent 1px 142px),
    linear-gradient(180deg, #0b0b0b 0%, #050505 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, rgba(255,255,255,.055), transparent 44%);
  opacity: .42;
  mix-blend-mode: screen;
}

.download-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .2;
  filter: grayscale(1) contrast(1.15) brightness(.55);
  transform: scale(1.04);
}

.download-shell {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 36px 0;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 28px;
}

.download-shell-centered {
  place-items: center;
}

.download-top {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 0 18px;
  background: rgba(8, 8, 8, .76);
  box-shadow: 0 18px 60px var(--shadow);
  backdrop-filter: blur(18px);
}

.panel-brand {
  color: var(--text);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.panel-brand span {
  color: var(--text-2);
}

.download-top > span {
  color: var(--text-2);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.download-card {
  align-self: center;
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    linear-gradient(110deg, rgba(18,18,18,.96), rgba(8,8,8,.94) 56%, rgba(11,11,11,.9)),
    linear-gradient(145deg, rgba(255,255,255,.04), transparent 42%);
  box-shadow: 0 34px 110px rgba(0, 0, 0, .62);
}

.download-card-small {
  width: min(620px, 100%);
  min-height: 0;
  grid-template-columns: 1fr;
}

.project-visual {
  position: relative;
  min-height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-right: 1px solid var(--border-soft);
  background:
    linear-gradient(150deg, rgba(255,255,255,.07), transparent 34%),
    linear-gradient(180deg, #121212, #050505);
}

.project-visual::before,
.project-visual::after {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  pointer-events: none;
}

.project-visual::after {
  inset: auto 24px 24px;
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent);
}

.visual-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, #000, transparent 82%);
  opacity: .34;
  pointer-events: none;
}

.project-backmark {
  position: absolute;
  right: clamp(22px, 5vw, 76px);
  top: 50%;
  max-width: 46%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.038);
  font-size: clamp(5rem, 17vw, 15rem);
  font-weight: 900;
  line-height: .82;
  letter-spacing: 0;
  text-align: right;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  pointer-events: none;
}

.project-map-bg {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: min(420px, 40%);
  height: 170px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  opacity: .34;
  filter: grayscale(1) contrast(1.3) brightness(.72);
  mask-image: linear-gradient(90deg, transparent, #000 24%);
  pointer-events: none;
}

.project-logo,
.project-logo-inline,
.project-emblem {
  position: relative;
  z-index: 2;
}

.project-logo {
  width: min(210px, 52%);
  max-height: 210px;
  object-fit: contain;
  filter: drop-shadow(0 18px 34px rgba(0,0,0,.7));
}

.project-logo-inline {
  width: 86px;
  max-height: 86px;
  object-fit: contain;
  margin-bottom: 26px;
  filter: drop-shadow(0 16px 32px rgba(0,0,0,.7));
}

.project-emblem {
  width: min(310px, 74%);
  min-height: 188px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 18px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255,255,255,.12), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.035),
    0 22px 58px rgba(0,0,0,.48);
  overflow: hidden;
}

.project-emblem::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
}

.project-emblem::after {
  content: "";
  position: absolute;
  left: -18%;
  right: -18%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transform: rotate(-18deg);
  opacity: .55;
}

.project-emblem span,
.project-emblem strong,
.project-emblem em {
  position: relative;
  z-index: 1;
}

.project-emblem span {
  color: var(--text-3);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.project-emblem strong {
  margin-top: 12px;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  line-height: .86;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  text-shadow: 0 0 28px rgba(255,255,255,.2);
}

.project-emblem em {
  width: min(100%, 230px);
  margin-top: 14px;
  color: var(--text-2);
  font-size: .74rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-map {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 42px;
  width: calc(100% - 56px);
  max-height: 116px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  opacity: .72;
  filter: grayscale(1) contrast(1.25) brightness(.72);
}

.project-content {
  position: relative;
  z-index: 2;
  width: min(790px, 100%);
  padding: clamp(38px, 6vw, 78px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.project-meta-line {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.project-meta-line > span {
  color: var(--text-3);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.status-pill {
  align-self: flex-start;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--text-2);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(255,255,255,.045);
}

.status-ready {
  color: var(--ready);
  border-color: rgba(125,240,160,.28);
  background: rgba(125,240,160,.08);
}

.status-muted {
  color: var(--text-2);
}

h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(2.3rem, 7vw, 5.3rem);
  line-height: .92;
  font-weight: 900;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

p {
  width: min(620px, 100%);
  margin: 22px 0 0;
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.7;
}

.server-strip {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.server-chip {
  min-width: 0;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 13px 14px;
  background: rgba(255,255,255,.035);
}

.server-chip span,
.server-chip em {
  display: block;
  color: var(--text-3);
  font-size: .68rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.server-chip strong {
  display: block;
  margin: 6px 0 5px;
  color: var(--text);
  font-size: .88rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-chip-empty {
  grid-column: 1 / -1;
}

.download-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.download-button {
  min-width: 238px;
  min-height: 54px;
  border: 1px solid #fff;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  color: #050505;
  background: #fff;
  text-decoration: none;
  font: inherit;
  font-size: .92rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 34px rgba(255,255,255,.16);
  transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.download-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 48px rgba(255,255,255,.24);
}

.download-button:disabled {
  color: var(--text-3);
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.13);
  box-shadow: none;
  cursor: default;
}

.download-note {
  max-width: 280px;
  color: var(--text-3);
  font-size: .8rem;
  line-height: 1.45;
}

.project-links {
  margin-top: 28px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.project-link {
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--text-2);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 800;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}

.project-link:hover {
  color: var(--text);
  border-color: rgba(255,255,255,.24);
  background: rgba(255,255,255,.05);
}

@media (max-width: 860px) {
  .download-shell {
    width: min(100% - 24px, 620px);
    padding: 18px 0;
    gap: 14px;
  }

  .download-top {
    height: auto;
    min-height: 46px;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 14px;
  }

  .download-card {
    min-height: 0;
  }

  .project-backmark,
  .project-map-bg {
    display: none;
  }

  .project-content {
    padding: 28px 22px 30px;
  }

  .project-logo-inline {
    width: 72px;
    max-height: 72px;
    margin-bottom: 18px;
  }

  h1 {
    font-size: clamp(2.15rem, 13vw, 3.4rem);
  }

  .server-strip {
    grid-template-columns: 1fr;
  }

  .download-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .download-button {
    width: 100%;
    min-width: 0;
  }

  .download-note {
    max-width: none;
  }
}
