:root {
  --bg: #f6f7f9;
  --panel: #ffffff;
  --ink: #17202a;
  --muted: #5d6875;
  --line: #d9dee5;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --danger: #b42318;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 247, 249, .94);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

nav a {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(220px, 360px);
  gap: 34px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 54px 32px 42px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.intro {
  margin: 20px 0 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 760;
  text-decoration: none;
}

.button.primary {
  border-color: var(--accent);
  color: #ffffff;
  background: var(--accent);
}

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

.button.secondary {
  background: #ffffff;
}

.button.deb {
  border-color: #0f766e;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #14a085);
  box-shadow: 0 10px 22px rgba(15, 118, 110, .22);
}

.button.deb:hover {
  background: linear-gradient(135deg, #115e59, #0f8f78);
}

.button.flatpak {
  border-color: #2563eb;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  box-shadow: 0 10px 22px rgba(37, 99, 235, .22);
}

.button.flatpak:hover {
  background: linear-gradient(135deg, #1d4ed8, #6d28d9);
}

.hero-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(30, 41, 59, .13);
}

.hero-icon img {
  width: min(62%, 190px);
  height: auto;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 32px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

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

.feature-grid article,
.checksum-card,
.verify-tool,
.note {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.feature-grid p,
.download p,
.verify p,
.note p {
  margin: 0;
  color: var(--muted);
}

.download {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.download p + p {
  margin-top: 12px;
}

.download-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.checksum-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(360px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.checksum-card {
  color: #ffffff;
  text-align: center;
}

.checksum-card h3 {
  color: #ffffff;
}

.checksum-card.deb-card {
  border-color: #0f766e;
  background: linear-gradient(135deg, #0f766e, #14a085);
}

.checksum-card.flatpak-card {
  border-color: #2563eb;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.checksum-grid code {
  display: block;
  padding: 10px;
  border-radius: 6px;
  color: #ffffff;
  background: rgba(255, 255, 255, .16);
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
}

.copy-hash {
  margin-top: 12px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 6px;
  color: #ffffff;
  background: rgba(255, 255, 255, .14);
  font-weight: 800;
  cursor: pointer;
}

.copy-hash:hover {
  background: rgba(255, 255, 255, .22);
}

.verify-tool {
  display: grid;
  grid-template-columns: minmax(220px, 420px) auto;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  margin-left: auto;
  margin-right: auto;
  max-width: 680px;
  text-align: center;
}

.verify-tool label {
  grid-column: 1 / -1;
  font-weight: 800;
}

.verify-tool input {
  width: 100%;
  min-height: 42px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.button.verify-button {
  border-color: #b42318;
  color: #ffffff;
  background: linear-gradient(135deg, #b42318, #e85d04);
  box-shadow: 0 10px 22px rgba(180, 35, 24, .2);
}

.button.verify-button:hover {
  background: linear-gradient(135deg, #991b1b, #d9480f);
}

.verify-result {
  grid-column: 1 / -1;
  padding: 12px;
  border-radius: 6px;
  color: var(--muted);
  background: #f1f4f7;
}

.verify-result.success {
  color: #0f5132;
  background: #d1e7dd;
}

.verify-result.error {
  color: #842029;
  background: #f8d7da;
}

.verify-result.busy {
  color: #664d03;
  background: #fff3cd;
}

.note {
  margin-bottom: 34px;
  text-align: center;
}

.note h2 {
  margin-bottom: 12px;
  color: var(--danger);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 22px 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.more-from-xgdl {
  width: 100%;
  justify-content: center;
}

.more-from-xgdl a {
  color: var(--accent);
  font-weight: 800;
}

@media (max-width: 900px) {
  .hero,
  .download {
    grid-template-columns: 1fr;
  }

  .verify-tool,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
  }

  .hero,
  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .checksum-grid,
  .verify-tool {
    grid-template-columns: 1fr;
  }
}
