:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #071018;
  --surface: #0c1823;
  --surface-2: #112331;
  --line: #203747;
  --muted: #8da5b5;
  --text: #f4f8fa;
  --cyan: #35d3c8;
  --cyan-soft: rgba(53, 211, 200, 0.12);
  --orange: #ff8a3d;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 4%, rgba(53, 211, 200, 0.11), transparent 27rem),
    linear-gradient(180deg, #08131d 0, var(--bg) 42rem);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(141, 165, 181, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141, 165, 181, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  gap: 13px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(53, 211, 200, 0.55);
  border-radius: 12px;
  color: var(--cyan);
  background: var(--cyan-soft);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
  letter-spacing: 0.02em;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.official {
  display: flex;
  gap: 9px;
  align-items: center;
  color: #c6d4dc;
  font-size: 13px;
}

.official i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px var(--cyan);
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  max-width: 850px;
  padding: 94px 0 86px;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 26px;
  font-size: clamp(46px, 8vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

h1 span {
  color: var(--cyan);
}

.hero > p {
  max-width: 690px;
  margin-bottom: 30px;
  color: #b8c8d1;
  font-size: clamp(17px, 2.3vw, 21px);
  line-height: 1.65;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-row span,
.badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #b8c8d1;
  background: rgba(12, 24, 35, 0.75);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.trust-row span {
  padding: 8px 12px;
}

.catalog-section,
.steps {
  padding: 44px 0 72px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading > div {
  display: flex;
  gap: 15px;
  align-items: baseline;
}

.section-index {
  color: var(--cyan);
  font: 700 12px ui-monospace, SFMono-Regular, Consolas, monospace;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(25px, 4vw, 37px);
  letter-spacing: -0.03em;
}

.section-heading > p {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 12px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
  gap: 18px;
}

.tool-card,
.catalog-loading {
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(17, 35, 49, 0.96), rgba(10, 22, 32, 0.96));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}

.catalog-loading {
  display: grid;
  min-height: 170px;
  place-items: center;
  color: var(--muted);
}

.tool-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
}

.tool-card::after {
  position: absolute;
  top: -90px;
  right: -90px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(53, 211, 200, 0.12);
  border-radius: 50%;
  content: "";
}

.card-top,
.download-row,
.checksum-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tool-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 13px;
  color: #061014;
  background: var(--cyan);
  font-weight: 900;
}

.badge {
  padding: 7px 10px;
}

.badge.available {
  border-color: rgba(53, 211, 200, 0.28);
  color: var(--cyan);
  background: var(--cyan-soft);
}

.tool-card h3 {
  margin: 23px 0 10px;
  font-size: 24px;
  letter-spacing: -0.025em;
}

.tool-card > p {
  min-height: 48px;
  margin-bottom: 22px;
  color: #a9bdc8;
  line-height: 1.55;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-bottom: 22px;
  color: var(--muted);
  font: 12px ui-monospace, SFMono-Regular, Consolas, monospace;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 10px;
  color: #061014;
  background: var(--cyan);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.download-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(53, 211, 200, 0.2);
}

.download-button[aria-disabled="true"] {
  cursor: not-allowed;
  color: #78909e;
  background: #172a37;
  pointer-events: none;
}

.size {
  color: var(--muted);
  font-size: 12px;
}

.checksum-row {
  align-items: flex-start;
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.checksum-row div {
  min-width: 0;
}

.checksum-row small {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.checksum-row code {
  display: block;
  overflow: hidden;
  color: #c6d4dc;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-button {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.steps ol {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  list-style: none;
  background: var(--line);
}

.steps li {
  display: flex;
  gap: 14px;
  min-height: 150px;
  padding: 24px;
  background: var(--surface);
}

.steps li > span {
  display: grid;
  flex: 0 0 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(53, 211, 200, 0.35);
  border-radius: 8px;
  color: var(--cyan);
  font: 700 12px ui-monospace, SFMono-Regular, Consolas, monospace;
}

.steps strong {
  display: block;
  margin: 4px 0 9px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

code {
  color: #d5e3e9;
}

.security-note {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 72px;
  padding: 25px;
  border: 1px solid rgba(255, 138, 61, 0.28);
  border-radius: 14px;
  background: rgba(255, 138, 61, 0.055);
}

.shield {
  display: grid;
  flex: 0 0 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  color: #071018;
  background: var(--orange);
  font-weight: 900;
}

.security-note strong {
  display: block;
  margin: 1px 0 7px;
}

.security-note p {
  max-width: 850px;
  margin: 0;
  color: #b6c6ce;
  font-size: 14px;
  line-height: 1.55;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 25px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.catalog-error {
  padding: 24px;
  border: 1px solid rgba(255, 138, 61, 0.35);
  border-radius: 14px;
  color: #ffd4b7;
  background: rgba(255, 138, 61, 0.08);
}

@media (max-width: 820px) {
  .hero {
    padding: 64px 0;
  }

  .steps ol {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .topbar,
  main,
  footer {
    width: min(100% - 28px, 1180px);
  }

  .topbar {
    padding: 19px 0;
  }

  .official,
  .brand small {
    display: none;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .hero {
    padding: 50px 0 56px;
  }

  h1 {
    font-size: 46px;
  }

  .section-heading,
  .download-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .tool-card {
    padding: 23px;
  }

  .download-button {
    width: 100%;
  }

  .steps ol {
    grid-template-columns: 1fr;
  }

  .steps li {
    min-height: auto;
  }

  footer {
    flex-direction: column;
  }
}

