:root {
  color-scheme: light;
  --bg: #fbfaf8;
  --bg-tint: #f4f1ea;
  --text: #18201d;
  --muted: #5d6a64;
  --muted-2: #8a948e;
  --line: #e1e2dc;
  --line-strong: #cdd0c8;
  --panel: #ffffff;
  --accent: #0d7f5f;
  --accent-bright: #10b981;
  --accent-dark: #075941;
  --soft: #e9f5f0;
  --soft-2: #f3f9f6;
  --warn: #fff5d8;
  --code: #f3f2ed;
  --shadow-sm: 0 1px 2px rgba(24, 32, 29, 0.04);
  --shadow-md: 0 6px 22px rgba(24, 32, 29, 0.06),
    0 1px 2px rgba(24, 32, 29, 0.04);
  --shadow-lg: 0 20px 60px rgba(24, 32, 29, 0.08),
    0 2px 6px rgba(24, 32, 29, 0.04);
  --radius: 10px;
  --radius-sm: 6px;
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Inter, sans-serif;
  font-feature-settings: "ss01", "cv11";
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent-dark);
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
  text-underline-offset: 0.18em;
}

a:hover {
  color: #043d2d;
  text-decoration-color: var(--accent-dark);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, white);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  padding: 10px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 660;
  font-size: 1.02rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.005em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--accent);
  color: white;
  font-size: 0.92rem;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 4px;
  font-size: 0.94rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
}

.nav-links a:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--soft) 55%, transparent);
}

/* ---------- Layout ---------- */

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

main {
  padding-bottom: 64px;
}

section,
.page-title {
  padding: clamp(40px, 5.6vw, 64px) 0;
  border-top: 1px solid var(--line);
}

.page-title {
  border-top: 0;
  padding-top: clamp(44px, 6vw, 72px);
}

.section-eyebrow {
  display: block;
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 660;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(48px, 7vw, 88px) 0 clamp(36px, 5vw, 56px);
}

.hero-copy {
  min-width: 0;
}

.hero h1,
.page-title h1 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.022em;
  font-weight: 720;
}

.page-title h1 {
  max-width: 22ch;
}

.hero p,
.page-title p {
  max-width: 56ch;
  margin: 18px 0 0;
  font-size: clamp(1.04rem, 1.4vw, 1.18rem);
  color: var(--muted);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: white;
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
  letter-spacing: -0.005em;
  box-shadow: var(--shadow-sm);
  transition:
    background 0.12s ease,
    border-color 0.12s ease,
    transform 0.05s ease;
}

.button:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: white;
}

.button:active {
  transform: translateY(1px);
}

.button.secondary {
  background: transparent;
  color: var(--accent-dark);
  border-color: var(--line-strong);
  box-shadow: none;
}

.button.secondary:hover {
  background: var(--panel);
  border-color: var(--accent);
  color: var(--accent-dark);
}

.install-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", monospace;
  font-size: 0.92rem;
  color: var(--text);
  overflow-x: auto;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.install-line::-webkit-scrollbar {
  height: 6px;
}

.install-line::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 4px;
}

.install-line .prompt {
  color: var(--muted-2);
  user-select: none;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 28px 0 0;
}

.stat {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.stat strong {
  display: block;
  font-size: 1.02rem;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.005em;
}

.stat span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

/* ---------- Hero visual: menu mockup ---------- */

.hero-visual {
  display: grid;
  justify-items: stretch;
  min-width: 0;
}

.menu-mock {
  position: relative;
  border-radius: 14px;
  background: linear-gradient(180deg, #f7f5ef 0%, #ece9e1 100%);
  border: 1px solid var(--line);
  padding: 12px 12px 26px;
  box-shadow: var(--shadow-lg);
}

.menu-mock__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(24, 32, 29, 0.05);
  font-size: 11px;
  color: var(--muted-2);
}

.menu-mock__bar-icons {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  color: var(--muted-2);
}

.menu-mock__bar-icons .icon-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}

.menu-mock__bar-icons .icon-rect {
  width: 16px;
  height: 11px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.45;
}

.menu-mock__active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 22px;
  border-radius: 6px;
  background: rgba(24, 32, 29, 0.08);
  color: var(--text);
}

.menu-mock__active svg {
  width: 14px;
  height: 14px;
}

.menu-mock__time {
  font-variant-numeric: tabular-nums;
  color: var(--text);
  opacity: 0.7;
}

.menu-mock__pointer {
  width: 12px;
  height: 12px;
  margin: 6px 0 -6px;
  margin-left: auto;
  margin-right: 28px;
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  transform: rotate(45deg);
  border-top-left-radius: 2px;
  position: relative;
  z-index: 2;
}

.menu-mock__panel {
  position: relative;
  margin-top: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  box-shadow: var(--shadow-md);
  font-size: 0.92rem;
}

.menu-mock__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--text);
  line-height: 1.3;
}

.menu-mock__row--header {
  color: var(--muted-2);
  font-size: 0.74rem;
  font-weight: 660;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 10px;
  padding-bottom: 6px;
}

.menu-mock__row--header strong {
  color: var(--text);
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.menu-mock__row--header .ready {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.78rem;
}

.menu-mock__row--header .ready::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-bright) 22%, transparent);
}

.menu-mock__row--hover {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.menu-mock__row--recent {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding-top: 6px;
  padding-bottom: 10px;
}

.menu-mock__row--recent .label {
  color: var(--muted-2);
  font-size: 0.72rem;
  font-weight: 660;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu-mock__row--recent .recent-text {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.35;
}

.menu-mock__chev {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 0.84rem;
}

.menu-mock__kbd {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.menu-mock__sep {
  height: 1px;
  background: var(--line);
  margin: 4px 8px;
}

.menu-mock__caption {
  margin: 14px 6px 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

/* ---------- Typography helpers ---------- */

h2 {
  margin: 0 0 14px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.018em;
  font-weight: 700;
}

h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  line-height: 1.3;
  font-weight: 640;
  letter-spacing: -0.005em;
}

p {
  margin: 0 0 14px;
}

section p:last-child,
.card p:last-child,
.fact p:last-child,
.note p:last-child {
  margin-bottom: 0;
}

.lede {
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.02rem;
  margin: 0 0 18px;
}

/* ---------- Cards / grids ---------- */

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

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.fact {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
}

.card {
  padding: 18px 20px;
}

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

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

.fact {
  padding: 14px 16px;
}

.fact strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
  font-weight: 640;
  line-height: 1.25;
  letter-spacing: -0.005em;
}

.fact span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

/* ---------- Notes ---------- */

.note {
  padding: 14px 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-left-width: 3px;
  border-radius: var(--radius-sm);
  background: var(--soft-2);
}

.note.warn {
  background: var(--warn);
  border-color: #dfca80;
  border-left-color: #b8932a;
}

/* ---------- Code ---------- */

pre {
  overflow-x: auto;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--code);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0 0 14px;
}

code {
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    monospace;
  font-size: 0.92em;
}

p code,
td code,
li code {
  padding: 0.08em 0.4em;
  background: var(--code);
  border-radius: 4px;
  border: 1px solid var(--line);
  font-size: 0.88em;
}

pre code {
  padding: 0;
  background: none;
  border: 0;
}

.kbd {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--panel);
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", monospace;
  font-size: 0.82em;
  color: var(--text);
  line-height: 1.2;
}

/* ---------- Steps ---------- */

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

.steps li {
  position: relative;
  padding: 16px 18px 16px 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 14px;
  left: 16px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

.steps li strong {
  display: block;
  font-weight: 640;
  letter-spacing: -0.005em;
}

.steps li p {
  margin: 4px 0 0;
  color: var(--muted);
}

/* ---------- Tables ---------- */

.table-scroll {
  overflow-x: auto;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  min-width: 480px;
}

.table-scroll > table {
  margin: 0;
}

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

th {
  color: var(--text);
  background: color-mix(in srgb, var(--soft) 55%, white);
  font-weight: 640;
  font-size: 0.86rem;
  letter-spacing: 0.005em;
}

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

td strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* ---------- Benchmark bars (inline) ---------- */

.bar-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.bar {
  flex: 0 0 70px;
  height: 6px;
  border-radius: 3px;
  background: var(--soft);
  overflow: hidden;
  position: relative;
}

.bar > span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
}

.bar--muted > span {
  background: var(--muted-2);
}

/* ---------- Footer ---------- */

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

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

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--text);
}

/* ---------- Responsive ---------- */

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: clamp(36px, 6vw, 56px);
    padding-bottom: clamp(28px, 5vw, 48px);
  }

  .hero-visual {
    order: 2;
  }

  .menu-mock {
    max-width: 460px;
    margin: 0 auto;
  }
}

@media (max-width: 720px) {
  .stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .hero h1,
  .page-title h1 {
    font-size: clamp(2rem, 8.5vw, 2.7rem);
    max-width: 100%;
  }

  h2 {
    font-size: clamp(1.4rem, 5.5vw, 1.7rem);
  }

  .install-line {
    font-size: 0.84rem;
  }

  .nav {
    min-height: 56px;
  }

  .nav-links {
    gap: 4px 2px;
    font-size: 0.88rem;
  }

  .nav-links a {
    padding: 5px 8px;
  }
}

@media (max-width: 460px) {
  .stat-row {
    grid-template-columns: 1fr;
  }
}
