:root {
  color-scheme: dark;
  --bg: #0d100f;
  --panel: #161c19;
  --panel-2: #202720;
  --text: #f4f7fb;
  --muted: #adb8b2;
  --line: #314038;
  --green: #54d6a0;
  --blue: #7ab7ff;
  --gold: #f2c56b;
  --red: #f17878;
  --violet: #bca7ff;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(84, 214, 160, 0.06), transparent 24rem),
    linear-gradient(135deg, rgba(122, 183, 255, 0.08), transparent 36rem),
    var(--bg);
}

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

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

code:not(pre code) {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  padding: 0.08rem 0.32rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 15, 20, 0.84);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--green);
  color: #07110d;
  font-size: 0.78rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
  font-size: 0.95rem;
}

nav a:hover {
  color: var(--text);
}

nav a,
.button,
article {
  transition:
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(620px, calc(88vh - 72px), 780px);
  display: flex;
  align-items: center;
  padding: clamp(36px, 7vw, 84px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(8, 11, 10, 0.96) 0%, rgba(8, 11, 10, 0.86) 36%, rgba(8, 11, 10, 0.18) 66%, rgba(8, 11, 10, 0.38) 100%),
    url("./hero.png") center right / cover no-repeat,
    var(--bg);
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 34%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(13, 16, 15, 0.94));
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(3.4rem, 6.7vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  font-size: 1.2rem;
}

.lede {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1.15rem, 2.3vw, 1.55rem);
  line-height: 1.45;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
}

.primary {
  background: var(--green);
  color: #06120d;
}

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

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

.secondary:hover {
  border-color: rgba(122, 183, 255, 0.66);
  background: rgba(122, 183, 255, 0.08);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-facts span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(10, 13, 18, 0.54);
}

pre {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(122, 183, 255, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 46px),
    #0a0d12;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

pre {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  color: #d7e7ff;
  line-height: 1.65;
  white-space: pre;
}

pre code {
  display: block;
  min-width: max-content;
}

.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
  background: var(--panel);
}

.strip div {
  padding: 28px clamp(20px, 5vw, 72px);
  border-right: 1px solid var(--line);
}

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

.strip strong,
.strip span {
  display: block;
}

.strip strong {
  margin-bottom: 8px;
}

.strip span,
.section p,
li {
  color: var(--muted);
  line-height: 1.65;
}

.section {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(24px, 5vw, 64px);
  padding: clamp(56px, 9vw, 110px) clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.quickstart {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr) minmax(0, 1.18fr);
  gap: clamp(18px, 3vw, 28px);
  align-items: stretch;
  padding: clamp(34px, 6vw, 64px) clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: #101612;
}

.quickstart h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
}

.quickstart pre {
  align-self: stretch;
}

.section-copy {
  max-width: 560px;
}

.code-grid,
.agent-grid {
  display: grid;
  gap: 18px;
}

.code-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.code-grid.single {
  grid-template-columns: 1fr;
}

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

article {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 70px),
    var(--panel);
}

article:hover {
  border-color: rgba(122, 183, 255, 0.44);
  transform: translateY(-1px);
}

article:nth-child(3n + 1) {
  border-top-color: rgba(84, 214, 160, 0.72);
}

article:nth-child(3n + 2) {
  border-top-color: rgba(122, 183, 255, 0.72);
}

article:nth-child(3n) {
  border-top-color: rgba(242, 197, 107, 0.72);
}

article pre {
  margin-top: 14px;
  padding: 16px;
  font-size: 0.84rem;
  box-shadow: none;
}

.security {
  align-items: start;
  background:
    linear-gradient(180deg, rgba(84, 214, 160, 0.07), transparent 22rem),
    var(--panel-2);
}

.coverage {
  background: #101512;
}

.token-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  align-self: start;
}

.token-grid span {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-weight: 700;
}

ul {
  margin: 0;
  padding-left: 20px;
}

li + li {
  margin-top: 12px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--muted);
}

@media (max-width: 920px) {
  .site-header,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .section,
  .strip,
  .quickstart,
  .agent-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 76vh;
    background-position: 58% center;
  }

  .quickstart pre {
    align-self: auto;
  }

  .strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

@media (max-width: 560px) {
  nav {
    width: 100%;
    justify-content: flex-start;
  }

  h1 {
    font-size: clamp(2.8rem, 12vw, 3rem);
  }

  pre {
    padding: 16px;
    font-size: 0.82rem;
  }

  .hero {
    min-height: 68vh;
    padding-top: 72px;
    background-position: 62% center;
  }

  .hero-facts {
    gap: 8px;
  }

  .hero-facts span {
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.82rem;
  }
}
