:root {
  color-scheme: light;
  --ink: #37352f;
  --muted: #787774;
  --faint: #9b9a97;
  --line: #e6e4df;
  --paper: #fbfbfa;
  --white: #ffffff;
  --wash: #f4f3f1;
  --blue: #337ea9;
  --yellow: #dfab01;
  --red: #d44c47;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  letter-spacing: 0;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 251, 250, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 650;
}

.brand-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  font-size: 14px;
  font-weight: 700;
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

nav a:hover,
footer a:hover,
.language-menu summary:hover {
  color: var(--ink);
  background: var(--wash);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-menu {
  position: relative;
  font-size: 14px;
}

.language-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  border-radius: 6px;
  padding: 0 10px;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
}

.language-menu summary::-webkit-details-marker {
  display: none;
}

.chevron {
  color: var(--faint);
  font-size: 13px;
}

.language-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: grid;
  min-width: 172px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(15, 15, 15, 0.12);
}

.language-list button {
  min-height: 34px;
  border: 0;
  border-radius: 5px;
  padding: 0 10px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.language-list button:hover,
.language-list button.active {
  background: var(--wash);
}

.nav-action,
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
}

.nav-action,
.primary {
  color: var(--white);
  background: var(--ink);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 560px);
  gap: 54px;
  align-items: center;
  max-width: 1120px;
  min-height: calc(100vh - 64px);
  margin: 0 auto;
  padding: 72px 30px 58px;
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1;
  font-weight: 750;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: 34px;
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 650;
}

.lede {
  max-width: 650px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

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

.terminal {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(15, 15, 15, 0.06);
}

.terminal-head {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.terminal-head span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
}

.terminal-head strong {
  margin-left: 8px;
  font-weight: 600;
}

.query {
  display: flex;
  gap: 10px;
  padding: 18px 18px 0;
  color: var(--ink);
  font-size: 14px;
}

.prompt {
  color: var(--blue);
  font-weight: 650;
}

pre {
  overflow-x: auto;
  margin: 14px 18px 0;
  border-radius: 6px;
  padding: 14px;
  color: var(--ink);
  background: var(--wash);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.report-card {
  display: grid;
  gap: 0;
  margin: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.report-card div {
  display: grid;
  grid-template-columns: 0.72fr 1.6fr;
  gap: 14px;
  align-items: center;
  min-height: 56px;
  padding: 13px 14px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.report-card div:first-child {
  border-top: 0;
}

.report-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.report-card strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1120px;
  margin: 0 auto 50px;
  padding: 0 30px;
}

.metrics div {
  padding: 20px;
  border: 1px solid var(--line);
  border-left: 0;
  background: var(--white);
}

.metrics div:first-child {
  border-left: 1px solid var(--line);
  border-radius: 8px 0 0 8px;
}

.metrics div:last-child {
  border-radius: 0 8px 8px 0;
}

.metrics strong {
  display: block;
  margin-bottom: 5px;
  font-size: 24px;
  font-weight: 700;
}

.metrics span,
article p,
.split p,
.timeline p,
.cta p,
footer {
  color: var(--muted);
  line-height: 1.55;
}

.band,
.split,
.cta {
  max-width: 1120px;
  margin: 0 auto;
  padding: 70px 30px;
}

.section-head {
  max-width: 650px;
  margin-bottom: 24px;
}

.grid.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

article,
.timeline div {
  min-height: 184px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

article:hover,
.timeline div:hover,
.tool-list span:hover {
  background: #fcfcfb;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1fr);
  gap: 44px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.tool-list span {
  display: block;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--white);
  font-size: 14px;
}

.tool-list span::before {
  content: "•";
  margin-right: 9px;
  color: var(--faint);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.timeline span {
  display: block;
  margin-bottom: 28px;
  color: var(--faint);
  font-size: 13px;
  font-weight: 700;
}

.cta {
  margin-bottom: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.cta h2,
.cta p {
  max-width: 760px;
}

footer {
  display: flex;
  justify-content: center;
  gap: 22px;
  border-top: 1px solid var(--line);
  padding: 26px 30px 38px;
  font-size: 14px;
}

footer span {
  color: var(--ink);
  font-weight: 650;
}

@media (max-width: 940px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px;
    padding: 16px 20px;
  }

  nav {
    display: none;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

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

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

  .metrics,
  .grid.three,
  .timeline {
    grid-template-columns: 1fr;
  }

  .metrics div,
  .metrics div:first-child,
  .metrics div:last-child {
    border-left: 1px solid var(--line);
    border-top: 0;
    border-radius: 0;
  }

  .metrics div:first-child {
    border-top: 1px solid var(--line);
    border-radius: 8px 8px 0 0;
  }

  .metrics div:last-child {
    border-radius: 0 0 8px 8px;
  }
}

@media (max-width: 560px) {
  .nav-action {
    display: none;
  }

  .hero,
  .band,
  .split,
  .cta,
  .metrics {
    padding-left: 18px;
    padding-right: 18px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 29px;
  }

  .lede {
    font-size: 18px;
  }

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

  .report-card div {
    grid-template-columns: 1fr;
  }

  .language-list {
    left: 0;
    right: auto;
  }

  footer {
    flex-wrap: wrap;
  }
}
