@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #f0f0ec;
  --paper-2: #e7e7e1;
  --ink: #101211;
  --muted: #5e625e;
  --line: #cbccc5;
  --stage: #111211;
  --stage-2: #191a19;
  --stage-line: #353735;
  --stage-text: #e8e9e5;
  --stage-muted: #979b95;
  --amber: #d0aa68;
  --green: #78ad89;
  --red: #d08078;
  --radius: 8px;
  --page: min(1320px, calc(100vw - 48px));
  --font-sans: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 20; padding: 10px 14px; background: var(--ink); color: var(--paper); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { width: var(--page); height: 76px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; width: fit-content; }
.brand img { display: block; width: 128px; height: auto; }
.site-header nav { display: flex; gap: 30px; color: var(--muted); font-size: .875rem; }
.site-header nav a:hover { color: var(--ink); }
.site-header nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
#conteudo:focus { outline: none; }
.header-cta { justify-self: end; padding: 9px 13px; border: 1px solid var(--ink); border-radius: 5px; font-size: .82rem; font-weight: 600; }
.header-cta:hover, .header-cta[aria-current="page"] { background: var(--ink); color: var(--paper); }

.hero { width: var(--page); margin: 0 auto; padding: clamp(82px, 10vw, 144px) 0 78px; display: grid; grid-template-columns: 1fr; gap: clamp(54px, 7vw, 96px); }
.hero-copy { max-width: 74rem; }
.eyebrow, .section-index, .node-kind, .attempt-index, .stage-label { margin: 0; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .09em; text-transform: uppercase; }
.eyebrow { max-width: 46ch; color: var(--muted); }
.hero h1 { max-width: 72rem; margin: 22px 0 0; font-size: clamp(4rem, 8.4vw, 8.7rem); font-weight: 560; font-variation-settings: "wdth" 108; letter-spacing: -.025em; line-height: 1; text-wrap: balance; }
.hero h1 em { display: inline-block; color: #7c807a; font-style: normal; white-space: nowrap; }
.hero-lede { max-width: 56rem; margin: 30px 0 0; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.22rem); text-wrap: pretty; }
.hero-lede strong { color: var(--ink); font-weight: 600; white-space: nowrap; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 32px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 0 18px; border-radius: 5px; font-weight: 600; font-size: .9rem; }
.button-primary { background: var(--ink); color: var(--paper); }
.button-primary:hover { background: #2b2e2b; }
.download-button { display: inline-flex; align-items: center; gap: 12px; transition: background .2s ease, color .2s ease, transform .2s ease; }
.download-button:active { transform: translateY(1px); }
.download-icon { display: inline-block; font-size: 1.15em; animation: download-nudge 1.6s ease-in-out 2; }
.download-button:is(:hover, :focus-visible) .download-icon { animation: download-nudge .65s ease-in-out infinite; }
@keyframes download-nudge {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(4px); }
  75% { transform: translateY(-1px); }
}
.text-link { display: inline-flex; gap: 8px; align-items: center; border-bottom: 1px solid var(--line); font-size: .9rem; font-weight: 600; }
.text-link:hover { border-color: var(--ink); }
.availability { display: flex; gap: 8px; align-items: center; margin: 22px 0 0; color: var(--muted); font: .7rem var(--font-mono); }
.availability span { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }

.product-stage { width: 100%; min-width: 0; overflow: hidden; border: 1px solid #2e302e; border-radius: 13px; background-color: var(--stage); background-image: radial-gradient(#2c2e2c 1px, transparent 1px); background-size: 22px 22px; color: var(--stage-text); box-shadow: 0 32px 90px rgba(23, 25, 23, .22); }
.stage-bar { height: 48px; padding: 0 16px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--stage-line); background: rgba(17, 18, 17, .92); }
.stage-bar > span { display: flex; gap: 6px; }
.stage-bar i { width: 7px; height: 7px; border: 1px solid #6d716b; border-radius: 50%; }
.stage-bar p { margin: 0; color: var(--stage-muted); font: .67rem var(--font-mono); }
.stage-bar button { justify-self: end; border: 0; background: none; color: var(--stage-muted); font: .65rem var(--font-mono); cursor: pointer; }
.stage-bar button:hover { color: var(--stage-text); }
.stage-bar button:focus-visible { outline-color: var(--stage-text); }
.stage-label { padding: 16px 18px 0; color: var(--stage-muted); font-size: .58rem; }
.flow { min-height: 292px; padding: 74px 26px 52px; display: grid; grid-template-columns: 1fr 36px 1fr 36px 1fr; align-items: center; }
.flow-node { min-width: 0; min-height: 132px; padding: 15px; display: flex; flex-direction: column; border: 1px solid var(--stage-line); border-radius: var(--radius); background: var(--stage-2); transition: border-color .25s, transform .25s, opacity .25s; }
.node-kind { color: var(--stage-muted); font-size: .57rem; }
.flow-node strong { margin-top: 12px; font-size: .88rem; font-weight: 600; }
.flow-node small { overflow: hidden; margin-top: 3px; color: var(--stage-muted); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.node-status { margin-top: auto; color: var(--stage-muted); font: .62rem var(--font-mono); }
.wire { height: 1px; background: var(--stage-line); transition: background .25s; }
.attempt { min-height: 90px; padding: 16px 18px; display: grid; grid-template-columns: 108px 1fr auto; gap: 18px; align-items: center; border-top: 1px solid var(--stage-line); background: rgba(25, 26, 25, .96); }
.attempt-index { color: var(--stage-muted); font-size: .6rem; }
.attempt p { margin: 0; color: var(--stage-text); font-size: .77rem; }
.attempt-event { color: var(--amber); font: .62rem var(--font-mono); }
[data-state="produce"] .agent-node, [data-state="retry"] .agent-node, [data-state="verify"] .gate-node { border-color: var(--amber); transform: translateY(-3px); }
[data-state="produce"] .first-wire, [data-state="verify"] .first-wire, [data-state="pass"] .wire { background: var(--amber); }
[data-state="fail"] .gate-node { border-color: var(--red); }
[data-state="fail"] .attempt-event { color: var(--red); }
[data-state="pass"] .gate-node, [data-state="pass"] .artifact-node { border-color: var(--green); }
[data-state="pass"] .attempt-event { color: var(--green); }

.first-principle { width: var(--page); margin: 0 auto; padding: 140px 0; display: grid; grid-template-columns: .5fr 1fr 1fr; gap: 46px; border-top: 1px solid var(--line); }
.section-index { color: var(--muted); }
.first-principle h2 { margin: 0; font-size: clamp(2.5rem, 5vw, 5rem); line-height: .98; letter-spacing: -.05em; }
.first-principle > p:last-child { max-width: 34ch; margin: 8px 0 0; color: var(--muted); font-size: 1.12rem; }

.loop-section, .evidence-section { width: var(--page); margin: 0 auto; padding: 138px 0; border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: .5fr 1fr 1fr; gap: 46px; }
.section-heading h2, .grammar-copy h2, .evidence-copy h2 { margin: 0; font-size: clamp(2.8rem, 5.8vw, 6.2rem); line-height: .93; letter-spacing: -.055em; }
.section-heading > p:last-child, .grammar-copy > p:last-child, .evidence-copy > p:last-child { max-width: 34ch; margin: 8px 0 0; color: var(--muted); font-size: 1.06rem; }
.loop-steps { margin: 88px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; border-top: 1px solid var(--ink); }
.loop-steps li { min-height: 260px; padding: 18px 24px 24px 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.loop-steps li + li { padding-left: 24px; }
.loop-steps li:last-child { border-right: 0; }
.loop-steps span { color: var(--muted); font: .68rem var(--font-mono); }
.loop-steps strong { margin-top: 54px; font-size: 1.45rem; }
.loop-steps p { margin: auto 0 0; color: var(--muted); font-size: .92rem; }

.grammar-section { width: var(--page); margin: 40px auto 120px; padding: clamp(40px, 6vw, 82px); display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(48px, 8vw, 120px); border-radius: 14px; background: var(--stage); color: var(--stage-text); }
.grammar-copy .section-index { margin-bottom: 78px; color: var(--stage-muted); }
.grammar-copy > p:last-child { margin-top: 30px; color: var(--stage-muted); }
.primitive-board { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--stage-line); border-radius: 10px; overflow: hidden; }
.primitive-board article { min-height: 148px; padding: 18px; display: flex; flex-direction: column; border-right: 1px solid var(--stage-line); border-bottom: 1px solid var(--stage-line); background: var(--stage-2); }
.primitive-board article:nth-child(2n) { border-right: 0; }
.primitive-board article:last-child { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
.primitive-board span, .primitive-board small { color: var(--stage-muted); font: .62rem var(--font-mono); }
.primitive-board strong { margin: auto 0 2px; font-size: 1rem; }

.evidence-section { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(56px, 10vw, 150px); align-items: center; }
.evidence-copy .section-index { margin-bottom: 74px; }
.evidence-copy > p:last-child { margin-top: 30px; }
.evidence-receipt { border: 1px solid var(--ink); background: rgba(255,255,255,.32); }
.evidence-receipt header { padding: 24px; display: flex; flex-direction: column; gap: 7px; border-bottom: 1px solid var(--line); }
.evidence-receipt header span, .evidence-receipt footer { color: var(--muted); font: .62rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.evidence-receipt header strong { font-size: 1.35rem; }
.evidence-receipt dl { margin: 0; }
.evidence-receipt dl div { padding: 16px 24px; display: grid; grid-template-columns: 132px 1fr; gap: 16px; border-bottom: 1px solid var(--line); }
.evidence-receipt dt { color: var(--muted); font-size: .78rem; }
.evidence-receipt dd { margin: 0; font: .76rem var(--font-mono); }
.receipt-status { display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 50%; background: #4f815f; }
.evidence-receipt footer { padding: 16px 24px; }

.final-cta { width: var(--page); margin: 40px auto; padding: clamp(80px, 11vw, 150px) 24px; display: flex; flex-direction: column; align-items: center; text-align: center; border: 1px solid var(--line); border-radius: 14px; }
.final-cta img { margin-bottom: 28px; }
.final-cta h2 { max-width: 950px; margin: 20px 0 0; font-size: clamp(3rem, 6.8vw, 7.3rem); line-height: .89; letter-spacing: -.065em; }
.final-cta > p:not(.section-index) { max-width: 48ch; margin: 30px 0; color: var(--muted); font-size: 1.06rem; }
.site-footer { width: var(--page); min-height: 112px; margin: 80px auto 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.site-footer p { margin: 0; }
.site-footer > a:last-child { justify-self: end; color: var(--ink); font-weight: 600; }

.download-page {
  --paper: #151610;
  --paper-2: #1b1c16;
  --ink: #f2f2eb;
  --muted: #a5a69e;
  --line: #34352e;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 8%, rgba(212, 194, 143, .07), transparent 28rem),
    var(--paper);
}
.download-page .brand img { filter: invert(1); }
.download-page :focus-visible { outline-color: var(--ink); }
.download-shell, .pricing-shell { width: var(--page); margin: 0 auto; padding-bottom: 32px; }
.download-hero { padding: clamp(56px, 6vw, 80px) 0 40px; }
.download-hero h1 { margin: 0; font-size: clamp(2.8rem, 5vw, 4.5rem); font-weight: 540; line-height: 1; letter-spacing: -.055em; text-wrap: balance; }
.download-hero > p:last-child { margin: 18px 0 0; color: var(--muted); font-size: 1.06rem; }
.distribution-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.channel-card { min-width: 0; padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .018); }
.channel-icon { display: block; width: 32px; height: 32px; margin-bottom: 26px; }
.channel-copy h2 { margin: 0; font-size: 1.35rem; font-weight: 540; letter-spacing: -.025em; }
.channel-copy p { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }
.channel-copy strong, .channel-copy a { display: inline-flex; margin-top: 24px; color: var(--ink); font-size: .83rem; font-weight: 520; }
.channel-copy strong { color: var(--muted); }
.channel-copy a { gap: 7px; border-bottom: 1px solid #62635b; transition: border-color .2s ease, transform .2s ease; }
.channel-copy a:hover { border-color: var(--ink); transform: translateY(-1px); }
.installer-options { display: flex; gap: 22px; }
.installer-options a { min-height: 44px; align-items: center; margin-top: 8px; }
.release-panel { margin-top: 40px; border-top: 1px solid var(--line); }
.release-panel > header { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.release-panel > header h2 { margin: 0; font-size: clamp(1.45rem, 2.3vw, 2.1rem); font-weight: 520; letter-spacing: -.035em; }
.release-panel > header span { color: var(--muted); font: .7rem var(--font-mono); text-align: right; }
.release-state { padding: 22px 0; display: flex; flex-direction: column; justify-content: center; gap: 5px; border-bottom: 1px solid var(--line); }
.release-state strong { font-size: 1rem; font-weight: 520; }
.release-state span { color: var(--muted); font-size: .86rem; }
.release-error strong { color: #9d3932; }
.downloads { border-bottom: 1px solid var(--line); }
.downloads-heading { min-height: 104px; display: grid; grid-template-columns: 1fr auto; align-content: center; align-items: baseline; column-gap: 24px; }
.downloads-heading h3 { margin: 0; font-size: 2rem; font-weight: 540; }
.downloads-heading p { margin: 3px 0 0; color: var(--muted); font-size: .78rem; }
.downloads-heading a { grid-column: 2; grid-row: 1 / span 2; font-size: .82rem; font-weight: 520; }
.platform-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.platform-grid article { min-height: 190px; padding: 22px; display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.platform-grid span { color: var(--muted); font-size: .78rem; }
.platform-grid a { width: fit-content; margin-top: auto; border-bottom: 1px solid #62635b; font-size: .8rem; font-weight: 520; }
.platform-grid code { margin-top: 12px; color: var(--muted); font-size: .56rem; overflow-wrap: anywhere; }
.shared-footer { margin-top: 32px; color: var(--muted); }
.pricing-preview { margin: 0 0 20px; color: var(--muted); font-size: .875rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.plan-card { min-width: 0; padding: 28px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plan-card h2 { margin: 0; font-size: 1.2rem; font-weight: 540; }
.plan-card .plan-price { margin: 34px 0 22px; color: var(--ink); font-size: clamp(2.8rem, 4vw, 4rem); font-weight: 540; line-height: 1.15; letter-spacing: -.025em; white-space: nowrap; }
.plan-price span, .plan-price small { font-size: .875rem; font-weight: 450; letter-spacing: 0; }
.plan-price small { color: var(--muted); }
.plan-card > p:last-child { margin: 0; color: var(--muted); font-size: .9rem; }
.pricing-note { max-width: 68ch; margin: 30px 0 22px; color: var(--muted); font-size: .9rem; }
.error-header { grid-template-columns: 1fr auto; }
.error-shell { width: var(--page); min-height: calc(100svh - 76px); margin: 0 auto; padding: clamp(88px, 12vw, 170px) 0; display: flex; flex-direction: column; justify-content: center; }
.error-shell > p:first-child { margin: 0 0 20px; color: var(--muted); font: .72rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.error-shell h1 { max-width: 72rem; margin: 0; font-size: clamp(3.8rem, 8.5vw, 8.5rem); font-weight: 540; line-height: .88; letter-spacing: -.065em; text-wrap: balance; }
.error-shell h1 + p { margin: 26px 0; color: var(--muted); font-size: 1rem; }
.error-shell .text-link { width: fit-content; }

@media (max-width: 960px) {
  .site-header { grid-template-columns: 1fr auto; }
  .home-header { height: auto; min-height: 76px; padding: 16px 0; row-gap: 14px; }
  .home-header nav { grid-row: 2; grid-column: 1 / -1; justify-self: start; }
  .home-header .header-cta { grid-column: 2; grid-row: 1; }
  .site-header nav { justify-self: end; }
  .hero { grid-template-columns: 1fr; padding-top: 68px; }
  .hero-copy { max-width: 700px; }
  .product-stage { max-width: 780px; }
  .first-principle, .section-heading, .evidence-section { grid-template-columns: 1fr; gap: 26px; }
  .loop-steps { grid-template-columns: 1fr 1fr; }
  .loop-steps li:nth-child(2) { border-right: 0; }
  .loop-steps li:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .grammar-section { grid-template-columns: 1fr; }
  .grammar-copy .section-index, .evidence-copy .section-index { margin-bottom: 34px; }
  .distribution-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channel-desktop { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  :root { --page: calc(100vw - 30px); }
  .site-header { height: 66px; }
  .brand img { width: 106px; }
  .header-cta { padding: 8px 10px; font-size: .73rem; }
  .home-header { grid-template-columns: 1fr auto; min-height: 104px; padding: 12px 0; row-gap: 10px; }
  .home-header nav { gap: 22px; font-size: .8rem; }
  .hero { padding: 56px 0 34px; gap: 34px; align-content: start; }
  .hero-copy { padding-bottom: 0; }
  .hero h1 { margin-top: 14px; font-size: clamp(2.75rem, 11.5vw, 4rem); }
  .wide-break { display: none; }
  .hero-actions .text-link { display: none; }
  .hero-lede { max-width: 34ch; margin-top: 20px; font-size: .94rem; }
  .hero-actions { margin-top: 20px; }
  .availability { margin-top: 12px; }
  .stage-bar { height: 40px; padding: 0 11px; }
  .stage-bar p { font-size: .58rem; }
  .stage-label { padding: 8px 11px 0; }
  .flow { min-height: 112px; padding: 16px 10px 12px; grid-template-columns: 1fr 10px 1fr 10px 1fr; gap: 0; }
  .flow-node { min-height: 84px; padding: 9px; }
  .flow-node strong { margin-top: 7px; font-size: .68rem; }
  .flow-node small { display: none; }
  .node-status { font-size: .5rem; }
  .wire { width: auto; height: 1px; margin: 0; }
  .attempt { min-height: 60px; padding: 9px 11px; grid-template-columns: 84px 1fr; gap: 8px; }
  .attempt p { font-size: .64rem; }
  .attempt-event { display: none; }
  .first-principle { padding: 96px 0; }
  .loop-section, .evidence-section { padding: 96px 0; }
  .loop-steps { margin-top: 54px; grid-template-columns: 1fr; }
  .loop-steps li, .loop-steps li + li { min-height: 210px; padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .loop-steps li:last-child { border-bottom: 0; }
  .grammar-section { width: 100%; margin-bottom: 50px; padding: 76px 15px; border-radius: 0; }
  .primitive-board { grid-template-columns: 1fr; }
  .primitive-board article, .primitive-board article:nth-child(2n) { min-height: 118px; border-right: 0; border-bottom: 1px solid var(--stage-line); }
  .primitive-board article:last-child { border-bottom: 0; }
  .evidence-receipt dl div { grid-template-columns: 1fr; gap: 5px; }
  .final-cta { width: 100%; margin-bottom: 0; border-width: 1px 0; border-radius: 0; }
  .site-footer { grid-template-columns: 1fr auto; }
  .site-footer p { display: none; }
  .download-hero { padding: 48px 0 32px; }
  .distribution-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .channel-desktop { grid-column: auto; }
  .channel-card { display: grid; grid-template-columns: 32px 1fr; gap: 20px; padding: 22px 18px; }
  .channel-icon { margin: 0; }
  .release-panel > header { align-items: flex-start; flex-direction: column; justify-content: center; gap: 4px; }
  .release-panel > header span { text-align: left; }
  .release-state span { max-width: 31ch; }
  .downloads-heading { grid-template-columns: 1fr; padding: 22px 0; }
  .downloads-heading a { grid-column: auto; grid-row: auto; margin-top: 14px; }
  .platform-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
