:root {
  --bg: #07090c;
  --bg-soft: #0d1115;
  --panel: rgba(16, 22, 26, 0.88);
  --panel-solid: #11181d;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(242, 193, 78, 0.34);
  --text: #f7f2e8;
  --muted: #aeb8ad;
  --gold: #f2c14e;
  --green: #58d184;
  --red: #e05a47;
  --blue: #6aa7ff;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(7, 9, 12, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 850;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(242, 193, 78, 0.1);
  color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.nav {
  display: flex;
  gap: clamp(12px, 2vw, 28px);
  font-size: 14px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms ease;
}

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

.hero {
  position: relative;
  min-height: 90svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #050607;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.74;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 9, 12, 0.94) 0%, rgba(7, 9, 12, 0.72) 44%, rgba(7, 9, 12, 0.18) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7, 9, 12, 0.28) 34%, rgba(7, 9, 12, 0.04) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(780px, calc(100% - 36px));
  max-width: calc(100% - 36px);
  margin-left: clamp(18px, 6vw, 86px);
  padding-top: 78px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

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

h1 {
  margin-bottom: 14px;
  font-size: clamp(54px, 8.4vw, 112px);
  line-height: 0.92;
  letter-spacing: 0;
}

.version-line {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-bottom: 18px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(7, 9, 12, 0.68);
  color: var(--gold);
  font-size: clamp(18px, 2.1vw, 26px);
  font-weight: 900;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.06;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.2;
}

.lead {
  max-width: 660px;
  margin-bottom: 28px;
  color: #fff7e1;
  font-size: clamp(20px, 2.3vw, 29px);
  line-height: 1.24;
  overflow-wrap: break-word;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 850;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--red);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 34px rgba(224, 90, 71, 0.24);
}

.button.primary:hover {
  background: #ec6a56;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.28);
}

.button.wide {
  width: 100%;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 650px;
  margin: 0;
}

.quick-stats div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 22, 26, 0.72);
  backdrop-filter: blur(12px);
}

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

.quick-stats dd {
  margin: 4px 0 0;
  font-weight: 850;
}

.section {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(52px, 7vw, 96px) 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.section-copy {
  max-width: 760px;
}

.section-copy p:not(.eyebrow),
.article p,
.download-panel p,
.faq p {
  color: var(--muted);
  font-size: 18px;
}

.download-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panel-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.download-panel strong {
  display: block;
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.band {
  width: 100%;
  max-width: none;
  padding-left: max(18px, calc((100vw - 1160px) / 2));
  padding-right: max(18px, calc((100vw - 1160px) / 2));
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.feature-grid article,
.steps li,
.command-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-solid);
}

.feature-grid article {
  min-height: 190px;
  padding: 22px;
}

.feature-grid article:nth-child(1) {
  border-color: rgba(242, 193, 78, 0.28);
}

.feature-grid article:nth-child(2) {
  border-color: rgba(88, 209, 132, 0.26);
}

.feature-grid article:nth-child(3) {
  border-color: rgba(106, 167, 255, 0.25);
}

.feature-grid article:nth-child(4) {
  border-color: rgba(224, 90, 71, 0.24);
}

.feature-grid p,
.steps,
.command-list span {
  color: var(--muted);
}

.article {
  max-width: 680px;
}

.article-section .article {
  max-width: 800px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  min-height: 190px;
  padding: 58px 18px 18px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--gold);
  color: #15110b;
  font-weight: 900;
}

.commands {
  padding-top: clamp(42px, 6vw, 78px);
}

.command-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.command-list div {
  min-height: 138px;
  padding: 20px;
}

code {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 9px;
  border: 1px solid rgba(242, 193, 78, 0.24);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--gold);
  font-family: Consolas, "Courier New", monospace;
  font-size: 16px;
}

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

.faq .section-copy {
  grid-row: span 3;
}

details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  font-size: 20px;
  font-weight: 850;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #050607;
  font-size: 13px;
}

.footer p {
  margin: 0;
}

.visit-counter {
  min-width: 148px;
  align-self: center;
  padding: 10px 14px;
  border: 1px solid rgba(157, 209, 110, 0.28);
  border-radius: 999px;
  background: rgba(157, 209, 110, 0.08);
  color: var(--text);
  text-align: center;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.visit-counter span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visit-counter strong {
  display: block;
  margin-top: 2px;
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
}

@media (max-width: 940px) {
  .nav {
    display: none;
  }

  .hero {
    min-height: 86svh;
  }

  .hero-image {
    object-position: 42% center;
  }

  .hero-inner {
    width: 100%;
    max-width: none;
    margin-left: 0;
    padding-left: 18px;
    padding-right: 18px;
  }

  .quick-stats,
  .intro,
  .faq,
  .feature-grid,
  .steps,
  .command-list {
    grid-template-columns: 1fr;
  }

  .faq .section-copy {
    grid-row: auto;
  }

  .feature-grid article,
  .steps li,
  .command-list div {
    min-height: auto;
  }

  .footer {
    display: block;
  }

  .footer p + p {
    margin-top: 8px;
  }

  .visit-counter {
    width: fit-content;
    margin-top: 14px;
  }
}

@media (max-width: 540px) {
  .section {
    width: calc(100% - 48px);
  }

  .section-copy,
  .article {
    max-width: 320px;
  }

  .lead {
    max-width: 320px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .quick-stats {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 52px;
  }

  h2 {
    font-size: 25px;
    line-height: 1.12;
  }

  .version-line {
    max-width: 100%;
    line-height: 1.2;
  }
}
