:root {
  color-scheme: dark;
  --bg: #0b0e13;
  --panel: #121820;
  --graphite: #2b3442;
  --line: #293342;
  --orange: #f47735;
  --orange-light: #ff915a;
  --cyan: #55ddea;
  --ink: #edf1f7;
  --text: #c7d0dc;
  --muted: #99a7ba;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
p,
figure {
  margin: 0;
}

h1,
h2 {
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

h2 {
  font-size: 25px;
  font-weight: 700;
}

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

a {
  color: var(--orange);
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--orange-light);
}

button {
  font: inherit;
}

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 5px;
  border-radius: 4px;
}

::selection {
  background: #91451f;
  color: #fff;
}

.wrap {
  width: min(1200px, calc(100% - 80px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 20px;
  padding: 10px 16px;
  transform: translateY(-180%);
  border-radius: 6px;
  background: var(--cyan);
  color: var(--bg);
  font-weight: 650;
  text-decoration: none;
}

.skip-link:focus-visible {
  transform: translateY(0);
  color: var(--bg);
}

/* Header and product overview. */
.site-header {
  border-bottom: 1px solid #202936;
}

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

.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.site-header nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
}

.site-header nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--text);
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--orange-light);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 24px;
  padding-block: 45px 36px;
}

.hero-copy {
  min-width: 0;
  padding-block: 24px;
}

.license {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.035em;
}

.license::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  content: "";
}

.hero h1 {
  margin-top: 20px;
  font-size: clamp(56px, 5.6vw, 80px);
  font-weight: 800;
  line-height: 1.055;
  letter-spacing: -0.06em;
}

.hero h1 span {
  color: var(--orange);
}

.hero-description {
  max-width: 470px;
  margin-top: 25px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.75;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid var(--orange);
  border-radius: 8px;
  background: var(--orange);
  color: var(--bg);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  transition: background-color 150ms ease;
}

.btn:hover {
  border-color: var(--orange-light);
  background: var(--orange-light);
  color: var(--bg);
}

.text-link {
  display: inline-block;
  padding-block: 8px;
  font-size: 14px;
  font-weight: 550;
}

.platforms {
  max-width: 460px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.hero-visual {
  position: relative;
  min-width: 0;
  isolation: isolate;
}

.hero-visual::before {
  position: absolute;
  z-index: -1;
  inset: 13% 5%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 40% 50%, #f4773515, transparent 65%),
    radial-gradient(ellipse at 75% 65%, #55ddea0b, transparent 55%);
  content: "";
}

.hero-visual img {
  width: 100%;
  filter: drop-shadow(0 24px 26px #00000038);
}

/* Factual feature summary. */
.features {
  padding-block: 32px 48px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 17px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 34px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding: 17px 0 17px 17px;
  border-top: 1px solid #222c38;
  font-size: 16px;
  line-height: 1.7;
}

.feature-list li::before {
  position: absolute;
  top: 28px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--orange);
  content: "";
}

/* Installation controls remain local and work without third-party scripts. */
.install {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 42px;
  margin-bottom: 58px;
  padding: 35px;
  border: 1px solid #364355;
  border-radius: 15px;
  background: var(--panel);
}

.install-summary p {
  max-width: 360px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
}

.install-details {
  min-width: 0;
}

code {
  font-family: var(--font-mono);
}

p code {
  color: var(--text);
  font-size: 0.85em;
  overflow-wrap: anywhere;
}

.command-label {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.command-box {
  display: flex;
  min-width: 0;
  max-width: 100%;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #3a485b;
  border-radius: 8px;
  background: var(--bg);
}

.command-box pre {
  min-width: 0;
  flex: 1;
  margin: 0;
  padding: 17px 15px;
  overflow-x: auto;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  scrollbar-width: thin;
  scrollbar-color: #49576b transparent;
}

.command-box pre:focus-visible {
  outline-offset: -3px;
}

.copy-btn {
  min-width: 66px;
  min-height: 54px;
  flex-shrink: 0;
  padding: 12px;
  border: 0;
  border-left: 1px solid #3a485b;
  background: var(--graphite);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
}

.copy-btn:hover {
  background: #354255;
  color: var(--orange-light);
}

.copy-btn:focus-visible {
  outline-offset: -4px;
}

.copy-feedback {
  min-height: 18px;
  margin-top: 5px;
  color: var(--cyan);
  font-size: 12px;
  line-height: 1.5;
}

.install-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 21px;
}

.install-links a {
  padding-block: 5px;
  font-size: 14px;
}

.update-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.update-note code {
  font-size: 12px;
}

.site-footer {
  padding-block: 24px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 15px 30px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer a {
  padding-block: 7px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--orange-light);
}

/* Error page. */
.page-404 {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 24px;
}

.card-404 {
  width: min(100%, 580px);
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel);
}

.card-404 > img {
  margin-bottom: 17px;
}

.code-404 {
  color: var(--orange);
  font-size: 14px;
}

.card-404 h1 {
  margin-top: 10px;
  font-size: 40px;
}

.card-404 > p:last-of-type {
  margin-top: 15px;
  color: var(--muted);
}

@media (max-width: 1000px) {
  .hero h1 {
    font-size: clamp(48px, 6.2vw, 60px);
  }

  .hero-description {
    font-size: 17px;
  }

  .hero .cta-row {
    gap: 8px 18px;
  }

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

  .install {
    grid-template-columns: minmax(0, 1fr);
    gap: 25px;
    padding: 30px;
  }

  .install-summary p {
    max-width: 700px;
  }
}

@media (max-width: 700px) {
  .wrap {
    width: calc(100% - 40px);
  }

  .header-inner {
    min-height: 80px;
    flex-wrap: wrap;
    gap: 3px 18px;
    padding-block: 13px;
  }

  .brand {
    gap: 7px;
    font-size: 25px;
  }

  .brand img {
    width: 37px;
    height: 37px;
  }

  .site-header nav {
    gap: 20px;
  }

  .site-header nav a {
    min-height: 38px;
    font-size: 13px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    padding-block: 31px 27px;
  }

  .hero-copy {
    padding-block: 10px;
  }

  .hero h1 {
    margin-top: 17px;
    font-size: clamp(46px, 11.5vw, 64px);
  }

  .hero-description {
    max-width: 520px;
    margin-top: 21px;
    font-size: 16px;
  }

  .hero .cta-row {
    margin-top: 23px;
    gap: 10px 18px;
  }

  .btn {
    min-height: 50px;
    padding-inline: 18px;
    font-size: 14px;
  }

  .platforms {
    margin-top: 15px;
  }

  .hero-visual {
    width: min(100%, 470px);
    justify-self: center;
  }

  .features {
    padding-block: 27px 35px;
  }

  .section-heading {
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 12px;
  }

  .section-heading h2 {
    font-size: 24px;
  }

  .feature-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-list li {
    padding-block: 14px;
  }

  .feature-list li::before {
    top: 25px;
  }

  .install {
    gap: 22px;
    margin-bottom: 37px;
    padding: 23px 20px;
    border-radius: 12px;
  }

  .install h2 {
    font-size: 24px;
  }

  .install-summary p {
    margin-top: 13px;
  }

  .command-box pre {
    padding: 16px 11px;
    font-size: 12px;
  }

  .copy-btn {
    min-width: 58px;
    padding-inline: 10px;
  }

  .install-links {
    gap: 5px 18px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .site-footer nav {
    gap: 23px;
  }

  .card-404 {
    padding: 28px 23px;
  }

  .card-404 h1 {
    font-size: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
