:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #627086;
  --background: #f7f8fb;
  --surface: #ffffff;
  --line: #dfe4ec;
  --blue: #315fba;
  --blue-dark: #294f9c;
  --blue-soft: #edf3ff;
  --teal: #2b8a78;
  --teal-soft: #e9f7f3;
  --navy: #17243d;
  --navy-light: #223251;
  --shell: min(1140px, calc(100vw - 48px));
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; color: var(--ink); background: var(--background); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 14px; color: #fff; background: var(--blue); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
a:focus-visible, button:focus-visible { outline: 3px solid #78a1f2; outline-offset: 3px; }

.site-header { position: relative; z-index: 20; height: 72px; background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; letter-spacing: -.025em; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; color: #fff; background: var(--blue); border-radius: 8px; font-size: 10px; letter-spacing: -.02em; }
.site-nav { display: flex; align-items: center; gap: 27px; color: #56647a; font-size: 13px; font-weight: 600; }
.site-nav > a:hover { color: var(--ink); }
.github-link { padding: 10px 15px; color: #fff; background: var(--navy); border-radius: 8px; }
.site-nav .github-link:hover { color: #fff; background: var(--navy-light); }
.nav-toggle { display: none; padding: 8px; border: 0; background: none; }
.nav-toggle span:not(.sr-only) { display: block; width: 22px; height: 2px; margin: 5px; background: var(--ink); }

.hero { min-height: 650px; display: grid; grid-template-columns: .96fr 1.04fr; align-items: center; gap: 72px; padding-block: 82px 92px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; color: var(--teal); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow > span { width: 22px; height: 2px; background: currentColor; }
.hero h1 { max-width: 620px; margin: 0; font-size: clamp(48px, 5vw, 68px); line-height: 1.04; letter-spacing: -.055em; }
.hero h1 em { color: var(--blue); font-style: normal; }
.hero-copy > p:not(.eyebrow) { max-width: 600px; margin: 26px 0 30px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 0 19px; border-radius: 8px; font-size: 13px; font-weight: 700; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--blue); border: 1px solid var(--blue); box-shadow: 0 8px 22px rgba(49, 95, 186, .2); }
.button-primary:hover { background: var(--blue-dark); box-shadow: 0 10px 25px rgba(49, 95, 186, .25); }
.button-secondary { background: #fff; border: 1px solid var(--line); }
.hero-proof { display: flex; gap: 22px; margin-top: 40px; }
.hero-proof div { display: flex; flex-direction: column; padding-right: 22px; border-right: 1px solid var(--line); }
.hero-proof div:last-child { padding-right: 0; border: 0; }
.hero-proof strong { font-size: 13px; }
.hero-proof span { color: #7c899c; font-size: 10px; }

.registry-window { overflow: hidden; background: #fff; border: 1px solid #d8dee8; border-radius: 14px; box-shadow: 0 28px 70px rgba(30, 44, 68, .14); }
.window-bar { height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 0 15px; color: #718097; background: #f5f7fa; border-bottom: 1px solid var(--line); font-size: 10px; }
.traffic { display: flex; gap: 6px; }
.traffic i { width: 7px; height: 7px; background: #c6ced9; border-radius: 50%; }
.traffic i:first-child { background: #d9a4aa; }
.traffic i:nth-child(2) { background: #d9c28a; }
.traffic i:nth-child(3) { background: #91c4b5; }
.window-status { display: flex; align-items: center; gap: 6px; }
.window-status i { width: 6px; height: 6px; background: #4faa8d; border-radius: 50%; }
.window-body { padding: 26px; }
.question-card { padding: 18px 20px; background: var(--blue-soft); border: 1px solid #d5e1f7; border-radius: 10px; }
.question-card span, .route-card small { color: #78869a; font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.question-card p { margin: 8px 0 0; font-size: 14px; font-weight: 600; line-height: 1.55; }
.route-line { height: 29px; display: flex; align-items: center; margin-left: 18px; }
.route-line span { width: 1px; height: 100%; background: #cfd7e3; }
.route-line i { width: 18px; height: 18px; display: grid; place-items: center; margin-left: -9px; color: #fff; background: #8897ac; border-radius: 50%; font-size: 8px; font-style: normal; font-weight: 700; }
.route-card { min-height: 70px; display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 9px; }
.route-card.active { border-color: #c8d7f3; box-shadow: 0 8px 22px rgba(49, 95, 186, .08); }
.route-card > div:nth-child(2) { display: flex; flex-direction: column; gap: 4px; }
.route-icon { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 8px; font-size: 12px; font-weight: 700; }
.route-icon.reference { color: var(--teal); background: var(--teal-soft); }
.route-card strong { font-size: 13px; }
.route-card > span { margin-left: auto; padding: 5px 8px; color: #397b6d; background: var(--teal-soft); border-radius: 999px; font-size: 9px; font-weight: 700; }
.provenance-row { display: flex; justify-content: space-between; gap: 15px; margin-top: 20px; color: #7d899b; font-size: 9px; }
.provenance-row span { display: flex; align-items: center; gap: 7px; }
.provenance-row i { width: 6px; height: 6px; background: #4faa8d; border-radius: 50%; }
.provenance-row strong { color: var(--teal); }

.production-proof { padding: 30px 0; background: var(--teal-soft); border-block: 1px solid #cde7df; }
.production-proof .shell { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 30px; }
.proof-index { color: #51877c; font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.production-proof .shell > div { padding-left: 26px; border-left: 1px solid #b8ddd3; }
.production-proof strong { display: block; margin-bottom: 5px; color: #245f53; font-size: 13px; }
.production-proof p { max-width: 720px; margin: 0; color: #4f756d; font-size: 12px; line-height: 1.6; }
.proof-status { display: inline-flex; align-items: center; gap: 8px; color: #367567; font-size: 10px; font-weight: 700; white-space: nowrap; }
.proof-status i { width: 7px; height: 7px; background: #49a48e; border-radius: 50%; }

.analyst-bridge { padding: 58px 0; background: #fff; border-bottom: 1px solid var(--line); }
.analyst-layout { display: grid; grid-template-columns: .92fr 1.08fr; align-items: end; gap: 80px; }
.analyst-layout h2 { max-width: 600px; margin: 0; font-size: clamp(28px, 3vw, 39px); line-height: 1.15; letter-spacing: -.04em; }
.analyst-copy > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.confidence-path { display: flex; align-items: center; gap: 10px; margin-top: 22px; color: #617086; font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.confidence-path span { padding: 8px 10px; background: var(--blue-soft); border: 1px solid #d5e1f7; border-radius: 6px; }
.confidence-path i { color: var(--teal); font-style: normal; }

.section { padding-block: 100px; }
.section-heading { display: grid; grid-template-columns: 1fr 400px; align-items: end; gap: 70px; margin-bottom: 46px; }
.section-heading h2, .pattern-copy h2, .plugin-copy h2, .notebook-copy h2, .extend-layout h2, .cta-section h2 { margin: 0; font-size: clamp(36px, 4vw, 50px); line-height: 1.1; letter-spacing: -.045em; }
.section-heading > p { margin: 0 0 5px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.value-card { min-height: 285px; display: flex; flex-direction: column; position: relative; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.value-card.featured { min-height: 330px; grid-column: span 2; background: var(--blue-soft); border-color: #d5e1f7; }
.card-number { position: absolute; top: 25px; right: 25px; color: #9ba7b7; font-size: 9px; font-weight: 700; }
.value-icon { width: 36px; height: 36px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 8px; font-weight: 700; }
.featured .value-icon { background: #fff; }
.value-card h3 { max-width: 470px; margin: 28px 0 10px; font-size: 19px; line-height: 1.3; letter-spacing: -.025em; }
.value-card p { max-width: 610px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.value-card code { padding: 2px 4px; color: var(--blue); background: #fff; border-radius: 4px; font-size: 11px; }
.context-demo { display: flex; align-items: center; gap: 11px; margin-top: auto; padding-top: 28px; color: #627086; font-size: 9px; font-weight: 700; letter-spacing: .06em; }
.context-demo span { padding: 8px 10px; background: #fff; border: 1px solid #d5e1f7; border-radius: 6px; }
.context-demo i { width: 28px; height: 1px; background: #9cb1d8; }

.pattern-section, .plugin-section { padding: 100px 0; color: #fff; background: var(--navy); }
.pattern-layout, .plugin-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 80px; align-items: start; }
.pattern-copy, .plugin-copy { position: sticky; top: 30px; }
.eyebrow.light { color: #7fc4b4; }
.pattern-copy > p:not(.eyebrow), .plugin-copy > p:not(.eyebrow) { margin: 22px 0 28px; color: #aeb9cb; font-size: 14px; line-height: 1.75; }
.text-link { color: #8fb5ff; font-size: 12px; font-weight: 700; }
.pattern-flow, .steps, .notebook-card ol { margin: 0; padding: 0; list-style: none; }
.pattern-flow li { display: grid; grid-template-columns: 52px 1fr; gap: 24px; padding: 0 0 42px; position: relative; }
.pattern-flow li:not(:last-child)::after { position: absolute; top: 38px; bottom: 8px; left: 18px; width: 1px; content: ""; background: #3a4a69; }
.pattern-flow li > span { width: 37px; height: 37px; display: grid; place-items: center; color: #b9c8e2; background: #263654; border: 1px solid #425273; border-radius: 9px; font-size: 9px; font-weight: 700; }
.pattern-flow div { display: flex; flex-direction: column; gap: 7px; padding-top: 2px; }
.pattern-flow small, .steps small { color: #7fc4b4; font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.pattern-flow strong { font-size: 17px; }
.pattern-flow p { max-width: 600px; margin: 0; color: #aeb9cb; font-size: 13px; line-height: 1.65; }

.skill-tabs { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 18px; background: #edf0f5; border: 1px solid var(--line); border-radius: 10px; }
.skill-tabs button { display: flex; flex-direction: column; gap: 5px; padding: 17px 20px; color: #667489; background: transparent; border: 0; border-right: 1px solid var(--line); text-align: left; cursor: pointer; }
.skill-tabs button:last-child { border-right: 0; }
.skill-tabs button[aria-selected="true"] { color: var(--ink); background: #fff; box-shadow: inset 0 -3px var(--blue); }
.skill-tabs span { font-size: 13px; font-weight: 700; }
.skill-tabs strong { font-size: 9px; font-weight: 600; letter-spacing: .04em; }
.skill-panel { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.panel-intro { display: flex; align-items: baseline; justify-content: space-between; gap: 30px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.panel-intro span { color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.panel-intro p { max-width: 620px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; text-align: right; }
.skill-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.skill-grid a { min-height: 132px; display: flex; flex-direction: column; gap: 10px; padding: 22px; border-right: 1px solid #edf0f4; border-bottom: 1px solid #edf0f4; }
.skill-grid a:nth-child(3n) { border-right: 0; }
.skill-grid a:hover { background: var(--blue-soft); }
.skill-grid strong { color: var(--blue); font: 600 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.skill-grid span { color: var(--muted); font-size: 12px; line-height: 1.6; }

.plugin-section { background: #142039; }
.plugin-note { display: flex; align-items: center; gap: 10px; padding: 15px; color: #b8c7df; background: #1d2d4a; border: 1px solid #314361; border-radius: 8px; font-size: 11px; line-height: 1.55; }
.plugin-note i { width: 7px; height: 7px; flex: 0 0 7px; background: #5cb29d; border-radius: 50%; }
.steps article { display: grid; grid-template-columns: 42px 1fr; gap: 18px; margin-bottom: 14px; padding: 20px; background: #1b2a46; border: 1px solid #31415e; border-radius: 10px; }
.steps article > span { width: 32px; height: 32px; display: grid; place-items: center; color: #b9c8e2; background: #263654; border-radius: 7px; font-size: 9px; font-weight: 700; }
.steps article > div { min-width: 0; }
.steps pre, .notebook-card pre, .extend-layout pre { overflow-x: auto; margin: 10px 0 0; padding: 14px; color: #dbe6f7; background: #101a2e; border-radius: 7px; font-size: 10px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }

.notebook-section { padding-top: 110px; }
.notebook-layout { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 80px; }
.notebook-copy > p:not(.eyebrow) { margin: 24px 0 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.notebook-copy code { padding: 2px 5px; color: var(--blue); background: #fff; border: 1px solid var(--line); border-radius: 4px; font-size: 12px; }
.notebook-stats { display: flex; gap: 22px; margin-top: 34px; }
.notebook-stats div { min-width: 130px; display: flex; flex-direction: column; padding-left: 14px; border-left: 2px solid var(--teal); }
.notebook-stats strong { font-size: 22px; }
.notebook-stats span { color: var(--muted); font-size: 10px; }
.notebook-card { overflow: hidden; padding: 25px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 60px rgba(30, 44, 68, .1); }
.notebook-card-header { display: flex; justify-content: space-between; padding-bottom: 18px; color: #7b889c; border-bottom: 1px solid var(--line); font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.notebook-card-header strong { color: var(--blue); }
.notebook-card li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 15px 0; border-bottom: 1px solid #edf0f4; }
.notebook-card li > span { width: 26px; height: 26px; display: grid; place-items: center; color: var(--teal); background: var(--teal-soft); border-radius: 6px; font-size: 9px; font-weight: 700; }
.notebook-card li strong { display: block; margin-bottom: 3px; font-size: 12px; }
.notebook-card li p { margin: 0; color: var(--muted); font-size: 11px; }
.notebook-card pre { color: #dbe6f7; background: var(--navy); white-space: pre-wrap; }
.notebook-card pre span { color: #7fc4b4; }
.build-note { margin: 13px 0 0; color: #8490a2; font-size: 9px; line-height: 1.55; }

.extend-section { padding: 88px 0; background: var(--teal-soft); border-block: 1px solid #cde7df; }
.extend-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; }
.extend-layout > div:last-child > p { margin: 0; color: #4f756d; font-size: 14px; line-height: 1.75; }
.extend-layout pre { margin: 24px 0 18px; color: #dbe6f7; background: var(--navy); }
.text-link.dark { color: #276f61; }

.cta-section { display: flex; align-items: center; justify-content: space-between; gap: 50px; margin-block: 78px; padding: 42px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.cta-section > div > span { display: block; margin-bottom: 10px; color: var(--teal); font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.cta-section h2 { font-size: clamp(28px, 3vw, 40px); }
footer { padding: 28px 0; background: #fff; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-inner p { margin: 0; color: var(--muted); font-size: 11px; }
.footer-inner > div { display: flex; gap: 20px; color: var(--muted); font-size: 11px; font-weight: 600; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 50px; padding-block: 65px; }
  .hero-copy { max-width: 760px; }
  .registry-window { width: min(680px, 100%); }
  .section-heading { grid-template-columns: 1fr; gap: 20px; }
  .section-heading > p { max-width: 680px; }
  .pattern-layout, .plugin-layout, .notebook-layout, .extend-layout { grid-template-columns: 1fr; gap: 50px; }
  .analyst-layout { grid-template-columns: 1fr; gap: 26px; }
  .pattern-copy, .plugin-copy { position: static; }
  .skill-grid { grid-template-columns: repeat(2, 1fr); }
  .skill-grid a:nth-child(3n) { border-right: 1px solid #edf0f4; }
  .skill-grid a:nth-child(2n) { border-right: 0; }
}

@media (max-width: 760px) {
  :root { --shell: min(100% - 32px, 1140px); }
  .site-header { height: 64px; }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 64px; right: 0; left: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 16px 16px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 14px 30px rgba(23, 32, 51, .1); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px; }
  .github-link { margin-top: 5px; text-align: center; }
  .hero { min-height: auto; padding-block: 54px; }
  .hero h1 { font-size: clamp(42px, 13vw, 58px); }
  .hero-copy > p:not(.eyebrow) { font-size: 15px; }
  .hero-proof { gap: 13px; }
  .hero-proof div { padding-right: 13px; }
  .production-proof .shell { grid-template-columns: 1fr; gap: 12px; }
  .production-proof .shell > div { padding: 0; border: 0; }
  .proof-status { margin-top: 4px; }
  .analyst-bridge { padding: 48px 0; }
  .confidence-path { align-items: flex-start; flex-direction: column; }
  .confidence-path i { transform: rotate(90deg); margin-left: 18px; }
  .section, .pattern-section, .plugin-section { padding-block: 72px; }
  .value-grid { grid-template-columns: 1fr; }
  .value-card.featured { grid-column: auto; }
  .skill-tabs { grid-template-columns: 1fr; }
  .skill-tabs button { border-right: 0; border-bottom: 1px solid var(--line); }
  .skill-tabs button:last-child { border-bottom: 0; }
  .skill-tabs button[aria-selected="true"] { box-shadow: inset 3px 0 var(--blue); }
  .skill-panel { padding: 18px; }
  .panel-intro { align-items: flex-start; flex-direction: column; gap: 8px; }
  .panel-intro p { text-align: left; }
  .skill-grid { grid-template-columns: 1fr; }
  .skill-grid a, .skill-grid a:nth-child(3n), .skill-grid a:nth-child(2n) { min-height: auto; border-right: 0; }
  .notebook-stats { flex-wrap: wrap; }
  .cta-section, .footer-inner { align-items: flex-start; flex-direction: column; }
  .cta-section { margin-block: 48px; padding: 28px; }
  .footer-inner { gap: 18px; }
}

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