@font-face {
  font-family: "iA Writer Mono";
  src: url("assets/fonts/ia-writer-mono-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --night: #071918;
  --night-deep: #040b0b;
  --surface: #0b2321;
  --surface-raised: #102c29;
  --surface-soft: #173a35;
  --product: #202628;
  --signal: #5ac8a8;
  --signal-bright: #7ae1be;
  --signal-deep: #2e9578;
  --text: #f3f6f4;
  --text-soft: #a4b3af;
  --text-faint: #71827e;
  --line: rgba(190, 222, 211, .12);
  --line-strong: rgba(190, 222, 211, .22);
  --shell: min(1240px, calc(100vw - 48px));
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --mono: "iA Writer Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-move: cubic-bezier(.77, 0, .175, 1);
  --radius-control: 10px;
  --radius-surface: 16px;
  --radius-product: 20px;
  --shadow-product: 0 34px 76px rgba(0, 10, 11, .48), 0 8px 24px rgba(0, 10, 11, .24);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--night-deep);
  scrollbar-color: var(--signal) var(--night-deep);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--night);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { color: var(--night-deep); background: var(--signal-bright); }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--night-deep); }
::-webkit-scrollbar-thumb { border: 3px solid var(--night-deep); border-radius: 999px; background: var(--signal); }

a, button, summary { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: .24em; }
button, summary { font: inherit; }
img { display: block; max-width: 100%; }

:focus-visible { outline: 3px solid var(--signal-bright); outline-offset: 4px; }

.shell { width: var(--shell); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 300;
  top: 10px;
  left: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-control);
  color: var(--night-deep);
  background: var(--signal-bright);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms var(--ease-out);
}

.skip-link:focus { transform: translateY(0); }

.section { position: relative; padding: 132px 0; }

.section-intro { max-width: 820px; margin-bottom: 58px; }
.section-intro h2,
.capture-copy h2,
.agents-copy h2,
.library-copy h2,
.local-copy h2,
.download-layout h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 710;
  letter-spacing: -.04em;
  line-height: .98;
  text-wrap: balance;
}

.section-intro p,
.capture-copy > p,
.agents-copy > p,
.library-copy > p,
.local-copy > p,
.download-layout > div > p {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--text-soft);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.58;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font-size: 14px;
  font-weight: 720;
  text-decoration: none;
  white-space: nowrap;
  transition: background 170ms ease, color 170ms ease, transform 170ms var(--ease-out), box-shadow 170ms ease;
}

.button-primary {
  color: #062120;
  background: var(--signal);
  box-shadow: 0 12px 30px rgba(30, 143, 133, .23);
}

.button-primary:hover { background: var(--signal-bright); transform: translateY(-2px); box-shadow: 0 17px 34px rgba(30, 143, 133, .3); }
.button-primary:active { transform: scale(.98); }

.text-link,
.button-link,
.outcome a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--signal-bright);
  font-size: 14px;
  font-weight: 680;
  text-decoration: none;
}

.text-link span,
.button-link span,
.outcome a span { transition: transform 160ms var(--ease-out); }
.text-link:hover span,
.button-link:hover span,
.outcome a:hover span { transform: translateX(4px); }

/* Shared navigation */

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  color: var(--text);
  background: rgba(6, 27, 26, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.2);
}

.header-inner {
  position: relative;
  width: min(1240px, calc(100% - 40px));
  height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 17px;
  font-weight: 760;
  letter-spacing: -.025em;
  text-decoration: none;
  white-space: nowrap;
}

.brand img,
.footer-brand img { border-radius: 9px; }

.desktop-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-group { position: static; }

.nav-group > summary,
.nav-plain {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: var(--radius-control);
  color: rgba(242, 245, 243, .72);
  font-size: 14px;
  font-weight: 560;
  cursor: pointer;
  list-style: none;
  text-decoration: none;
  transition: color 150ms ease, background 150ms ease;
}

.nav-group > summary::-webkit-details-marker,
.mobile-menu > summary::-webkit-details-marker,
.mobile-panel summary::-webkit-details-marker { display: none; }

.nav-group > summary:hover,
.nav-group[open] > summary,
.nav-plain:hover { color: var(--text); background: rgba(255, 255, 255, .07); }

.nav-group summary i,
.mobile-panel summary i {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 150ms ease;
}

.nav-group[open] summary i,
.mobile-panel details[open] > summary i { transform: translateY(1px) rotate(225deg); }

.mega-menu {
  position: absolute;
  top: calc(100% + 1px);
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 280px;
  color: #163a39;
  background: #f4f5f1;
  border: 0;
  border-top: 0;
  border-radius: 0 0 var(--radius-surface) var(--radius-surface);
  box-shadow: 0 30px 70px rgba(0, 8, 9, .48);
  overflow: hidden;
}

.mega-menu > section { padding: 28px 26px 32px; }
.mega-menu > section + section { border-left: 1px solid rgba(10, 45, 48, .15); }
.mega-menu h2,
.footer-map h2 {
  margin: 0 0 14px;
  color: #516663;
  font-size: 12px;
  font-weight: 680;
}

.mega-menu section a { display: block; padding: 10px 0; color: #163a39; text-decoration: none; }
.mega-menu section a strong { display: block; font-size: 14px; font-weight: 660; }
.mega-menu section a span { display: block; max-width: 27ch; margin-top: 4px; color: #506461; font-size: 12px; line-height: 1.44; }
.mega-menu section a:hover strong { color: var(--signal-bright); }

.mega-feature {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px;
  color: #163a39;
  background: #e6ebe7;
  text-decoration: none;
}

.mega-feature strong { max-width: 11ch; font-size: 23px; font-weight: 730; letter-spacing: -.03em; line-height: 1.08; }
.mega-feature span { margin-top: 11px; color: #506461; font-size: 13px; line-height: 1.5; }
.mega-feature:hover strong { color: var(--signal-bright); }

.nav-download,
.footer-download,
.mobile-download {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border-radius: var(--radius-control);
  color: #062120;
  background: var(--signal);
  font-size: 14px;
  font-weight: 720;
  text-decoration: none;
  white-space: nowrap;
  transition: background 150ms ease, transform 150ms var(--ease-out);
}

.nav-download:hover,
.footer-download:hover,
.mobile-download:hover { background: var(--signal-bright); transform: translateY(-1px); }
.mobile-menu { display: none; }

/* Hero */

.hero {
  position: relative;
  min-height: 940px;
  overflow: hidden;
  isolation: isolate;
  background: var(--night-deep);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 16, 16, .98) 0%, rgba(4, 16, 16, .88) 35%, rgba(4, 16, 16, .22) 63%, rgba(4, 16, 16, .3) 100%),
    linear-gradient(180deg, rgba(4, 16, 16, .04) 42%, rgba(4, 16, 16, .92) 90%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  background: radial-gradient(circle at 67% 32%, rgba(77, 189, 177, .08), transparent 26%);
  pointer-events: none;
}

.hero-scene { position: absolute; z-index: 1; inset: 0; opacity: .96; filter: hue-rotate(2deg) saturate(.72) contrast(1.08) brightness(1.08); }
.mill-stage { position: absolute; inset: 0; overflow: hidden; }

.windmill-plane {
  --axle-x: 66.15%;
  --axle-y: 44.95%;
  --rotor-size: 32.3%;
  --rotor-shadow-size: 7.1%;
  --scene-anchor: 50%;
  --scene-offset: -50%;
  --scene-shift: 0px;
  position: absolute;
  top: 50%;
  left: var(--scene-anchor);
  min-width: 100%;
  min-height: 100%;
  aspect-ratio: 1672 / 941;
  transform: translate(var(--scene-offset), -50%) translateX(var(--scene-shift));
  transform-origin: center;
}

.windmill-plane picture { position: absolute; inset: 0; }
.windmill-scene { position: absolute; inset: 0; width: 100%; height: 100%; user-select: none; pointer-events: none; }
.rotor-shadow { position: absolute; z-index: 2; top: var(--axle-y); left: var(--axle-x); width: var(--rotor-shadow-size); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(ellipse, rgba(1, 14, 16, .72), rgba(1, 20, 22, .3) 34%, transparent 68%); filter: blur(8px); transform: translate(-50%, -50%); }
.windmill-rotor-plane { position: absolute; z-index: 3; top: var(--axle-y); left: var(--axle-x); width: var(--rotor-size); aspect-ratio: 1; transform: translate(-50%, -50%) perspective(1400px) rotateY(-21deg) rotateX(2deg); transform-origin: center; transform-style: preserve-3d; }
.windmill-rotor { position: absolute; inset: 0; filter: brightness(1.4) saturate(.74); transform: rotate(var(--rotor-angle, -.785rad)); transform-origin: center; will-change: transform; animation: rotor-in 900ms var(--ease-out) 150ms both; }
.rotor-stock { position: absolute; z-index: 0; top: 50%; left: 50%; width: 97.5%; height: 4.15%; border: 1px solid rgba(12, 10, 9, .82); background: linear-gradient(180deg, rgba(198, 137, 93, .08), transparent 22%, rgba(0, 0, 0, .22) 76%), #2d2926; box-shadow: inset 0 1px rgba(209, 155, 112, .12), inset 0 -2px 2px rgba(0, 0, 0, .4), 0 3px 5px rgba(1, 14, 16, .4); transform: translate(-50%, -50%); }
.rotor-stock::before, .rotor-stock::after { content: ""; position: absolute; top: -13%; bottom: -13%; width: 2.15%; border: 1px solid rgba(30, 18, 16, .85); background: linear-gradient(90deg, #3a211d, #7d4839 46%, #2a1716); }
.rotor-stock::before { left: 31.5%; }
.rotor-stock::after { right: 31.5%; }
.rotor-stock-vertical { transform: translate(-50%, -50%) rotate(90deg); }
.rotor-arm { position: absolute; z-index: 1; inset: 0; transform: rotate(var(--blade-angle)); transform-origin: 50% 50%; }
.rotor-arm-a { --blade-angle: 0deg; }
.rotor-arm-b { --blade-angle: 90deg; }
.rotor-arm-c { --blade-angle: 180deg; }
.rotor-arm-d { --blade-angle: 270deg; }
.rotor-arm picture, .rotor-hub picture { display: contents; }
.rotor-arm img { position: absolute; bottom: 50%; left: 50%; width: auto; height: 49.35%; max-width: none; transform: translateX(-50%); transform-origin: 50% 100%; filter: brightness(1.04) saturate(.72) contrast(1.15) drop-shadow(0 3px 2px rgba(1, 14, 16, .55)) drop-shadow(0 13px 18px rgba(1, 20, 22, .4)); user-select: none; }
.rotor-hub { position: absolute; z-index: 3; top: 50%; left: 50%; width: 8.4%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.rotor-hub img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; filter: brightness(.7) saturate(.6) contrast(1.12) drop-shadow(0 2px 2px rgba(1, 14, 16, .6)); }

.hero-inner {
  position: relative;
  z-index: 5;
  min-height: 790px;
  display: flex;
  align-items: center;
}

.hero-copy { max-width: 700px; padding: 10px 0 26px; animation: hero-copy-in 760ms var(--ease-out) 80ms both; }
.hero h1 { max-width: 620px; margin: 0; color: var(--text); font-size: clamp(52px, 5vw, 76px); font-weight: 740; letter-spacing: -.04em; line-height: .99; text-wrap: balance; }
.hero-copy > p { max-width: 555px; margin: 26px 0 0; color: rgba(242, 245, 243, .74); font-size: clamp(17px, 1.4vw, 20px); letter-spacing: -.012em; line-height: 1.56; }
.hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 32px; }

.agent-compatibility { max-width: 690px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(190, 222, 211, .16); }
.agent-compatibility-label { display: block; color: rgba(243, 246, 244, .46); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.agent-compatibility-list { display: flex; flex-wrap: wrap; gap: 11px 20px; margin-top: 16px; }
.agent-brand { display: inline-flex; align-items: center; gap: 7px; color: rgba(243, 246, 244, .55); font-size: 12px; font-weight: 620; transition: color 180ms ease, transform 180ms var(--ease-out); }
.agent-brand svg { width: 17px; height: 17px; fill: currentColor; }
.agent-brand:hover { color: var(--signal-bright); transform: translateY(-1px); }

.hero-products { position: relative; align-self: stretch; min-height: 690px; }
.hero-product { position: absolute; margin: 0; overflow: hidden; border-radius: var(--radius-product); background: var(--product); box-shadow: var(--shadow-product); }
.hero-product img { width: 100%; height: 100%; object-fit: cover; }
.hero-actions-screen { z-index: 1; top: 170px; left: -10px; width: 57%; aspect-ratio: 1.59; rotate: -2.5deg; opacity: .86; }
.hero-library-screen { z-index: 2; top: 80px; right: -12%; width: 68%; aspect-ratio: 1.59; rotate: 1.4deg; opacity: .91; }
.hero-workflows-screen { z-index: 3; right: -6%; bottom: 35px; width: 83%; aspect-ratio: 1.59; rotate: 1.1deg; }

.benefit-rail {
  position: relative;
  z-index: 8;
  min-height: 132px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-surface);
  background: rgba(9, 34, 35, .88);
  box-shadow: 0 22px 55px rgba(0, 11, 12, .3);
  overflow: hidden;
}

.benefit-rail a { position: relative; display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: 28px 26px; text-decoration: none; transition: background 160ms ease; }
.benefit-rail a + a { border-left: 1px solid var(--line); }
.benefit-rail a:hover { background: rgba(77, 189, 177, .08); }
.benefit-rail strong { color: var(--text); font-size: 16px; font-weight: 690; }
.benefit-rail span { margin-top: 7px; color: var(--text-soft); font-size: 12px; line-height: 1.45; }

/* Outcomes */

.use-cases { background: #092425; }
.outcome-grid { display: grid; grid-template-columns: 1.15fr .85fr; grid-template-areas: "understand understand" "create repeat" "agent agent"; gap: 18px; }
.outcome { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-surface); background: var(--surface); }
.outcome > * { position: relative; z-index: 1; }
[data-pointer-light] { --light-radius: 460px; --light-border-radius: 260px; --light-alpha: .16; --light-border-alpha: .4; isolation: isolate; }
[data-pointer-light]::before { content: ""; position: absolute; z-index: 0; inset: 0; background: radial-gradient(var(--light-radius) circle at var(--pointer-x, 50%) var(--pointer-y, 50%), rgb(122 225 190 / var(--light-alpha)), transparent 58%); opacity: 0; pointer-events: none; transition: opacity 220ms ease; }
[data-pointer-light]::after { content: ""; position: absolute; z-index: 2; inset: -1px; border: 1px solid rgb(122 225 190 / var(--light-border-alpha)); border-radius: inherit; opacity: 0; pointer-events: none; transition: opacity 220ms ease; -webkit-mask-image: radial-gradient(var(--light-border-radius) circle at var(--pointer-x, 50%) var(--pointer-y, 50%), #000, transparent 72%); mask-image: radial-gradient(var(--light-border-radius) circle at var(--pointer-x, 50%) var(--pointer-y, 50%), #000, transparent 72%); }
[data-pointer-light].is-pointer-lit::before, [data-pointer-light].is-pointer-lit::after { opacity: 1; }
[data-pointer-light="subtle"] { --light-radius: 320px; --light-border-radius: 180px; --light-alpha: .065; --light-border-alpha: .24; }
[data-pointer-light="edge"] { --light-radius: 240px; --light-alpha: .72; position: relative; isolation: isolate; }
[data-pointer-light="edge"]::before { top: -1px; right: 0; bottom: auto; left: 0; height: 2px; background: radial-gradient(var(--light-radius) 12px at var(--pointer-x, 50%) 50%, rgb(122 225 190 / var(--light-alpha)), transparent 72%); }
[data-pointer-light="edge"]::after { display: none; }
.outcome h3 { margin: 0; font-size: clamp(28px, 3vw, 44px); font-weight: 700; letter-spacing: -.035em; line-height: 1.04; }
.outcome p { margin: 18px 0 24px; color: var(--text-soft); font-size: 16px; line-height: 1.58; }
.outcome-understand { grid-area: understand; min-height: 480px; display: grid; grid-template-columns: .78fr 1.22fr; align-items: center; gap: 42px; padding: 54px 0 54px 54px; }
.outcome-understand figure { align-self: stretch; margin: 0; overflow: hidden; border-radius: var(--radius-product) 0 0 var(--radius-product); box-shadow: var(--shadow-product); }
.outcome-understand img { width: 125%; max-width: none; height: 100%; object-fit: cover; object-position: left center; }
.outcome-create { grid-area: create; min-height: 330px; padding: 46px; background: linear-gradient(145deg, #103232, #0c292a 60%); }
.outcome-repeat { grid-area: repeat; min-height: 330px; padding: 46px; background: linear-gradient(145deg, #143737, #0d292a 64%); }
.outcome-agent { grid-area: agent; min-height: 280px; padding: 48px 48% 48px 48px; background: radial-gradient(circle at 82% 44%, rgba(90, 200, 168, .14), transparent 26%), #0a2221; }
.mcp-mark { position: absolute; z-index: 0; right: 8%; bottom: -18%; width: clamp(180px, 21vw, 310px); height: auto; fill: none; stroke: var(--signal); stroke-width: 12; stroke-linecap: round; opacity: .1; filter: drop-shadow(0 0 40px rgba(90, 200, 168, .12)); transform: rotate(-6deg) scale(.96); transform-origin: center; transition: opacity 320ms ease, transform 520ms var(--ease-out), filter 320ms ease; }
.outcome-agent:hover .mcp-mark { opacity: .22; filter: drop-shadow(0 0 54px rgba(90, 200, 168, .24)); transform: rotate(-2deg) scale(1.035); }

/* Capture */

.capture { overflow: hidden; background: #071f20; }
.capture::before { content: ""; position: absolute; inset: 0 0 0 58%; border-left: 1px solid var(--line); background: radial-gradient(circle at 35% 50%, rgba(77, 189, 177, .13), transparent 38%); }
.capture-layout { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(70px, 10vw, 150px); align-items: center; }
.capture-copy { max-width: 530px; }
.capture-copy .text-link { margin-top: 28px; }
.capture-routes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.capture-routes article { position: relative; min-height: 160px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-surface); background: rgba(13, 44, 45, .82); }
.capture-routes article > * { position: relative; z-index: 1; }
.capture-routes strong { font-size: 19px; font-weight: 680; }
.capture-routes span { margin-top: 9px; color: var(--text-soft); font-size: 14px; line-height: 1.5; }
.capture-routes article:first-child { background: linear-gradient(145deg, rgba(77, 189, 177, .2), rgba(13, 44, 45, .9)); }

/* Workflows */

.workflow-section { background: #081d1c; }
.anchor-alias { position: absolute; top: -68px; }
.workflow-intro { max-width: 850px; }
.eyebrow { color: var(--signal); font-family: var(--mono); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.workflow-playground { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #070f0f; box-shadow: 0 38px 90px rgba(0, 5, 5, .38); }

.playground-bar { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 22px 16px 26px; border-bottom: 1px solid var(--line); background: rgba(12, 27, 26, .92); }
.playground-title { display: grid; gap: 5px; }
.playground-title strong { font-size: 15px; font-weight: 650; }
.playground-title small { color: var(--text-faint); font-size: 12px; font-weight: 400; }
.playground-run { min-height: 44px; display: inline-flex; align-items: center; gap: 9px; padding: 0 18px; border: 0; border-radius: var(--radius-control); color: #062120; background: var(--signal); font-size: 13px; font-weight: 720; cursor: pointer; transition: background 160ms ease, transform 160ms var(--ease-out), opacity 160ms ease; }
.playground-run:hover:not(:disabled) { background: var(--signal-bright); transform: translateY(-1px); }
.playground-run:disabled { opacity: .55; cursor: default; }
.playground-run svg { width: 13px; height: 13px; fill: currentColor; }

.playground-templates { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 26px; border-bottom: 1px solid var(--line); background: rgba(9, 21, 20, .6); }
.playground-templates-label { margin-right: 6px; color: var(--text-faint); font-family: var(--mono); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }
.playground-templates button { min-height: 34px; padding: 0 13px; border: 1px solid var(--line); border-radius: var(--radius-control); color: var(--text-soft); background: transparent; font-size: 12px; font-weight: 620; cursor: pointer; transition: color 160ms ease, border-color 160ms ease, background 160ms ease; }
.playground-templates button:hover { color: var(--text); border-color: var(--line-strong); background: rgba(255, 255, 255, .03); }
.playground-templates button[aria-pressed="true"] { color: var(--signal-bright); border-color: rgba(122, 225, 190, .45); background: rgba(90, 200, 168, .08); }

.playground-canvas { position: relative; background: radial-gradient(circle at 24% 18%, rgba(90, 200, 168, .045), transparent 42%), #070f0f; }
.playground-rail { display: flex; align-items: stretch; gap: 30px; padding: 30px 26px 22px; overflow-x: auto; scrollbar-width: none; }
.playground-rail::-webkit-scrollbar { display: none; }
.rail-steps { display: contents; margin: 0; padding: 0; list-style: none; }

.rail-source, .rail-step { position: relative; flex: 0 0 auto; }
.rail-source::after, .rail-step::after { content: ""; position: absolute; top: 50%; right: -26px; width: 22px; height: 1px; background: var(--line-strong); }
.rail-step { transition: transform 180ms var(--ease-out); }
.rail-step.is-dragging { z-index: 5; transition: none; }

.rail-source { width: 156px; min-height: 118px; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; border: 1px dashed var(--line-strong); border-radius: 12px; background: rgba(9, 25, 24, .5); }
.rail-source > span { color: var(--signal); font-family: var(--mono); font-size: 9px; letter-spacing: .07em; text-transform: uppercase; }
.rail-source strong { margin-top: 12px; color: var(--text-soft); font-size: 13px; font-weight: 650; }
.rail-source small { margin-top: 5px; color: var(--text-faint); font-family: var(--mono); font-size: 10px; }

.step-card { position: relative; overflow: hidden; width: 168px; min-height: 118px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--text-faint); background: rgba(7, 20, 19, .92); transition: color 220ms ease, border-color 220ms ease, background 220ms ease, transform 220ms var(--ease-out), box-shadow 220ms ease; }
.step-index { color: inherit; font-family: var(--mono); font-size: 9px; }
.step-card strong { margin-top: 12px; color: var(--text-soft); font-size: 13px; font-weight: 650; }
.step-card small { margin-top: 5px; font-size: 10px; }
.step-warn { display: none; margin-top: 6px; color: var(--signal-bright); font-family: var(--mono); font-size: 9px; letter-spacing: .04em; }
.rail-step.needs-transcribe .step-warn { display: block; }

.step-controls { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; opacity: 0; transition: opacity 150ms ease; }
.rail-step:hover .step-controls, .rail-step:focus-within .step-controls { opacity: 1; }
.step-controls button { width: 24px; height: 24px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 7px; color: var(--text-soft); background: rgba(7, 15, 15, .85); font-size: 12px; line-height: 1; cursor: pointer; }
.step-controls button:hover { color: var(--text); border-color: var(--line-strong); background: rgba(255, 255, 255, .06); }

.step-approve { align-self: flex-start; display: none; margin-top: 10px; padding: 7px 12px; border: 0; border-radius: 8px; color: #062120; background: var(--signal); font-size: 11px; font-weight: 720; cursor: pointer; }
.step-approve:hover { background: var(--signal-bright); }
.rail-step.is-awaiting .step-approve { display: inline-flex; }

.rail-step.is-active .step-card { color: var(--text); border-color: rgba(122, 225, 190, .58); background: rgba(20, 55, 48, .92); box-shadow: 0 0 42px rgba(90, 200, 168, .12); transform: translateY(-4px); }
.rail-step.is-complete .step-card { color: rgba(243, 246, 244, .72); border-color: rgba(90, 200, 168, .28); }
.rail-step.is-awaiting .step-card { color: var(--text); border-color: rgba(122, 225, 190, .7); background: rgba(20, 55, 48, .94); transform: translateY(-4px); animation: step-await 1s ease-in-out infinite alternate; }
.rail-step.is-dragging .step-card { border-color: rgba(122, 225, 190, .5); box-shadow: 0 18px 40px rgba(0, 5, 5, .5); transform: translateY(-3px) scale(1.03); }
.rail-step.is-entering { animation: step-in 420ms var(--ease-out) both; }
.rail-step.is-nudged { animation: step-nudge 300ms ease; }

@media (hover: hover) and (pointer: fine) { .step-card { cursor: grab; } .rail-step.is-dragging .step-card { cursor: grabbing; } }
@media (hover: none) { .step-controls { opacity: 1; } }

.rail-add { flex: 0 0 auto; align-self: stretch; min-width: 118px; min-height: 118px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 14px; border: 1px dashed var(--line); border-radius: 12px; color: var(--text-faint); background: transparent; cursor: pointer; transition: color 160ms ease, border-color 160ms ease, background 160ms ease; }
.rail-add:hover, .rail-add[aria-expanded="true"] { color: var(--signal-bright); border-color: rgba(122, 225, 190, .4); background: rgba(90, 200, 168, .05); }
.rail-add i { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 15px; font-style: normal; }
.rail-add span { font-size: 11px; font-weight: 620; }
.rail-add.is-full { opacity: .45; }

.playground-palette { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 26px; padding: 20px 26px 24px; border-top: 1px solid var(--line); background: #081413; animation: palette-in 240ms var(--ease-out); }
.playground-palette[hidden] { display: none; }
.playground-palette section { min-width: 0; }
.playground-palette h3 { margin: 0 0 10px; color: var(--text-faint); font-family: var(--mono); font-size: 10px; font-weight: 400; letter-spacing: .07em; text-transform: uppercase; }
.playground-palette button { width: 100%; min-height: 38px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid transparent; border-radius: 9px; color: var(--text-soft); background: transparent; text-align: left; cursor: pointer; transition: color 150ms ease, background 150ms ease, border-color 150ms ease; }
.playground-palette button:hover:not(:disabled) { color: var(--text); border-color: var(--line); background: rgba(255, 255, 255, .035); }
.playground-palette button strong { font-size: 13px; font-weight: 620; }
.playground-palette button small { display: none; color: var(--text-faint); font-family: var(--mono); font-size: 9px; white-space: nowrap; }
.playground-palette button:disabled { color: var(--text-faint); opacity: .55; cursor: default; }
.playground-palette button:disabled small { display: inline; }

.playground-result { min-height: 190px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; padding: 6px 26px 26px; }
.playground-output { max-width: 440px; padding: 17px 20px; border: 1px solid rgba(122, 225, 190, .42); border-radius: 12px; background: rgba(12, 42, 37, .95); opacity: 0; transform: translateY(10px); transition: opacity 320ms ease, transform 420ms var(--ease-out); }
.playground-output.is-visible { opacity: 1; transform: translateY(0); }
.playground-output > span { display: block; color: var(--text-soft); font-size: 11px; }
.playground-output strong { display: block; margin-top: 7px; color: var(--text); font-family: var(--mono); font-size: 12.5px; font-weight: 620; }
.playground-output .output-more { display: block; margin-top: 5px; color: var(--text-faint); font-family: var(--mono); font-size: 10px; }
.playground-output > small { display: block; margin-top: 9px; color: var(--text-soft); font-size: 11px; line-height: 1.5; }

.playground-sources { justify-self: end; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 320ms ease, transform 420ms var(--ease-out), visibility 0s linear 320ms; }
.playground-sources.is-revealed { opacity: 1; visibility: visible; transform: translateY(0); transition: opacity 320ms ease 120ms, transform 420ms var(--ease-out) 120ms; }
.playground-sources > div { display: flex; gap: 8px; margin-top: 12px; }
.playground-sources button { position: relative; min-width: 150px; min-height: 64px; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 11px; color: var(--text-soft); background: rgba(7, 20, 19, .9); text-align: left; cursor: pointer; transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms var(--ease-out); }
.playground-sources button:hover { color: var(--text); border-color: var(--line-strong); transform: translateY(-2px); }
.playground-sources button[aria-pressed="true"] { color: var(--text); border-color: rgba(122, 225, 190, .45); background: rgba(90, 200, 168, .07); }
.playground-sources button strong { font-size: 12px; font-weight: 650; }
.playground-sources button small { color: var(--text-faint); font-family: var(--mono); font-size: 9.5px; }
.playground-sources button.is-run::after { content: "✓"; position: absolute; top: 8px; right: 10px; color: var(--signal-bright); font-size: 11px; }

.playground-foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-top: 18px; }
.playground-foot .interactive-note { margin: 0; }

@keyframes step-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes step-await { to { box-shadow: 0 0 0 7px rgba(90, 200, 168, .05), 0 0 34px rgba(90, 200, 168, .3); } }
@keyframes step-nudge { 25% { transform: translateX(-5px); } 60% { transform: translateX(4px); } }
@keyframes palette-in { from { opacity: 0; transform: translateY(-6px); } }
.workflow-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 42px; }
.workflow-benefits article { position: relative; padding-top: 24px; border-top: 1px solid var(--line-strong); }
.workflow-benefits strong { display: block; font-size: 18px; font-weight: 690; }
.workflow-benefits span { display: block; margin-top: 10px; color: var(--text-soft); font-size: 14px; line-height: 1.55; }

/* Agents */

.agents { background: #050d0d; }
.agents-heading { display: grid; grid-template-columns: 1fr .8fr; gap: clamp(60px, 9vw, 140px); align-items: end; margin-bottom: 66px; }
.agents-heading h2 { max-width: 760px; margin: 14px 0 0; font-size: clamp(44px, 5vw, 72px); font-weight: 710; letter-spacing: -.04em; line-height: .98; }
.agents-heading > p { max-width: 560px; margin: 0 0 4px; color: var(--text-soft); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.58; }
.agent-workbench { min-height: 690px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); border: 1px solid var(--line); border-radius: 22px; background: #070f0f; box-shadow: 0 42px 100px rgba(0, 0, 0, .38); overflow: hidden; }
.agent-console { min-width: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: radial-gradient(circle at 60% 50%, rgba(90, 200, 168, .045), transparent 38%), #080f0f; }
.agent-console-header { min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 15px 22px; border-bottom: 1px solid var(--line); }
.console-agent { min-width: 168px; display: flex; align-items: center; gap: 12px; }
.console-agent-mark { width: 36px; height: 36px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid rgba(122, 225, 190, .3); border-radius: 50%; color: var(--text); background: rgba(90, 200, 168, .08); transition: color 180ms ease, transform 180ms var(--ease-out), opacity 180ms ease; }
.console-agent-mark.is-switching { opacity: .18; transform: scale(.84); }
.console-agent-mark svg { width: 19px; height: 19px; fill: currentColor; }
.console-agent-mark[data-agent="claude"] { color: #d97757; }
.console-agent-mark[data-agent="gemini"] { color: #8ab4f8; }
.console-agent-mark[data-agent="vscode"] { color: #23a8f2; }
.console-agent div { display: grid; gap: 3px; }
.console-agent strong { font-size: 14px; }
.console-agent small { color: var(--text-faint); font-size: 10px; }
.agent-picker { max-width: 450px; display: flex; gap: 5px; overflow-x: auto; padding: 4px; border: 1px solid rgba(190, 222, 211, .1); border-radius: 12px; background: rgba(255, 255, 255, .022); scrollbar-width: none; }
.agent-picker::-webkit-scrollbar { display: none; }
.agent-picker button { min-width: 72px; min-height: 42px; display: inline-flex; flex: 1 0 auto; align-items: center; justify-content: center; gap: 7px; padding: 0 10px; border: 1px solid transparent; border-radius: 9px; color: var(--text-faint); background: transparent; cursor: pointer; transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms var(--ease-out); }
.agent-picker button:hover { color: var(--text); background: rgba(255, 255, 255, .035); }
.agent-picker button:active { transform: scale(.98); }
.agent-picker button[aria-checked="true"] { color: var(--text); border-color: rgba(122, 225, 190, .46); background: rgba(90, 200, 168, .08); box-shadow: inset 0 1px rgba(255, 255, 255, .035); }
.agent-picker svg { width: 15px; height: 15px; flex: 0 0 auto; fill: currentColor; }
.agent-picker span { font-size: 10px; font-weight: 640; white-space: nowrap; }
.agent-console-body { min-height: 530px; flex: 1; padding: clamp(24px, 4vw, 48px); }
.agent-prompt { max-width: 620px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255, 255, 255, .03); }
.agent-prompt span { display: block; color: var(--signal); font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.agent-prompt strong { display: block; margin-top: 8px; font-size: 16px; font-weight: 620; line-height: 1.48; }
.agent-trace { display: grid; gap: 0; margin-top: 32px; }
.trace-line { min-height: 58px; display: grid; grid-template-columns: 12px minmax(170px, 230px) 1fr; align-items: center; gap: 13px; border-bottom: 1px solid rgba(190, 222, 211, .07); color: var(--text-faint); opacity: .32; transform: translateY(5px); transition: opacity 260ms ease, color 260ms ease, transform 320ms var(--ease-out); }
.trace-line i { width: 7px; height: 7px; border: 1px solid currentColor; border-radius: 50%; }
.trace-line code { color: inherit; font-family: var(--mono); font-size: 10.5px; line-height: 1.35; overflow-wrap: anywhere; }
.trace-line span { font-size: 12px; }
.trace-line.is-reasoning { grid-template-columns: 12px 1fr; }
.trace-line.is-reasoning span { color: var(--text-soft); font-style: italic; }
.trace-line.is-running { color: var(--signal-bright); opacity: 1; transform: translateY(0); }
.trace-line.is-running i { border-color: var(--signal); box-shadow: 0 0 0 4px rgba(90, 200, 168, .09), 0 0 24px rgba(90, 200, 168, .32); animation: trace-pulse 900ms ease-in-out infinite alternate; }
.trace-line.is-complete { color: rgba(243, 246, 244, .66); opacity: 1; transform: translateY(0); }
.trace-line.is-complete i { border-color: var(--signal); background: var(--signal); }
.agent-thinking { --persona-glyph: "•"; min-height: 38px; display: flex; align-items: center; gap: 10px; margin-top: 20px; color: var(--text-faint); transition: opacity 180ms ease; }
.persona-indicator { width: 16px; height: 16px; display: grid; flex: 0 0 auto; place-items: center; color: var(--signal-bright); }
.persona-indicator::before { content: var(--persona-glyph); font-size: 15px; line-height: 1; }
.agent-thinking strong { font-family: var(--mono); font-size: 10px; font-weight: 400; }
.agent-thinking.is-done { opacity: 0; }
.agent-workbench[data-agent="codex"] .persona-indicator { border: 1px solid rgba(104, 211, 199, .28); border-top-color: var(--signal-bright); border-radius: 50%; animation: persona-spin 900ms linear infinite; }
.agent-workbench[data-agent="codex"] .persona-indicator::before { content: ""; }
.agent-workbench[data-agent="claude"] .agent-thinking { --persona-glyph: "✻"; }
.agent-workbench[data-agent="claude"] .persona-indicator { animation: persona-pulse 1000ms ease-in-out infinite; }
.agent-workbench[data-agent="gemini"] .agent-thinking { --persona-glyph: "✦"; }
.agent-workbench[data-agent="gemini"] .persona-indicator { animation: persona-twinkle 1100ms ease-in-out infinite; }
.agent-workbench[data-agent="cursor"] .agent-thinking { --persona-glyph: "▍"; }
.agent-workbench[data-agent="cursor"] .persona-indicator { animation: persona-caret 850ms steps(1, end) infinite; }
.agent-workbench[data-agent="vscode"] .persona-indicator { width: 28px; overflow: hidden; }
.agent-workbench[data-agent="vscode"] .persona-indicator::before { content: ""; width: 28px; height: 2px; background: linear-gradient(90deg, transparent, var(--signal-bright), transparent); transform: translateX(-100%); animation: persona-line 1100ms ease-in-out infinite; }
.agent-output { max-width: 520px; margin-top: 14px; padding: 17px 20px; border: 1px solid rgba(122, 225, 190, .38); border-radius: 12px; background: rgba(14, 48, 41, .82); opacity: 0; transform: translateY(10px); transition: opacity 320ms ease, transform 420ms var(--ease-out); }
.agent-output.is-visible { opacity: 1; transform: translateY(0); }
.agent-output span, .agent-output small { display: block; color: var(--text-soft); font-size: 10px; }
.agent-output strong { display: block; margin: 7px 0; font-family: var(--mono); font-size: 12px; }
.agent-console-footer { min-height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border-top: 1px solid var(--line); color: var(--text-faint); font-size: 10px; }
.agent-console-footer span { display: flex; align-items: center; gap: 8px; }
.agent-console-footer i { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 18px rgba(90, 200, 168, .6); }
.agent-console-footer button { border: 0; color: var(--text-soft); background: transparent; cursor: pointer; }
.agent-console-footer button:hover { color: var(--signal-bright); }
.agent-scenarios { padding: 34px 28px; background: #0a1514; }
.agent-scenarios [role="tablist"] { display: grid; gap: 8px; margin: 20px 0 28px; }
.agent-scenarios button { position: relative; min-height: 112px; display: grid; grid-template-columns: 30px 1fr; gap: 5px 12px; align-content: center; padding: 18px; border: 1px solid transparent; border-radius: 12px; color: var(--text-soft); background: transparent; text-align: left; cursor: pointer; transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms var(--ease-out); }
.agent-scenarios button > span { grid-row: span 2; color: var(--text-faint); font-family: var(--mono); font-size: 9px; }
.agent-scenarios button strong { font-size: 14px; font-weight: 620; }
.agent-scenarios button small { color: var(--text-faint); font-size: 10px; line-height: 1.45; }
.agent-scenarios button:hover { color: var(--text); background: rgba(255, 255, 255, .025); transform: translateX(2px); }
.agent-scenarios button.is-active { color: var(--text); border-color: rgba(122, 225, 190, .26); background: rgba(90, 200, 168, .07); }
.agent-scenarios button.is-active > span { color: var(--signal); }
.interactive-note { margin: 16px 0 0; color: var(--text-faint); font-family: var(--mono); font-size: 9px; }

@keyframes trace-pulse { to { box-shadow: 0 0 0 7px rgba(90, 200, 168, .03), 0 0 30px rgba(90, 200, 168, .46); } }
@keyframes persona-spin { to { transform: rotate(1turn); } }
@keyframes persona-pulse { 0%, 100% { opacity: .35; transform: scale(.88); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes persona-twinkle { 0%, 100% { opacity: .4; transform: rotate(-8deg) scale(.8); } 50% { opacity: 1; transform: rotate(8deg) scale(1.08); } }
@keyframes persona-caret { 0%, 48% { opacity: 1; } 49%, 100% { opacity: .18; } }
@keyframes persona-line { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* Library */

.library { background: #092425; }
.library-layout { display: grid; grid-template-columns: 1.16fr .84fr; gap: clamp(60px, 8vw, 118px); align-items: center; }
.library-product { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-product); background: #081615; }
.library-product::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 70%, #092425 100%), linear-gradient(180deg, transparent 70%, rgba(9, 36, 37, .72) 100%); pointer-events: none; }
.library-product img { width: 100%; height: auto; max-width: 100%; opacity: .82; filter: saturate(.78) brightness(.86); transform: none; }
.library-facts { margin: 34px 0 30px; }
.library-facts p { display: grid; grid-template-columns: 170px 1fr; gap: 20px; margin: 0; padding: 18px 0; border-top: 1px solid var(--line); }
.library-facts p:last-child { border-bottom: 1px solid var(--line); }
.library-facts strong { font-size: 14px; }
.library-facts span { color: var(--text-soft); font-size: 13px; line-height: 1.5; }

/* Local */

.local { background: #071f20; }
.local-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(70px, 10vw, 150px); align-items: start; }
.local-copy { position: sticky; top: 120px; }
.local-facts { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); border-radius: var(--radius-surface); overflow: hidden; }
.local-facts article { --light-radius: 420px; --light-border-radius: 240px; --light-alpha: .075; position: relative; min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 30px; background: #0c292a; }
.local-facts article:nth-child(even) { border-left: 1px solid var(--line); }
.local-facts article:nth-child(n + 3) { border-top: 1px solid var(--line); }
.local-facts strong, .local-facts article > span { position: relative; z-index: 1; }
.local-facts strong { font-size: 20px; font-weight: 690; }
.local-facts article > span { margin-top: 10px; color: var(--text-soft); font-size: 14px; line-height: 1.52; }
.local-icon { position: absolute; z-index: 0; width: 238px; height: 238px; color: var(--signal-bright); fill: none; stroke: currentColor; stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; opacity: 0; pointer-events: none; transition: opacity 300ms ease; -webkit-mask-image: radial-gradient(260px circle at var(--pointer-x, 50%) var(--pointer-y, 50%), #000 0%, rgba(0, 0, 0, .86) 44%, transparent 74%); mask-image: radial-gradient(260px circle at var(--pointer-x, 50%) var(--pointer-y, 50%), #000 0%, rgba(0, 0, 0, .86) 44%, transparent 74%); }
.local-icon-account { top: -58px; right: -58px; transform: rotate(-7deg); }
.local-icon-meter { top: -52px; left: -42px; transform: rotate(5deg); }
.local-icon-cloud { right: -46px; bottom: -62px; transform: rotate(6deg); }
.local-icon-network { left: -50px; bottom: -55px; transform: rotate(-5deg); }
.local-facts article.is-pointer-lit .local-icon { opacity: .21; }
.local-facts article:focus-visible .local-icon { opacity: .12; -webkit-mask-image: none; mask-image: none; }

/* Download close */

.download-close { background: radial-gradient(circle at 12% 40%, rgba(77, 189, 177, .12), transparent 25%), #061a1b; }
.download-layout { display: grid; grid-template-columns: 1fr .82fr; gap: clamp(70px, 10vw, 150px); align-items: start; }
.download-layout .button { margin-top: 32px; }
.download-requirements { display: block; margin-top: 18px; color: var(--text-faint); font-size: 13px; }
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--text); font-size: 15px; font-weight: 620; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--signal-bright); font-size: 22px; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq p { max-width: 58ch; margin: -6px 0 22px; color: var(--text-soft); font-size: 14px; line-height: 1.55; }

/* Footer */

.site-footer { color: var(--text); background: #031415; border-top: 1px solid var(--line); }
.footer-lead { min-height: 150px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-lead > div > p { margin: 12px 0 0; color: var(--text-faint); font-size: 13px; }
.footer-map { display: grid; grid-template-columns: repeat(5, 1fr); padding: 50px 0 58px; border-top: 1px solid var(--line); }
.footer-map nav { min-width: 0; padding: 0 22px; }
.footer-map nav:first-child { padding-left: 0; }
.footer-map nav + nav { border-left: 1px solid var(--line); }
.footer-map a { display: block; margin: 10px 0; color: var(--text-soft); font-size: 12px; line-height: 1.4; text-decoration: none; }
.footer-map a:hover { color: var(--signal-bright); }
.footer-bottom { min-height: 76px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.footer-bottom p { margin: 0; color: var(--text-faint); font-size: 12px; }
.footer-bottom nav { display: flex; gap: 20px; }
.footer-bottom a { color: var(--text-soft); font-size: 12px; text-decoration: none; }

/* Motion */

[data-reveal] { opacity: 1; transform: translateY(0); }

@keyframes hero-copy-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hero-products-in { from { opacity: 0; transform: translateY(22px) scale(.985); filter: blur(4px); } to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }
@keyframes rotor-in { from { opacity: 0; transform: rotate(-.9rad) scale(.97); } to { opacity: 1; transform: rotate(var(--rotor-angle, -.785rad)) scale(1); } }

/* Responsive */

@media (max-width: 1120px) {
  .desktop-nav { display: none; }
  .nav-download { margin-left: auto; }
  .mobile-menu { position: static; display: block; }
  .mobile-menu > summary { display: grid; width: 42px; height: 42px; place-content: center; gap: 6px; border-radius: var(--radius-control); background: rgba(255, 255, 255, .06); cursor: pointer; list-style: none; }
  .mobile-menu > summary span { display: block; width: 18px; height: 1px; background: var(--text); transition: transform 160ms var(--ease-out); }
  .mobile-menu[open] > summary span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .mobile-menu[open] > summary span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .mobile-panel { position: absolute; z-index: 2; top: 68px; left: 50%; width: calc(100% + 48px); height: calc(100dvh - 68px); overflow-y: auto; padding: 18px max(24px, calc((100vw - 920px) / 2)); color: #163a39; background: #f4f5f1; box-shadow: 0 30px 70px rgba(0, 8, 9, .28); transform: translateX(-50%); }
  .mobile-panel > details, .mobile-panel > a { display: block; border-bottom: 1px solid rgba(10, 45, 48, .15); }
  .mobile-panel > details > summary, .mobile-panel > a { min-height: 58px; display: flex; align-items: center; justify-content: space-between; color: #163a39; font-weight: 630; text-decoration: none; }
  .mobile-panel details > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 0 18px; }
  .mobile-panel details a { padding: 10px 10px 10px 0; color: #506461; font-size: 14px; text-decoration: none; }
  .mobile-panel .mobile-download { width: 100%; margin-top: 18px; border: 0; }

  .hero-inner { grid-template-columns: minmax(360px, .78fr) minmax(500px, 1.22fr); }
  .benefit-rail a { padding-inline: 20px; }
  .outcome-agent { padding-right: 38%; }
  .footer-map { grid-template-columns: repeat(3, 1fr); row-gap: 44px; }
  .footer-map nav:nth-child(4) { padding-left: 0; border-left: 0; }
}

@media (max-width: 900px) {
  :root { --shell: min(100% - 36px, 760px); }
  .section { padding: 104px 0; }
  .hero { min-height: 1040px; }
  .hero::before { background: linear-gradient(180deg, rgba(4, 16, 16, .96) 0%, rgba(4, 16, 16, .84) 38%, rgba(4, 16, 16, .18) 62%, rgba(4, 16, 16, .91) 94%); }
  .windmill-plane { --scene-anchor: 64%; --scene-offset: -64%; }
  .hero-inner { min-height: 880px; align-items: flex-start; padding-top: 100px; }
  .hero-copy { max-width: 650px; padding-top: 34px; }
  .hero h1 { font-size: clamp(54px, 9vw, 76px); }
  .hero-products { display: none; }
  .benefit-rail { grid-template-columns: repeat(2, 1fr); margin-bottom: 24px; }
  .benefit-rail a:nth-child(3), .benefit-rail a:nth-child(4) { border-top: 1px solid var(--line); }
  .benefit-rail a:nth-child(3) { border-left: 0; }

  .outcome-understand { grid-template-columns: 1fr; padding: 44px 0 0 44px; }
  .outcome-understand > div { padding-right: 44px; }
  .outcome-understand figure { min-height: 300px; border-radius: var(--radius-product) 0 0 0; }
  .outcome-agent { padding-right: 38%; }
  .capture-layout, .library-layout, .local-layout, .download-layout { grid-template-columns: 1fr; gap: 64px; }
  .capture::before { inset: 48% 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .capture-copy { max-width: 680px; }
  .playground-palette { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .playground-result { grid-template-columns: 1fr; gap: 18px; }
  .playground-sources { justify-self: start; }
  .agents-heading { grid-template-columns: 1fr; gap: 24px; }
  .agent-workbench { grid-template-columns: minmax(0, 1fr); }
  .agent-console { border-right: 0; border-bottom: 1px solid var(--line); }
  .agent-console, .agent-scenarios { min-width: 0; width: 100%; max-width: 100%; }
  .library-product { transform: none; }
  .local-copy { position: static; }
}

@media (max-width: 680px) {
  :root { --shell: calc(100% - 28px); }
  .section { padding: 88px 0; }
  .section-intro { margin-bottom: 40px; }
  .section-intro h2, .capture-copy h2, .agents-copy h2, .library-copy h2, .local-copy h2, .download-layout h2 { font-size: clamp(38px, 11vw, 54px); line-height: 1; }
  .header-inner { height: 62px; }
  .brand { font-size: 15px; }
  .brand img { width: 32px; height: 32px; }
  .nav-download { min-height: 38px; padding-inline: 13px; font-size: 13px; }
  .mobile-panel { top: 62px; width: calc(100% + 28px); height: calc(100dvh - 62px); padding-inline: 18px; }
  .mobile-panel details > div { grid-template-columns: 1fr; }

  .hero { min-height: 1000px; }
  .hero::before { background: linear-gradient(180deg, rgba(4, 16, 16, .98) 0%, rgba(4, 16, 16, .88) 38%, rgba(4, 16, 16, .12) 60%, rgba(4, 16, 16, .9) 94%); }
  .hero-inner { min-height: 820px; padding-top: 58px; }
  .hero-copy { padding-top: 12px; }
  .hero h1 { max-width: 570px; font-size: clamp(46px, 13vw, 64px); }
  .hero-copy > p { font-size: 17px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .hero-scene { opacity: 1; filter: hue-rotate(2deg) saturate(.74) contrast(1.08) brightness(1.13); }
  .agent-compatibility { margin-top: 38px; }
  .agent-compatibility-list { gap: 12px 17px; }
  .benefit-rail { min-height: 0; grid-template-columns: 1fr; }
  .benefit-rail a { min-height: 96px; padding: 20px; }
  .benefit-rail a + a { border-top: 1px solid var(--line); border-left: 0; }

  .outcome-grid { grid-template-columns: 1fr; grid-template-areas: "understand" "create" "repeat" "agent"; }
  .outcome-understand { min-height: 0; padding: 34px 0 0 28px; }
  .outcome-understand > div { padding-right: 28px; }
  .outcome-understand figure { min-height: 220px; }
  .outcome-create, .outcome-repeat, .outcome-agent { min-height: 0; padding: 32px 28px; }
  .mcp-mark { right: -6%; bottom: -2%; width: 170px; opacity: .08; }

  .capture-routes { grid-template-columns: 1fr; }
  .capture-routes article { min-height: 130px; }
  .workflow-playground { margin-inline: -6px; border-radius: 15px; }
  .playground-bar { flex-wrap: wrap; padding: 16px 18px; }
  .playground-templates { flex-wrap: nowrap; overflow-x: auto; padding: 12px 18px; scrollbar-width: none; }
  .playground-templates::-webkit-scrollbar { display: none; }
  .playground-templates button { flex: 0 0 auto; }
  .playground-rail { gap: 24px; padding: 22px 18px 16px; }
  .rail-source::after, .rail-step::after { right: -22px; width: 18px; }
  .rail-source { width: 148px; min-height: 112px; }
  .step-card { width: 152px; min-height: 112px; }
  .playground-palette { grid-template-columns: 1fr; gap: 14px; padding: 16px 18px 20px; }
  .playground-result { min-height: 0; grid-template-columns: 1fr; gap: 18px; padding: 4px 18px 20px; }
  .playground-sources { justify-self: start; }
  .playground-sources > div { flex-wrap: wrap; }
  .playground-foot { flex-direction: column; align-items: flex-start; }
  .workflow-benefits { grid-template-columns: 1fr; gap: 24px; }
  .agents-heading { margin-bottom: 38px; }
  .agents-heading h2 { font-size: clamp(38px, 11vw, 54px); }
  .agent-workbench { margin-inline: -6px; border-radius: 15px; }
  .agent-console-header { align-items: flex-start; flex-direction: column; }
  .agent-picker { width: 100%; max-width: none; }
  .agent-console-body { min-height: 520px; padding: 22px 18px; }
  .trace-line { grid-template-columns: 10px 1fr; gap: 7px 9px; padding: 11px 0; }
  .trace-line code, .trace-line span { grid-column: 2; }
  .trace-line code { align-self: end; font-size: 9.5px; }
  .trace-line span { align-self: start; font-size: 10px; }
  .trace-line.is-reasoning { grid-template-columns: 10px 1fr; }
  .agent-scenarios { padding: 28px 18px; }
  .agent-scenarios [role="tablist"] { display: flex; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .agent-scenarios [role="tablist"]::-webkit-scrollbar { display: none; }
  .agent-scenarios button { flex: 0 0 250px; }
  .library-product { margin-inline: -6px; border-radius: 14px; }
  .library-product img { width: 100%; height: auto; max-width: 100%; transform: none; }
  .library-facts p { grid-template-columns: 1fr; gap: 7px; }
  .local-facts { grid-template-columns: 1fr; }
  .local-facts article { min-height: 150px; }
  .local-facts article:nth-child(even) { border-left: 0; }
  .local-facts article + article { border-top: 1px solid var(--line); }
  .footer-lead { min-height: 0; align-items: flex-start; flex-direction: column; padding: 34px 0; }
  .footer-map { grid-template-columns: repeat(2, 1fr); padding: 36px 0 48px; row-gap: 36px; }
  .footer-map nav { padding: 0 16px; }
  .footer-map nav:nth-child(odd) { padding-left: 0; border-left: 0; }
  .footer-map nav:nth-child(4) { padding-left: 16px; border-left: 1px solid var(--line); }
  .footer-bottom { padding: 24px 0; align-items: flex-start; flex-direction: column; gap: 16px; }
}

@media (max-width: 420px) {
  .nav-download { display: none; }
  .mobile-menu { margin-left: auto; }
  .hero { min-height: 1000px; }
  .hero-inner { min-height: 820px; }
  .hero h1 { font-size: 44px; }
  .agent-brand span { display: none; }
  .agent-picker button { min-width: 46px; padding-inline: 8px; }
  .agent-picker button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .footer-map { grid-template-columns: 1fr; }
  .footer-map nav, .footer-map nav:nth-child(4) { padding: 0; border-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .windmill-rotor { transform: rotate(-.785rad); }
  .local-icon { transition: none; }
}

@media (hover: none), (pointer: coarse) {
  .local-icon { opacity: .06; -webkit-mask-image: none; mask-image: none; }
}
