:root {
  color-scheme: dark;
  --ground: #050805;
  --ground-soft: #090a0f;
  --surface: #12151f;
  --surface-2: #1b1f2b;
  --surface-3: #26272b;
  --ink: #f5f7ef;
  --muted: #a8afa2;
  --quiet: #727a70;
  --line: rgba(255,255,255,.08);
  --lime: #c6f432;
  --lime-ink: #182000;
  --emerald: #10b981;
  --amber: #f59e0b;
  --danger: #f87171;
  --margin: clamp(1.25rem, 2.2vw, 2rem);
  --gutter: clamp(.85rem, 1.5vw, 1.5rem);
  --sans: Inter, Geist, "Segoe UI", Arial, sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", Consolas, monospace; /* taste-skill-ignore: literal code only */
  font-family: var(--sans);
  font-synthesis: none;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
html { background: var(--ground); }
body { margin: 0; overflow-x: clip; background: var(--ground); color: var(--ink); font-size: 16px; line-height: 1.55; }
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--lime); color: var(--lime-ink); }

.frame { width: 100%; padding-inline: var(--margin); }
.skip-link { position: fixed; z-index: 200; top: 8px; left: 8px; transform: translateY(-140%); padding: 10px 14px; background: var(--lime); color: var(--lime-ink); font-weight: 700; text-decoration: none; }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }

.site-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--gutter); min-height: 76px; background: var(--ground); }
.brand { justify-self: start; font-weight: 750; letter-spacing: -.03em; text-decoration: none; }
.brand span { color: var(--muted); font-weight: 500; }
.site-header nav { display: flex; gap: 26px; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--ink); }
.header-action { justify-self: end; padding: 9px 0; color: var(--lime); font-weight: 700; text-decoration: none; border-bottom: 2px solid currentColor; }

.hero { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); min-height: calc(100svh - 76px); padding-top: clamp(56px, 10vh, 118px); padding-bottom: clamp(56px, 8vh, 96px); }
.hero-copy { position: relative; z-index: 2; grid-column: 1 / span 6; align-self: start; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 10ch; margin-bottom: 30px; font-size: clamp(3.25rem, 7vw, 6.8rem); font-weight: 650; line-height: .9; letter-spacing: -.065em; text-wrap: balance; }
.hero-copy > p { max-width: 44ch; margin-bottom: 34px; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.55; text-wrap: pretty; }
.primary-action, .secondary-action { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 0 20px; background: var(--lime); color: var(--lime-ink); font-weight: 760; text-decoration: none; clip-path: polygon(0 11px, 11px 0, 100% 0, 100% 100%, 0 100%); }
.primary-action:hover, .secondary-action:hover { background: #d5ff4d; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 26px; margin: 46px 0 0; }
.hero-facts div { min-width: 112px; }
.hero-facts dt { margin-bottom: 4px; color: var(--quiet); font-size: .82rem; }
.hero-facts dd { margin: 0; color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }

.hero-stage { --hero-shape: polygon(0 17%, 17% 0, 100% 0, 100% 100%, 0 100%); position: absolute; z-index: 1; right: 0; bottom: 0; width: min(59vw, 890px); height: min(62vh, 610px); min-height: 430px; overflow: clip; padding: clamp(28px, 4vw, 56px) 0 0 clamp(28px, 4vw, 56px); background: var(--lime); clip-path: var(--hero-shape); filter: drop-shadow(0 0 34px rgba(198,244,50,.09)); } /* taste-skill-ignore: brief requests one discreet lime glow */
.hero-interface { width: 720px; max-width: none; min-height: 430px; overflow: hidden; background: #0b0e0d; color: var(--ink); border: 1px solid rgba(255,255,255,.12); } /* taste-skill-ignore: real UI fragment */
.interface-title { display: flex; justify-content: space-between; padding: 15px 18px; background: #151916; border-bottom: 1px solid var(--line); font-size: .83rem; } /* taste-skill-ignore: real UI toolbar */
.interface-title strong { color: var(--emerald); font-weight: 600; }
.interface-flow { display: flex; align-items: center; gap: 16px; padding: 30px 22px; font: 700 .88rem var(--mono); white-space: nowrap; }
.interface-flow span { padding: 10px 12px; background: #20251e; }
.interface-flow i { color: var(--lime); font-style: normal; }
.hero-interface pre { min-height: 180px; border-block: 1px solid var(--line); } /* taste-skill-ignore: code interface boundary */
.code-ok { color: var(--emerald); }
.code-dim { color: var(--quiet); }
.interface-output { display: flex; gap: 10px; padding: 18px 22px; }
.interface-output span { padding: 8px 11px; background: #20251e; color: #d8dfd3; font: .78rem var(--mono); }

.section { padding-block: clamp(86px, 12vw, 170px); }
.section-intro, .extraction-heading { display: grid; grid-template-columns: 7fr 5fr; gap: var(--gutter); align-items: end; margin-bottom: 48px; }
h2 { max-width: 12ch; margin-bottom: 0; font-size: clamp(2.6rem, 5vw, 5.3rem); font-weight: 620; line-height: .95; letter-spacing: -.055em; text-wrap: balance; }
.section-intro > p, .extraction-heading > p { max-width: 45ch; margin: 0; color: var(--muted); font-size: 1.05rem; text-wrap: pretty; }
.section-intro code, .limits code { font-family: var(--mono); color: var(--ink); }

.installation { background: var(--ground-soft); }
.command-stack { margin-left: 16.666%; }
.command-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px; min-height: 78px; padding: 12px 14px 12px 22px; background: var(--surface); border-bottom: 1px solid var(--line); } /* taste-skill-ignore: terminal command list */
.command-row:first-child { clip-path: polygon(0 16px, 16px 0, 100% 0, 100% 100%, 0 100%); padding-top: 22px; }
.command-row:last-child { border-bottom: 0; }
.command-row code { overflow-x: auto; color: var(--ink); font: .92rem var(--mono); white-space: nowrap; }
.copy-button { min-height: 44px; cursor: pointer; padding: 0 15px; border: 1px solid rgba(255,255,255,.14); background: transparent; color: var(--muted); font-size: .84rem; font-weight: 650; } /* taste-skill-ignore: accessible control boundary required by brief */
.copy-button:hover { background: var(--surface-3); color: var(--ink); }
.copy-button.is-copied { background: var(--emerald); color: #031d13; border-color: var(--emerald); }
.copy-button.is-error { background: var(--amber); color: #291900; border-color: var(--amber); }
.version-note { max-width: 66ch; margin: 24px 0 0 16.666%; color: var(--muted); }
.version-note strong { color: var(--ink); }

.pipeline { padding-bottom: 0; }
.pipeline > h2 { margin-bottom: 52px; }
.pipeline-fields { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pipeline-field { min-height: 72svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; color: var(--ink); }
.pipeline-field:nth-child(1) { background: #101310; }
.pipeline-field:nth-child(2) { background: #171b16; }
.pipeline-field:nth-child(3) { background: #20251d; }
.pipeline-field:nth-child(4) { background: #2a3024; }
.pipeline-field:nth-child(5) { background: var(--lime); color: var(--lime-ink); }
.pipeline-field h3 { margin-bottom: 8px; font-size: clamp(1.4rem, 2vw, 2.15rem); line-height: 1; letter-spacing: -.035em; }
.pipeline-field p { min-height: 5em; margin-bottom: 0; color: inherit; opacity: .72; }
.field-preview { min-height: 230px; display: flex; flex-direction: column; justify-content: center; gap: 12px; margin-bottom: auto; padding: 20px; background: #080a09; color: #879086; font: .75rem/1.5 var(--mono); border: 1px solid rgba(255,255,255,.1); } /* taste-skill-ignore: real UI fragment */
.field-preview strong { color: var(--ink); font-weight: 600; }
.browser-preview { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr auto; gap: 8px; }
.browser-preview span { min-height: 112px; background: #20251e; }
.browser-preview strong { grid-column: 1 / -1; }
.schema-preview span { color: #d6e1cd; }
.field-json .field-preview { background: #172000; color: #b9dc43; border-color: rgba(0,0,0,.25); }
.field-json .field-preview strong { color: var(--lime-ink); }

.comparison-stage { display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: center; padding: clamp(24px, 4vw, 54px); background: var(--surface); clip-path: polygon(0 24px, 24px 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%); }
.comparison-stage > div:not(.comparison-cut) { min-height: 230px; display: flex; flex-direction: column; justify-content: center; padding: 26px; background: var(--ground-soft); }
.comparison-stage span { color: var(--quiet); }
.comparison-stage strong { margin: 10px 0 20px; font: clamp(1.25rem, 2.5vw, 2.2rem) var(--mono); }
.comparison-stage p { margin: 0; color: var(--muted); }
.comparison-cut { color: var(--lime); font-size: 2.2rem; }
.comparison-stage output { grid-column: 1 / -1; justify-self: center; color: var(--muted); }

.code-section { background: var(--ground-soft); }
.code-block { overflow: hidden; background: var(--surface); border: 1px solid var(--line); clip-path: polygon(0 18px, 18px 0, 100% 0, 100% 100%, 0 100%); } /* taste-skill-ignore: code window required by brief */
.code-block header { display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px 10px 22px; background: var(--surface-2); border-bottom: 1px solid var(--line); } /* taste-skill-ignore: real code toolbar */
.code-block header > div { min-width: 0; display: flex; align-items: baseline; gap: 12px; }
.code-block header strong { font-size: .95rem; }
.code-block header span { overflow: hidden; color: var(--quiet); font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
pre { margin: 0; overflow: auto; padding: clamp(20px, 3vw, 38px); background: #090c0b; color: #d7ded3; font: clamp(.76rem, 1.2vw, .91rem)/1.72 var(--mono); tab-size: 4; scrollbar-color: var(--surface-3) transparent; }
pre code { white-space: pre; }

.extraction { background: var(--surface); }
.extraction-switcher { display: grid; grid-template-columns: 3fr 9fr; gap: var(--gutter); align-items: start; }
.mode-list { display: flex; flex-direction: column; position: sticky; top: 28px; }
.mode-list button { min-height: 66px; cursor: pointer; padding: 0; border: 0; background: transparent; color: var(--muted); text-align: left; font-size: clamp(1.2rem, 2vw, 1.7rem); }
.mode-list button.is-active { color: var(--lime); }
.mode-list button.is-active::before { content: "{"; display: inline-block; margin-right: 12px; color: var(--lime); }
.mode-panel { min-width: 0; }
.mode-copy { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); margin-bottom: 28px; }
.mode-copy h3 { max-width: 14ch; margin-bottom: 0; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1; letter-spacing: -.045em; }
.mode-copy p { margin: 0; color: var(--muted); }

.output-section { background: var(--ground-soft); }
.output-code { max-width: 900px; margin-left: auto; }

.limits { background: var(--lime); color: var(--lime-ink); }
.limits-grid { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gutter); align-items: start; }
.limits-title { position: sticky; top: 36px; }
.limits-title p { max-width: 34ch; margin-top: 26px; }
.limit-list article { padding: 28px 0; }
.limit-list article:first-child { padding-top: 0; }
.limit-list h3 { margin-bottom: 8px; font-size: clamp(1.7rem, 3vw, 3rem); letter-spacing: -.04em; }
.limit-list p { max-width: 58ch; margin-bottom: 0; font-size: 1.05rem; }
.limits code { color: inherit; }

.source-links { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.source-links a { min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; padding: 28px; background: var(--surface); text-decoration: none; clip-path: polygon(0 20px, 20px 0, 100% 0, 100% 100%, 0 100%); }
.source-links a:hover { background: var(--surface-3); }
.source-links strong { font-size: clamp(1.5rem, 3vw, 2.8rem); line-height: 1; letter-spacing: -.04em; }
.source-links span { color: var(--muted); }

.direct-cta { display: grid; grid-template-columns: 1fr auto; gap: var(--gutter); align-items: center; min-height: 360px; margin-bottom: var(--gutter); background: var(--lime); color: var(--lime-ink); clip-path: polygon(0 42px, 42px 0, 100% 0, 100% 100%, 0 100%); }
.direct-cta > div { padding-block: 52px; }
.direct-cta h2 { max-width: 15ch; font-size: clamp(2.6rem, 5vw, 5rem); }
.direct-cta p { max-width: 58ch; margin: 24px 0 0; font-size: 1.05rem; }
.secondary-action { margin-right: 28px; background: var(--ground); color: var(--ink); }
.secondary-action:hover { background: var(--surface); }

.site-footer { display: flex; justify-content: space-between; gap: 20px; padding-block: 28px; color: var(--quiet); }
.site-footer a { color: var(--muted); }
.toast { position: fixed; z-index: 150; right: 18px; bottom: 18px; max-width: calc(100% - 36px); transform: translateY(18px); opacity: 0; pointer-events: none; padding: 12px 16px; background: #123426; color: #a7f3d0; transition: opacity 180ms ease, transform 180ms ease; }
.toast.is-visible { transform: none; opacity: 1; }
.toast.is-error { background: #3b2a0b; color: #fde68a; }

@media (max-width: 70rem) {
  .hero-copy { grid-column: 1 / span 7; }
  .hero-stage { width: 54vw; height: 52vh; min-height: 390px; }
  .pipeline-fields { grid-template-columns: 1fr 1fr; }
  .pipeline-field { min-height: 620px; }
  .pipeline-field:last-child { grid-column: 1 / -1; min-height: 520px; }
}

@media (max-width: 52rem) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { display: block; min-height: auto; padding-bottom: 0; }
  .hero-copy { padding-bottom: 64px; }
  h1 { max-width: 8ch; font-size: clamp(3.5rem, 13vw, 6rem); }
  .hero-stage { position: relative; right: auto; bottom: auto; width: calc(100% + var(--margin) * 2); height: 520px; min-height: 0; margin-left: calc(var(--margin) * -1); padding-left: var(--margin); }
  .section-intro, .extraction-heading { grid-template-columns: 1fr; align-items: start; }
  .command-stack, .version-note { margin-left: 0; }
  .comparison-stage { grid-template-columns: 1fr; }
  .comparison-cut { transform: rotate(90deg); justify-self: center; }
  .comparison-stage output { grid-column: 1; }
  .extraction-switcher { grid-template-columns: 1fr; }
  .mode-list { position: static; flex-direction: row; gap: 22px; overflow-x: auto; }
  .mode-list button { flex: 0 0 auto; }
  .mode-copy { grid-template-columns: 1fr; }
  .limits-grid { grid-template-columns: 1fr; }
  .limits-title { position: static; margin-bottom: 52px; }
}

@media (max-width: 36rem) {
  :root { --margin: 1.125rem; }
  .site-header { min-height: 68px; }
  .brand span { display: none; }
  .header-action { font-size: .9rem; }
  .hero { padding-top: 50px; }
  h1 { max-width: 9ch; font-size: clamp(3rem, 16vw, 4.2rem); }
  .hero-copy > p { font-size: 1rem; }
  .hero-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .hero-stage { --hero-shape: polygon(0 72px, 72px 0, 100% 0, 100% 100%, 0 100%); height: 450px; padding-top: 48px; }
  .hero-interface { width: 650px; }
  .interface-flow { gap: 10px; padding-inline: 16px; }
  .section { padding-block: 88px; }
  h2 { font-size: clamp(2.5rem, 13vw, 3.8rem); }
  .section-intro, .extraction-heading { margin-bottom: 34px; }
  .command-row { grid-template-columns: 1fr; align-items: start; gap: 10px; padding: 18px; }
  .copy-button { justify-self: start; }
  .pipeline-fields { grid-template-columns: 1fr; }
  .pipeline-field, .pipeline-field:last-child { grid-column: auto; min-height: 64svh; padding: 20px; }
  .field-preview { min-height: 260px; }
  .comparison-stage { padding: 18px; clip-path: polygon(0 18px, 18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%); }
  .comparison-stage > div:not(.comparison-cut) { padding: 20px; }
  .code-block header { align-items: flex-start; }
  .code-block header > div { flex-direction: column; gap: 0; }
  .code-block header span { max-width: 150px; }
  pre { font-size: .72rem; }
  .mode-list { margin-inline: calc(var(--margin) * -1); padding-inline: var(--margin); }
  .source-links { grid-template-columns: 1fr; }
  .source-links a { min-height: 180px; }
  .direct-cta { grid-template-columns: 1fr; padding-bottom: 28px; clip-path: polygon(0 30px, 30px 0, 100% 0, 100% 100%, 0 100%); }
  .direct-cta > div { padding-block: 46px 0; }
  .secondary-action { justify-self: start; margin-right: 0; }
  .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}
