:root {
  --ink: #111615;
  --muted: #57615d;
  --paper: #f5f1e8;
  --panel: #fffaf0;
  --line: #d5cdbc;
  --teal: #00745e;
  --blue: #244f7a;
  --red: #d2583b;
  --wash: #dcebf0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", "IBM Plex Sans KR", "Apple SD Gothic Neo", "Segoe UI", sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(17, 22, 21, 0.05) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--paper);
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px 30px;
  border-bottom: 1px solid rgba(17, 22, 21, 0.18);
  background: rgba(245, 241, 232, 0.94);
  backdrop-filter: blur(18px);
}

.brand,
nav,
.hero-actions,
.proof-strip,
.flow-grid,
.limits-grid,
.benchmark-lower,
footer {
  display: flex;
}

.brand {
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 7px;
  background: var(--ink);
  color: var(--paper);
}

nav {
  gap: 24px;
  color: #2f3734;
  font-size: 15px;
  font-weight: 800;
}

nav a:hover,
footer a:hover {
  color: var(--teal);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: 42px;
  align-items: center;
  max-width: 1240px;
  min-height: min(760px, calc(100svh - 72px));
  margin: 0 auto;
  padding: 86px 30px 54px;
}

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

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  display: grid;
  gap: 0.06em;
  max-width: 820px;
  margin: 0;
  font-size: clamp(48px, 5.8vw, 82px);
  line-height: 1.04;
  text-wrap: balance;
  word-break: keep-all;
}

h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
}

h3 {
  margin: 0 0 10px;
  font-size: 19px;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.lede {
  max-width: 760px;
  margin: 24px 0 0;
  font-size: 20px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  font-weight: 900;
}

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

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

.hero-visual {
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(17, 22, 21, 0.22);
  border-radius: 8px;
  background: #101615;
  color: #f9f1df;
  box-shadow: 0 34px 90px rgba(17, 22, 21, 0.22);
}

.repo-heading span,
.chart-heading,
dt {
  color: #91cfc3;
  font-size: 12px;
  font-weight: 900;
}

.repo-heading strong {
  display: block;
  margin-top: 8px;
  font-size: 34px;
}

.repo-files {
  display: grid;
  gap: 10px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.repo-files li {
  padding: 12px 13px;
  overflow-wrap: anywhere;
  border: 1px solid rgba(245, 241, 232, 0.16);
  border-radius: 6px;
  background: rgba(245, 241, 232, 0.05);
  font-family: "SFMono-Regular", "JetBrains Mono", Consolas, monospace;
  font-size: 13px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid rgba(245, 241, 232, 0.22);
}

.hero-metrics div {
  padding: 16px 10px 0;
  border-right: 1px solid rgba(245, 241, 232, 0.18);
}

.hero-metrics div:last-child {
  border-right: 0;
}

dd {
  margin: 8px 0 0;
  color: #fffaf0;
  font-size: 25px;
  font-weight: 900;
}

.proof-strip {
  max-width: 1240px;
  margin: 0 auto 34px;
  padding: 0 30px 56px;
}

.proof-strip article {
  flex: 1;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.proof-strip span,
.flow-grid span {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.proof-strip h2 {
  margin-top: 18px;
  font-size: 22px;
}

.flow,
.limits,
.benchmarks {
  padding: 74px 30px;
}

.flow {
  border-top: 1px solid var(--line);
  background: #fffdf6;
}

.section-heading,
.flow-grid,
.limits-grid,
.table-wrap,
.benchmark-lower {
  width: 100%;
  min-width: 0;
  max-width: 1240px;
  margin-right: auto;
  margin-left: auto;
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading p:last-child {
  max-width: 780px;
}

.flow-grid {
  align-items: stretch;
  border: 1px solid var(--line);
  background: var(--panel);
}

.flow-grid article {
  flex: 1;
  min-width: 0;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.flow-grid article:last-child {
  border-right: 0;
}

.limits {
  background: #e7dfd0;
}

.limits-grid {
  gap: 16px;
}

.limits-grid article {
  flex: 1;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.limits-grid li {
  margin: 10px 0;
  color: var(--muted);
}

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

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

th:first-child,
td:first-child,
td:nth-child(2) {
  text-align: left;
}

tbody tr:last-child td {
  border-bottom: 0;
}

td:first-child {
  color: var(--teal);
  font-weight: 900;
}

.benchmark-lower {
  align-items: stretch;
  gap: 18px;
  margin-top: 18px;
}

.chart-panel {
  flex: 0 0 370px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.chart-heading {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

.scenario-bars {
  display: grid;
  gap: 15px;
  margin-top: 22px;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 800;
}

.bar-track {
  height: 15px;
  overflow: hidden;
  border-radius: 4px;
  background: #cbd8d9;
}

.bar {
  min-width: 4px;
  height: 100%;
  background: var(--blue);
}

.bar.fast {
  background: var(--teal);
}

.bar.slow {
  background: var(--red);
}

footer {
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  padding: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-brand {
  color: var(--ink);
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: auto;
  }
}

@media (max-width: 920px) {
  .topbar,
  .proof-strip,
  .flow-grid,
  .limits-grid,
  .benchmark-lower {
    flex-direction: column;
  }

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

  .proof-strip article,
  .flow-grid article {
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .chart-panel {
    flex-basis: auto;
  }
}

@media (max-width: 620px) {
  .topbar {
    align-items: flex-start;
    padding: 14px 18px;
  }

  .hero,
  .flow,
  .limits,
  .benchmarks {
    padding-right: 18px;
    padding-left: 18px;
  }

  .proof-strip {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

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

  .hero-metrics div {
    border-right: 0;
    border-bottom: 1px solid rgba(245, 241, 232, 0.18);
  }

  .hero-metrics div:last-child {
    border-bottom: 0;
  }
}
