@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --paper: #f3ede2;
  --paper-2: #e4ddd0;
  --ink: #172225;
  --muted: #667174;
  --line: #b8b5ac;
  --red: #b4573e;
  --red-dark: #844330;
  --blue: #24484f;
  --acid: #c7d8d0;
  --white: #fcf9f2;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Manrope", Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; }
::selection { background: var(--acid); color: var(--ink); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 50; min-height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 3.2vw; border-bottom: 1px solid var(--ink); background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(12px); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font: 700 17px var(--mono); text-decoration: none; letter-spacing: -.03em; }
.wordmark svg { width: 31px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: square; }
.version { margin-left: 8px; color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: .04em; }
.site-header nav { display: flex; align-items: center; gap: 30px; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { color: var(--red); }
.nav-source { padding: 10px 14px; border: 1px solid var(--ink); background: var(--white); box-shadow: 3px 3px 0 var(--ink); }
.nav-source:hover { box-shadow: 1px 1px 0 var(--ink); transform: translate(2px, 2px); }

main, footer { max-width: 1440px; margin: 0 auto; border-left: 1px solid var(--ink); border-right: 1px solid var(--ink); }
.hero { min-height: 720px; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(480px, .98fr); border-bottom: 1px solid var(--ink); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 82px clamp(32px, 6vw, 92px); border-right: 1px solid var(--ink); }
.kicker, .section-number, .stage-label, .pipe-label { font: 600 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.kicker { display: flex; align-items: center; gap: 10px; color: var(--blue); }
.kicker span { display: inline-block; width: 8px; height: 8px; background: var(--red); }
h1 { max-width: 820px; margin: 20px 0 28px; font-size: clamp(52px, 6.2vw, 92px); line-height: .94; letter-spacing: -.07em; font-weight: 800; }
h1 strong { color: var(--red); font-weight: inherit; }
.lede { max-width: 650px; margin: 0; color: #3f4a4c; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 19px; border: 1px solid var(--ink); border-radius: 0; font: 600 12px var(--mono); letter-spacing: .03em; text-decoration: none; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease; }
.button:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.button-primary { background: var(--red); color: white; box-shadow: 4px 4px 0 var(--ink); }
.button-secondary { background: var(--white); box-shadow: 4px 4px 0 var(--ink); }
.hero-note { margin: 24px 0 0; color: var(--muted); font: 500 11px var(--mono); }

.compiler-card { --cycle-duration: 5.4s; align-self: center; margin: 48px clamp(24px, 4vw, 64px); border: 1px solid var(--ink); background: var(--white); box-shadow: 10px 10px 0 var(--blue); font-family: var(--mono); }
.card-bar { border-bottom: 1px solid var(--ink); background: var(--ink); color: white; font-size: 11px; }
.card-top { display: flex; justify-content: space-between; padding: 11px 16px; }
.example-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #52615d; }
.example-tabs button { position: relative; min-width: 0; overflow: hidden; padding: 9px 5px 11px; border: 0; border-right: 1px solid #52615d; background: transparent; color: #aebbb7; font: 500 9px var(--mono); cursor: pointer; }
.example-tabs button span { position: relative; z-index: 1; }
.example-tabs button i { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: var(--red); opacity: 0; transform: scaleX(0); transform-origin: left; }
.example-tabs button:last-child { border-right: 0; }
.example-tabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); }
.example-tabs button[aria-selected="true"] i { opacity: 1; animation: tab-cycle var(--cycle-duration) linear forwards; }
.compiler-card.is-paused .example-tabs button[aria-selected="true"] i { animation-play-state: paused; }
.compiler-card.is-switching .example-tabs button[aria-selected="true"] i { opacity: .45; animation: none; transform: scaleX(1); }
.example-tabs button:hover:not([aria-selected="true"]) { color: white; background: #26312e; }
.plan-content { transition: opacity .18s ease, transform .18s ease; }
.compiler-card.is-switching .plan-content { opacity: .28; transform: translateY(3px); }
.status-light { color: #d9e5d2; }
.status-light::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; background: #d9e5d2; border-radius: 50%; box-shadow: 0 0 0 3px rgb(217 229 210 / 14%); }
.compiler-card.is-switching .status-light::before { border: 1px solid #d9e5d2; border-top-color: transparent; background: transparent; box-shadow: none; animation: plan-spin .65s linear infinite; }
.code-stage, .ir-stage, .sql-stage { padding: 18px 20px; }
.code-stage { background: #f8f6ef; }
.sql-stage { background: var(--blue); color: #edf5fc; }
.stage-label { display: flex; justify-content: space-between; margin: 0 0 15px; color: var(--muted); font-size: 9px; }
.stage-label span { color: var(--red); }
pre { margin: 0; overflow-x: auto; font: 500 12px/1.75 var(--mono); }
.kw { color: var(--red-dark); font-weight: 600; }
.str { color: #3f7667; }
.fn { color: #75652f; }
.sql-stage .kw { color: #dca18d; }
.sql-stage .fn { color: #dce6d6; }
.compile-line { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.compile-line span { height: 1px; background: var(--line); }
.ir-stage { display: grid; gap: 9px; }
.ir-row { display: grid; grid-template-columns: 12px 1fr auto; gap: 8px; align-items: center; min-height: 29px; font-size: 10px; }
.ir-row i { width: 8px; height: 8px; border: 1px solid var(--blue); background: var(--white); }
.ir-row small { color: var(--muted); font-size: 9px; }
.ir-row.indent { margin-left: 14px; }.ir-row.indent-2 { margin-left: 28px; }.ir-row.indent-3 { margin-left: 42px; }
.ir-row.hot { margin-right: -20px; padding: 4px 20px 4px 0; background: #dfebe6; }
.ir-row.hot i { background: var(--red); border-color: var(--red); }

.section-rule { border-bottom: 1px solid var(--ink); }
.premise { display: grid; grid-template-columns: .9fr 1.1fr; gap: 8vw; padding: 100px clamp(32px, 7vw, 100px); }
.section-number { margin: 0 0 18px; color: var(--red-dark); }
h2 { margin: 0; font-size: clamp(38px, 4.7vw, 68px); line-height: 1.02; letter-spacing: -.055em; }
.prose { max-width: 660px; padding-top: 28px; font-size: 18px; line-height: 1.7; }
.prose p { margin: 0 0 22px; }

.existing-data { display: grid; grid-template-columns: .88fr 1.12fr; gap: 7vw; padding: 96px clamp(32px, 7vw, 100px); background: var(--white); }
.existing-copy { align-self: center; }
.existing-copy p:not(.section-number) { max-width: 590px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.source-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.source-chips span { padding: 7px 9px; border: 1px solid var(--line); background: var(--paper); color: var(--blue); font: 600 9px var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.byos-card { align-self: center; border: 1px solid var(--ink); background: var(--paper); box-shadow: 9px 9px 0 var(--blue); }
.byos-step { padding: 19px 21px; border-bottom: 1px solid var(--ink); }
.byos-step:last-child { border-bottom: 0; }
.byos-step > p { display: flex; justify-content: space-between; margin: 0 0 13px; color: var(--muted); font: 600 9px var(--mono); letter-spacing: .08em; }
.byos-step > p span { color: var(--red); }
.byos-step pre { font-size: 10px; line-height: 1.65; }
.mapping-step { background: #e4ece8; }
.query-step { background: var(--blue); color: #edf3f0; }
.query-step > p { color: #b8ccc6; }.query-step .kw { color: #dca18d; }.query-step .fn { color: #dce6d6; }.query-step .str { color: #c7d8d0; }
.query-step .cm { color: #8eaaa2; }
.byos-tabs { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 -21px 17px; border-top: 1px solid #66817a; border-bottom: 1px solid #66817a; }
.byos-tabs button { padding: 9px 5px; border: 0; border-right: 1px solid #66817a; background: transparent; color: #a9c0b9; font: 600 9px var(--mono); cursor: pointer; }
.byos-tabs button:last-child { border-right: 0; }.byos-tabs button[aria-selected="true"] { background: #e4ece8; color: var(--blue); }
.byos-query-panel > pre { min-height: 55px; }.pushdown-label { margin: 17px -21px 10px !important; padding: 9px 21px 0; border-top: 1px solid #66817a; color: #dca18d !important; }
.pushdown-sql { min-height: 94px; color: #d8e4df; }
.lowering-note { margin: 16px -21px -19px; padding: 9px 21px; border-top: 1px solid #66817a; color: #c8d8d3; font: 500 8px var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.lowering-note span { margin-right: 8px; color: #dca18d; }

.architecture, .coverage { padding: 96px clamp(24px, 5.5vw, 80px); }
.section-head { max-width: 930px; }
.section-head > p:last-child { max-width: 640px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.pipeline { display: grid; grid-template-columns: 1fr 100px 1.35fr 100px 1fr; align-items: center; gap: 14px; margin-top: 62px; padding: 30px; border: 1px solid var(--ink); background-color: var(--white); background-image: radial-gradient(#bab8b0 1px, transparent 1px); background-size: 17px 17px; box-shadow: 8px 8px 0 var(--ink); }
.pipe-column { display: grid; gap: 9px; }
.pipe-label { margin: 0 0 4px; color: var(--muted); font-size: 9px; }
.pipe-node { display: flex; flex-direction: column; gap: 5px; padding: 16px; border: 1px solid var(--ink); background: var(--white); }
.pipe-node b { font: 600 14px var(--mono); }.pipe-node small { color: var(--muted); font: 10px/1.45 var(--mono); }
.core-node { min-height: 112px; justify-content: center; background: var(--blue); color: white; border-color: var(--blue); }
.core-node small { color: #c7d8e7; }
.foundation-line { padding: 7px 10px; border: 1px solid var(--ink); background: var(--paper-2); text-align: center; color: var(--blue); font: 600 8px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.target-best { border: 2px solid var(--red); }.target-best::after { content: "DEFAULT"; justify-self: start; width: max-content; padding: 2px 5px; background: var(--acid); color: var(--ink); font: 600 8px var(--mono); }
.pipe-node.muted { border-style: dashed; }
.pipe-arrow { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--red); font: 20px var(--mono); }
.pipe-arrow span { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.island-strip { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--acid); border: 1px solid var(--ink); }
.island-strip span { padding: 8px 4px; border-right: 1px solid var(--ink); text-align: center; font: 500 9px var(--mono); }
.island-strip span:last-child { border: 0; }
.principles-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 70px; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.principles-grid article { min-height: 240px; padding: 25px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.principles-grid article > span { color: var(--red); font: 600 11px var(--mono); }
.principles-grid h3 { margin: 45px 0 12px; font-size: 19px; letter-spacing: -.03em; }
.principles-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

.coverage { background: var(--blue); color: white; }
.coverage .section-number { color: #d6a18f; }
.coverage-head { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.coverage-head > p { width: 430px; margin: 0 0 4px; color: #cad8d3 !important; }
.metrics { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 60px; border-top: 1px solid #78938b; border-left: 1px solid #78938b; }
.metric { min-height: 350px; display: flex; flex-direction: column; padding: 28px; border-right: 1px solid #78938b; border-bottom: 1px solid #78938b; }
.metric.featured { background: var(--acid); color: var(--ink); }
.metric-name { margin: 0; font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .09em; }
.metric-value { margin: auto 0 18px; font-size: clamp(64px, 7vw, 104px); font-weight: 700; line-height: .9; letter-spacing: -.08em; }
.metric-value small { font-size: .3em; letter-spacing: 0; }
.metric-detail { min-height: 67px; margin: 0; font-size: 13px; line-height: 1.6; }
.metric-source { margin: 18px 0 0; color: #bed0ca; font: 9px/1.55 var(--mono); }
.featured .metric-source { color: #515f4c; }
.benchmark-note { margin: 28px 0 0; border: 1px solid #78938b; }
.benchmark-note summary { padding: 15px 18px; cursor: pointer; font: 500 11px var(--mono); }
.benchmark-note p { max-width: 900px; margin: 0; padding: 4px 18px 18px; color: #d5e0dc; font-size: 13px; line-height: 1.65; }
.benchmark-note a { color: white; }
.matrix-wrap { margin-top: 38px; overflow-x: auto; border: 1px solid #78938b; }
.matrix { width: 100%; min-width: 820px; border-collapse: collapse; text-align: left; }
.matrix caption { padding: 14px 18px; border-bottom: 1px solid #78938b; text-align: left; color: #bed0ca; font: 9px var(--mono); }
.matrix th, .matrix td { padding: 15px 18px; border-right: 1px solid #54726a; border-bottom: 1px solid #54726a; vertical-align: top; font-size: 12px; line-height: 1.5; }
.matrix th:last-child, .matrix td:last-child { border-right: 0; }
.matrix thead th { color: #bed0ca; font: 500 9px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.matrix tbody th { width: 14%; color: #d7e2de; font: 500 10px var(--mono); text-transform: uppercase; }
.matrix tbody td:nth-child(2) { width: 26%; font-weight: 600; }.matrix tbody td:last-child { color: #cad8d3; }
.tag { display: inline-block; min-width: 76px; padding: 4px 7px; border: 1px solid currentColor; text-align: center; font: 600 8px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.tag.available { color: #d5e2ce; }.tag.partial { color: #dfad9c; }.tag.planned { color: #afc2bc; border-style: dashed; }

.duckdb { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; padding: 100px clamp(32px, 7vw, 100px); }
.duck-copy p:not(.section-number) { max-width: 650px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.dialect-card { align-self: center; padding: 25px; border: 1px solid var(--ink); background: var(--white); box-shadow: 8px 8px 0 var(--red); }
.dialect-card > div { display: grid; grid-template-columns: 95px 1fr 120px; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.dialect-card b { font: 600 11px var(--mono); }.dialect-card small { color: var(--muted); font: 9px var(--mono); }
.dialect-card .foundation-card-row { grid-template-columns: 95px 1fr; align-items: start; margin-bottom: 20px; padding: 17px 12px; border: 1px solid var(--blue); background: #e4ece8; }
.foundation-card-row p { margin: 0; color: var(--muted); font: 10px/1.7 var(--mono); }
.target-label { margin-top: 8px; }
.engine-status { justify-self: start; min-width: 64px; padding: 4px 7px; border: 1px solid currentColor; text-align: center; font: 600 8px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.engine-status.ready { color: var(--blue); background: var(--acid); }
.engine-status.partial { color: var(--red-dark); }
.engine-status.planned { color: var(--muted); border-style: dashed; }

.cta { padding: 110px 24px; text-align: center; background-color: var(--white); background-image: linear-gradient(var(--paper-2) 1px, transparent 1px), linear-gradient(90deg, var(--paper-2) 1px, transparent 1px); background-size: 30px 30px; }
.cta h2 { max-width: 900px; margin: 0 auto; }.cta > p:not(.section-number) { max-width: 650px; margin: 24px auto 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.centered { justify-content: center; }.clone-line { display: inline-block; margin-top: 24px; padding: 9px 12px; background: var(--paper); color: var(--muted); font: 11px var(--mono); }

footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 100px; padding: 24px 3.2vw; }
.footer-mark svg { width: 25px; }.footer-mark { font-size: 14px; }
footer p { color: var(--muted); font: 10px var(--mono); }
footer > div { display: flex; justify-content: flex-end; gap: 22px; font: 500 10px var(--mono); text-transform: uppercase; }
footer > div a:hover { color: var(--red); }

@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr); }.hero-copy { min-width: 0; min-height: 650px; border-right: 0; border-bottom: 1px solid var(--ink); }.compiler-card { min-width: 0; width: min(680px, calc(100% - 48px)); justify-self: center; overflow: hidden; }
  .pipeline { grid-template-columns: 1fr 60px 1.25fr 60px 1fr; padding: 20px; }.principles-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: 1fr; }.metric { min-height: 280px; }.metric-value { margin-top: 60px; }
  .existing-data, .duckdb { grid-template-columns: 1fr; }.byos-card, .dialect-card { width: 100%; max-width: 680px; }
}

@media (max-width: 720px) {
  .site-header { min-height: 60px; padding: 0 16px; }.version, .site-header nav a:not(.nav-source) { display: none; }.site-header nav { gap: 0; }.nav-source { padding: 8px 10px; }
  main, footer { border-left: 0; border-right: 0; }.hero-copy { min-height: 590px; padding: 62px 22px; }h1 { font-size: clamp(48px, 15vw, 68px); }.lede { font-size: 16px; }
  .compiler-card { width: auto; max-width: none; margin: 28px 24px; box-shadow: 6px 6px 0 var(--blue); }.ir-row small { display: none; }.ir-row { grid-template-columns: 12px 1fr; }
  .premise { grid-template-columns: 1fr; gap: 12px; padding: 74px 22px; }.prose { font-size: 16px; }
  .existing-data { padding: 74px 22px; }.byos-card { box-shadow: 6px 6px 0 var(--blue); }.byos-step { padding: 16px; }.lowering-note { margin: 16px -16px -16px; padding: 9px 16px; }
  .architecture, .coverage { padding: 74px 18px; }.pipeline { grid-template-columns: 1fr; gap: 10px; margin-top: 40px; }.pipe-arrow { flex-direction: row; justify-content: center; transform: rotate(90deg); min-height: 35px; }.pipe-arrow span { display: none; }
  .principles-grid { grid-template-columns: 1fr; margin-top: 50px; }.principles-grid article { min-height: 190px; }.principles-grid h3 { margin-top: 30px; }
  .coverage-head { display: block; }.coverage-head > p { width: auto; margin-top: 22px; }.metric { padding: 22px; }.metric-value { font-size: 76px; }
  .duckdb { padding: 74px 22px; }.dialect-card { padding: 18px; box-shadow: 6px 6px 0 var(--red); }.dialect-card > div { grid-template-columns: 76px 1fr; }.dialect-card small { grid-column: 2; }.dialect-card .foundation-card-row { grid-template-columns: 76px 1fr; }
  .hero-actions .button { width: 100%; }
  .cta { padding: 80px 18px; }.copy-button { width: 100%; }.clone-line { max-width: 100%; overflow-x: auto; }
  footer { grid-template-columns: 1fr auto; }.footer-mark { display: none; }footer p { margin: 0; }footer > div { gap: 14px; }
}

@media (prefers-reduced-motion: no-preference) {
  .compiler-card { animation: settle .6s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes settle { from { opacity: 0; transform: translateY(14px); } }
  @keyframes tab-cycle { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes plan-spin { to { transform: rotate(360deg); } }
}

@media (prefers-reduced-motion: reduce) {
  .example-tabs button[aria-selected="true"] i { animation: none; transform: scaleX(1); }
  .plan-content { transition: none; }
}
