/* Neutral surfaces, Catppuccin Mocha light, and a readable product-first layout. */
:root {
  color-scheme: dark;
  --background: #11111b;
  --surface: #181821;
  --surface-hover: #232230;
  --border: #32313f;
  --text: #e8e6ee;
  --muted: #b3b0c2;
  --subtle: #9895ac;
  --accent: #cba6f7;
  --accent-bright: #e5cfff;
  --green: #a6e3a1;
  --cyan: #89dceb;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font: 100% var(--sans);
  background: var(--background);
  color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 1.125rem; line-height: 1.65; overflow-wrap: anywhere; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
[hidden] { display: none !important; }
img, svg { display: block; }
h1, h2, h3, p, figure, pre { margin: 0; }
::selection { background: #514160; color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 3px; }
section[id] { scroll-margin-top: 40px; }
.container { width: min(1320px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 20; padding: 14px 20px; background: var(--accent); color: var(--background); transform: translateY(-160%); opacity: 0; }
.skip-link:focus { transform: translateY(0); opacity: 1; }
.accent-text { color: var(--accent); }
.muted-heading { color: var(--subtle); }
.fine-print { font-size: .9375rem; color: var(--subtle); line-height: 1.65; }
code { font-family: var(--mono); font-size: .88em; }
p code { display: inline-block; max-width: 100%; color: var(--accent-bright); overflow-wrap: anywhere; }

/* Navigation */
.site-header { position: relative; z-index: 3; border-bottom: 1px solid var(--border); background: #11111bf2; }
.nav-layout { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.wordmark { display: inline-flex; align-items: center; font-family: var(--mono); font-size: 1.5rem; font-weight: 700; letter-spacing: -1px; white-space: nowrap; }
.brand-mark { margin-right: 10px; color: var(--accent); }
.wordmark-cursor { color: var(--accent); }
.primary-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 34px; }
.primary-nav a { position: relative; display: flex; align-items: center; gap: 6px; min-height: 44px; color: var(--muted); font-size: 1.0625rem; }
.primary-nav a[aria-current="page"] { color: var(--text); }
.primary-nav a[aria-current="page"]::after { content: ""; position: absolute; bottom: 0; left: 0; width: 16px; height: 2px; background: var(--accent); }
.external-arrow { font-size: 1rem; color: var(--subtle); }
.source-link { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 14px; font-size: 1rem; border: 1px solid var(--border); border-radius: 6px; }

/* A quiet field of light around the actual HTML terminal. */
.hero { position: relative; isolation: isolate; overflow: clip; padding-top: 88px; background: radial-gradient(ellipse 50% 30% at 50% 15%, #71518b25, transparent 85%); }
#hero-field { position: absolute; top: 0; left: 0; width: 100%; height: 780px; z-index: -1; pointer-events: none; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 730px; z-index: -2; background-image: linear-gradient(#8d76a909 1px, transparent 1px), linear-gradient(90deg, #8d76a909 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at center, #000, transparent 72%); }
.hero-orbit { position: absolute; left: 50%; top: 60px; width: min(1200px, 140vw); height: 470px; border: 1px solid #cba6f712; border-radius: 50%; z-index: -1; pointer-events: none; }
.hero-orbit-one { transform: translateX(-50%) rotate(-18deg); }
.hero-orbit-two { transform: translateX(-50%) rotate(18deg); width: min(1080px, 130vw); }
.hero-orbit::after { content: ""; position: absolute; top: 30%; left: 2%; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 18px #cba6f7; opacity: .6; }
.hero-intro { text-align: center; max-width: 1080px; margin: 0 auto 64px; }
.hero-kicker { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; color: var(--muted); font: .875rem/1.7 var(--mono); letter-spacing: 2px; }
h1 { margin-top: 26px; font-size: clamp(3.5rem, 7.3vw, 6.5rem); font-weight: 600; line-height: 1.08; letter-spacing: -.05em; overflow-wrap: anywhere; }
h1 > span { color: var(--accent); background: linear-gradient(110deg, #e7d0ff, #cba6f7 45%, #91b7f1); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-description { max-width: 66ch; margin: 28px auto 0; color: var(--muted); font-size: 1.25rem; line-height: 1.7; text-wrap: balance; }
.hero-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 54px; padding: 0 24px; border-radius: 7px; font-size: 1.0625rem; font-weight: 600; border: 1px solid transparent; transition: background .18s, border-color .18s, box-shadow .18s; }
.button-primary { color: #17111f; background: var(--accent); border-color: var(--accent); box-shadow: 0 0 32px #cba6f717; }
.button-secondary { background: #1c1924bd; border-color: #494153; }
.hero-specs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 28px; margin-top: 28px; color: var(--muted); font: .9375rem/1.6 var(--mono); }
.hero-specs span::before { content: "+"; margin-right: 8px; color: var(--accent); }
.terminal-figure { position: relative; }
.terminal-figure::before { content: ""; position: absolute; inset: -1px -1px 50px; z-index: -1; border-radius: 10px; box-shadow: 0 -12px 90px #9676c01c, 0 28px 80px #0004; }
.terminal-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; min-height: 52px; padding: 12px 18px; border: 1px solid #494054; border-bottom: 0; border-radius: 8px 8px 0 0; background: #201c29; font: .9375rem/1.65 var(--mono); }
.terminal-label, .theme-label { display: inline-flex; align-items: center; gap: 9px; }
.terminal-label { color: var(--muted); }
.theme-label { color: var(--subtle); }
.status-dot, .theme-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.status-dot { background: var(--green); }
.theme-dot { background: var(--accent); }
figcaption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-top: 14px; color: var(--subtle); font: .875rem/1.8 var(--mono); }
.chapter-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 52px; border-block: 1px solid var(--border); }
.chapter-nav a { display: flex; align-items: center; gap: 12px; min-height: 80px; padding: 12px 20px; font-size: 1rem; border-right: 1px solid var(--border); }
.chapter-nav a:first-child { padding-left: 0; }
.chapter-nav a:last-child { border-right: 0; }
.chapter-nav span { flex-shrink: 0; font: .875rem var(--mono); color: var(--accent); }

/* Editorial rhythm */
.section { padding-block: 104px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font: .875rem/1.6 var(--mono); letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.section-number { color: var(--accent); }
.prompt-symbol { color: var(--accent); font-size: 1.5rem; line-height: 1; }
h2 { font-size: clamp(2.25rem, 4vw, 3.625rem); font-weight: 500; line-height: 1.16; letter-spacing: -.035em; overflow-wrap: anywhere; }
h3 { font-size: 1.625rem; font-weight: 500; line-height: 1.3; letter-spacing: -.015em; overflow-wrap: anywhere; }
.hero-intro h1, .intro-grid h2, .section-heading h2, .faq-section h2, .install-copy h2,
.card-copy h3, .editorial-card h3, .tool-list h3, .integration-strip h3, .search-note h3 { text-wrap: balance; }
.section-copy p, .card-copy > p, .editorial-card p, .activity-step-copy p,
.tool-list p, .search-note p, .faq-list p, .install-copy > p:not(.eyebrow) { text-wrap: pretty; }
/* Keep short phrases together when they fit; allow wrapping at narrow widths. */
.intro-grid h2 > span, .section-heading h2 > span, .card-copy h3 > span { display: inline-block; max-width: 100%; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; gap: 48px; margin-bottom: 44px; }
.section-heading h2 { max-width: 18ch; margin-top: 18px; }
.section-heading > p { max-width: 26rem; justify-self: end; color: var(--muted); text-wrap: balance; }
.section-heading > *, .intro-grid > * { min-width: 0; }
.text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 1.0625rem; font-weight: 500; }
.text-link > span { color: var(--accent); }
.introduction { padding-block: 96px 60px; }
.intro-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 72px; margin-top: 20px; }
.intro-grid h2 { max-width: 18ch; }
.section-copy { color: var(--muted); }
.section-copy p + p { margin-top: 18px; }
.principles { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px 24px; padding-top: 36px; margin-top: 40px; border-top: 1px solid var(--border); color: var(--subtle); font-size: 1rem; }
.principles b { color: var(--text); font-weight: 500; margin-right: 4px; }

/* Product showcases are illustrative HTML, separate from the welcome replica. */
.showcase-card { min-width: 0; border: 1px solid var(--border); border-radius: 12px; background: linear-gradient(145deg, #211c2c, #181821 65%); overflow: clip; }
.card-copy { padding: 32px; }
.card-kicker { display: block; color: var(--subtle); font: .875rem/1.6 var(--mono); letter-spacing: 1px; }
.card-copy h3 { max-width: 26ch; margin-top: 14px; }
.card-copy > p { color: var(--muted); margin-top: 16px; }
.card-copy > p.fine-print { color: var(--subtle); }
.card-copy > .text-link { margin-top: 20px; }
.card-link { margin: 12px 32px 24px; }
.visibility-grid { display: grid; grid-template-columns: 1.12fr 1fr; gap: 24px; }
.card-note { margin: 24px 32px 32px; }
.activity-card { grid-column: 1 / -1; border-color: #635075; scroll-margin-top: 40px; }
.activity-card > .card-copy { max-width: 820px; }
.activity-card .card-kicker { color: var(--accent); }
.activity-walkthrough { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; margin-inline: 24px; }
.activity-step { min-width: 0; }
.activity-walkthrough .tui-example { margin: 0; }
.activity-step-copy { padding: 24px 8px 0; color: var(--muted); }
.activity-step-copy p + p { margin-top: 16px; }
.activity-step-copy strong { color: var(--text); font-weight: 500; }
.activity-step-copy .text-link { margin-top: 24px; }
.activity-step-copy kbd { padding: 2px 6px; border: 1px solid var(--border); border-radius: 4px; font: .875em var(--mono); color: var(--accent-bright); white-space: nowrap; }
.diff-card { grid-column: 1 / -1; background: linear-gradient(100deg, #181821 30%, #1a232829); }
.diff-card > .card-copy { max-width: 800px; }

/* Agents */
.agent-section { position: relative; background: radial-gradient(ellipse at 15% 35%, #3d275322, transparent 60%); border-block: 1px solid #292533; }
.agent-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; }
.agent-primary { display: flex; flex-direction: column; }
.agent-topology { position: relative; display: flex; flex-direction: column; align-items: center; padding: 30px 24px 36px; background: radial-gradient(ellipse at center, #77519b22, transparent 65%); border-bottom: 1px solid var(--border); }
.topology-you { color: var(--subtle); font: .875rem var(--mono); letter-spacing: 2px; }
.topology-line { height: 30px; width: 1px; background: linear-gradient(transparent, var(--accent)); }
.topology-primary { position: relative; width: min(220px, 100%); min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.orbit-ring { position: absolute; inset: -12px -25px; border: 1px solid #8e6cab50; border-radius: 50%; transform: rotate(-18deg); }
.orbit-ring::after { content: ""; position: absolute; left: 12%; top: 12%; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 14px #cba6f7; }
.primary-mark { color: var(--accent); font: 700 2rem var(--mono); }
.topology-primary b { font-size: 1rem; font-weight: 500; margin-top: 6px; }
.topology-primary > span:last-child { color: var(--subtle); font-size: .8125rem; }
.topology-branches { position: relative; display: flex; flex-wrap: wrap; width: 100%; gap: 16px; margin-top: 40px; }
.topology-branches::before { content: ""; position: absolute; top: -18px; left: 16%; right: 16%; height: 18px; border-top: 1px solid #665078; border-inline: 1px solid #665078; }
.topology-branches span { flex: 1 1 7ch; position: relative; border: 1px solid #42334f; border-radius: 5px; background: #211b2b; text-align: center; padding: 10px 6px; color: var(--muted); font: .875rem/1.6 var(--mono); }
.topology-branches span:nth-child(2)::before { content: ""; position: absolute; left: 50%; top: -28px; width: 1px; height: 28px; background: #665078; }
.agent-secondary { display: grid; gap: 24px; }
.side-card { background: linear-gradient(140deg, #162227, #181821 70%); }

/* Context */
.three-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.continuity-track { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 20px 0 32px; color: var(--accent); font: .875rem var(--mono); }
.continuity-track i { height: 1px; flex: 1; background: linear-gradient(90deg, #796088, #38303f); position: relative; }
.continuity-track i::after { content: ""; position: absolute; right: 0; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.editorial-card { min-width: 0; padding: 28px 24px 16px 0; border-top: 1px solid var(--border); }
.large-symbol { color: var(--accent); font: 2.5rem/1 var(--mono); }
.editorial-card h3 { margin-top: 20px; }
.editorial-card p { margin-top: 16px; color: var(--muted); }
.editorial-card p.fine-print { color: var(--subtle); }
.editorial-card .text-link { margin-top: 20px; }

/* Personal configuration */
.customization-section { border-block: 1px solid #292533; background: #15151f; }
.customize-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.config-rows { margin-top: 28px; border-block: 1px solid var(--border); }
.config-rows > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid #302b3b; font-size: .9375rem; }
.config-rows > div:last-child { border: 0; }
.config-rows code { color: var(--accent); font-size: .9375rem; }
.config-rows span { color: var(--subtle); }
.local-card { background: radial-gradient(ellipse at 80% 20%, #204d4227, transparent 60%), #181821; }
.storage-tree { margin-top: 26px; padding: 24px; background: #11151a; border: 1px solid #303a3b; border-radius: 8px; font: .9375rem/2 var(--mono); overflow-wrap: anywhere; }
.storage-tree p { display: flex; flex-wrap: wrap; gap: 0 8px; }
.storage-tree .storage-root { color: var(--green); margin-bottom: 8px; }
.storage-tree p > span { color: #647471; }
.storage-tree small { color: var(--subtle); font-size: .8125rem; margin-left: auto; }

/* Tools + integrations */
.toolkit-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.prompt-card { background: radial-gradient(ellipse at 50% 30%, #cba6f710, transparent 70%), #181821; }
.prompt-glyph { margin: 24px 0 30px; color: #695979; font: 3.5rem/1 var(--mono); letter-spacing: .15em; }
.prompt-glyph span { color: var(--accent); }
.tool-list { min-width: 0; }
.tool-list article { display: flex; gap: 22px; padding: 26px 0; border-bottom: 1px solid var(--border); }
.tool-list article:first-child { padding-top: 12px; }
.tool-list-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; border: 1px solid #46394f; border-radius: 10px; color: var(--accent); font: 1.5rem var(--mono); background: #211b2b; }
.tool-list h3 { font-size: 1.375rem; }
.tool-list p { margin-top: 10px; color: var(--muted); }
.tool-list > .text-link { margin-top: 22px; }
.integration-strip { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 24px; padding-top: 36px; border-top: 1px solid var(--border); margin-top: 60px; }
.integration-strip h3 { font-size: 1.25rem; margin-top: 8px; }
.integration-strip a { display: flex; flex-direction: column; justify-content: center; gap: 8px; border-left: 1px solid var(--border); padding-left: 20px; }
.integration-strip b { font: 1.0625rem var(--mono); color: var(--accent); }
.integration-strip a > span { color: var(--subtle); font-size: .875rem; }

/* Jev-native functionality */
.jev-section { position: relative; border-block: 1px solid #3b3045; background: radial-gradient(ellipse at 50% 10%, #6c4b872b, transparent 52%), #14131d; }
.jev-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid #403548; border-radius: 12px; background: #403548; }
.jev-card { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 22px; min-width: 0; padding: 32px; background: #181821; }
.jev-card-wide { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1.4fr) minmax(220px, .8fr); align-items: start; }
.jev-card-number { color: #776982; font: .8125rem/1.6 var(--mono); }
.jev-card h3 { margin-top: 12px; }
.jev-card p { margin-top: 12px; color: var(--muted); text-wrap: pretty; }
.jev-result { display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; padding: 18px 20px; border: 1px solid #51425c; border-radius: 8px; background: #11111b; font: .8125rem/1.6 var(--mono); }
.jev-card-wide > :last-child { align-self: center; }
.jev-result span { color: var(--subtle); }
.jev-result b { color: var(--muted); font-weight: 400; }
.jev-result strong { color: var(--green); font-size: 1.125rem; }
.jev-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; color: var(--muted); font: .875rem/1.5 var(--mono); }
.jev-checks span { padding: 9px 10px; border: 1px solid #3b3543; border-radius: 5px; background: #14141d; }
.jev-checks i { color: var(--green); font-style: normal; }
.jev-footer { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 28px; }
.jev-footer p { max-width: 790px; color: var(--muted); font-size: 1rem; }
.jev-footer strong { color: var(--text); font-weight: 500; }
.jev-footer .button { flex-shrink: 0; }

/* Providers and questions */
.providers-section { background: radial-gradient(ellipse at 70% 45%, #35305433, transparent 65%); border-block: 1px solid var(--border); }
.provider-grid .card-copy { display: flex; flex-direction: column; height: 100%; }
.provider-grid p { margin-bottom: 28px; }
.provider-icon { display: block; font: 3rem/1 var(--mono); color: var(--green); margin-bottom: 18px; }
.anthropic-icon { color: #fab387; }
.compatible-icon { color: var(--cyan); }
.provider-command { display: block; width: fit-content; max-width: 100%; overflow-wrap: anywhere; margin-top: auto; padding: 8px 10px; background: #11111b; border: 1px solid var(--border); border-radius: 4px; color: var(--muted); font: .875rem/1.7 var(--mono); }
.search-note { display: flex; align-items: start; gap: 24px; padding: 32px; margin-top: 24px; border: 1px solid var(--border); border-radius: 10px; background: #11111b80; }
.search-mark { color: var(--cyan); font: 2.5rem/1 var(--mono); }
.search-note > div { flex: 1; min-width: 0; }
.search-note h3 { font-size: 1.375rem; }
.search-note p { color: var(--muted); font-size: 1rem; margin-top: 10px; }
.search-note .text-link { flex-shrink: 0; }
.faq-section { display: grid; grid-template-columns: 1fr 1.25fr; gap: 72px; }
.faq-section h2 { margin-top: 18px; }
.faq-list { min-width: 0; }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list details:first-child { border-top: 1px solid var(--border); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; font-size: 1.125rem; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--accent); font: 1.25rem var(--mono); flex-shrink: 0; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details > p { padding: 0 24px 24px 0; color: var(--muted); font-size: 1rem; }
.faq-list a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

/* Installation and footer */
.install-section { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; padding-block: 72px 112px; border-top: 1px solid var(--border); }
.install-copy h2 { margin-top: 20px; font-size: clamp(3rem, 5vw, 4.75rem); }
.install-copy > p:not(.eyebrow) { margin-block: 24px 16px; color: var(--muted); text-wrap: balance; }
.install-steps { min-width: 0; }
.code-panel { border: 1px solid #494054; border-radius: 8px; background: var(--surface); box-shadow: 0 0 60px #cba6f707; }
.code-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 14px 20px; border-bottom: 1px solid var(--border); color: var(--subtle); font: .875rem/1.6 var(--mono); }
pre { padding: 24px 20px; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--mono); font-size: 1rem; line-height: 1.8; }
pre code { font: inherit; }
.code-comment { color: var(--subtle); }
.copy-button { background: #2b2237; border: 1px solid #574265; border-radius: 5px; color: var(--accent-bright); padding: 7px 10px; font-size: .8125rem; }
.copy-status { min-height: 1.5em; margin-top: 8px; color: var(--green); font-size: .875rem; }
.setup-note, .safety-note { margin-top: 14px; color: var(--subtle); font-size: .9375rem; line-height: 1.7; }
.setup-note a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.safety-note { margin-top: 8px; }
.site-footer { border-top: 1px solid var(--border); background: #0e0e17; }
.footer-layout { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; padding-block: 32px; }
.footer-wordmark { font-size: 1.25rem; }
.footer-layout > p { color: var(--subtle); font-size: .9375rem; }
.footer-layout nav { display: flex; flex-wrap: wrap; gap: 24px; margin-left: auto; }
.footer-layout nav a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--muted); font-size: .9375rem; }
.features-section { padding-block: 96px; } /* Shared with the small 404 page. */


/* Feature guide */
.features-hero { position: relative; overflow: hidden; padding-block: 104px 88px; border-bottom: 1px solid var(--border); background: radial-gradient(ellipse 55% 70% at 70% 20%, #71518b2b, transparent 75%); }
.features-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(#8d76a909 1px, transparent 1px), linear-gradient(90deg, #8d76a909 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to bottom, #000, transparent); }
.features-hero .container { position: relative; }
.features-hero h1 { max-width: 12ch; }
.features-hero .hero-description { max-width: 62ch; margin-inline: 0; text-align: left; }
.features-hero .hero-actions { justify-content: flex-start; }
.feature-directory { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-block: 52px; }
.feature-directory a { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; min-width: 0; padding: 22px 24px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.feature-directory a:nth-child(3n) { border-right: 0; }
.feature-directory a:nth-child(n + 10) { border-bottom: 0; }
.feature-directory span { grid-row: 1 / 3; color: var(--accent); font: .8125rem/1.7 var(--mono); }
.feature-directory b { font-size: 1.0625rem; font-weight: 500; }
.feature-directory small { color: var(--subtle); font-size: .875rem; }
.feature-guide { padding-block: 72px; scroll-margin-top: 20px; }
.feature-guide-tinted { border-block: 1px solid #292533; background: radial-gradient(ellipse at 85% 20%, #3d275322, transparent 55%), #15151f; }
.feature-guide-inner { padding-block: 0; }
.feature-guide-heading { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(16rem, .75fr); gap: 18px 64px; align-items: start; }
.feature-guide-heading .eyebrow { grid-column: 1 / -1; }
.feature-guide-heading h2 { max-width: none; }
.feature-guide-heading > p:last-child { color: var(--muted); text-wrap: pretty; }
.feature-guide-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-block: 48px 28px; }
.feature-guide-body-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-guide-body > div { padding: 28px; border-top: 1px solid var(--border); background: #18182180; }
.feature-guide-body h3 { font-size: 1.375rem; }
.feature-guide-body p { margin-top: 14px; color: var(--muted); font-size: 1rem; text-wrap: pretty; }
.feature-guide kbd { padding: 2px 6px; border: 1px solid var(--border); border-radius: 4px; color: var(--accent-bright); font: .875em var(--mono); white-space: nowrap; }
.feature-playbook { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0 0 28px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--border); }
.feature-playbook > div { min-width: 0; padding: 28px; background: #14141d; }
.feature-playbook h3 { font-size: 1.25rem; }
.feature-playbook p, .feature-playbook li, .feature-playbook dd { color: var(--muted); font-size: 1rem; }
.feature-playbook p { margin-top: 14px; }
.feature-playbook ul, .feature-playbook ol { margin: 14px 0 0; padding-left: 1.4rem; }
.feature-playbook li + li { margin-top: 8px; }
.feature-playbook pre { margin-top: 16px; padding: 18px; border: 1px solid var(--border); border-radius: 6px; background: #0f0f17; overflow-x: auto; white-space: pre; overflow-wrap: normal; font-size: .875rem; }
.feature-playbook dl { margin: 14px 0 0; }
.feature-playbook dl > div { display: grid; grid-template-columns: minmax(8rem, auto) 1fr; gap: 16px; padding-block: 8px; border-bottom: 1px solid var(--border); }
.feature-playbook dl > div:last-child { border-bottom: 0; }
.feature-playbook dt, .feature-playbook dd { margin: 0; }
.feature-reference { font-size: .9375rem; }
.troubleshooting-list { margin-block: 48px 28px; }
.troubleshooting-list details { border-bottom: 1px solid var(--border); }
.troubleshooting-list details:first-child { border-top: 1px solid var(--border); }
.troubleshooting-list summary { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font-size: 1.125rem; }
.troubleshooting-list summary::-webkit-details-marker { display: none; }
.troubleshooting-list summary::after { content: "+"; flex-shrink: 0; color: var(--accent); font: 1.25rem var(--mono); }
.troubleshooting-list details[open] summary::after { content: "−"; }
.troubleshooting-list details > p { max-width: 78ch; padding: 0 40px 24px 0; color: var(--muted); font-size: 1rem; }
.features-next { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding-block: 88px 112px; border-top: 1px solid var(--border); }
.features-next h2 { margin-top: 18px; }
.features-next pre { border: 1px solid #494054; border-radius: 8px; background: var(--surface); overflow-x: auto; }
.features-next > div:last-child p { margin-top: 14px; color: var(--muted); }
/* Content is visible before JS. Motion is an optional finishing layer. */
@keyframes section-arrive { from { opacity: .25; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes orbit-drift { from { transform: translateX(-50%) rotate(-18deg); } to { transform: translateX(-50%) rotate(-10deg); } }
@keyframes agent-orbit { from { transform: rotate(-18deg); } to { transform: rotate(342deg); } }
@media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  [data-reveal].is-visible { animation: section-arrive .65s ease-out both; }
  .hero-orbit-one { animation: orbit-drift 16s ease-in-out infinite alternate; }
  .orbit-ring { animation: agent-orbit 32s linear infinite; }
  body:has(#pause-motion:checked) .hero-orbit,
  body:has(#pause-motion:checked) .orbit-ring { animation-play-state: paused; }
  body:has(#pause-motion:checked) [data-reveal] { animation: none; }
}
@media (hover: hover) {
  .primary-nav a:hover, .text-link:hover, .footer-layout nav a:hover, .setup-note a:hover, .chapter-nav a:hover, .feature-directory a:hover { color: var(--accent-bright); }
  .source-link:hover, .button-secondary:hover { background: var(--surface-hover); border-color: var(--subtle); }
  .button-primary:hover { background: var(--accent-bright); border-color: var(--accent-bright); box-shadow: 0 0 36px #cba6f733; }
  .showcase-card:hover { border-color: #53445e; }
  .integration-strip a:hover b { color: var(--accent-bright); }
  .faq-list summary:hover { color: var(--accent); }
}

@media (max-width: 1100px) {
  .container { width: calc(100% - 64px); }
  .nav-layout { gap: 20px; }
  .primary-nav { gap: 12px 24px; }
  .intro-grid, .toolkit-grid, .faq-section { gap: 40px; }
  .section-heading { gap: 32px; }
  .integration-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .integration-strip > div { grid-column: 1 / -1; }
  .integration-strip a:first-of-type { padding-left: 0; border-left: 0; }
  .search-note { flex-wrap: wrap; }
  .search-note .text-link { margin-left: 48px; }
  .card-copy { padding: 26px; }
  .chapter-nav a { padding-inline: 12px; }
  .three-grid { gap: 18px; }
  .jev-card-wide { grid-template-columns: auto minmax(0, 1fr); }
  .jev-card-wide > :last-child { grid-column: 2; }
  .feature-guide-body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 70rem) {
  .activity-walkthrough { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 850px) {
  .container { width: calc(100% - 40px); }
  .nav-layout { min-height: auto; flex-wrap: wrap; gap: 8px 20px; padding-block: 18px 10px; }
  .wordmark { font-size: 1.375rem; }
  .brand-mark { width: 26px; height: 26px; }
  .source-link { margin-left: auto; }
  .primary-nav { order: 3; width: 100%; gap: 8px 26px; }
  .hero { padding-top: 56px; }
  .hero-intro { margin-bottom: 40px; }
  h1 { font-size: clamp(3.3rem, 9vw, 5.5rem); }
  .hero-description { font-size: 1.125rem; }
  .hero-kicker { letter-spacing: 1px; }
  .chapter-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chapter-nav a { min-height: 62px; padding-inline: 12px; border-bottom: 1px solid var(--border); }
  .chapter-nav a:first-child { padding-left: 12px; }
  .chapter-nav a:nth-child(even) { border-right: 0; }
  .chapter-nav a:last-child { border-bottom: 0; }
  .section { padding-block: 64px; }
  .section-heading { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 24px; margin-bottom: 32px; }
  .section-heading > p { max-width: 38rem; justify-self: start; }
  .intro-grid, .agent-grid, .customize-grid, .toolkit-grid, .faq-section { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .introduction { padding-bottom: 24px; }
  .intro-grid { gap: 24px; }
  .principles { margin-top: 28px; padding-top: 24px; }
  .visibility-grid { grid-template-columns: minmax(0, 1fr); }
  .agent-topology { padding-block: 30px; }
  .three-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .editorial-card { padding-right: 0; }
  .provider-grid .card-copy { display: grid; grid-template-columns: auto 1fr; gap: 0 24px; }
  .provider-icon { grid-row: 1 / 4; margin: 0; }
  .provider-grid h3 { margin-top: 0; }
  .provider-grid p { margin-bottom: 18px; }
  .provider-command { grid-column: 2; }
  .search-note { padding: 24px; }
  .search-note .text-link { margin-left: 0; }
  .search-mark { display: none; }
  .integration-strip { margin-top: 40px; }
  .install-section { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 56px 72px; }
  .footer-layout { gap: 8px 20px; padding-block: 24px; }
  .footer-layout > p { margin-left: auto; }
  .footer-layout nav { width: 100%; margin: 0; }
  .jev-grid { grid-template-columns: minmax(0, 1fr); }
  .jev-card, .jev-card-wide { grid-column: auto; }
  .jev-footer { align-items: stretch; flex-direction: column; }
  .jev-footer .button { align-self: flex-start; }
  .feature-playbook { grid-template-columns: minmax(0, 1fr); }
  .features-hero { padding-block: 72px 64px; }
  .feature-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-directory a, .feature-directory a:nth-child(3n) { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .feature-directory a:nth-child(even) { border-right: 0; }
  .feature-directory a:last-child { border-bottom: 0; }
  .feature-guide { padding-block: 64px; }
  .feature-guide-heading, .features-next { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .feature-guide-body, .feature-guide-body-four { grid-template-columns: minmax(0, 1fr); margin-top: 32px; }
  .features-next { padding-block: 64px 72px; }
}
@media (max-width: 540px) {
  .hero-kicker { font-size: .8125rem; }
  h1 { font-size: clamp(2.5rem, 12vw, 3.2rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-specs { gap: 8px 20px; }
  .terminal-heading { padding-inline: 12px; }
  .chapter-nav a { gap: 8px; font-size: .9375rem; }
  .card-copy { padding: 24px; }
  .activity-walkthrough { margin-inline: 16px; }
  .card-link { margin-inline: 24px; }
  .card-note { margin-inline: 24px; }
  .continuity-track { gap: 8px; font-size: .75rem; }
  .topology-branches { gap: 8px; }
  .storage-tree { padding: 18px 14px; }
  .storage-tree small { width: 100%; margin-left: 4ch; }
  .integration-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .integration-strip a:nth-of-type(3) { border-left: 0; padding-left: 0; }
  .provider-grid .card-copy { display: block; }
  .provider-icon { margin-bottom: 18px; }
  .tool-list article { gap: 16px; }
  .tool-list-icon { width: 36px; height: 36px; font-size: 1.25rem; }
  .search-note { display: block; }
  .search-note .text-link { margin-top: 16px; }
  .jev-card, .jev-card-wide { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .jev-card-wide > :last-child { grid-column: 1; }
  .jev-checks { grid-template-columns: minmax(0, 1fr); }
  .code-panel pre { overflow-x: auto; white-space: pre; overflow-wrap: normal; }
  .copy-button { min-height: 44px; }
  .section-heading > *, .card-copy > *, .editorial-card > *, .faq-section > * { min-width: 0; max-width: 100%; }
  .text-link { flex-wrap: wrap; }
  .feature-directory { grid-template-columns: minmax(0, 1fr); padding-block: 32px; }
  .feature-directory a, .feature-directory a:nth-child(even), .feature-directory a:nth-child(3n) { padding-inline: 12px; border-right: 0; border-bottom: 1px solid var(--border); }
  .feature-guide-body > div { padding: 24px 20px; }
  .feature-playbook > div { padding: 22px 18px; }
  .feature-playbook dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .troubleshooting-list details > p { padding-right: 0; }
}
@media (max-width: 380px) {
  .container { width: calc(100% - 32px); }
  .primary-nav { gap: 8px 16px; }
  .wordmark { font-size: 1.25rem; }
  .hero-kicker { letter-spacing: .5px; }
  .chapter-nav a { flex-wrap: wrap; }
  .card-copy { padding: 20px; }
  .footer-layout > p { width: 100%; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce), (forced-colors: active) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
@media (forced-colors: active) {
  h1 > span { background: none; -webkit-text-fill-color: currentColor; }
  #hero-field, .hero-orbit, .orbit-ring { display: none; }
  .button, .source-link, .showcase-card, .code-panel, .feature-guide-body > div, .feature-playbook, .feature-playbook pre, .features-next pre { border-color: ButtonText; }
  .primary-nav a[aria-current="page"] { text-decoration: underline; }
}
