:root {
  --paper: #f3efe5;
  --paper-deep: #e9e2d4;
  --ink: #11100e;
  --blue: #1747ff;
  --orange: #ee5638;
  --muted: #625f57;
  --rule: 3px solid var(--ink);
  --thin-rule: 1px solid rgba(17, 16, 14, 0.34);
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Narrow", sans-serif;
  --body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color-scheme: light;
  color: var(--ink);
  font-family: var(--body);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; overflow-x: hidden; background: var(--paper); line-height: 1.5; }
body::before { position: fixed; inset: 0; z-index: 99; pointer-events: none; content: ""; opacity: 0.06; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.34'/%3E%3C/svg%3E"); mix-blend-mode: multiply; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 110; padding: 10px 14px; color: white; background: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 76px; padding: 0 3vw; border-bottom: 1px solid rgba(17, 16, 14, 0.2); background: rgba(243, 239, 229, 0.94); backdrop-filter: blur(12px); }
.brand { display: inline-flex; gap: 10px; align-items: center; width: max-content; font-family: var(--display); font-size: clamp(1.55rem, 2.1vw, 2rem); letter-spacing: 0.01em; text-transform: uppercase; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 2px solid currentColor; color: var(--paper); font-family: var(--display); font-size: 0.85rem; background: var(--blue); transform: rotate(-3deg); }
.brand-mark span { color: var(--orange); }
.site-nav { display: flex; gap: 34px; align-items: center; }
.site-nav a { display: flex; gap: 5px; align-items: baseline; font-weight: 650; }
.site-nav small { color: var(--muted); font-size: 0.68rem; font-weight: 500; }
.site-nav a:hover, .text-link:hover { color: var(--blue); }
.header-cta { justify-self: end; }
.menu-toggle { display: none; }
.button { display: inline-flex; gap: 22px; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border: 2px solid var(--ink); font-size: 0.84rem; font-weight: 750; letter-spacing: 0.02em; text-transform: uppercase; transition: transform 160ms ease, box-shadow 160ms ease; }
.button:hover { box-shadow: 6px 6px 0 var(--ink); transform: translate(-3px, -3px); }
.button-dark { color: var(--paper); background: var(--ink); }
.button-dark span { color: #a9a69f; }
.button-blue { border-color: var(--blue); color: white; background: var(--blue); }

.hero { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(440px, 1.05fr); min-height: calc(100vh - 76px); border-bottom: var(--rule); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(64px, 8vw, 120px) 5vw clamp(64px, 7vw, 100px); border-right: var(--rule); }
.eyebrow, .section-number { display: flex; gap: 10px; align-items: center; margin: 0 0 40px; font-family: var(--mono); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px rgba(23, 71, 255, 0.14); }
.hero h1, .section-heading h2, .connect h2, .pricing h2, .closing h2 { margin: 0; font-family: var(--display); font-weight: 900; letter-spacing: -0.035em; line-height: 0.88; text-transform: uppercase; }
.hero h1 span, .hero h1 strong, .hero h1 em { display: block; }
.hero h1 span { font-size: clamp(3.4rem, 5.4vw, 7rem); white-space: nowrap; }
.hero h1 strong { color: var(--blue); font-size: clamp(4.2rem, 8.5vw, 10rem); font-style: normal; }
.hero h1 em { margin-top: 24px; font-family: var(--body); font-size: clamp(1.45rem, 2.5vw, 3rem); font-style: normal; font-weight: 750; line-height: 1; text-transform: none; }
.hero-lede { max-width: 620px; margin: 38px 0 0; color: #282621; font-size: clamp(1rem, 1.25vw, 1.2rem); }
.hero-lede span { display: block; margin-top: 10px; color: var(--muted); font-size: 0.84em; }
.hero-actions { display: flex; gap: 26px; align-items: center; margin-top: 42px; }
.text-link { border-bottom: 1px solid currentColor; font-size: 0.88rem; font-weight: 700; }
.hero-art { position: relative; min-height: 690px; overflow: hidden; background: var(--paper-deep); }
.hero-art::after { position: absolute; right: 4%; bottom: 5%; width: 22%; height: 8px; content: ""; background: var(--ink); transform: rotate(-4deg); }
.hero-diagram { position: absolute; top: 50%; left: 50%; width: min(92%, 760px); transform: translate(-50%, -48%); }
.hero-diagram .ink-line, .hero-diagram .arrow-line, .hero-diagram .node path, .hero-diagram .node circle, .hero-diagram .node ellipse { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; stroke-width: 5; }
.hero-diagram .ink-line { stroke-dasharray: 14 12; }
.hero-diagram .arrow-line { stroke: var(--orange); stroke-width: 4; }
.hero-diagram .node rect, .hero-diagram .node > path:first-child { fill: var(--paper); stroke: var(--ink); stroke-width: 5; }
.hero-diagram text { fill: var(--ink); font-family: var(--mono); font-size: 17px; font-weight: 700; letter-spacing: 0.08em; }
.agent-shape path:first-child { fill: var(--blue); stroke: var(--ink); stroke-width: 6; }
.agent-shape circle, .agent-shape path:not(:first-child) { fill: none; stroke: white; stroke-linecap: round; stroke-width: 6; }
.agent-shape text { fill: white; }
.scribble { font-family: var(--mono); font-size: 0.7rem; font-style: italic; font-weight: 700; line-height: 1.1; text-transform: uppercase; transform: rotate(-4deg); }
.scribble span { color: var(--orange); }
.hero-art .scribble { position: absolute; z-index: 2; margin: 0; }
.note-one { top: 10%; left: 7%; }
.note-two { top: 11%; right: 7%; text-align: right; transform: rotate(4deg); }
.note-three { bottom: 10%; left: 7%; }
.note-four { right: 7%; bottom: 11%; text-align: right; transform: rotate(3deg); }
.hero-stamp { position: absolute; right: 4.5%; bottom: 9%; padding: 9px 12px; border: 3px solid var(--ink); color: var(--paper); font-family: var(--display); font-size: 1.35rem; line-height: 0.8; background: var(--orange); transform: rotate(6deg); }

.manifesto { display: grid; grid-template-columns: 1fr auto; align-items: end; padding: 36px 3vw 30px; color: var(--paper); background: var(--ink); }
.manifesto p { margin: 0; font-family: var(--display); font-size: clamp(2rem, 6vw, 6.5rem); letter-spacing: -0.02em; line-height: 0.9; }
.manifesto p span:first-child { color: var(--blue); }
.manifesto p span:last-child { color: var(--orange); }
.manifesto .manifesto-cn { padding-bottom: 7px; font-family: var(--body); font-size: 0.9rem; font-weight: 600; letter-spacing: 0; }
.section { padding: clamp(76px, 9vw, 140px) 4vw; border-bottom: var(--rule); }
.section-heading { display: grid; grid-template-columns: minmax(150px, 0.42fr) minmax(0, 1fr); align-items: start; margin-bottom: 68px; }
.section-heading .section-number { align-self: start; margin-top: 9px; }
.section-heading h2, .connect h2 { font-size: clamp(3.5rem, 7.6vw, 8.5rem); }
.section-heading > p:last-child, .section-heading-row > p { max-width: 420px; margin: 16px 0 0 auto; color: var(--muted); }
.section-heading-row { grid-template-columns: 1fr 0.7fr; align-items: end; }
.section-heading-row .section-number { margin-bottom: 30px; }
.section-heading-row > p span { display: block; margin-top: 10px; font-size: 0.82rem; }

.workflow-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; border-top: var(--rule); border-bottom: var(--rule); list-style: none; }
.workflow-grid li { position: relative; min-height: 390px; padding: 24px; border-right: var(--thin-rule); }
.workflow-grid li:last-child { border-right: 0; }
.step-no { font-family: var(--display); font-size: 2.4rem; }
.step-icon { position: relative; width: 128px; height: 128px; margin: 46px auto 42px; }
.step-icon::before, .step-icon::after, .step-icon span { position: absolute; content: ""; }
.icon-discover::before { inset: 8px 28px 48px 8px; border: 12px solid var(--blue); border-radius: 50%; }
.icon-discover::after { right: 15px; bottom: 20px; width: 58px; height: 14px; background: var(--ink); transform: rotate(48deg); }
.icon-data::before { inset: 20px 17px; border: 6px solid var(--ink); border-radius: 50%; background: var(--orange); box-shadow: 0 18px 0 var(--paper), 0 24px 0 var(--ink), 0 42px 0 var(--paper), 0 48px 0 var(--ink); }
.icon-action::before { top: 5px; left: 45px; width: 38px; height: 118px; background: var(--blue); transform: skew(-20deg); }
.icon-action::after { top: 44px; left: 8px; width: 112px; height: 38px; background: var(--blue); transform: skew(-20deg); }
.icon-result::before { right: 7px; bottom: 6px; width: 25px; height: 100px; background: var(--ink); box-shadow: -38px 28px 0 var(--blue), -76px 57px 0 var(--orange); }
.workflow-grid h3, .tool-card h3 { margin: 0 0 12px; font-size: 1.05rem; }
.workflow-grid h3 small, .tool-card h3 small { display: block; margin-top: 3px; color: var(--muted); font-size: 0.7rem; font-weight: 500; }
.workflow-grid p, .tool-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.tools { background: #ece6da; }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: var(--rule); border-left: var(--rule); }
.tool-card { position: relative; min-height: 360px; padding: 22px; border-right: var(--rule); border-bottom: var(--rule); overflow: hidden; }
.tool-card.blue { background: var(--blue); }
.tool-card.orange { background: var(--orange); }
.tool-card.black { color: var(--paper); background: var(--ink); }
.tool-card.blue p, .tool-card.blue h3 small, .tool-card.orange p, .tool-card.orange h3 small, .tool-card.black p, .tool-card.black h3 small { color: rgba(255, 255, 255, 0.76); }
.demo-tag { display: inline-block; padding: 5px 8px; border: 1px solid currentColor; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; }
.tool-symbol { position: relative; width: 150px; height: 150px; margin: 44px auto 30px; }
.symbol-search { border: 20px solid var(--ink); border-radius: 50%; }
.symbol-search::after { position: absolute; right: -45px; bottom: -30px; width: 76px; height: 20px; content: ""; background: var(--paper); transform: rotate(45deg); }
.symbol-research { border: 5px solid var(--ink); background: var(--paper); transform: rotate(5deg); }
.symbol-research::before, .symbol-research::after { position: absolute; left: 24px; width: 98px; height: 5px; content: ""; background: var(--ink); box-shadow: 0 22px 0 var(--ink), 0 44px 0 var(--ink), 0 66px 0 var(--ink); }
.symbol-research::before { top: 30px; }
.symbol-research::after { top: 108px; width: 54px; box-shadow: none; background: var(--blue); }
.symbol-docs { border: 6px solid var(--ink); background: var(--paper); box-shadow: 17px 17px 0 var(--blue), 34px 34px 0 var(--ink); }
.symbol-docs::after { position: absolute; top: 36px; left: 22px; width: 96px; height: 6px; content: ""; background: var(--ink); box-shadow: 0 24px 0 var(--ink), 0 48px 0 var(--ink); }
.symbol-comms { border: 7px solid var(--ink); border-radius: 50%; background: var(--blue); }
.symbol-comms::after { position: absolute; right: 2px; bottom: -18px; width: 48px; height: 48px; border-right: 7px solid var(--ink); content: ""; background: var(--blue); transform: skew(-28deg) rotate(35deg); }
.symbol-dataset { border: 6px solid var(--paper); border-radius: 50%; box-shadow: inset 0 0 0 26px var(--blue), inset 0 0 0 32px var(--paper); }
.symbol-dataset::before, .symbol-dataset::after { position: absolute; content: ""; background: var(--orange); }
.symbol-dataset::before { top: 69px; left: -18px; width: 186px; height: 10px; }
.symbol-dataset::after { top: -18px; left: 68px; width: 10px; height: 186px; }
.symbol-media { width: 0; height: 0; margin-top: 54px; border-top: 70px solid transparent; border-bottom: 70px solid transparent; border-left: 118px solid var(--paper); transform: rotate(-5deg); }

.connect { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 6vw; color: var(--paper); background: var(--ink); }
.connect-intro > p:not(.section-number):not(.scribble) { max-width: 430px; color: #b9b3a7; }
.connect h2 { margin-bottom: 34px; }
.connect-note { display: inline-block; margin-top: 90px; color: var(--orange); }
.connection-demo { align-self: center; }
.tab-list { display: flex; border: 2px solid var(--paper); }
.tab { flex: 1; padding: 15px; border: 0; border-right: 1px solid var(--paper); color: var(--paper); background: transparent; cursor: pointer; }
.tab:last-child { border-right: 0; }
.tab.is-active, .tab[aria-selected="true"] { color: white; background: var(--blue); }
.command-panel { min-height: 330px; padding: 34px; border: 2px solid var(--paper); border-top: 0; background: #191816; }
.command-panel[hidden] { display: none; }
.command-panel:not(:first-of-type) { border-top: 2px solid var(--paper); }
.command-meta, .balance-top, .balance-row { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; }
.command-meta span:last-child { color: var(--orange); }
.command-panel > p { margin: 70px 0 20px; color: #aaa69d; }
.terminal-row { display: grid; grid-template-columns: 1fr auto; align-items: center; border: 1px solid #57534c; background: #080808; }
.terminal-row code { overflow: auto; padding: 20px; color: #f7f4ed; font-family: var(--mono); white-space: nowrap; }
.terminal-row code::before { margin-right: 14px; color: var(--blue); content: "$"; }
.copy-button { align-self: stretch; padding: 0 18px; border: 0; border-left: 1px solid #57534c; color: white; background: var(--blue); cursor: pointer; }
.copy-status { min-height: 22px; margin: 10px 0 0; color: var(--orange); font-family: var(--mono); font-size: 0.75rem; }
.noscript-note { margin: 10px 0 0; color: var(--orange); font-family: var(--mono); font-size: 0.75rem; }

.pricing { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 9vw; color: white; background: var(--blue); }
.section-number.light { color: white; }
.pricing h2 { font-size: clamp(4rem, 8vw, 9rem); }
.pricing h2 span { color: var(--ink); }
.price-statement > p:last-child { color: rgba(255, 255, 255, 0.76); }
.balance-card { align-self: center; padding: 28px; border: 4px solid var(--ink); color: var(--ink); background: var(--paper); box-shadow: 16px 16px 0 var(--orange); transform: rotate(2deg); }
.balance-card strong { display: block; margin-top: 40px; font-family: var(--display); font-size: clamp(4.5rem, 8vw, 8rem); line-height: 1; }
.balance-card > p { margin: 0 0 42px; color: var(--muted); }
.balance-row { padding: 16px 0; border-top: var(--thin-rule); }
.balance-row.total { border-top: var(--rule); font-weight: 800; }

.faq { background: var(--paper-deep); }
.faq-list { border-top: var(--rule); }
.faq-list details { border-bottom: var(--rule); }
.faq-list summary { display: grid; grid-template-columns: 70px 1fr auto; gap: 20px; align-items: center; padding: 28px 12px; font-size: clamp(1rem, 2vw, 1.5rem); font-weight: 750; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--display); font-size: 2rem; }
.faq-list details[open] summary::after { color: var(--blue); content: "−"; }
.faq-list summary span, .faq-list summary small { font-family: var(--mono); font-size: 0.68rem; font-weight: 600; text-transform: uppercase; }
.faq-list summary small { color: var(--muted); }
.faq-list details p { max-width: 720px; margin: 0 0 30px 102px; color: var(--muted); }

.closing { position: relative; min-height: 74vh; padding: 11vw 4vw 8vw; overflow: hidden; text-align: center; }
.closing::before { position: absolute; top: 9%; left: -3%; width: 16vw; height: 16vw; min-width: 120px; min-height: 120px; border-radius: 50%; content: ""; background: var(--orange); }
.closing::after { position: absolute; right: -3%; bottom: 8%; width: 18vw; height: 18vw; min-width: 140px; min-height: 140px; border: 4vw solid var(--blue); content: ""; transform: rotate(18deg); }
.closing .scribble { position: relative; z-index: 1; display: inline-block; margin-bottom: 44px; color: var(--orange); }
.closing h2 { position: relative; z-index: 1; margin-bottom: 58px; font-size: clamp(4rem, 10vw, 11rem); }
.closing h2 span { color: var(--blue); }
.closing .button { position: relative; z-index: 1; }
.site-footer { display: grid; grid-template-columns: 1fr auto auto; gap: 34px; align-items: end; padding: 50px 4vw; color: var(--paper); background: var(--ink); }
.site-footer p { margin: 0; color: #a8a39a; font-size: 0.72rem; }
[data-reveal] { opacity: 1; transform: none; }
.js.reveal-ready [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 560ms ease, transform 560ms ease; }
.js.reveal-ready [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
.js .agent-shape { animation: agent-bob 3.6s ease-in-out infinite; transform-origin: center; }

@keyframes agent-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@media (max-width: 1080px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav { grid-column: 1 / -1; justify-content: center; padding: 14px 0 18px; }
  .header-cta { display: none; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { position: absolute; top: 100%; left: 0; display: flex; flex-direction: column; gap: 0; align-items: stretch; width: 100%; padding: 0; border-bottom: var(--rule); background: var(--paper); }
  .js .site-nav.is-open a { justify-content: space-between; padding: 18px 24px; border-top: var(--thin-rule); }
  .js .menu-toggle { display: inline-flex; gap: 10px; align-items: center; padding: 10px 0 10px 14px; border: 0; background: transparent; cursor: pointer; }
  .menu-icon, .menu-icon::before { width: 24px; height: 2px; background: currentColor; }
  .menu-icon { position: relative; }
  .menu-icon::before { position: absolute; top: 7px; left: 0; content: ""; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: 720px; border-right: 0; border-bottom: var(--rule); }
  .hero-art { min-height: 720px; }
  .workflow-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow-grid li:nth-child(2) { border-right: 0; }
  .workflow-grid li:nth-child(-n + 2) { border-bottom: var(--thin-rule); }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .connect { grid-template-columns: 1fr; }
  .connect-note { margin-top: 32px; }
}

@media (max-width: 700px) {
  .site-header { min-height: 66px; padding: 0 20px; }
  .brand { font-size: 1.35rem; }
  .brand-mark { width: 32px; height: 32px; }
  .hero-copy { min-height: auto; padding: 70px 22px 64px; }
  .hero h1 span { font-size: clamp(2.5rem, 12.8vw, 4.4rem); }
  .hero h1 strong { font-size: clamp(3.4rem, 18vw, 6.2rem); }
  .hero h1 em { font-size: 1.55rem; }
  .hero-lede br { display: none; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-art { min-height: 540px; }
  .note-three, .note-four { display: none; }
  .manifesto { grid-template-columns: 1fr; gap: 18px; padding: 28px 22px; }
  .manifesto p { font-size: clamp(2.3rem, 12vw, 4.2rem); }
  .section { padding: 78px 22px; }
  .section-heading, .section-heading-row { grid-template-columns: 1fr; margin-bottom: 48px; }
  .section-heading h2, .connect h2 { font-size: clamp(3.2rem, 16vw, 5.5rem); }
  .section-heading > p:last-child, .section-heading-row > p { margin-left: 0; }
  .workflow-grid, .tool-grid { grid-template-columns: 1fr; }
  .workflow-grid li, .workflow-grid li:nth-child(2) { border-right: 0; border-bottom: var(--thin-rule); }
  .workflow-grid li:last-child { border-bottom: 0; }
  .tool-card { min-height: 330px; }
  .connect { gap: 54px; }
  .tab { padding: 13px 8px; }
  .command-panel { min-height: 280px; padding: 24px 18px; }
  .terminal-row { grid-template-columns: 1fr; }
  .terminal-row code { width: 100%; }
  .copy-button { min-height: 48px; border-top: 1px solid #57534c; border-left: 0; }
  .pricing { grid-template-columns: 1fr; gap: 62px; }
  .pricing h2 { font-size: clamp(3.8rem, 18vw, 6rem); }
  .balance-card { padding: 20px; box-shadow: 9px 9px 0 var(--orange); }
  .faq-list summary { grid-template-columns: 42px 1fr auto; gap: 10px; padding: 22px 0; }
  .faq-list summary small { display: none; }
  .faq-list details p { margin-left: 52px; }
  .closing { padding: 120px 22px 100px; }
  .closing h2 { font-size: clamp(3.7rem, 18vw, 6.4rem); }
  .site-footer { grid-template-columns: 1fr; gap: 24px; align-items: start; padding: 44px 22px; }
}

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