/* src/styles.css */
:root {
  --ink: #171a15;
  --paper: #f0efe8;
  --acid: #c6ef4a;
  --muted: #686b62;
  --line: #171a1529;
  --soft-surface: #ffffff80;
  --section-dark: #171a15;
  --section-text: #e9eadf;
  --acid-ink: #171a15;
  --mono: "DM Mono", monospace;
  --sans: "Manrope", sans-serif;
}

[data-theme="dark"] {
  --buncss-light: ;
  --buncss-dark: initial;
  color-scheme: dark;
  --ink: #eceee6;
  --paper: #11130f;
  --muted: #9da194;
  --line: #eceee629;
  --soft-surface: #ffffff12;
  --section-dark: #090b08;
  --section-text: #eceee6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: clip;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  margin: 0;
  transition: color .3s cubic-bezier(.2,0,0,1), background .3s cubic-bezier(.2,0,0,1);
}

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

button {
  font: inherit;
}

.grain {
  position: fixed;
  pointer-events: none;
  opacity: .035;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  inset: 0;
}

.shell {
  width: min(1320px, 100% - 64px);
  margin-inline-start: auto;
  margin-inline-end: auto;
}

.site-header {
  display: flex;
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items:  center;
  width: min(1400px, 100% - 40px);
  height: 72px;
  margin: 16px auto 0;
  padding: 0 20px;
  font-size: 13px;
}

.brand {
  display: flex;
  letter-spacing: -.04em;
  align-items:  center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
}

.brand svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  width: 26px;
}

nav {
  display: flex;
  color: var(--muted);
  gap: 32px;
}

nav a {
  transition: color .18s cubic-bezier(.2,0,0,1);
}

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

.header-actions {
  display: flex;
  align-items:  center;
  gap: 9px;
}

.theme-toggle {
  display: grid;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  background: none;
  border-radius: 50%;
  place-items:  center;
  width: 45px;
  height: 45px;
  padding: 0;
  transition: transform .18s cubic-bezier(.2,0,0,1), background .18s cubic-bezier(.2,0,0,1);
}

.theme-toggle:hover {
  background: var(--soft-surface);
}

.theme-toggle:active {
  transform: scale(.94);
}

.theme-toggle svg {
  grid-area: 1 / 1;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 18px;
  transition: opacity .22s cubic-bezier(.2,0,0,1), transform .22s cubic-bezier(.2,0,0,1);
}

.moon-icon, [data-theme="dark"] .sun-icon {
  opacity: 0;
  transform: scale(.65)rotate(-20deg);
}

[data-theme="dark"] .moon-icon {
  opacity: 1;
  transform: scale(1)rotate(0);
}

.header-cta {
  background: var(--ink);
  color: var(--paper);
  display: flex;
  border-radius: 99px;
  align-items:  center;
  gap: 13px;
  padding: 9px 10px 9px 17px;
}

.header-cta span, .button.primary span {
  display: grid;
  background: var(--acid);
  color: var(--ink);
  border-radius: 50%;
  place-items:  center;
  width: 27px;
  height: 27px;
  transition: transform .18s cubic-bezier(.2,0,0,1);
}

.header-cta span svg, .button.primary span svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 13px;
  height: 13px;
}

.header-cta:hover span, .button.primary:hover span {
  transform: translate(2px, -2px);
}

.hero {
  display: grid;
  grid-template-columns: 43% 57%;
  align-items:  center;
  min-height: calc(100dvh - 88px);
  padding: 72px 0 100px;
}

.eyebrow, .section-index {
  font: 500 10px var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items:  center;
  gap: 10px;
}

.eyebrow span {
  background: var(--acid);
  border-radius: 50%;
  width: 7px;
  height: 7px;
  box-shadow: 0 0 0 4px #c6ef4a2e;
}

h1, h2, blockquote {
  letter-spacing: -.065em;
  margin: 0;
  font-weight: 500;
  line-height: .94;
}

h1 {
  margin: 30px 0 28px;
  font-size: clamp(58px, 6.5vw, 104px);
}

h1 em, h2 em {
  color: var(--muted);
  font-style: normal;
}

.lede {
  color: var(--muted);
  max-width: 52ch;
  font-size: 16px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 38px;
}

.button {
  border: 1px solid var(--line);
  cursor: pointer;
  display: inline-flex;
  background: none;
  border-radius: 99px;
  align-items:  center;
  gap: 13px;
  height: 48px;
  padding: 0 18px;
  transition: transform .18s cubic-bezier(.2,0,0,1), background .18s cubic-bezier(.2,0,0,1);
  font-size: 12px;
}

.button:active {
  transform: scale(.97);
}

.button.primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  padding-right: 10px;
}

.copy-button:hover {
  background: var(--soft-surface);
}

.terminal-shell {
  position: relative;
  padding: 30px 0 30px 58px;
}

.terminal-shell:before {
  content: "";
  position: absolute;
  background: var(--acid);
  border-radius: 48% 52% 44% 56% / 54% 42% 58% 46%;
  inset: 0 7% 0 14%;
  transform: rotate(-5deg);
}

.terminal {
  position: relative;
  color: #e9eadf;
  overflow: hidden;
  background: #11140f;
  border-radius: 19px;
  min-height: 470px;
  transform: rotate(1.4deg);
  box-shadow: 0 40px 90px #151a0f40;
}

.terminal-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  font: 10px var(--mono);
  color: #858a7c;
  border-bottom: 1px solid #ffffff17;
  align-items:  center;
  height: 52px;
  padding: 0 18px;
}

.terminal-bar div {
  display: flex;
  gap: 6px;
}

.terminal-bar i {
  background: #34382f;
  border-radius: 50%;
  width: 7px;
  height: 7px;
}

.terminal-bar span {
  text-align: center;
}

.terminal-bar b {
  text-align: right;
  color: var(--acid);
  font-weight: 400;
}

.terminal-body {
  font: 400 13px / 2 var(--mono);
  padding: 37px 42px;
}

.terminal-body p {
  margin: 0;
}

.prompt {
  color: var(--acid);
}

.terminal-run {
  margin: 22px 0;
}

.terminal-run p {
  display: grid;
  grid-template-columns: 20px 180px 1fr;
}

.terminal-run small {
  color: #777c70;
  font-size: 11px;
}

.ok {
  color: var(--acid);
}

.terminal-rule {
  border-top: 1px solid #ffffff1a;
  margin: 20px 0 15px;
}

.terminal-success {
  color: #c8cbc0;
}

.cursor-line {
  margin-top: 20px !important;
}

.cursor {
  display: inline-block;
  background: var(--acid);
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
  width: 7px;
  height: 14px;
}

.terminal-note {
  position: absolute;
  background: var(--paper);
  border: 1px solid var(--line);
  font: 10px / 1.6 var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 12px 15px;
  box-shadow: 0 10px 30px #14171014;
}

.terminal-note span {
  color: #8ba92d;
  margin-right: 7px;
}

.note-one {
  bottom: 80px;
  left: 12px;
  transform: rotate(-3deg);
}

.note-two {
  top: 90px;
  right: -22px;
  transform: rotate(4deg);
}

.manifesto {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 2.2fr 1fr;
  gap: 60px;
  padding: 130px 0;
}

.section-index {
  color: var(--muted);
}

.manifesto blockquote {
  font-size: clamp(42px, 5vw, 72px);
}

.manifesto-copy {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.manifesto-copy p:first-child {
  margin-top: 0;
}

.pipeline {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 12vw;
  padding: 130px 0;
}

.section-heading h2, .comparison h2, .install h2, .agent-copy h2 {
  margin: 24px 0;
  font-size: clamp(48px, 5.3vw, 78px);
}

.section-heading > p:last-child {
  color: var(--muted);
  max-width: 42ch;
  font-size: 14px;
  line-height: 1.7;
}

.pipeline-track {
  border-top: 1px solid var(--ink);
}

.pipeline-track article {
  display: grid;
  grid-template-columns: 50px 1fr;
  border-bottom: 1px solid var(--line);
  padding: 25px 0;
}

.pipeline-track article > span {
  font: 10px var(--mono);
  color: var(--muted);
}

.pipeline-track b {
  font-size: 17px;
}

.pipeline-track p {
  color: var(--muted);
  max-width: 50ch;
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.6;
}

.pipeline-track code {
  font-family: var(--mono);
  color: var(--ink);
}

.agent-section {
  background: var(--section-dark);
  color: var(--section-text);
  padding: 140px 0;
}

.agent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items:  center;
  gap: 10vw;
}

.section-index.light {
  color: #888d80;
}

.agent-copy p:last-child {
  color: #94998c;
  max-width: 48ch;
  font-size: 14px;
  line-height: 1.7;
}

.agent-copy h2 em {
  color: var(--acid);
}

.json-window {
  background: #1c2019;
  border-radius: 25px;
  padding: 7px;
  box-shadow: inset 0 1px #ffffff14;
}

.json-title {
  display: flex;
  font: 10px var(--mono);
  color: #858a7d;
  justify-content: space-between;
  align-items:  center;
  height: 48px;
  padding: 0 17px;
}

.json-title i {
  color: var(--acid);
  letter-spacing: .12em;
  font-size: 8px;
  font-style: normal;
}

.json-window pre {
  overflow: auto;
  font: 12px / 1.8 var(--mono);
  color: #899083;
  background: #121510;
  border-radius: 19px;
  margin: 0;
  padding: 30px;
  box-shadow: inset 0 1px #ffffff0d;
}

.json-window mark {
  color: #e0e3d7;
  background: none;
}

.json-window strong {
  color: var(--acid);
  font-weight: 400;
}

.json-window u {
  color: #c9ad72;
  text-decoration: none;
}

.json-window > p {
  font: 9px var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #7f8478;
  padding: 3px 15px;
}

.comparison {
  padding: 140px 0;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 10vw;
  margin-top: 60px;
}

.compare-list {
  border-top: 1px solid var(--ink);
}

.compare-list p {
  display: flex;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  justify-content: space-between;
  margin: 0;
  padding: 22px 0;
  font-size: 13px;
}

.compare-list b {
  color: var(--ink);
  font-weight: 500;
}

.compare-list .active {
  background: var(--acid);
  color: var(--acid-ink);
  border: 0;
  padding-inline-start: 18px;
  padding-inline-end: 18px;
  transform: rotate(-.7deg)scale(1.02);
}

.compare-list .active b {
  color: var(--acid-ink);
}

.install {
  background: var(--acid);
  color: var(--acid-ink);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  border-radius: 28px;
  align-items:  end;
  margin-bottom: 90px;
  padding: 80px;
}

.install .eyebrow span {
  background: var(--acid-ink);
  box-shadow: none;
}

.install h2 em {
  color: #171a1580;
}

.install-command {
  background: var(--acid-ink);
  display: flex;
  color: #e7e9dd;
  font: 12px var(--mono);
  border-radius: 12px;
  justify-content: space-between;
  align-items:  center;
  padding: 8px 8px 8px 20px;
}

.install-command code {
  font-family: var(--mono);
}

.install-command code span {
  color: var(--acid);
}

.install-command button {
  color: #b9bdb1;
  font: 9px var(--mono);
  letter-spacing: .1em;
  cursor: pointer;
  background: #30352b;
  border: 0;
  border-radius: 8px;
  padding: 13px;
  transition: transform .15s cubic-bezier(.2,0,0,1);
}

.install-command button:active {
  transform: scale(.94);
}

footer {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  font: 9px var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  align-items:  center;
  min-height: 130px;
}

footer p:nth-child(2) {
  text-align: center;
}

footer p:last-child {
  text-align: right;
}

.reveal {
  opacity: 0;
  transition: opacity .65s cubic-bezier(.32,.72,0,1), transform .65s cubic-bezier(.32,.72,0,1);
  transform: translateY(22px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .shell {
    width: min(100% - 36px, 700px);
  }

  nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 90px 0;
  }

  .terminal-shell {
    padding: 70px 0 20px;
  }

  .manifesto {
    grid-template-columns: 1fr;
    padding: 90px 0;
  }

  .manifesto-copy {
    max-width: 55ch;
  }

  .pipeline, .agent-grid, .comparison-grid, .install {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .pipeline {
    gap: 70px;
  }

  .agent-section {
    padding: 100px 0;
  }

  .install {
    width: auto;
    margin-inline-start: 18px;
    margin-inline-end: 18px;
    padding: 48px 28px;
  }

  .note-two {
    right: -6px;
  }

  .comparison {
    padding: 100px 0;
  }
}

@media (max-width: 560px) {
  .site-header {
    width: calc(100% - 24px);
    padding: 0 6px;
  }

  .theme-toggle {
    width: 42px;
    height: 42px;
  }

  .header-cta {
    font-size: 0;
  }

  .header-cta span {
    font-size: 13px;
  }

  .hero {
    padding-top: 64px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    justify-content: center;
  }

  .terminal-shell:before {
    inset: 30px 0 0;
  }

  .terminal {
    min-height: 390px;
    transform: none;
  }

  .terminal-body {
    padding: 25px 18px;
    font-size: 10px;
  }

  .terminal-run p {
    grid-template-columns: 18px 105px 1fr;
  }

  .terminal-run small {
    font-size: 8px;
  }

  .terminal-note {
    display: none;
  }

  .json-window pre {
    padding: 22px 18px;
    font-size: 10px;
  }

  .manifesto {
    gap: 35px;
  }

  .pipeline-track article {
    grid-template-columns: 38px 1fr;
  }

  .install-command {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
  }

  .install-command button {
    width: 100%;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 35px 0;
  }

  footer p, footer p:nth-child(2), footer p:last-child {
    text-align: left;
    margin: 0;
  }
}

@media (max-width: 380px) {
  .shell {
    width: calc(100% - 28px);
  }

  .site-header {
    height: 64px;
    margin-top: 8px;
  }

  .brand {
    font-size: 16px;
  }

  .brand svg {
    width: 23px;
  }

  h1 {
    font-size: 48px;
  }

  .section-heading h2, .comparison h2, .install h2, .agent-copy h2 {
    font-size: 41px;
  }

  .hero {
    padding-top: 52px;
  }

  .terminal-body {
    padding-inline-start: 14px;
    padding-inline-end: 14px;
  }

  .terminal-run p {
    grid-template-columns: 16px 96px 1fr;
  }

  .install {
    margin-inline-start: 14px;
    margin-inline-end: 14px;
    padding-inline-start: 22px;
    padding-inline-end: 22px;
  }
}

.docs-section {
  border-top: 1px solid var(--line);
  padding: 140px 0;
}

.docs-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
  margin-top: 60px;
}

.docs-menu {
  display: flex;
  flex-direction: column;
  align-self:  start;
  gap: 8px;
}

.docs-menu-item {
  font: 500 12px var(--mono);
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  background: var(--soft-surface);
  border: 1px solid #0000;
  border-radius: 8px;
  padding: 14px 20px;
  transition: all .18s cubic-bezier(.2,0,0,1);
}

.docs-menu-item:hover {
  color: var(--ink);
  border-color: var(--line);
  background: #fffc;
}

[data-theme="dark"] .docs-menu-item:hover {
  background: #ffffff26;
}

.docs-menu-item.active {
  color: var(--acid-ink);
  background: var(--acid);
  border-color: var(--acid);
  box-shadow: 0 10px 24px #c6ef4a33;
}

.docs-panels {
  min-height: 400px;
}

.docs-pane {
  display: none;
}

.docs-pane.active {
  display: block;
  animation: fadeIn .35s cubic-bezier(.2, 0, 0, 1) forwards;
}

.docs-pane h3 {
  letter-spacing: -.05em;
  margin: 0 0 18px;
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 500;
}

.docs-pane p {
  color: var(--muted);
  max-width: 65ch;
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.7;
}

.docs-pane p code {
  font-family: var(--mono);
  background: var(--soft-surface);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 13px;
}

.docs-code-window {
  background: #11140f;
  border-radius: 16px;
  margin-top: 24px;
  padding: 24px;
  box-shadow: 0 24px 60px #00000040;
}

.docs-code-window pre {
  overflow-x: auto;
  font: 12px / 1.8 var(--mono);
  color: #e9eadf;
  margin: 0;
}

.docs-cmd-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-bottom: 1px solid var(--line);
  gap: 24px;
  padding: 20px 0;
}

.docs-cmd-grid:first-of-type {
  border-top: 1px solid var(--line);
}

.docs-cmd-grid code {
  font: 500 13px var(--mono);
  color: var(--ink);
}

.docs-cmd-grid span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

@media (max-width: 900px) {
  .docs-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .docs-menu {
    flex-flow: wrap;
  }

  .docs-menu-item {
    padding: 10px 16px;
  }
}

@media (max-width: 560px) {
  .docs-cmd-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transition: none;
    transform: none;
  }

  .cursor {
    animation: none;
  }

  * {
    transition-duration: .01ms !important;
  }
}
