:root {
  color-scheme: light;
  --page: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #fff;
  --ink: #1d1d1f;
  --secondary: #6e6e73;
  --tertiary: #86868b;
  --line: rgba(29, 29, 31, 0.1);
  --accent: #327ef5;
  --accent-hover: #236ee8;
  --accent-soft: rgba(50, 126, 245, 0.11);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html {
  background: var(--page);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -15%, rgba(115, 177, 255, 0.24), transparent 34rem),
    var(--page);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 245, 247, 0.78);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
}

.topbar__inner,
main,
footer {
  width: min(880px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar__inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 680;
  letter-spacing: -0.02em;
}

.brand img {
  border-radius: 9px;
  box-shadow: 0 3px 12px rgba(28, 57, 89, 0.12);
}

.back-link {
  color: var(--secondary);
  font-size: 14px;
}

.back-link:hover { color: var(--ink); }

.hero {
  padding: 88px 0 56px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.13em;
}

h1 {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", sans-serif;
  font-size: clamp(44px, 7vw, 66px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.hero__intro {
  margin: 22px 0 38px;
  color: var(--secondary);
  font-size: 19px;
  line-height: 1.55;
}

.current-release {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px 30px;
  text-align: left;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 24px;
  box-shadow: 0 20px 55px rgba(42, 67, 97, 0.09);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.current-release__badge {
  display: inline-flex;
  margin-bottom: 9px;
  padding: 4px 9px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 680;
}

.current-release h2 {
  margin: 0 0 5px;
  font-size: 25px;
  letter-spacing: -0.025em;
}

.current-release p {
  margin: 0;
  color: var(--secondary);
  font-size: 14px;
}

.download-button {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  color: #fff;
  background: var(--accent);
  border-radius: 99px;
  font-size: 14px;
  font-weight: 650;
  box-shadow: 0 8px 20px rgba(50, 126, 245, 0.25);
  transition: transform 160ms ease, background 160ms ease;
}

.download-button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.download-button:active { transform: scale(0.97); }

.update-hint {
  margin: 15px 0 0;
  color: var(--tertiary);
  font-size: 13px;
}

.release-list {
  padding: 0 0 82px;
}

.release {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 84px;
}

.release__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.release__meta time {
  color: var(--tertiary);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.release__version {
  font-size: 17px;
  font-weight: 680;
}

.release__latest {
  padding: 3px 7px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 99px;
  font-size: 11px;
  font-weight: 680;
}

.release__content h2 {
  margin: -3px 0 14px;
  font-size: 25px;
  letter-spacing: -0.025em;
}

.release__content ul {
  margin: 0;
  padding-left: 1.25em;
  color: var(--secondary);
  font-size: 15px;
  line-height: 1.7;
}

.release__content li + li { margin-top: 5px; }

footer {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--tertiary);
  border-top: 1px solid var(--line);
  font-size: 12px;
}

footer a:hover { color: var(--ink); }

@media (max-width: 640px) {
  .topbar__inner,
  main,
  footer {
    width: min(100% - 28px, 880px);
  }

  .hero { padding: 62px 0 42px; }
  .hero__intro { font-size: 17px; }

  .current-release {
    align-items: stretch;
    flex-direction: column;
    padding: 24px;
    border-radius: 20px;
  }

  .download-button { width: 100%; }
  .update-hint { line-height: 1.55; }

  .release {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 30px 0;
  }

  .release__meta {
    flex-direction: row;
    align-items: center;
  }

  .release__meta time { order: 2; margin-left: auto; }
  .release__content h2 { font-size: 22px; }

  footer {
    min-height: 110px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .download-button { transition: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .topbar,
  .current-release {
    background: var(--surface-solid);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
