:root {
  color-scheme: light;
  --bg: #f7f7f4;
  --ink: #171a1f;
  --muted: #5d6470;
  --line: #d9ddd4;
  --panel: #ffffff;
  --panel-strong: #11151b;
  --accent: #2f6f5e;
  --accent-ink: #ffffff;
  --soft: #e9efe8;
  --shadow: 0 18px 60px rgba(25, 31, 38, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  align-items: center;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(23, 26, 31, 0.08);
  background: rgba(247, 247, 244, 0.92);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.language-switcher,
.actions,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 760;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0;
}

.nav {
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  text-decoration: none;
}

.language-switcher {
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.language-switcher button {
  border: 0;
  border-radius: 6px;
  padding: 7px 9px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.language-switcher button[aria-pressed="true"] {
  background: var(--ink);
  color: #ffffff;
}

main {
  overflow: hidden;
}

.hero,
.section,
.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(54px, 9vw, 112px) 0;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy p,
.section > div > p,
.steps p,
.signal-grid p,
.install p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-copy p {
  max-width: 650px;
  margin: 26px 0 0;
  font-size: 19px;
}

.actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 720;
  text-decoration: none;
}

.primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.secondary {
  border: 1px solid var(--line);
  background: var(--panel);
}

.terminal-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  color: #edf2eb;
  overflow: hidden;
}

.terminal-top {
  display: flex;
  gap: 7px;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-top span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #6e7781;
}

pre {
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.7;
}

.terminal-card pre,
.install pre {
  padding: 22px;
}

.section {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

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

.section > div > p {
  max-width: 520px;
  margin: 20px 0 0;
  font-size: 17px;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li,
.signal-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 22px;
}

.steps span {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 760;
}

.steps strong,
.signal-grid h3 {
  display: block;
  font-size: 18px;
}

.steps p,
.signal-grid p {
  margin: 10px 0 0;
  font-size: 15px;
}

.compact {
  display: block;
}

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

.signal-grid h3 {
  margin: 0;
}

.install pre {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.install code {
  color: #1e342d;
}

.site-footer {
  justify-content: space-between;
  gap: 16px;
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

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

  .hero {
    min-height: auto;
  }

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

@media (max-width: 560px) {
  .site-header {
    padding: 14px 18px;
  }

  .hero,
  .section,
  .site-footer {
    width: min(100% - 28px, 1120px);
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-copy p {
    font-size: 17px;
  }

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

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
