:root{
  color-scheme: light;
  --paper:#F5F3EF;
  --paper-2:#EEEBE4;
  --card:#FFFFFF;
  --ink:#16130F;
  --ink-2:#4A443C;
  --ink-3:#847C70;
  --rule:#E2DDD3;

  /* ---------- GREEN ACCENT ---------- */
  --rust:#1F6B5C;
  --rust-soft:#DDEAE5;

  /* ---------- TEAL ---------- */
  --teal:#1F6B5C;
  --teal-soft:#DDEAE5;

  --amber:#B9861F;

  --mono:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  --sans:"Archivo",-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
  --maxw:1180px;
}

/* The brief asks for a light theme; keep it light in dark viewers too. */
:root:not([data-theme="light"]),
:root[data-theme="dark"]{
  color-scheme:light;
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

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

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

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--sans);
  font-size:17px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

.wrap{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 32px;
}

@media(max-width:700px){
  .wrap{
    padding:0 20px;
  }

  body{
    font-size:16px;
  }
}

a{
  color:inherit;
}

h1,
h2,
h3{
  margin:0;
  letter-spacing:-.03em;
  font-weight:800;
  line-height:1.02;
}

h1{
  font-size:clamp(40px,6.4vw,72px);
}

h2{
  font-size:clamp(30px,4.2vw,46px);
  letter-spacing:-.032em;
}

h3{
  font-size:19px;
  letter-spacing:-.01em;
  font-weight:700;
  line-height:1.3;
}

p{
  margin:0;
}

.lede{
  color:var(--ink-2);
  font-size:clamp(17px,1.5vw,20px);
  line-height:1.62;
  max-width:56ch;
}


/* =========================================================
   NAV
   ========================================================= */

.nav{
  position:sticky;
  top:0;
  z-index:60;
  background:rgba(245,243,239,.86);
  backdrop-filter:blur(10px);
  border-bottom:1px solid transparent;
  transition:border-color .2s;
}

.nav.stuck{
  border-bottom-color:var(--rule);
}

.nav-in{
  max-width:var(--maxw);
  margin:0 auto;
  padding:14px 32px;
  display:flex;
  align-items:center;
  gap:28px;
}

.brand{
  display:flex;
  align-items:center;
  gap:9px;
  font-weight:700;
  letter-spacing:-.02em;
  text-decoration:none;
  font-size:16px;
}

.brand svg{
  display:block;
}

.nav-links{
  display:flex;
  gap:24px;
  margin-left:auto;
  align-items:center;
}

.nav-links a{
  text-decoration:none;
  color:var(--ink-2);
  font-size:14.5px;
  font-weight:500;
}

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

.nav-gh{
  border:1px solid var(--rule);
  background:var(--card);
  padding:7px 14px;
  border-radius:8px;
  color:var(--ink)!important;
}

@media(max-width:820px){
  .nav-links a:not(.nav-gh){
    display:none;
  }

  .nav-in{
    padding:12px 20px;
  }
}


/* =========================================================
   HERO
   ========================================================= */

.hero{
  padding:78px 0 56px;
}

.hero-grid{
  display:grid;
  grid-template-columns:1.02fr 1fr;
  gap:64px;
  align-items:center;
}

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

  .hero{
    padding:48px 0 40px;
  }
}

.hero h1{
  margin-bottom:26px;
  max-width:11ch;
}

.hero .lede{
  margin-bottom:34px;
}

.cta-row{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:30px;
}

.btn{
  font-family:inherit;
  font-size:16px;
  font-weight:700;
  letter-spacing:-.01em;
  border-radius:9px;
  padding:15px 24px;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:10px;
  border:1px solid transparent;
  cursor:pointer;
}

.btn-primary{
  background:var(--rust);
  color:#fff;
}

.btn-primary:hover{
  background:#185548;
}

.btn-ghost{
  background:var(--card);
  border-color:var(--rule);
  color:var(--ink);
}

.btn-ghost:hover{
  border-color:#cfc8ba;
}

.facts{
  display:flex;
  gap:26px;
  flex-wrap:wrap;
  font-family:var(--mono);
  font-size:13px;
  color:var(--ink-3);
}

.facts span{
  display:flex;
  align-items:center;
  gap:8px;
}

.dot{
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--teal);
  flex:none;
}


/* =========================================================
   TERMINAL
   ========================================================= */

.term{
  background:var(--card);
  border:1px solid var(--rule);
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 22px 50px -28px rgba(40,30,15,.35);
}

.term-bar{
  background:var(--paper-2);
  border-bottom:1px solid var(--rule);
  padding:12px 16px;
  display:flex;
  align-items:center;
  gap:8px;
}

.tdot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:#D6D0C4;
}

.term-path{
  font-family:var(--mono);
  font-size:12.5px;
  color:var(--ink-3);
  margin-left:8px;
}

.term-body{
  font-family:var(--mono);
  font-size:13px;
  line-height:1.75;
  padding:18px 18px 22px;
  min-height:340px;
  white-space:pre-wrap;
  word-break:break-word;
}

.term-body .cmd{
  color:var(--ink);
  font-weight:500;
}

.term-body .pfx{
  color:var(--rust);
  font-weight:700;
}

.term-body .dim{
  color:var(--ink-3);
}

.term-body .ok{
  color:var(--teal);
}

.term-body .hot{
  color:var(--rust);
}

.caret{
  display:inline-block;
  width:8px;
  height:15px;
  background:var(--rust);
  vertical-align:-2px;
  animation:blink 1.05s step-end infinite;
}

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

@media(max-width:940px){
  .term-body{
    min-height:270px;
  }
}


/* =========================================================
   SECTION SCAFFOLDING
   ========================================================= */

section{
  padding:88px 0;
  border-top:1px solid var(--rule);
}

@media(max-width:700px){
  section{
    padding:60px 0;
  }
}

.head{
  max-width:62ch;
  margin-bottom:44px;
}

.head h2{
  margin-bottom:16px;
}

.head p{
  color:var(--ink-2);
  font-size:clamp(16px,1.4vw,18.5px);
}


/* =========================================================
   PROBLEM / COST
   ========================================================= */

.cost{
  display:grid;
  grid-template-columns:.85fr 1.15fr;
  gap:48px;
  align-items:start;
}

@media(max-width:940px){
  .cost{
    grid-template-columns:1fr;
    gap:32px;
  }
}

.task-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.task{
  font-family:inherit;
  text-align:left;
  background:var(--card);
  border:1px solid var(--rule);
  border-radius:10px;
  padding:14px 16px;
  cursor:pointer;
  font-size:15px;
  line-height:1.35;
  color:var(--ink-2);
  display:flex;
  gap:12px;
  align-items:flex-start;
}

.task:hover{
  border-color:#cfc8ba;
}

.task[aria-pressed="true"]{
  border-color:var(--rust);
  background:var(--rust-soft);
  color:var(--ink);
  font-weight:600;
}

.task code{
  font-family:var(--mono);
  font-size:13px;
}

.task-k{
  font-family:var(--mono);
  font-size:11px;
  color:var(--ink-3);
  border:1px solid var(--rule);
  border-radius:4px;
  padding:1px 5px;
  flex:none;
  margin-top:2px;
  background:var(--paper);
}

.task[aria-pressed="true"] .task-k{
  border-color:#9BC2B7;
  color:var(--rust);
  background:#fff;
}

.panel{
  background:var(--card);
  border:1px solid var(--rule);
  border-radius:14px;
  padding:26px;
}

.bar-row{
  margin-bottom:26px;
}

.bar-top{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:16px;
  margin-bottom:9px;
}

.bar-lab{
  font-size:14.5px;
  font-weight:600;
}

.bar-lab em{
  font-style:normal;
  color:var(--ink-3);
  font-weight:400;
}

.bar-num{
  font-family:var(--mono);
  font-size:14px;
  font-weight:700;
}

.bar-track{
  height:14px;
  background:var(--paper-2);
  border-radius:7px;
  overflow:hidden;
}

.bar-fill{
  height:100%;
  border-radius:7px;
  width:0;
  transition:width .85s cubic-bezier(.22,.9,.28,1);
}

.bar-fill.full{
  background:repeating-linear-gradient(
    135deg,
    #D9CFC0,
    #D9CFC0 7px,
    #CEC2B0 7px,
    #CEC2B0 14px
  );
}

.bar-fill.slice{
  background:var(--teal);
}

.saving{
  border-top:1px solid var(--rule);
  padding-top:18px;
  display:flex;
  align-items:baseline;
  gap:14px;
  flex-wrap:wrap;
}

.saving b{
  font-size:34px;
  letter-spacing:-.03em;
  font-family:var(--mono);
  color:var(--teal);
}

.saving span{
  color:var(--ink-2);
  font-size:14.5px;
  max-width:42ch;
}

.filegrid{
  display:grid;
  grid-template-columns:repeat(18,1fr);
  gap:4px;
  margin:4px 0 24px;
}

.fg{
  aspect-ratio:1;
  border-radius:2px;
  background:var(--paper-2);
  transition:background .35s,transform .35s;
}

.fg.on{
  background:var(--teal);
  transform:scale(1.14);
}

.fg.edge{
  background:#9BC2B7;
}

@media(max-width:560px){
  .filegrid{
    grid-template-columns:repeat(12,1fr);
  }
}

.note{
  font-family:var(--mono);
  font-size:11.5px;
  color:var(--ink-3);
  margin-top:14px;
  line-height:1.5;
}


/* =========================================================
   PIPELINE
   ========================================================= */

.steps{
  display:flex;
  gap:8px;
  margin-bottom:28px;
  flex-wrap:wrap;
}

.step{
  flex:1 1 180px;
  text-align:left;
  font-family:inherit;
  background:transparent;
  border:0;
  border-top:3px solid var(--rule);
  padding:14px 4px 0;
  cursor:pointer;
}

.step[aria-selected="true"]{
  border-top-color:var(--rust);
}

.step-n{
  font-family:var(--mono);
  font-size:11.5px;
  color:var(--ink-3);
  display:block;
  margin-bottom:5px;
}

.step[aria-selected="true"] .step-n{
  color:var(--rust);
}

.step-t{
  font-weight:700;
  font-size:17px;
  letter-spacing:-.015em;
  color:var(--ink-3);
}

.step[aria-selected="true"] .step-t{
  color:var(--ink);
}

.stage-wrap{
  display:grid;
  grid-template-columns:1.35fr .65fr;
  gap:32px;
  align-items:stretch;
}

@media(max-width:860px){
  .stage-wrap{
    grid-template-columns:1fr;
  }
}

.stage{
  background:var(--card);
  border:1px solid var(--rule);
  border-radius:14px;
  padding:10px;
  overflow:hidden;
}

.stage svg{
  display:block;
  width:100%;
  height:auto;
}

.stage-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:6px 0;
}

.stage-copy h3{
  margin-bottom:12px;
}

.stage-copy p{
  color:var(--ink-2);
  font-size:16px;
  margin-bottom:18px;
  max-width:40ch;
}

.stage-copy .snip{
  font-family:var(--mono);
  font-size:12.5px;
  background:var(--paper-2);
  border:1px solid var(--rule);
  border-radius:8px;
  padding:11px 13px;
  color:var(--ink-2);
  white-space:pre-wrap;
  line-height:1.6;
}

.layer{
  opacity:0;
  transition:opacity .45s;
}

.layer.show{
  opacity:1;
}

.draw{
  stroke-dasharray:var(--len,300);
  stroke-dashoffset:var(--len,300);
  transition:stroke-dashoffset .8s ease;
}

.layer.show .draw{
  stroke-dashoffset:0;
}

.pulse{
  transform-box:fill-box;
  transform-origin:center;
}

.layer.show .pulse{
  animation:pl 2.1s ease-out infinite;
}

@keyframes pl{
  0%{
    r:9;
    opacity:.55;
  }

  70%{
    r:34;
    opacity:0;
  }

  100%{
    opacity:0;
  }
}


/* =========================================================
   GRAPH EXPLORER
   ========================================================= */

.gx{
  display:grid;
  grid-template-columns:1.4fr .6fr;
  gap:28px;
}

@media(max-width:940px){
  .gx{
    grid-template-columns:1fr;
  }
}

.gx-canvas{
  background:var(--card);
  border:1px solid var(--rule);
  border-radius:14px;
  position:relative;
  overflow:hidden;
  min-height:440px;
}

.gx-canvas svg{
  display:block;
  width:100%;
  height:100%;
  touch-action:none;
}

.gx-hint{
  position:absolute;
  left:16px;
  top:14px;
  font-family:var(--mono);
  font-size:11.5px;
  color:var(--ink-3);
  pointer-events:none;
}

.n-body{
  fill:var(--paper-2);
  stroke:#D8D2C6;
  stroke-width:1.5;
  cursor:pointer;
  transition:fill .3s,stroke .3s;
}

.n-lab{
  font-family:var(--mono);
  font-size:10.5px;
  fill:var(--ink-3);
  pointer-events:none;
  transition:fill .3s;
}

.node.test .n-body{
  stroke-dasharray:3 3;
}

.node.sel .n-body{
  fill:var(--rust);
  stroke:var(--rust);
}

.node.sel .n-lab{
  fill:#fff;
  font-weight:700;
}

.node.hit .n-body{
  fill:var(--teal-soft);
  stroke:var(--teal);
}

.node.hit .n-lab{
  fill:#12453B;
}

.node.cold{
  opacity:.34;
}

.edge{
  stroke:#DCD6CA;
  stroke-width:1.5;
  transition:stroke .3s,opacity .3s;
  fill:none;
}

.edge.live{
  stroke:var(--teal);
  stroke-width:2.2;
}

.edge.cold{
  opacity:.3;
}

.readout{
  background:var(--card);
  border:1px solid var(--rule);
  border-radius:14px;
  padding:22px;
  display:flex;
  flex-direction:column;
}

.ro-k{
  font-family:var(--mono);
  font-size:11.5px;
  color:var(--ink-3);
  margin-bottom:6px;
}

.ro-name{
  font-family:var(--mono);
  font-size:16px;
  font-weight:700;
  margin-bottom:3px;
  word-break:break-all;
}

.ro-file{
  font-family:var(--mono);
  font-size:12px;
  color:var(--ink-3);
  margin-bottom:20px;
  word-break:break-all;
}

.ro-stat{
  display:flex;
  justify-content:space-between;
  padding:9px 0;
  border-top:1px solid var(--rule);
  font-size:14px;
  color:var(--ink-2);
}

.ro-stat b{
  font-family:var(--mono);
  color:var(--ink);
}

.ro-list{
  margin:16px 0 0;
  padding:0;
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.ro-list li{
  font-family:var(--mono);
  font-size:11.5px;
  background:var(--teal-soft);
  color:#12453B;
  border-radius:5px;
  padding:4px 8px;
}

.ro-list li.t{
  background:var(--paper-2);
  color:var(--ink-2);
}

.ro-foot{
  margin-top:auto;
  padding-top:20px;
  font-size:13.5px;
  color:var(--ink-2);
  line-height:1.5;
}

.ro-foot b{
  color:var(--teal);
  font-family:var(--mono);
}


/* =========================================================
   INSTALL
   ========================================================= */

.tabs{
  display:flex;
  gap:4px;
  margin-bottom:0;
  flex-wrap:wrap;
}

.tab{
  font-family:var(--mono);
  font-size:12.5px;
  background:transparent;
  border:1px solid transparent;
  border-bottom:0;
  padding:10px 16px;
  border-radius:9px 9px 0 0;
  cursor:pointer;
  color:var(--ink-3);
}

.tab[aria-selected="true"]{
  background:var(--card);
  border-color:var(--rule);
  color:var(--ink);
  font-weight:700;
}

.code{
  background:var(--card);
  border:1px solid var(--rule);
  border-radius:0 12px 12px 12px;
  padding:22px 24px;
  font-family:var(--mono);
  font-size:13.5px;
  line-height:1.95;
  position:relative;
  overflow-x:auto;
}

.code .c{
  color:var(--ink-3);
}

.code .p{
  color:var(--rust);
  user-select:none;
}

.copy{
  position:absolute;
  top:14px;
  right:14px;
  font-family:var(--mono);
  font-size:11.5px;
  background:var(--paper);
  border:1px solid var(--rule);
  border-radius:7px;
  padding:6px 11px;
  cursor:pointer;
  color:var(--ink-2);
}

.copy:hover{
  border-color:#cfc8ba;
}

.copy.done{
  background:var(--teal-soft);
  border-color:var(--teal);
  color:#12453B;
}

.after{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin-top:22px;
}

@media(max-width:820px){
  .after{
    grid-template-columns:1fr;
  }
}

.after div{
  border-left:2px solid var(--rule);
  padding-left:14px;
}

.after h3{
  font-size:15px;
  margin-bottom:5px;
}

.after p{
  font-size:14px;
  color:var(--ink-2);
}


/* =========================================================
   FEATURES
   ========================================================= */

.feat{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:0 44px;
}

@media(max-width:780px){
  .feat{
    grid-template-columns:1fr;
  }
}

.frow{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:16px;
  padding:20px 0;
  border-bottom:1px solid var(--rule);
}

.frow svg{
  margin-top:3px;
}

.frow h3{
  font-size:16px;
  margin-bottom:4px;
}

.frow p{
  font-size:14.5px;
  color:var(--ink-2);
}

.cli{
  margin-top:44px;
  background:var(--card);
  border:1px solid var(--rule);
  border-radius:14px;
  padding:8px 6px;
}

.cli-row{
  display:grid;
  grid-template-columns:230px 1fr;
  gap:18px;
  padding:12px 18px;
  border-radius:8px;
  align-items:baseline;
}

.cli-row:hover{
  background:var(--paper-2);
}

.cli-row code{
  font-family:var(--mono);
  font-size:13px;
  color:var(--rust);
  font-weight:500;
}

.cli-row span{
  font-size:14px;
  color:var(--ink-2);
}

@media(max-width:620px){
  .cli-row{
    grid-template-columns:1fr;
    gap:3px;
  }
}

.chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:22px;
}

.chip{
  font-family:var(--mono);
  font-size:12.5px;
  border:1px solid var(--rule);
  background:var(--card);
  border-radius:20px;
  padding:7px 14px;
  color:var(--ink-2);
}


/* =========================================================
   CLOSE / FOOTER
   ========================================================= */

.close{
  text-align:center;
  padding:96px 0;
}

.close h2{
  margin-bottom:18px;
}

.close p{
  color:var(--ink-2);
  max-width:48ch;
  margin:0 auto 30px;
}

.close .cta-row{
  justify-content:center;
}

footer{
  border-top:1px solid var(--rule);
  padding:30px 0;
  font-size:13.5px;
  color:var(--ink-3);
}

.foot-in{
  display:flex;
  gap:20px;
  flex-wrap:wrap;
  align-items:center;
}

.foot-in a{
  color:var(--ink-2);
}

.foot-in .sp{
  margin-left:auto;
  font-family:var(--mono);
  font-size:12px;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

:focus-visible{
  outline:2px solid var(--rust);
  outline-offset:3px;
  border-radius:4px;
}