:root {
  --brand: #000000;
  --brand-soft: #2a2a2a;
  --brand-deep: #0a0a0a;
  --ink: #111111;
  --text-muted: #5a5a5a;
  --surface: #ffffff;
  --radius: 16px;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Syne", "Manrope", system-ui, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--ink);
  min-height: 100dvh;
  line-height: 1.5;
}

.page-download {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow-x: hidden;
}

.download-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 90% 60% at 10% -10%, rgba(0, 0, 0, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 20%, rgba(0, 0, 0, 0.1), transparent 50%),
    linear-gradient(165deg, #f5f5f5 0%, #eeeeee 45%, #e6e6e6 100%);
}

.download-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.9;
  pointer-events: none;
}

.download {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 3.5rem) 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  animation: fadeUp 0.6s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.download__brand {
  text-align: center;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  animation: popIn 0.5s 0.15s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.brand-logo {
  display: block;
  width: min(160px, 42vw);
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}

.brand-tag {
  margin-top: 0.15rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.download__hero {
  text-align: center;
}

.download__hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.25rem, 4vw, 1.55rem);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 0.65rem;
  color: var(--brand);
}

.download__lead {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 38ch;
  margin: 0 auto;
}

.download-card {
  background: var(--surface);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.35rem 1.25rem 1.25rem;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.06),
    0 12px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.1);
  animation: fadeUp 0.65s 0.12s ease both;
  text-align: center;
}

.download-card__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.download-card__badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--brand);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.download-card__version {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.download-card__title {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
  color: var(--brand);
}

.download-card__file {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1.15rem;
}

.download-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  padding: 1rem 1.25rem;
  border: none;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 0 var(--brand-deep);
}

.download-card__btn:hover {
  background: var(--brand-soft);
  transform: translateY(-1px);
}

.download-card__btn:active,
.download-card__btn.is-clicked {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--brand-deep);
}

.download-card__hint {
  margin-top: 0.85rem;
  font-size: 0.78rem;
  color: #8a8a8a;
}

.download__steps {
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  animation: fadeUp 0.7s 0.18s ease both;
}

.download__steps li {
  counter-increment: step;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.85rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  padding: 0.9rem 1rem 0.9rem 0.9rem;
}

.download__steps li::before {
  content: counter(step);
  grid-row: 1 / span 2;
  align-self: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.14);
}

.download__steps strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

.download__steps span {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}

.download__bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0 0.25rem;
  animation: fadeUp 0.7s 0.22s ease both;
}

.download__bullets li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
}

.download__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.14);
}
