:root {
  --bg: #f7f7f8;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --border: rgba(60, 60, 67, 0.1);
  --brand: #c98939;
  --brand-bright: #f0ad4e;
  --brand-soft: rgba(201, 137, 57, 0.1);
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  --font: "SF Pro Text", "PingFang SC", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.98), transparent 30%),
    radial-gradient(circle at 85% 18%, rgba(240, 173, 78, 0.16), transparent 26%),
    linear-gradient(180deg, #fffdf9 0%, #f7f7f8 100%);
}

.shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
}

.gateway {
  position: absolute;
  pointer-events: none;
}

.gateway-left {
  left: -140px;
  top: 50%;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(240, 173, 78, 0.18);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow:
    0 0 0 28px rgba(240, 173, 78, 0.06),
    0 0 0 68px rgba(240, 173, 78, 0.04);
}

.gateway-right {
  right: -100px;
  top: 52%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.96) 0%, rgba(240, 173, 78, 0.18) 42%, rgba(240, 173, 78, 0) 72%);
  filter: blur(2px);
  transform: translateY(-50%);
}

.gateway-grid {
  inset: 0;
  background-image:
    linear-gradient(rgba(240, 173, 78, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 173, 78, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0));
}

.card {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  padding: 40px 28px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.82)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 245, 231, 0.66));
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
  text-align: center;
}

.logo {
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  border-radius: 24px;
  box-shadow: 0 16px 32px rgba(201, 137, 57, 0.18);
}

h1 {
  margin: 0;
  font-size: clamp(34px, 8vw, 52px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.intro {
  margin: 14px auto 0;
  max-width: 480px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
}

.downloads {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.download-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface-strong);
  color: inherit;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.download-link:hover,
.download-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(201, 137, 57, 0.26);
  box-shadow: 0 12px 28px rgba(201, 137, 57, 0.1);
}

.download-link span {
  font-weight: 600;
}

.download-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.download-title {
  font-weight: 600;
}

.download-version {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.4;
}

.download-link code {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid rgba(201, 137, 57, 0.18);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.download-link.is-disabled {
  opacity: 0.68;
  cursor: default;
}

.download-link.is-disabled:hover,
.download-link.is-disabled:focus-visible {
  transform: none;
  border-color: var(--border);
  box-shadow: none;
}

.download-link.is-disabled[data-download-ready="true"] {
  opacity: 1;
  cursor: pointer;
}

@media (max-width: 640px) {
  .card {
    padding: 32px 20px;
    border-radius: 24px;
  }

  .gateway-left {
    left: -180px;
    width: 300px;
    height: 300px;
    box-shadow:
      0 0 0 22px rgba(240, 173, 78, 0.06),
      0 0 0 52px rgba(240, 173, 78, 0.04);
  }

  .gateway-right {
    right: -90px;
    width: 190px;
    height: 190px;
  }

  .download-link {
    flex-direction: column;
    align-items: flex-start;
  }

  .download-link code {
    white-space: normal;
    word-break: keep-all;
  }
}
