:root {
  color-scheme: light;
  --ink: #17201c;
  --muted: #53645b;
  --paper: #f7f8f5;
  --panel: #ffffff;
  --line: #dfe6df;
  --green: #2fbf71;
  --amber: #f6b640;
  --red: #ff6b57;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  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: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 72px);
  color: #fff;
}

.brand {
  font-size: 18px;
  font-weight: 800;
}

.site-header nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.site-header a {
  text-decoration: none;
  opacity: .88;
}

.hero {
  position: relative;
  min-height: 82svh;
  display: grid;
  align-items: end;
  padding: 112px clamp(18px, 5vw, 72px) 76px;
  color: #fff;
  background-image: url("assets/agentd-runtime.png");
  background-size: cover;
  background-position: center;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(13, 19, 17, .58);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  animation: hero-rise .7s ease-out both;
}

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

h1 {
  margin: 0;
  font-size: clamp(58px, 10vw, 128px);
  line-height: .92;
  letter-spacing: 0;
}

.lede {
  max-width: 670px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(19px, 2.2vw, 27px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}

.button.secondary {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

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

main section {
  padding: 70px clamp(18px, 5vw, 72px);
}

.section-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.section-kicker {
  margin: 0 0 12px;
  color: #287447;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(31px, 4.2vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}

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

.feature {
  min-height: 168px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.feature-mark {
  width: 34px;
  height: 5px;
  margin-bottom: 24px;
  background: var(--green);
  transform-origin: left center;
  transition: transform .2s ease;
}

.feature:hover,
.policy-step:hover {
  border-color: #c7d6ca;
  box-shadow: 0 12px 30px rgba(23, 32, 28, .08);
  transform: translateY(-3px);
}

.feature:hover .feature-mark {
  transform: scaleX(1.35);
}

.feature:nth-child(2) .feature-mark,
.feature:nth-child(6) .feature-mark {
  background: var(--amber);
}

.feature:nth-child(3) .feature-mark {
  background: var(--red);
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.feature p,
.copy p {
  margin: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
  gap: 34px;
  align-items: start;
}

.copy {
  max-width: 520px;
}

.conflict-section {
  background: #eef3ed;
}

.policy-list {
  display: grid;
  gap: 12px;
}

.conflict-panel {
  display: grid;
  gap: 16px;
}

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

.provider-card {
  min-height: 98px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  animation: provider-float 3s ease-in-out infinite;
}

.provider-card:nth-child(2) {
  animation-delay: .22s;
}

.provider-card:nth-child(3) {
  animation-delay: .44s;
}

.provider-card span {
  display: block;
  margin-bottom: 12px;
  color: #287447;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 800;
}

.provider-card strong {
  display: block;
  font-size: 18px;
  line-height: 1.15;
}

.merge-line {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #d8e2d8;
}

.merge-line span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 38%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--amber), var(--red));
  animation: merge-scan 2.4s ease-in-out infinite;
}

.policy-step {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.policy-step span {
  color: #287447;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 18px;
  font-weight: 800;
}

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

.terminal {
  overflow: auto;
  margin: 0;
  padding: 22px;
  border-radius: 8px;
  background: #101612;
  color: #d7ffe3;
  font-size: 14px;
}

.terminal code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  white-space: pre;
}

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

.method {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  transition: transform .18s ease, border-color .18s ease;
}

.method:hover {
  border-color: #b9cabc;
  transform: translateX(3px);
}

.site-footer {
  padding: 34px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes provider-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes merge-scan {
  0% {
    transform: translateX(-110%);
  }

  55%,
  100% {
    transform: translateX(270%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 820px) {
  .site-header {
    position: absolute;
  }

  .site-header nav {
    display: none;
  }

  .hero {
    min-height: 86svh;
    background-position: 62% center;
  }

  .hero::before {
    background: rgba(13, 19, 17, .84);
  }

  .feature-grid,
  .split,
  .method-list,
  .provider-row {
    grid-template-columns: 1fr;
  }
}
