:root {
  --ink: #141414;
  --muted: #555f6d;
  --paper: #ffffff;
  --wash: #f7f8f5;
  --line: #dfe3dc;
  --accent: #0f766e;
  --accent-2: #9a3412;
  --code: #171717;
  --code-text: #f8fafc;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  z-index: 2;
}

.nav {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
  padding: 14px 20px;
}

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

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.94rem;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

.hero {
  margin: 0 auto;
  max-width: var(--max);
  padding: 78px 20px 44px;
}

.eyebrow {
  color: var(--accent);
  font-weight: 720;
  margin: 0 0 16px;
}

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

h1 {
  font-size: clamp(3rem, 10vw, 6.8rem);
  letter-spacing: 0;
  line-height: 0.94;
  margin-bottom: 24px;
  max-width: 980px;
}

h2 {
  font-size: clamp(1.65rem, 4vw, 2.55rem);
  line-height: 1.08;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.12rem, 2vw, 1.34rem);
  max-width: 760px;
}

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

.button {
  align-items: center;
  border: 1px solid var(--ink);
  border-radius: 8px;
  display: inline-flex;
  font-weight: 720;
  min-height: 44px;
  padding: 10px 14px;
  text-decoration: none;
}

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

.button.secondary {
  background: var(--paper);
}

.command-wrap {
  margin: 30px 0 0;
  max-width: 760px;
}

.command-copy {
  align-items: center;
  background: var(--code);
  border: 0;
  border-radius: 8px;
  color: var(--code-text);
  cursor: pointer;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  min-height: 76px;
  width: 100%;
  overflow-x: auto;
  padding: 20px 22px;
  text-align: left;
}

.command-copy code {
  font-size: clamp(1rem, 2vw, 1.28rem);
  white-space: nowrap;
}

.command-copy:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.copy-status {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: var(--code-text);
  display: inline-flex;
  flex: 0 0 auto;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  gap: 7px;
  font-weight: 760;
  min-height: 36px;
  opacity: 0;
  padding: 7px 10px;
  transform: translateX(4px);
  transition: opacity 160ms ease, transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.command-copy:hover .copy-status,
.command-copy:focus-visible .copy-status,
.command-copy.copied .copy-status {
  opacity: 1;
  transform: translateX(0);
}

.copy-icon {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 18px;
}

.command-copy.copied .copy-status {
  background: var(--accent);
  border-color: var(--accent);
}

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

.band {
  border-top: 1px solid var(--line);
  padding: 54px 20px;
}

.band.wash {
  background: var(--wash);
}

.inner {
  margin: 0 auto;
  max-width: var(--max);
}

.two-column {
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
}

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

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

.section-heading {
  margin-bottom: 22px;
  max-width: 760px;
}

.section-heading p {
  color: var(--muted);
}

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

.card p,
.doc p,
.doc li {
  color: var(--muted);
}

.examples-hero {
  padding-bottom: 40px;
}

.example-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.example-card.featured {
  display: grid;
  grid-template-rows: 180px 1fr;
}

.site-preview {
  background: var(--code);
  color: var(--code-text);
  display: grid;
  grid-template-rows: 34px 1fr;
  min-height: 180px;
}

.preview-bar {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  gap: 7px;
  padding: 0 14px;
}

.preview-bar span {
  background: rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  display: block;
  height: 9px;
  width: 9px;
}

.preview-body {
  align-content: end;
  display: grid;
  gap: 8px;
  padding: 22px;
}

.preview-body strong {
  font-size: 1.65rem;
  line-height: 1;
}

.preview-body span {
  color: rgba(255, 255, 255, 0.74);
}

.bitsboard-preview {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.92), rgba(20, 20, 20, 0.92)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.32), transparent 34%);
}

.kanso-preview {
  background:
    linear-gradient(135deg, rgba(20, 20, 20, 0.96), rgba(154, 52, 18, 0.82)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 34%);
}

.example-content {
  padding: 20px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 9px;
}

.workflow-list {
  display: grid;
  gap: 12px;
}

.workflow-list article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
}

.workflow-list p {
  color: var(--muted);
  margin-bottom: 0;
}

.case-study h2 {
  margin-top: 36px;
}

.file-model {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-x: auto;
  padding: 18px;
}

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

.steps li {
  background: var(--paper);
  border-left: 4px solid var(--accent);
  padding: 14px 16px;
}

.proof {
  color: var(--accent-2);
  font-weight: 720;
}

.doc {
  margin: 0 auto;
  max-width: 820px;
  padding: 54px 20px;
}

.doc h1 {
  font-size: clamp(2.3rem, 7vw, 4.4rem);
}

.doc pre {
  background: var(--code);
  border-radius: 8px;
  color: var(--code-text);
  overflow-x: auto;
  padding: 18px;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 28px 20px;
}

.site-footer .inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

.footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 780px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 52px;
  }

  .two-column,
  .example-grid,
  .grid {
    grid-template-columns: 1fr;
  }
}
