:root {
  --ink: #17211c;
  --muted: #5e6a62;
  --soft: #eef2ee;
  --panel: #ffffff;
  --line: #d8dfd8;
  --green: #2f7d57;
  --blue: #2368a2;
  --amber: #b46a20;
  --red: #a43d3d;
  --black: #0f1512;
  --shadow: 0 18px 45px rgba(23, 33, 28, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f8faf8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(216, 223, 216, 0.9);
  background: rgba(248, 250, 248, 0.92);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1160px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #b9c8bb;
  border-radius: 8px;
  color: #f8faf8;
  background: var(--ink);
  font-size: 17px;
}

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

.nav-links a {
  text-decoration: none;
}

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

.nav-actions {
  display: flex;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

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

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

.button.ghost {
  color: var(--ink);
  background: transparent;
}

.hero {
  position: relative;
  min-height: calc(100svh - 68px);
  overflow: hidden;
  color: white;
  background:
    linear-gradient(rgba(15, 21, 18, 0.34), rgba(15, 21, 18, 0.78)),
    radial-gradient(circle at 78% 25%, rgba(52, 125, 87, 0.28), transparent 30%),
    linear-gradient(135deg, #101713 0%, #1d2b23 48%, #11334c 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.hero-stage {
  position: absolute;
  right: max(28px, calc((100vw - 1160px) / 2));
  bottom: 70px;
  width: min(560px, 48vw);
  min-height: 410px;
  opacity: 0.92;
}

.window {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(12, 18, 15, 0.84);
  box-shadow: var(--shadow);
}

.window.main {
  right: 0;
  bottom: 0;
  width: 520px;
}

.window.side {
  left: 0;
  top: 0;
  width: 300px;
  background: rgba(244, 248, 244, 0.96);
  color: var(--ink);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.window.side .window-bar {
  border-bottom-color: var(--line);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #d95d5d;
}

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

.dot:nth-child(3) {
  background: #4ca96b;
}

.terminal,
.permission-list {
  padding: 18px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.terminal p,
.permission-list p {
  margin: 0 0 10px;
}

.prompt {
  color: #8ee2ac;
}

.warn {
  color: #f1c172;
}

.ok {
  color: #8ee2ac;
}

.permission-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(216, 223, 216, 0.8);
}

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

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 112px 0 120px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: #dbe8dd;
  font-size: 14px;
  font-weight: 720;
}

.eyebrow::before {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #79d49a;
  content: "";
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  font-size: clamp(46px, 7vw, 88px);
}

.hero-lede {
  max-width: 640px;
  margin: 24px 0 0;
  color: #e8efe9;
  font-size: 20px;
}

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

.hero-actions .button.secondary {
  border-color: rgba(255, 255, 255, 0.28);
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 150px));
  gap: 12px;
  margin-top: 54px;
}

.metric {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.metric strong {
  display: block;
  font-size: 23px;
}

.metric span {
  color: #ccd9ce;
  font-size: 13px;
}

.section {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0;
}

.section.tight {
  padding-top: 44px;
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(260px, 0.28fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 34px;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 780;
  text-transform: uppercase;
}

.section h2 {
  font-size: clamp(32px, 4vw, 52px);
}

.section-summary {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #eef3ef;
}

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

.card {
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.card h3 {
  margin-bottom: 12px;
  font-size: 21px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card .tag {
  display: inline-flex;
  margin-bottom: 20px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #17462e;
  background: #dceee2;
  font-size: 12px;
  font-weight: 800;
}

.matrix {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.matrix th,
.matrix td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.matrix th {
  color: var(--muted);
  background: #f3f6f3;
  font-size: 13px;
}

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

.code-block {
  overflow-x: auto;
  padding: 20px;
  border: 1px solid #27332d;
  border-radius: 8px;
  color: #eaf3ec;
  background: #101713;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 24px;
  align-items: start;
}

.steps {
  display: grid;
  gap: 12px;
}

.step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.step-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: var(--green);
  font-weight: 800;
}

.step h3 {
  margin-bottom: 5px;
  font-size: 18px;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.doc-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 42px;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 90px;
}

.sidebar {
  position: sticky;
  top: 92px;
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.sidebar a {
  padding: 8px 10px;
  border-radius: 7px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.sidebar a:hover,
.sidebar .active {
  color: var(--ink);
  background: var(--soft);
}

.doc-main {
  min-width: 0;
}

.doc-main h1 {
  max-width: 820px;
  margin-bottom: 16px;
  color: var(--ink);
  font-size: clamp(38px, 5vw, 64px);
}

.doc-main h2 {
  margin-top: 48px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 32px;
}

.doc-main h3 {
  margin-top: 28px;
  font-size: 22px;
}

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

.doc-main code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #edf2ee;
  color: #183427;
}

.doc-main pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.api-item {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.api-item h3 {
  margin-top: 0;
}

.footer {
  border-top: 1px solid var(--line);
  background: #111714;
  color: #dfe8e1;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.footer a {
  color: #dfe8e1;
  text-decoration: none;
}

.footer p {
  margin: 4px 0 0;
  color: #aebdb2;
}

@media (max-width: 920px) {
  .nav {
    height: auto;
    min-height: 68px;
    padding: 12px 0;
  }

  .nav-links {
    display: none;
  }

  .hero-stage {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    min-height: 390px;
    margin-top: 46px;
  }

  .window.main {
    width: min(100%, 520px);
  }

  .window.side {
    width: min(68%, 300px);
  }

  .section-header,
  .split,
  .doc-layout {
    grid-template-columns: 1fr;
  }

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

  .sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .nav-actions .secondary {
    display: none;
  }

  .hero-content {
    padding: 68px 0 76px;
  }

  .hero-lede {
    font-size: 18px;
  }

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

  .section {
    padding: 58px 0;
  }

  .matrix {
    display: block;
    overflow-x: auto;
  }

  .footer-inner {
    display: grid;
  }
}
