:root {
  color-scheme: light;
  --page: #f6f7f2;
  --paper: #fff;
  --ink: #172019;
  --ink-muted: #4b584e;
  --line: #d7dfd1;
  --green: #2f673a;
  --lime: #cdf875;
  --terminal: #121b16;
  --code: #e8eee8;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --sans: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--page);
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
code { font-family: var(--mono); font-size: .9em; }
p { line-height: 1.65; }
:focus-visible { outline: 3px solid #477b38; outline-offset: 4px; }
.codebox :focus-visible { outline-color: var(--lime); }
.container { width: min(100% - 5rem, 74rem); margin-inline: auto; }
.section { padding-block: 5.2rem; }
.skip-link { position: absolute; z-index: 1; top: .5rem; left: .5rem; padding: .75rem; background: var(--paper); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.topbar { border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: .75rem; min-height: 4.65rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font: 700 1rem var(--mono); letter-spacing: -.05em; text-decoration: none; white-space: nowrap; }
.brand-mark { display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: .48rem; background: var(--terminal); color: var(--lime); font-size: .88rem; }
.topbar nav { display: flex; gap: clamp(.85rem, 3vw, 2.4rem); align-items: center; }
.topbar nav a, .source-link { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .92rem; font-weight: 650; text-decoration: none; }
.topbar nav a { color: var(--ink-muted); }
.topbar nav a:hover, .text-link:hover { color: var(--green); text-decoration: underline; text-underline-offset: .25em; }
.source-link { padding-inline: 1rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--paper); }
.source-link:hover { border-color: var(--green); }

.hero { display: grid; grid-template-columns: minmax(0, .98fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(4rem, 7.5vw, 7.4rem) clamp(3.75rem, 7vw, 6.4rem); }
.eyebrow { display: flex; align-items: center; gap: .6rem; margin: 0 0 1.2rem; color: var(--green); font: 700 .85rem/1.35 var(--mono); letter-spacing: .07em; }
.eyebrow-mark { width: .56rem; height: .56rem; background: #4c813d; transform: rotate(45deg); }
h1, h2, h3 { margin: 0; }
h1 { font-size: clamp(3.45rem, 6.15vw, 6.35rem); line-height: .98; letter-spacing: -.068em; word-spacing: .045em; font-weight: 780; }
h1 em { font-style: normal; color: var(--green); }
h2 { max-width: 17ch; font-size: clamp(2.4rem, 4.3vw, 4.25rem); line-height: 1.02; letter-spacing: -.052em; word-spacing: .035em; font-weight: 760; }
h3 { font-size: 1.33rem; line-height: 1.2; letter-spacing: -.03em; }
.lede { max-width: 31rem; margin: 1.7rem 0 1.55rem; font-size: clamp(1.05rem, 1.55vw, 1.24rem); color: var(--ink-muted); }
.lede code, .section-intro code, .example-copy p code, .security-grid code { color: #295834; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: .75rem 1.08rem; min-height: 3rem; border: 1px solid transparent; border-radius: .52rem; font-weight: 700; font-size: .94rem; text-decoration: none; }
.primary { background: var(--lime); border-color: #b7de65; }
.primary:hover { background: #bce85f; }
.secondary { background: var(--paper); border-color: var(--line); }
.secondary:hover { border-color: var(--green); }
.requirements { display: flex; flex-wrap: wrap; gap: .42rem .65rem; margin: 1.3rem 0 0; color: var(--ink-muted); font: .83rem/1.4 var(--mono); }

.hero-demo { margin: 0; min-width: 0; }
.terminal { position: relative; overflow: hidden; min-height: 22.75rem; border: 1px solid #39483e; border-radius: .95rem; background: radial-gradient(ellipse at 98% 0%, #23382b, transparent 62%), var(--terminal); color: var(--code); box-shadow: 0 22px 50px #19281e23, 0 0 0 .45rem #eaf0e4; }
.terminal-bar { position: relative; padding: .85rem 3.8rem; border-bottom: 1px solid #39483e; color: #b5c6b8; font: .8rem/1.4 var(--mono); text-align: center; }
.window-dots { position: absolute; left: 1rem; top: 50%; display: flex; gap: .34rem; transform: translateY(-50%); }
.window-dots i { display: block; width: .48rem; height: .48rem; border-radius: 50%; background: #6a8071; }
.window-dots i:first-child { background: #95bb79; }
.terminal-content { padding: clamp(1rem, 3vw, 2rem); font: .9rem/1.55 var(--mono); }
.terminal-content p { margin: 0; line-height: inherit; }
.terminal-line { display: grid; grid-template-columns: 3.6em minmax(0, 1fr); gap: .48rem; }
.accent { color: var(--lime); }
.muted { color: #a4baa8; }
.terminal-call { display: grid; gap: .3rem; margin-block: 1.05rem; padding: .65rem .85rem; border: 1px solid #445d4b; border-left: 2px solid #a7d66c; border-radius: .35rem; background: #22312a; }
.terminal-label { color: #afc1b1; font-size: .8rem; }
.terminal-call code { font-size: 1em; }
.prompt { font-size: .82rem; }
.selected { display: inline-block; margin-left: .3em; border-radius: .2rem; padding-inline: .35em; background: var(--lime); color: var(--terminal); font-weight: 700; }
.terminal-results { display: grid; gap: .2rem; font-size: .82rem; }
.terminal-content .terminal-answer { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid #39483e; }
figcaption { margin-top: .95rem; color: var(--ink-muted); font-size: .83rem; line-height: 1.45; }

.security { border-block: 1px solid var(--line); background: #eaf0e4; }
.section-intro { max-width: 41rem; margin: .95rem 0 0; color: var(--ink-muted); font-size: 1.08rem; }
.security-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; margin-top: 2rem; }
.security-grid article { padding: 1.35rem; border: 1px solid #d3ddce; border-radius: .72rem; background: var(--paper); }
.security-grid article p { margin: .55rem 0 0; color: var(--ink-muted); }
.card-symbol { display: grid; width: 2.65rem; height: 2.65rem; place-items: center; margin-bottom: 1.12rem; border: 1px solid #d6e5bb; border-radius: .48rem; background: #edf5db; color: #2e5e30; font: 700 .88rem var(--mono); }
.freeze { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); align-items: start; gap: 1.5rem; margin-top: .85rem; padding: 1.35rem; border: 1px solid #d3ddce; border-radius: .72rem; background: var(--paper); }
.freeze p { margin: .55rem 0 0; color: var(--ink-muted); }
.freeze p code { color: #295834; overflow-wrap: anywhere; }
.freeze pre { white-space: pre-wrap; overflow-wrap: anywhere; }
#freeze-command { font-size: .79rem; }
.scope-note { width: fit-content; margin: 1.1rem 0 0; border-left: 2px solid #749350; padding-left: .8rem; color: var(--ink-muted); font-size: .93rem; }
.scope-note strong { color: var(--ink); }

.examples h2 { max-width: 21ch; text-wrap: balance; }
.examples-demo { margin-top: 2rem; overflow: hidden; border: 1px solid var(--line); border-radius: .8rem; background: var(--paper); }
.example-selector { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); background: #f7f9f4; }
.example-selector button { position: relative; display: grid; gap: .28rem; padding: .9rem 1.2rem; border: 0; background: transparent; color: var(--ink-muted); font-weight: 700; text-align: left; }
.example-selector button + button { border-left: 1px solid var(--line); }
.example-selector button:hover { background: #eaf0e4; }
.example-selector button[aria-selected="true"] { background: #ecf5de; color: var(--ink); }
.example-selector button[aria-selected="true"]::after { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: #67964a; content: ''; }
.example-selector button:focus-visible { z-index: 1; outline-offset: -5px; }
.example-selector small { font: .8rem var(--mono); }
.example-panel { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); align-items: center; gap: 1.75rem; padding: 1.5rem; }
.example-panel + .example-panel { border-top: 1px solid var(--line); }
[data-examples][data-enhanced] .example-panel { border-top: 0; }
.example-copy p { margin: .6rem 0 1.05rem; color: var(--ink-muted); }
.example-copy blockquote { margin: 0; padding: .7rem .85rem; border-left: 2px solid #79a75b; border-radius: 0 .35rem .35rem 0; background: #f0f5e9; color: #304535; line-height: 1.55; }
.example-copy .example-finding { margin: .9rem 0 0; }
.example-finding strong { color: var(--ink); }
.codebox { min-width: 0; overflow: hidden; border: 1px solid #394a3e; border-radius: .62rem; background: var(--terminal); color: var(--code); }
.codebar { display: flex; justify-content: space-between; align-items: center; gap: .6rem; min-height: 2.65rem; padding: .32rem .8rem; border-bottom: 1px solid #394a3e; background: #202e25; color: #c8d6ca; font: .82rem var(--mono); }
.codebar button { padding: .34rem .58rem; border: 1px solid #647c6b; border-radius: .35rem; background: transparent; color: #edf5ed; font-size: .8rem; }
.codebar button:hover { color: var(--lime); border-color: var(--lime); }
pre { margin: 0; overflow-x: auto; padding: 1rem; font: .96rem/1.55 var(--mono); tab-size: 4; }
.code-keyword { color: #afc8b3; }
.code-target { color: var(--lime); }

.quickstart { border-block: 1px solid var(--line); background: #eaf0e4; }
.start-layout { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1fr); align-items: start; gap: clamp(1.75rem, 5vw, 4.5rem); }
.start-layout h2 { max-width: 12ch; }
.text-link { font-weight: 650; text-underline-offset: .23em; }
.start-layout .text-link { display: inline-block; margin-top: 1.2rem; }
.setup details { margin-top: .7rem; border: 1px solid #d3ddce; border-radius: .62rem; background: var(--paper); }
.setup summary { padding: .85rem; cursor: pointer; font-weight: 650; line-height: 1.45; }
.setup details p { margin: 0 .85rem .75rem; color: var(--ink-muted); }
.setup details .codebox { margin: 0 .85rem .85rem; }
.footer { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; padding-block: 1.5rem; }
.footer .brand { margin-right: auto; }
.footer .text-link { font-size: .9rem; }

@media (max-width: 61rem) {
  .container { width: calc(100% - 3.5rem); }
  .hero { gap: 2rem; }
  .section { padding-block: 4rem; }
}
@media (max-width: 48rem) {
  .hero, .start-layout { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 2.5rem; }
  .hero-demo { max-width: 38rem; }
  .terminal { min-height: 0; }
  .terminal-content { padding: 1.2rem; }
  .security-grid { grid-template-columns: minmax(0, 1fr); }
  .example-panel, .freeze { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
}
@media (max-width: 34rem) {
  .container { width: calc(100% - 2rem); }
  .topbar-inner { display: grid; grid-template-columns: 1fr auto; padding-block: .6rem .25rem; gap: .15rem .5rem; }
  .topbar nav { grid-row: 2; grid-column: 1 / -1; }
  .topbar nav a { min-height: 2.45rem; }
  h1 { font-size: clamp(2.6rem, 12vw, 4.15rem); }
  .hero { padding-block: 3rem; }
  .section { padding-block: 3.15rem; }
  .terminal-content { padding: 1rem; }
  .terminal-line { grid-template-columns: 2.9em minmax(0, 1fr); }
  .example-selector { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .example-selector button { padding: .75rem .8rem; font-size: .88rem; }
  .example-selector button:nth-child(odd) { border-left: 0; }
  .example-selector button:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .example-selector small { display: none; }
  .example-panel { padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }
