:root {
  color-scheme: dark;
  --md-sys-color-background: #2a0b0d;
  --md-sys-color-on-background: #fff8f6;
  --md-sys-color-surface: #2a0b0d;
  --md-sys-color-surface-container-low: #351012;
  --md-sys-color-surface-container: #401416;
  --md-sys-color-surface-container-high: #4b171a;
  --md-sys-color-on-surface: #fff8f6;
  --md-sys-color-on-surface-variant: #e6bebf;
  --md-sys-color-outline: #875156;
  --md-sys-color-outline-variant: #663337;
  --md-sys-color-primary: #ffb3b6;
  --md-sys-color-on-primary: #5f0f14;
  --md-sys-color-primary-container: #c91f26;
  --md-sys-color-on-primary-container: #fff8f6;
  --md-sys-color-secondary-container: #663337;
  --md-sys-color-on-secondary-container: #ffe0df;
  --md-sys-color-tertiary: #29aedd;
  --md-sys-color-on-tertiary: #003544;
  --md-sys-color-tertiary-container: #0d5369;
  --md-sys-color-on-tertiary-container: #d6f5ff;
  --md-sys-color-scrim: rgba(0, 0, 0, 0.38);
  --md-sys-elevation-1: 0 1px 2px rgba(0, 0, 0, 0.32), 0 1px 3px rgba(0, 0, 0, 0.24);
  --md-sys-elevation-2: 0 2px 6px rgba(0, 0, 0, 0.34), 0 6px 16px rgba(0, 0, 0, 0.26);
  --md-sys-shape-corner-extra-small: 4px;
  --md-sys-shape-corner-small: 8px;
  --md-sys-shape-corner-medium: 12px;
  --md-sys-shape-corner-large: 16px;
  --md-sys-shape-corner-full: 999px;
  --red: var(--md-sys-color-primary-container);
  --blue: var(--md-sys-color-tertiary);
  --white: var(--md-sys-color-on-background);
  --muted: var(--md-sys-color-on-surface-variant);
  --line: var(--md-sys-color-outline-variant);
  --shadow: rgba(0, 0, 0, 0.35);
  --hero-gutter: clamp(28px, 6vw, 112px);
  --body-gutter: clamp(32px, 9vw, 176px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

code {
  color: var(--md-sys-color-on-surface);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.95em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 8px var(--body-gutter);
  background: color-mix(in srgb, var(--md-sys-color-surface-container) 88%, transparent);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1;
}

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

nav {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.95rem;
}

nav a,
footer a {
  border-radius: var(--md-sys-shape-corner-full);
  transition:
    background 160ms ease,
    color 160ms ease;
}

nav a {
  min-height: 40px;
  padding: 10px 14px;
}

nav a:hover,
footer a:hover {
  color: var(--md-sys-color-on-tertiary-container);
  background: color-mix(in srgb, var(--md-sys-color-tertiary-container) 42%, transparent);
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  min-height: calc(88vh - 72px);
  padding: clamp(56px, 7vw, 96px) var(--hero-gutter);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.hero-copy {
  max-width: 820px;
}

.hero-side {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: clamp(24px, 4vw, 44px);
  justify-self: center;
  max-width: 560px;
}

.hero-logo {
  width: clamp(220px, 26vw, 380px);
  height: auto;
  object-fit: contain;
  margin-left: clamp(28px, 5vw, 72px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--md-sys-color-tertiary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 24px;
  font-size: clamp(3rem, 5.4vw, 5.1rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.lede {
  max-width: 700px;
  color: var(--md-sys-color-on-surface-variant);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--md-sys-shape-corner-full);
  font-weight: 800;
  box-shadow: none;
  transition:
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.button:hover {
  box-shadow: var(--md-sys-elevation-1);
  transform: translateY(-1px);
}

.button-filled {
  color: var(--md-sys-color-on-tertiary);
  background: var(--md-sys-color-tertiary);
}

.button-tonal {
  color: var(--md-sys-color-on-secondary-container);
  background: var(--md-sys-color-secondary-container);
}

.terminal {
  width: 100%;
  max-width: 480px;
  background: #130809;
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-corner-large);
  box-shadow: var(--md-sys-elevation-2);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  gap: 8px;
  padding: 14px;
  background: var(--md-sys-color-surface-container-high);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.terminal-bar span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--white);
}

.terminal-bar span:first-child {
  background: var(--red);
}

.terminal-bar span:last-child {
  background: var(--blue);
}

pre {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  white-space: pre-wrap;
}

.section {
  padding: clamp(72px, 10vw, 132px) var(--body-gutter);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.install-section,
.targets-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}

.section p {
  max-width: 660px;
  color: var(--md-sys-color-on-surface-variant);
}

.command-list {
  display: grid;
  gap: 16px;
  max-width: 560px;
}

.command-card label {
  display: block;
  margin-bottom: 10px;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.86rem;
  font-weight: 700;
}

.command-card,
.info-card,
.target-list div,
.quickstart ol {
  background: var(--md-sys-color-surface-container-low);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-corner-medium);
}

.command-card {
  padding: 18px 20px;
  overflow-x: auto;
  box-shadow: var(--md-sys-elevation-1);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 960px;
  margin-top: 36px;
}

.info-card {
  padding: 24px;
  box-shadow: var(--md-sys-elevation-1);
}

.feature-grid p {
  margin-bottom: 0;
}

.target-list {
  display: grid;
  gap: 16px;
  max-width: 580px;
}

.target-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  background: var(--md-sys-color-surface-container);
}

.target-list span {
  color: var(--md-sys-color-on-surface-variant);
  text-align: right;
}

.quickstart ol {
  max-width: 640px;
  margin: 36px 0 0;
  padding: 28px 28px 28px 52px;
  color: var(--md-sys-color-on-surface-variant);
  background: var(--md-sys-color-surface-container-low);
  box-shadow: var(--md-sys-elevation-1);
}

.quickstart li + li {
  margin-top: 12px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px var(--body-gutter);
  color: var(--md-sys-color-on-surface-variant);
  background: var(--md-sys-color-surface-container-low);
}

footer span {
  color: var(--md-sys-color-on-surface);
  font-weight: 800;
}

footer a {
  padding: 8px 12px;
}

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

  .hero,
  .install-section,
  .targets-section,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-side {
    align-items: flex-start;
    justify-self: stretch;
  }

  .hero-logo {
    width: clamp(180px, 58vw, 300px);
    margin-left: 0;
  }

  h1 {
    font-size: clamp(2.7rem, 15vw, 4.4rem);
  }

  .target-list div {
    align-items: flex-start;
    flex-direction: column;
  }

  .target-list span {
    text-align: left;
  }
}
