:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --text: #17212b;
  --muted: #5f6b7a;
  --primary: #1976d2;
  --primary-dark: #0d47a1;
  --border: #d8dee8;
  --warning-bg: #fff8e1;
  --warning-text: #6d4c00;
  --shadow: 0 2px 10px rgba(20, 32, 46, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
}

a {
  color: inherit;
}

.container {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}

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

.brand {
  color: var(--primary-dark);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--primary);
}

.page {
  padding: 32px 0 72px;
}

.card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero {
  padding: clamp(28px, 5vw, 48px);
}

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

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

h1 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  line-height: 1.25;
}

.lead {
  max-width: 720px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.button--primary {
  color: #fff;
  background: var(--primary);
}

.button--primary:hover {
  background: var(--primary-dark);
}

.button--secondary {
  color: var(--primary);
  border-color: var(--border);
  background: var(--surface);
}

.button--secondary:hover {
  background: var(--surface-soft);
}

.verify {
  margin-top: 24px;
  padding: 28px;
}

.verify p,
.platform p,
.platform li {
  color: var(--muted);
  line-height: 1.7;
}

.section-title {
  margin-bottom: 12px;
}

.section-copy {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.7;
}

.fingerprint-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  margin: 18px 0;
}

.fingerprint-row code {
  display: block;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  background: var(--surface-soft);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.copy-button {
  white-space: nowrap;
}

.meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0 0;
}

.meta div {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-soft);
}

.meta dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.meta dd {
  margin: 0;
  font-weight: 650;
}

.downloads {
  margin-top: 42px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.platform {
  padding: 24px;
}

.platform ol {
  padding-left: 22px;
}

.platform .button {
  margin-top: 8px;
}

.file-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.file-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--primary);
  background: var(--surface-soft);
  font-weight: 650;
  text-decoration: none;
}

.file-list a:hover {
  border-color: var(--primary);
  background: #e8f1fb;
}

.note {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--warning-text) !important;
  background: var(--warning-bg);
}

pre {
  max-width: 100%;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid #243244;
  border-radius: 10px;
  color: #eaf2ff;
  background: #111827;
  overflow: auto;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 640px);
  }

  .topbar__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px 0;
  }

  .grid,
  .meta,
  .fingerprint-row {
    grid-template-columns: 1fr;
  }

  .page {
    padding-top: 20px;
  }
}
