:root {
  color-scheme: dark;
  --bg: #111318;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f5f2ea;
  --muted: #a9adba;
  --gold: #d6b56d;
  --blue: #58a6ff;
  --blue-strong: #2684ff;
  --danger: #ff7b72;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(214, 181, 109, 0.18), transparent 34rem),
    linear-gradient(145deg, #111318 0%, #171b23 55%, #0f1116 100%);
  color: var(--text);
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.shell {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0;
}

.hero {
  min-height: 260px;
  display: grid;
  align-content: center;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.app-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.lede {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.55;
}

.panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px);
}

.auth-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 32px;
  align-items: start;
}

.form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  outline: none;
}

input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.2);
}

.primary,
.secondary,
.ghost {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  font-weight: 700;
}

.primary {
  color: white;
  background: var(--blue-strong);
}

.secondary {
  color: var(--text);
  background: var(--panel-strong);
  border: 1px solid var(--line);
}

.ghost {
  color: var(--blue);
  background: transparent;
}

.muted {
  color: var(--muted);
}

.release-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.release-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 18px;
}

.download-card,
.details-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.17);
}

.download-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}

.download-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(214, 181, 109, 0.45);
  border-radius: 16px;
  color: var(--gold);
  font-weight: 800;
  background: rgba(214, 181, 109, 0.08);
}

ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.55;
}

.checksum {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
}

code {
  overflow: hidden;
  text-overflow: ellipsis;
  color: #d8dee9;
}

.status {
  min-height: 24px;
  margin-top: 18px;
  color: var(--muted);
}

.status.error {
  color: var(--danger);
}

.hidden {
  display: none !important;
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 28px, 1040px);
    padding-top: 34px;
  }

  .brand,
  .release-head,
  .download-card {
    align-items: start;
  }

  .auth-panel,
  .release-grid,
  .download-card {
    grid-template-columns: 1fr;
  }

  .app-icon {
    width: 72px;
    height: 72px;
  }
}
