:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #141a22;
  --muted: #5b6572;
  --line: #dce2ea;
  --accent: #0f766e;
  --accent-strong: #0b4f4a;
  --code-bg: #101820;
  --code-text: #e8f1f2;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

.hero,
main,
.footer {
  width: var(--container);
  margin: 0 auto;
}

.hero {
  padding: 36px 0 28px;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 44px;
}

.brand {
  font-weight: 700;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 36px;
  align-items: center;
}

.hero-copy,
.code-grid > *,
.feature-grid > *,
.command-list > * {
  min-width: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1;
  letter-spacing: 0;
}

.lede {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.12rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.terminal,
pre {
  max-width: 100%;
  overflow-x: auto;
  border-radius: 8px;
  background: var(--code-bg);
  color: var(--code-text);
  padding: 18px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

main {
  padding: 16px 0 52px;
}

.section {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.15;
}

h3 {
  margin-bottom: 10px;
}

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

.feature-grid {
  padding: 0;
  list-style: none;
}

.feature-grid li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
}

.feature-grid span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

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

.command-list pre {
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: var(--surface);
}

th,
td {
  border: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #eef4f6;
}

.compare-note {
  margin-top: 16px;
  color: var(--muted);
}

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

summary {
  cursor: pointer;
  font-weight: 700;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 38px;
  color: var(--muted);
}

@media (max-width: 820px) {
  .hero-grid,
  .code-grid,
  .feature-grid,
  .command-list {
    grid-template-columns: 1fr;
  }

  .top-nav {
    margin-bottom: 32px;
  }
}
