:root {
  color-scheme: light;
  --bg: #f6f8fa;
  --surface: #ffffff;
  --surface-soft: #eef3f6;
  --text: #15202b;
  --muted: #5f6f7d;
  --line: #dce4ea;
  --accent: #087f6f;
  --accent-strong: #075e56;
  --accent-soft: #e0f4ef;
  --code: #101720;
  --code-text: #edf6f9;
  --shadow: 0 24px 70px rgba(20, 38, 55, 0.11);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  letter-spacing: 0;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(220, 228, 234, 0.88);
  background: rgba(246, 248, 250, 0.92);
  backdrop-filter: blur(16px);
}

.brand,
.nav,
.quick-points,
.command-meta,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: var(--text);
  color: #fff;
  font-size: 16px;
}

.nav {
  gap: 4px;
}

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

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

.install-section {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(520px, 1.16fr);
  gap: 34px;
  align-items: center;
  min-height: 620px;
  padding: 42px 0 36px;
}

.install-copy h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.95;
  font-weight: 850;
}

.install-copy p {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.quick-points {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.quick-points span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: #334553;
  font-size: 13px;
  font-weight: 700;
}

.installer {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.segmented,
.mode-row {
  display: grid;
  gap: 8px;
}

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

.segment,
.mode {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  color: #526371;
  background: #fbfcfd;
  font-size: 14px;
  font-weight: 750;
}

.segment.is-active,
.mode.is-active {
  color: var(--text);
  border-color: rgba(8, 127, 111, 0.34);
  background: var(--accent-soft);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.mode-row {
  grid-template-columns: 1fr 1fr;
  margin-top: 12px;
}

.command-card {
  max-width: 100%;
  min-width: 0;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid #202b36;
  border-radius: var(--radius);
  background: var(--code);
}

.command-meta {
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid #24313e;
  color: #b9c8d5;
  font-size: 13px;
  font-weight: 750;
}

.command-meta a {
  color: #7dd3c7;
  text-decoration: none;
}

pre {
  width: 100%;
  min-width: 0;
  min-height: 96px;
  margin: 0;
  padding: 18px 14px;
  overflow-x: auto;
}

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

pre code {
  color: var(--code-text);
  font-size: 15px;
  line-height: 1.65;
  white-space: pre;
  overflow-wrap: normal;
}

.copy-button {
  width: calc(100% - 28px);
  min-height: 42px;
  margin: 0 14px 14px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.copy-button:focus-visible,
.segment:focus-visible,
.mode:focus-visible,
.nav a:focus-visible,
.command-meta a:focus-visible {
  outline: 3px solid rgba(8, 127, 111, 0.28);
  outline-offset: 2px;
}

.preview-section,
.features-section {
  padding: 72px 0;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
}

.section-heading p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.preview-frame {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.preview-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 1890 / 1170;
  object-fit: contain;
  border-radius: 8px;
}

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

.feature-grid article {
  min-height: 188px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 7px;
  background: var(--surface-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.feature-grid h3 {
  margin: 17px 0 8px;
  font-size: 17px;
  line-height: 1.25;
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.64;
}

.site-footer {
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer span {
  font-weight: 800;
  color: var(--text);
}

.site-footer a {
  text-decoration: none;
}

@media (max-width: 980px) {
  .install-section {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 46px;
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 12px;
  }

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

@media (max-width: 640px) {
  .site-header {
    padding: 0 16px;
  }

  .nav {
    display: none;
  }

  main,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .install-section {
    padding: 34px 0 26px;
  }

  .install-copy h1 {
    font-size: clamp(40px, 14vw, 58px);
  }

  .install-copy p {
    font-size: 16px;
  }

  .installer {
    padding: 12px;
  }

  .segmented,
  .mode-row,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .segment,
  .mode {
    min-height: 42px;
  }

  .preview-section,
  .features-section {
    padding: 48px 0;
  }

  .feature-grid article {
    min-height: 0;
  }
}
