:root {
  --bg: #f3f5ef;
  --bg-raised: #fbfcf8;
  --panel: #f8faf5;
  --panel-soft: #edf2e8;
  --ink: #121610;
  --muted: #5f695d;
  --faint: #879184;
  --line: rgba(31, 54, 29, 0.14);
  --line-strong: rgba(31, 54, 29, 0.25);
  --lime: #2f6b3d;
  --lime-bright: #397b48;
  --lime-dark: #dff0cc;
  --error: #b9473b;
  --sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 18px;
  --shadow: 0 30px 80px rgba(31, 48, 29, 0.13);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
::selection { color: #ffffff; background: var(--lime); }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #ffffff;
  background: var(--lime);
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); }

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}
.site-header.scrolled,
.site-header.menu-active {
  background: rgba(251, 252, 248, 0.9);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 650; letter-spacing: -0.04em; }
.brand-dot { color: var(--lime); }
.brand-mark {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--lime);
  border-radius: 11px;
  background: var(--lime);
  box-shadow: inset 0 1px rgba(255,255,255,.18);
}
.brand-mark b { position: relative; z-index: 2; font-size: 18px; color: #ffffff; }
.brand-mark i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #b9ee70; }
.brand-mark i:nth-child(1) { left: 6px; top: 7px; }
.brand-mark i:nth-child(2) { right: 6px; top: 9px; }
.brand-mark i:nth-child(3) { right: 7px; bottom: 7px; }
.nav-links { display: flex; align-items: center; gap: 30px; color: var(--muted); font-size: 14px; }
.nav-links > a:not(.button):hover { color: var(--ink); }
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 22px;
  color: #ffffff;
  background: var(--lime);
  border: 1px solid var(--lime);
  border-radius: 10px;
  font-weight: 650;
  line-height: 1;
  box-shadow: 0 10px 28px rgba(47, 107, 61, 0.16);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.button:hover { background: var(--lime-bright); transform: translateY(-2px); box-shadow: 0 16px 38px rgba(47, 107, 61, 0.2); }
.button:focus-visible, .text-link:focus-visible, .nav-links a:focus-visible, summary:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
.button-small { min-height: 42px; padding-inline: 17px; font-size: 13px; gap: 12px; }
.menu-button { display: none; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: transparent; }
.menu-button span { display: block; width: 17px; height: 1px; margin: 5px auto; background: var(--ink); transition: transform .2s ease; }
.menu-button[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
.mobile-nav { display: none; }

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: clamp(140px, 16vw, 205px) 0 56px;
  background:
    linear-gradient(rgba(38,93,53,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38,93,53,.045) 1px, transparent 1px);
  background-size: 64px 64px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}
.hero-glow { position: absolute; width: 740px; height: 740px; top: -280px; left: 42%; border-radius: 50%; background: rgba(111,170,66,.14); filter: blur(100px); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(420px, .85fr); gap: clamp(42px, 5vw, 72px); align-items: center; }
.eyebrow { margin: 0 0 23px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .11em; line-height: 1.4; text-transform: uppercase; }
.hero h1 { max-width: 780px; margin: 0; color: var(--ink); font-size: clamp(42px, 4.15vw, 58px); font-weight: 600; letter-spacing: -.065em; line-height: .97; }
.hero h1 span { color: var(--lime); }
.hero-lead { max-width: 680px; margin: 32px 0 0; color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.7; }
.hero-actions { margin-top: 36px; display: flex; align-items: center; gap: 28px; }
.text-link { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-size: 14px; font-weight: 550; }
.text-link:hover { color: var(--lime); }
.play-dot { width: 34px; height: 34px; display: grid; place-items: center; padding-left: 2px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--lime); font-size: 9px; }
.hero-note { margin: 21px 0 0; color: var(--faint); font-family: var(--mono); font-size: 11px; }

.runtime-visual { position: relative; padding: 16px; border: 1px solid var(--line); border-radius: 22px; background: rgba(251,252,248,.88); box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.9); backdrop-filter: blur(12px); }
.runtime-visual::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; background: linear-gradient(130deg, rgba(47,107,61,.18), transparent 25%, transparent 75%, rgba(47,107,61,.08)); opacity: .55; }
.runtime-topline { display: flex; justify-content: space-between; gap: 16px; padding: 2px 3px 14px; color: var(--muted); font-size: 11px; }
.runtime-topline span { display: flex; align-items: center; gap: 8px; }
.browser-fleet { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; padding-block: 5px 22px; }
.worker { position: relative; z-index: 2; overflow: hidden; min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: #ffffff; box-shadow: 0 12px 28px rgba(31,48,29,.09); }
.browser-bar { height: 20px; display: flex; align-items: center; gap: 3px; padding: 0 6px; border-bottom: 1px solid var(--line); background: #edf1e9; }
.browser-bar i { width: 3px; height: 3px; border-radius: 50%; background: #9ba59a; }
.browser-bar i:first-child { background: var(--lime); }
.browser-bar span { flex: 1; height: 7px; margin-left: 3px; border: 1px solid rgba(31,54,29,.1); border-radius: 3px; }
.worker-body { position: relative; min-height: 166px; padding: 12px 9px 11px; text-align: center; }
.worker-id { position: absolute; top: 6px; right: 7px; color: #9ba59a; font-family: var(--mono); font-size: 8px; }
.layer-stack { height: 80px; display: flex; flex-direction: column; align-items: center; justify-content: center; margin-bottom: 3px; }
.layer-stack i { width: 54px; height: 8px; margin-top: -1px; border: 1px solid rgba(47,107,61,.5); border-radius: 2px; background: rgba(185,238,112,.18); transform: perspective(50px) rotateX(34deg); box-shadow: 0 5px 12px rgba(47,107,61,.05); }
.worker-b .layer-stack i, .worker-c .layer-stack i, .worker-d .layer-stack i { border-color: rgba(47,107,61,.5); background: rgba(185,238,112,.18); }
.worker strong, .worker small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.worker strong { font-size: 9px; font-weight: 600; }
.worker small { margin-top: 4px; color: var(--faint); font-family: var(--mono); font-size: 7px; }
.pipeline-line { position: absolute; z-index: 1; left: 8%; right: 8%; top: 91px; height: 1px; background: linear-gradient(90deg, transparent, var(--lime) 8%, var(--lime) 92%, transparent); box-shadow: 0 0 8px rgba(47,107,61,.25); }
.pipeline-line i { position: absolute; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 14px var(--lime); animation: travel 3.2s linear infinite; }
@keyframes travel { from { left: 0; } to { left: 100%; } }
.runtime-result { padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #f0f5ec; }
.runtime-result > span:first-child { color: var(--faint); font-size: 8px; }
.runtime-result p { margin: 5px 0 10px; color: #465045; font-size: 11px; }
.result-state { display: flex; align-items: center; gap: 7px; color: var(--lime); font-family: var(--mono); font-size: 8px; }

.proof-strip { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(72px, 9vw, 120px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof-strip > div { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 13px; padding: 25px clamp(10px, 2vw, 26px); }
.proof-strip > div + div { border-left: 1px solid var(--line); }
.proof-strip span { color: var(--lime); font-family: var(--mono); font-size: 10px; }
.proof-strip strong { color: var(--ink); font-size: 14px; font-weight: 550; }
.proof-strip small { color: var(--faint); font-size: 11px; }

.demo-section { padding: clamp(100px, 13vw, 180px) 0; background: #fbfcf8; color: var(--ink); }
.section-heading { max-width: 760px; }
.section-heading .eyebrow { color: #687067; }
.section-heading h2 { margin: 0; font-size: clamp(46px, 6vw, 82px); font-weight: 600; letter-spacing: -.06em; line-height: .98; }
.section-heading > p:last-child { max-width: 620px; margin: 25px 0 0; color: #5d655d; font-size: 18px; line-height: 1.7; }
.video-shell { overflow: hidden; margin-top: clamp(48px, 7vw, 84px); border: 1px solid rgba(17,20,17,.15); border-radius: 20px; background: #0b0d0c; box-shadow: 0 34px 70px rgba(31,48,29,.16); }
.video-shell video { width: 100%; aspect-ratio: 16 / 9; background: #050605; }
.video-placeholder { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.video-placeholder img { width: 100%; height: 100%; object-fit: cover; }
.video-placeholder::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.65)); }
.video-overlay { position: absolute; z-index: 2; left: 34px; bottom: 32px; display: flex; align-items: center; gap: 16px; color: #f4f6f1; }
.video-play { width: 54px; height: 54px; display: grid; place-items: center; padding-left: 3px; border-radius: 50%; color: #0b0d0c; background: #b8ff5a; font-size: 13px; box-shadow: 0 12px 40px rgba(184,255,90,.2); }
.video-overlay strong, .video-overlay small { display: block; }
.video-overlay strong { font-size: 16px; }
.video-overlay small { color: #aeb5ae; font-family: var(--mono); font-size: 10px; }
.video-caption { min-height: 62px; display: flex; align-items: center; gap: 28px; padding: 0 25px; border-top: 1px solid rgba(244,246,241,.12); color: #a8b0a8; font-family: var(--mono); font-size: 9px; letter-spacing: .05em; text-transform: uppercase; }
.video-caption span { display: inline-flex; align-items: center; gap: 8px; }
.video-caption span + span::before { content: ""; width: 3px; height: 3px; margin-right: 20px; border-radius: 50%; background: #4c534d; }

.faq-section { padding: clamp(100px, 13vw, 180px) 0; background: var(--bg); }
.faq-grid { display: grid; grid-template-columns: minmax(260px, .78fr) minmax(0, 1.22fr); gap: clamp(60px, 10vw, 150px); align-items: start; }
.faq-section .section-heading { position: sticky; top: 130px; }
.faq-section .section-heading h2 { color: var(--ink); font-size: clamp(42px, 5vw, 68px); }
.faq-section .section-heading > p:last-child { color: var(--muted); font-size: 16px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 27px 0; color: var(--ink); font-size: 18px; font-weight: 550; list-style: none; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { position: relative; width: 22px; height: 22px; flex: none; }
.faq-list summary span::before, .faq-list summary span::after { content: ""; position: absolute; top: 10px; left: 4px; width: 14px; height: 1px; background: var(--lime); transition: transform .2s ease; }
.faq-list summary span::after { transform: rotate(90deg); }
.faq-list details[open] summary span::after { transform: rotate(0); }
.faq-list details p { max-width: 690px; margin: -6px 45px 27px 0; color: var(--muted); font-size: 15px; line-height: 1.75; }

.contact-section { position: relative; overflow: hidden; padding: clamp(100px, 13vw, 170px) 0; background: var(--panel); }
.contact-section::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(38,93,53,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(38,93,53,.035) 1px, transparent 1px); background-size: 54px 54px; }
.contact-glow { position: absolute; width: 620px; height: 620px; left: -250px; bottom: -280px; border-radius: 50%; background: rgba(111,170,66,.14); filter: blur(100px); }
.contact-grid { position: relative; display: grid; grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr); gap: clamp(60px, 10vw, 140px); align-items: start; }
.contact-copy h2 { margin: 0; max-width: 620px; font-size: clamp(45px, 5.7vw, 78px); font-weight: 600; letter-spacing: -.06em; line-height: .99; }
.contact-copy > p:nth-of-type(2) { max-width: 580px; margin: 28px 0 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.fit-card { margin-top: 44px; padding: 23px 25px; border: 1px solid var(--line); border-radius: 13px; background: #eef3ea; }
.fit-card > span { color: var(--lime); font-size: 9px; letter-spacing: .11em; }
.fit-card ul { margin: 15px 0 0; padding: 0; display: grid; gap: 9px; list-style: none; color: #465045; font-size: 13px; }
.fit-card li::before { content: "✓"; margin-right: 10px; color: var(--lime); }
.form-wrap { padding: clamp(24px, 4vw, 42px); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.88); box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field { margin-bottom: 17px; }
.field label { display: block; margin: 0 0 8px; color: #394238; font-size: 12px; font-weight: 550; }
.field label span { margin-left: 5px; color: var(--faint); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%;
  color: var(--ink);
  background: #f7f9f4;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input, .field select { min-height: 49px; padding: 0 14px; }
.field textarea { min-height: 125px; padding: 13px 14px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.field input::placeholder, .field textarea::placeholder { color: #8a9588; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: rgba(47,107,61,.75); box-shadow: 0 0 0 3px rgba(47,107,61,.09); }
.field.invalid input, .field.invalid textarea { border-color: var(--error); }
.field-error { display: none; margin-top: 6px; color: var(--error); font-size: 11px; }
.field.invalid .field-error { display: block; }
.honey-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-submit { width: 100%; margin-top: 3px; border: 0; cursor: pointer; }
.form-submit:disabled { opacity: .65; cursor: wait; transform: none; }
.form-note { min-height: 20px; margin: 12px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.form-note.error { color: var(--error); }
.form-success { display: none; padding: 35px 10px; text-align: center; }
.form-success.show { display: block; }
.success-mark { width: 56px; height: 56px; display: grid; place-items: center; margin: 0 auto 20px; border: 1px solid rgba(47,107,61,.35); border-radius: 50%; color: var(--lime); background: rgba(185,238,112,.18); font-size: 22px; }
.form-success h3 { margin: 0; color: var(--ink); font-size: 27px; }
.form-success p { max-width: 430px; margin: 12px auto 0; color: var(--muted); }

.site-footer { padding: 45px 0; border-top: 1px solid var(--line); background: #e8ede4; }
.footer-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; }
.brand-footer { font-size: 17px; }
.brand-footer .brand-mark { width: 32px; height: 32px; border-radius: 9px; }
.brand-footer .brand-mark b { font-size: 15px; }
.footer-grid > p { margin: 0; color: var(--faint); font-size: 12px; }
.footer-grid > p:nth-child(2) { text-align: center; }
.footer-grid > p:last-child { text-align: right; font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .09s; }
.delay-2 { transition-delay: .16s; }

@media (max-width: 1020px) {
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 850px; }
  .hero h1 { font-size: clamp(42px, 7vw, 64px); }
  .runtime-visual { max-width: 720px; }
  .faq-grid, .contact-grid { gap: 64px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > p:nth-child(2) { display: none; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .menu-button { display: block; }
  .mobile-nav { position: fixed; inset: 77px 0 auto; z-index: 49; display: grid; padding: 12px var(--gutter) 25px; background: rgba(251,252,248,.98); border-bottom: 1px solid var(--line); transform: translateY(-125%); visibility: hidden; transition: transform .25s ease, visibility .25s; }
  .mobile-nav.open { transform: none; visibility: visible; }
  .mobile-nav a { padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 18px; }
  .hero { padding-top: 130px; }
  .hero h1 { font-size: clamp(36px, 10vw, 52px); }
  .hero-lead { font-size: 17px; }
  .runtime-visual { padding: 11px; }
  .browser-fleet { grid-template-columns: repeat(2, 1fr); }
  .pipeline-line { display: none; }
  .worker-body { min-height: 145px; }
  .proof-strip { grid-template-columns: 1fr; }
  .proof-strip > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .faq-section .section-heading { position: static; }
  .video-caption { flex-wrap: wrap; gap: 8px 18px; padding-block: 15px; }
  .video-caption span + span::before { margin-right: 10px; }
}

@media (max-width: 520px) {
  .hero-actions { align-items: stretch; flex-direction: column; gap: 18px; }
  .hero-actions .button { width: 100%; }
  .text-link { justify-content: center; }
  .runtime-topline { align-items: flex-start; flex-direction: column; }
  .video-overlay { left: 17px; bottom: 16px; }
  .video-play { width: 43px; height: 43px; }
  .video-overlay strong { font-size: 13px; }
  .video-caption span { width: 100%; }
  .video-caption span + span::before { display: none; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .form-wrap { padding: 22px 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > p:last-child { text-align: left; }
}

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