:root {
  --green: #4ab86c;
  --green-dark: #2d7d47;
  --ink: #111814;
  --text: #2b332e;
  --muted: #66706a;
  --paper: #fbfbf8;
  --tint: #f1f4ef;
  --rule: #dfe3dc;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 17px/1.6 var(--sans); }
img { display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
code { font: 0.82rem/1.5 var(--mono); color: var(--green-dark); }

.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }

.tag { font: 500 0.8rem var(--mono); color: var(--green-dark); margin-bottom: 1rem; }
.tag::before { content: "// "; color: var(--muted); }

.button {
  display: inline-block; padding: 0.8em 1.4em;
  background: var(--ink); color: #fff; text-decoration: none; font-weight: 500;
  border: 1px solid var(--ink);
  transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.button:hover { background: var(--green-dark); border-color: var(--green-dark); transform: translateY(-2px); }
.link { color: var(--ink); font-weight: 500; text-underline-offset: 4px; }
.link:hover { color: var(--green-dark); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* header */
.header { position: sticky; top: 0; z-index: 10; background: rgba(251, 251, 248, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.header__logo img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { text-decoration: none; font-size: 0.95rem; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--ink); }
.nav .nav__cta { color: var(--ink); border: 1px solid var(--ink); padding: 6px 14px; font-weight: 500; }
.nav .nav__cta:hover { background: var(--ink); color: #fff; }
.menu-btn { display: none; font: 500 0.85rem var(--mono); background: none; border: 1px solid var(--rule); padding: 6px 12px; cursor: pointer; }

/* hero */
.hero { border-bottom: 1px solid var(--rule); }
.hero__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; padding: clamp(56px, 8vw, 96px) 0 48px; }
.rotator { display: block; color: var(--green-dark); min-height: 1.15em; }
.rotator::after { content: "_"; color: var(--green); animation: blink 1s steps(1) infinite; margin-left: 2px; }
.hero__lead { font-size: 1.1rem; color: var(--muted); max-width: 32em; margin: 1.5rem 0 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }

.diagram { margin: 0; border: 1px solid var(--rule); position: relative; background:
  linear-gradient(var(--rule) 1px, transparent 1px) 0 0 / 30px 30px,
  linear-gradient(90deg, var(--rule) 1px, transparent 1px) 0 0 / 30px 30px; }
.diagram svg { width: 100%; height: auto; display: block; background: rgba(251, 251, 248, 0.82); }
.diagram__lines path { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.diagram__packets circle { fill: var(--green); }
.diagram__nodes circle { fill: var(--paper); stroke: var(--green); stroke-width: 3; }
.diagram__nodes .pulse { animation: pulse 2s var(--ease) infinite; transform-origin: 180px 150px; }
.diagram__labels text { font: 12px var(--mono); fill: var(--muted); text-anchor: middle; }
.diagram__labels text:nth-child(3) { text-anchor: start; }
.diagram figcaption { position: absolute; right: 10px; bottom: 8px; font: 0.72rem var(--mono); color: var(--muted); }
.live { color: var(--green-dark); }
.live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 5px; animation: blink 1.6s ease-in-out infinite; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1px solid var(--rule); }
.stats div { padding: 28px 0 32px; border-right: 1px solid var(--rule); padding-left: 24px; }
.stats div:first-child { padding-left: 0; }
.stats div:last-child { border-right: 0; }
.stats dt { font: 0.8rem var(--mono); color: var(--muted); order: 2; }
.stats dd { margin: 0 0 4px; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; color: var(--ink); line-height: 1; }
.stats div { display: flex; flex-direction: column-reverse; }

/* sections */
.section { padding: clamp(56px, 8vw, 96px) 0; border-bottom: 1px solid var(--rule); }
.section--tint { background: var(--tint); }
.section__head { margin-bottom: 40px; }
.section__intro { color: var(--muted); margin-top: 0.8rem; }

/* problems */
.problems { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.problems li { background: var(--paper); padding: 28px; transition: background .25s; }
.problems li:hover { background: #fff; }
.problems__pain { color: var(--ink); font-weight: 600; margin-bottom: 0.6rem; }
.problems__pain::before { content: "\2717  "; color: #c0563f; font-family: var(--mono); }
.problems__fix { color: var(--muted); margin: 0; padding-left: 1.4em; position: relative; }
.problems__fix::before { content: "\2192"; position: absolute; left: 0; color: var(--green-dark); }

/* services */
.services { list-style: none; margin: 0; padding: 0; counter-reset: s; border-top: 1px solid var(--ink); }
.services li {
  counter-increment: s; position: relative;
  display: grid; grid-template-columns: 3rem 1fr 1.4fr 6rem; gap: 0 24px; align-items: start;
  padding: 26px 0;
}
.services li::before { content: counter(s, decimal-leading-zero); font: 0.85rem var(--mono); color: var(--muted); padding-top: 4px; }
.services li::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--rule);
  transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease) .15s;
}
.services li.is-visible::after, .no-motion .services li::after { transform: scaleX(1); }
.services li:hover h3 { color: var(--green-dark); }
.services h3 { transition: color .2s; }
.services__outcome { font-size: 0.92rem; color: var(--ink); margin: 6px 0 0; }
.services p { color: var(--muted); }
.services div + div p { margin: 0 0 8px; }
.services__cta { justify-self: end; font: 500 0.85rem var(--mono); color: var(--ink); text-decoration: none; padding-top: 4px; white-space: nowrap; }
.services__cta span { display: inline-block; transition: transform .2s var(--ease); }
.services li:hover .services__cta span { transform: translateX(6px); }
.services__cta:hover { color: var(--green-dark); }

/* integrations marquee */
.integrations { padding: 40px 0; border-bottom: 1px solid var(--rule); overflow: hidden; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { list-style: none; margin: 0; padding: 0; display: flex; width: max-content; animation: scroll 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track li { font: 500 1.05rem var(--mono); color: var(--ink); padding: 0 28px; white-space: nowrap; display: flex; align-items: center; gap: 28px; }
.marquee__track li::after { content: ""; width: 8px; height: 8px; border: 2px solid var(--green); border-radius: 50%; margin-left: 28px; }

/* process */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; --progress: 0; }
.process::before, .process::after { content: ""; position: absolute; top: 7px; left: 0; height: 2px; }
.process::before { right: 0; background: var(--rule); }
.process::after { width: calc(var(--progress) * 100%); background: var(--green); transition: width .15s linear; }
.process li { padding-right: 20px; position: relative; z-index: 1; }
.process li::before {
  content: ""; display: block; width: 16px; height: 16px; border-radius: 50%;
  border: 3px solid var(--rule); background: var(--paper); margin-bottom: 18px;
  transition: border-color .3s, transform .3s var(--ease);
}
.process li.is-active::before { border-color: var(--green); transform: scale(1.15); }
.process h3 { margin-bottom: 0.5rem; }
.process p { font-size: 0.95rem; color: var(--muted); }

/* about */
.about { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; }
.about__body p { color: var(--muted); }
.clients { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.clients li { font: 0.85rem var(--mono); border: 1px solid var(--rule); background: var(--paper); padding: 4px 10px; }

/* contact */
.section--dark { background: var(--ink); color: #c9d2cc; border: 0; }
.section--dark h2 { color: #fff; margin-bottom: 2rem; }
.section--dark .tag { color: var(--green); }
.section--dark .button { background: var(--green); border-color: var(--green); color: var(--ink); }
.section--dark .button:hover { background: #fff; border-color: #fff; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact__list { margin: 0; border-top: 1px solid #2c3630; }
.contact__list div { display: grid; grid-template-columns: 7rem 1fr; padding: 14px 0; border-bottom: 1px solid #2c3630; }
.contact__list dt { font: 0.85rem var(--mono); color: #8a968f; }
.contact__list dd { margin: 0; color: #fff; }
.contact__list a { text-decoration: none; transition: color .2s; }
.contact__list a:hover { color: var(--green); }

/* footer */
.footer { background: var(--ink); border-top: 1px solid #2c3630; padding: 24px 0; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.footer p { margin: 0; font: 0.8rem var(--mono); color: #8a968f; }

/* motion */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--delay, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 50% { transform: scale(1.35); } }
@keyframes scroll { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track, .diagram__nodes .pulse, .rotator::after, .live::before { animation: none; }
  .services li::after { transform: scaleX(1); transition: none; }
  .diagram__packets { display: none; }
}

@media (max-width: 900px) {
  .hero__inner, .about, .contact { grid-template-columns: 1fr; }
  .diagram { max-width: 440px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(3) { padding-left: 0; border-top: 1px solid var(--rule); }
  .stats div:nth-child(4) { border-top: 1px solid var(--rule); }
  .problems { grid-template-columns: 1fr; }
  .services li { grid-template-columns: 3rem 1fr 5rem; }
  .services li > div:nth-of-type(2) { grid-column: 2 / 4; margin-top: 12px; }
  .process { grid-template-columns: 1fr; gap: 28px; padding-left: 36px; }
  .process::before, .process::after { top: 0; left: 7px; width: 2px; height: 100%; right: auto; }
  .process::after { height: calc(var(--progress) * 100%); width: 2px; }
  .process li::before { position: absolute; left: -36px; top: 2px; margin: 0; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 0 16px 16px; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-top: 1px solid var(--rule); }
  .nav .nav__cta { text-align: center; margin-top: 12px; padding: 10px; }
  .services li { grid-template-columns: 2.2rem 1fr; }
  .services li > div:nth-of-type(2) { grid-column: 2; }
  .services__cta { grid-column: 2; justify-self: start; margin-top: 10px; }
  .contact__list div { grid-template-columns: 1fr; gap: 2px; }
}

.no-motion .marquee__track { flex-wrap: wrap; width: auto; row-gap: 12px; }

@media (max-width: 680px) {
  .menu-btn { min-height: 44px; padding: 0 16px; }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .hero__actions .button { text-align: center; }
  .hero__actions .link { text-align: center; padding: 12px 0; }
  .rotator { min-height: 2.3em; }
  .services__cta { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 1px solid var(--ink); }
  .contact__list a { display: block; padding: 6px 0; }
  .section--dark .button { display: block; text-align: center; }
  .stats div { padding-left: 16px; }
}
