:root {
  color-scheme: light;
  --ink: #111318;
  --muted: #5b6372;
  --line: #d7dde6;
  --panel: #f6f8fb;
  --accent: #0d766e;
  --accent-dark: #0a534e;
  --paper: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav {
  border-bottom: 1px solid var(--line);
}

.nav .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
}

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

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.hero {
  background: linear-gradient(180deg, #eef7f5 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}

.hero .shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 56px;
  min-height: min(720px, calc(100vh - 64px));
  align-items: center;
  padding-top: 58px;
  padding-bottom: 58px;
}

h1 {
  font-size: clamp(42px, 7vw, 80px);
  line-height: 0.98;
  margin: 0 0 22px;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 18px;
  font-size: 28px;
  letter-spacing: 0;
}

p {
  margin: 0 0 16px;
  color: var(--muted);
}

.lead {
  max-width: 620px;
  font-size: 20px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: white;
  font-weight: 700;
}

.button.secondary {
  background: transparent;
  color: var(--accent-dark);
}

.preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(17, 19, 24, 0.12);
}

.preview-bar {
  display: flex;
  gap: 6px;
  padding: 12px;
  background: #e6ebf2;
}

.preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e05a47;
}

.preview-dot:nth-child(2) {
  background: #f5b642;
}

.preview-dot:nth-child(3) {
  background: #39a66a;
}

.preview-body {
  padding: 24px;
}

.tree-row {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 34px;
  border-bottom: 1px solid #edf0f4;
  font-size: 14px;
}

.tree-row:last-child {
  border-bottom: 0;
}

.node {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent);
}

.size {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.section {
  padding: 64px 0;
}

.section.alt {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 20px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

pre {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111318;
  color: #eef7f5;
  padding: 16px;
}

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

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 800px) {
  .nav .shell {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .hero .shell {
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: auto;
  }

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