:root {
  --bg: #0b1018;
  --bg-elev: #111a27;
  --bg-card: #151f2e;
  --border: #28364a;
  --text: #edf2f8;
  --text-dim: #a0aec2;
  --accent: #8bb4ff;
  --teal: #6ee7c7;
  --purple: #c0acff;
  --green: #6ee7a0;
  --red: #ff929b;
  --amber: #f5cb86;
  --gray: #8b98ae;
  --radius: 18px;
  --shadow: 0 16px 45px rgba(0, 0, 0, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: radial-gradient(ellipse 900px 650px at 85% 0%, #182a43 0%, transparent 75%), var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-width: 320px;
}
a { color: inherit; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: 0.55; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 5px; }
[hidden] { display: none !important; }
.page-shell, .topbar-inner, .footer-inner { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 16px; z-index: 30; padding: 10px 18px; background: var(--teal); color: var(--bg); transform: translateY(-160%); border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.topbar { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid rgba(160, 174, 194, 0.14); background: rgba(11, 16, 24, 0.92); backdrop-filter: blur(16px); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 86px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand-logo { display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid #405878; border-radius: 13px; background: linear-gradient(135deg, #284866, #192c40); font-size: 15px; font-weight: 750; letter-spacing: -1px; }
.brand-copy { display: flex; flex-direction: column; }
.brand-copy strong { font-size: 19px; line-height: 1.3; letter-spacing: -0.5px; }
.brand-dot { color: var(--teal); }
.subtitle { color: var(--text-dim); font-size: 11px; letter-spacing: 0.3px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { padding-block: 12px; text-decoration: none; font-size: 13px; color: var(--text-dim); }
.site-nav a:hover { color: var(--text); }
.site-nav a:last-child { color: var(--teal); }
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 64px; padding-block: 88px 72px; }
.eyebrow { margin: 0 0 18px; display: flex; align-items: center; gap: 10px; color: var(--teal); font-size: 10px; line-height: 1.5; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.eyebrow-line { width: 25px; height: 1px; background: var(--teal); flex-shrink: 0; }
h1, h2, h3, p { overflow-wrap: anywhere; }
.hero h1 { margin: 0; font-size: clamp(38px, 4.5vw, 64px); line-height: 1.12; letter-spacing: -2.8px; font-weight: 720; }
.hero h1 > span { color: var(--accent); }
.hero-intro { max-width: 560px; margin: 25px 0 28px; color: var(--text-dim); font-size: 16px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 44px; border: 1px solid var(--border); border-radius: 10px; padding: 10px 17px; color: var(--text); background: var(--bg-elev); text-decoration: none; font-size: 13px; font-weight: 600; transition: border-color 0.15s, background 0.15s; }
.btn:hover:not(:disabled) { border-color: var(--accent); background: #1a2b41; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #0c182a; }
.btn-primary:hover:not(:disabled) { background: #abcaff; color: #0c182a; }
.hero-topics { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 30px 0 0; color: var(--text-dim); font-size: 11px; }
.hero-topics li::before { content: "+"; color: var(--teal); margin-right: 7px; }
.blueprint { border: 1px solid #334964; border-radius: 20px; background: linear-gradient(140deg, rgba(31, 53, 78, 0.9), rgba(16, 27, 41, 0.95)); box-shadow: var(--shadow); transform: rotate(1deg); min-width: 0; }
.blueprint-heading { display: flex; align-items: center; gap: 20px; border-bottom: 1px solid #33475e; padding: 14px 20px; font-family: Consolas, monospace; font-size: 11px; color: var(--text-dim); }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 6px; height: 6px; border-radius: 50%; background: #7587a2; }
.window-dots i:first-child { background: var(--teal); }
.blueprint-body { padding: 25px; }
.blueprint-kicker { margin: 0 0 20px; color: var(--text-dim); font-size: 9px; letter-spacing: 1.8px; }
.mini-flow { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 25px; }
.mini-flow > span { background: #20354e; border: 1px solid #3b5575; border-radius: 7px; padding: 7px 12px; font-size: 11px; }
.mini-flow b { color: var(--accent); font-weight: 400; }
.host-outline { border: 1px dashed #4a7b83; border-radius: 12px; padding: 18px; background: rgba(42, 105, 101, 0.06); }
.host-heading { display: flex; align-items: center; gap: 12px; }
.host-symbol { font-size: 30px; line-height: 1; color: var(--teal); }
.host-heading strong { display: block; font-size: 14px; }
.host-heading div > span { display: block; color: var(--text-dim); font-size: 10px; }
.mini-apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 20px 0 14px; }
.mini-apps span { display: grid; place-items: center; padding: 12px 5px; border: 1px solid #3a586e; border-radius: 6px; background: #1b3041; font-size: 9px; text-align: center; }
.mini-data { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding-top: 13px; border-top: 1px solid #34515f; }
.mini-data span { color: var(--purple); background: #2a2948; border: 1px solid #474365; padding: 4px 9px; border-radius: 6px; font-family: Consolas, monospace; font-size: 10px; }
.blueprint-note { text-align: center; color: var(--text-dim); font-size: 11px; line-height: 1.8; margin: 20px 0 0; }
.section { padding-block: 60px; border-top: 1px solid var(--border); scroll-margin-top: 12px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 36px; margin-bottom: 28px; }
.section-heading > div { max-width: 660px; }
.section-heading .eyebrow { margin-bottom: 11px; }
.section-heading h2 { margin: 0; font-size: clamp(25px, 2.6vw, 34px); line-height: 1.25; letter-spacing: -1px; font-weight: 650; }
.section-heading > p { margin: 0; max-width: 340px; color: var(--text-dim); font-size: 13px; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.project-card { display: flex; flex-direction: column; align-items: start; padding: 27px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(160deg, #182539, var(--bg-elev) 70%); --project-color: var(--accent); }
.project-garage { --project-color: var(--teal); }
.project-cv { --project-color: var(--purple); }
.project-mark { width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 13px; background: var(--bg-elev); color: var(--project-color); margin-bottom: 24px; }
.project-mark svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.project-kicker { margin: 0 0 6px; color: var(--project-color); font-size: 9px; letter-spacing: 1.6px; font-weight: 700; }
.project-card h3 { margin: 0 0 12px; font-size: 22px; font-weight: 650; letter-spacing: -0.5px; }
.project-card > p:not(.project-kicker) { margin: 0 0 20px; font-size: 13px; color: var(--text-dim); }
.tech-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: auto 0 23px; list-style: none; }
.tech-list li { padding: 3px 8px; background: #1b293b; border: 1px solid #30415a; border-radius: 5px; font-size: 10px; color: #c6d2e5; }
.text-link { display: inline-flex; align-items: center; gap: 12px; color: var(--accent); font-size: 12px; font-weight: 600; text-decoration: none; min-height: 36px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.project-card .text-link { color: var(--project-color); }
.workflow-illustration { margin: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #031525; box-shadow: var(--shadow); }
.workflow-image-link { display: block; cursor: zoom-in; }
.workflow-image-link:focus-visible { outline-offset: -5px; }
.workflow-illustration picture, .workflow-illustration img { display: block; width: 100%; }
.workflow-illustration img { height: auto; }
.workflow-illustration figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding: 14px 22px; border-top: 1px solid var(--border); background: var(--bg-elev); }
.workflow-illustration figcaption p { flex: 1 1 420px; margin: 0; color: var(--text-dim); font-size: 12px; }
.workflow-illustration .text-link { flex-shrink: 0; }
.workflow-details { margin-top: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: #0e1723; }
.workflow-details summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 17px 22px; border-radius: var(--radius); list-style: none; cursor: pointer; font-size: 13px; font-weight: 600; }
.workflow-details summary::-webkit-details-marker { display: none; }
.workflow-details summary::after { content: "+"; margin-left: auto; color: var(--teal); font-size: 20px; line-height: 1; }
.workflow-details summary > span { color: var(--text-dim); font-size: 10px; font-weight: 400; }
.workflow-details[open] > summary { border-bottom: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0; }
.workflow-details[open] > summary::after { content: "\2212"; }
.workflow-details .architecture { border: 0; border-radius: 0 0 var(--radius) var(--radius); box-shadow: none; }
.architecture { margin: 0; background: #0e1723; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.flow-lane { padding: 28px; --flow-color: var(--accent); }
.runtime-lane { border-top: 1px solid var(--border); background: rgba(43, 87, 84, 0.07); --flow-color: var(--teal); }
.lane-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.lane-label { border: 1px solid currentColor; border-radius: 5px; padding: 3px 8px; color: var(--flow-color); font-size: 9px; letter-spacing: 1.4px; font-weight: 700; }
.lane-heading > p { margin: 0; color: var(--text-dim); font-size: 12px; }
.flow-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding: 0; margin: 0; list-style: none; }
.flow-node { position: relative; display: flex; flex-direction: column; padding: 18px; border: 1px solid #34445b; border-radius: 12px; background: #172235; min-width: 0; }
.flow-node:not(:last-child)::after { content: "\2192"; position: absolute; top: 45%; right: -23px; color: var(--flow-color); font-size: 20px; line-height: 1; }
.node-number { display: block; font-family: Consolas, monospace; font-size: 10px; color: var(--flow-color); margin-bottom: 15px; letter-spacing: 0.5px; }
.flow-node h3 { margin: 0 0 7px; font-size: 16px; font-weight: 650; letter-spacing: -0.3px; }
.flow-node p { margin: 0 0 18px; color: var(--text-dim); font-size: 11px; line-height: 1.8; }
.node-tag { align-self: start; margin-top: auto; padding-top: 8px; border-top: 1px solid #34445b; font-size: 9px; color: var(--flow-color); }
.registry-branch { display: flex; align-items: start; gap: 14px; margin-top: 20px; padding: 14px 18px; border: 1px dashed #3e526f; border-radius: 9px; }
.branch-symbol { color: var(--accent); font-size: 22px; line-height: 1; }
.registry-branch p { margin: 0; font-size: 11px; color: var(--text-dim); }
.registry-branch strong { color: var(--text); font-weight: 600; }
.storage-node { background: #24243b; border-color: #4c476a; }
.storage-node .node-number { color: var(--purple); font-size: 9px; margin-bottom: 12px; }
.storage-target + .storage-target { padding-top: 12px; border-top: 1px solid #4c476a; }
.storage-target h3 { font-size: 13px; color: #ddd2ff; }
.storage-target p { margin-bottom: 10px; font-size: 10px; }
.storage-target:last-child p { margin-bottom: 0; }
.architecture figcaption { border-top: 1px solid var(--border); padding: 15px 28px; font-size: 10px; line-height: 1.8; color: var(--text-dim); }
.workflow-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 28px; }
.workflow-notes article { position: relative; padding-left: 31px; }
.note-index { position: absolute; left: 0; top: 1px; font-family: Consolas, monospace; font-size: 11px; color: var(--teal); border-bottom: 1px solid #36574f; }
.workflow-notes h3 { margin: 0 0 8px; font-size: 13px; font-weight: 600; }
.workflow-notes p { margin: 0; color: var(--text-dim); font-size: 11px; line-height: 1.85; }
.launcher-toolbar { display: flex; align-items: end; gap: 16px; justify-content: space-between; }
.search-field { display: flex; flex-direction: column; gap: 7px; max-width: 440px; width: 100%; }
.search-field > span { font-size: 11px; color: var(--text-dim); }
.search-field input { width: 100%; min-width: 0; padding: 11px 14px; border: 1px solid var(--border); border-radius: 9px; background: #101b2a; color: var(--text); font-size: 12px; min-height: 44px; }
.search-field input::placeholder { color: #91a1ba; }
.filters { display: grid; gap: 12px; margin: 24px 0 18px; }
.filter-row { display: flex; align-items: baseline; gap: 15px; }
.filter-label { width: 53px; flex-shrink: 0; color: var(--text-dim); font-size: 10px; }
.filter-group { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { min-height: 34px; padding: 6px 13px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-elev); color: var(--text-dim); font-size: 11px; transition: background 0.15s, border-color 0.15s; }
.chip:hover { color: var(--text); border-color: #5a7498; }
.chip.active { background: #24416b; border-color: #5f8ccc; color: #e7efff; }
.launcher-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 15px; }
.launcher-summary p { margin: 0; font-size: 11px; color: var(--text-dim); }
.text-button { padding: 6px 0 6px 12px; border: 0; background: none; color: var(--accent); font-size: 11px; min-height: 36px; }
.text-button:hover:not(:disabled) { text-decoration: underline; }
.notice { margin: 0 0 20px; padding: 14px 18px; border: 1px solid #774952; border-radius: 10px; background: #2e1d29; color: #ffd2d8; font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 9px; min-width: 0; padding: 22px; border: 1px solid var(--border); border-radius: 13px; background: var(--bg-card); color: inherit; text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--card-accent, var(--accent)); }
.card:hover { border-color: var(--card-accent, var(--accent)); transform: translateY(-2px); }
.card.disabled { cursor: default; background: #121c2a; }
.card.disabled:hover { transform: none; border-color: var(--border); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-icon { font-size: 26px; line-height: 1; }
.status-dot { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; color: var(--text-dim); }
.status-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gray); flex-shrink: 0; }
.status-dot.online::before { background: var(--green); }
.status-dot.offline::before { background: var(--red); }
.status-dot.checking::before { background: var(--amber); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.card-title { margin: 4px 0 0; font-size: 16px; line-height: 1.5; font-weight: 650; }
.card-desc { margin: 0 0 12px; font-size: 12px; color: var(--text-dim); }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: auto; }
.badge { font-size: 9px; padding: 3px 8px; border: 1px solid #34455b; border-radius: 999px; color: var(--text-dim); background: var(--bg-elev); }
.badge-loc.pi { color: #acd1ff; border-color: #3b5d85; }
.badge-loc.local { color: #f5cb96; border-color: #725d43; }
.card-url { margin-left: auto; color: var(--text-dim); font-size: 10px; font-family: Consolas, monospace; }
.empty-state { grid-column: 1 / -1; padding: 30px 20px; margin: 0; border: 1px dashed var(--border); border-radius: 12px; color: var(--text-dim); font-size: 13px; text-align: center; }
.launcher-note { max-width: 900px; margin: 20px 0 0; font-size: 11px; color: var(--text-dim); }
.footer { border-top: 1px solid var(--border); padding-block: 30px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer strong { font-size: 12px; font-weight: 600; }
.footer p { margin: 3px 0 0; color: var(--text-dim); font-size: 11px; }
@media (max-width: 1050px) {
  .hero { gap: 32px; padding-block: 65px 55px; }
  .hero h1 { letter-spacing: -2px; }
  .blueprint-body { padding: 20px; }
  .mini-flow > span { padding: 6px 8px; }
  .section-heading { align-items: start; }
  .section-heading > p { max-width: 280px; }
  .project-card { padding: 23px; }
  .flow-lane { padding: 23px; }
  .flow-steps { gap: 20px; }
  .flow-node { padding: 14px; }
  .flow-node:not(:last-child)::after { right: -18px; font-size: 17px; }
}
@media (max-width: 800px) {
  .page-shell, .topbar-inner, .footer-inner { width: calc(100% - 40px); }
  .hero { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: clamp(40px, 7vw, 58px); }
  .hero-intro { max-width: 620px; }
  .blueprint { max-width: 540px; width: 100%; transform: none; }
  .blueprint-body { padding: 25px; }
  .mini-flow { justify-content: center; gap: 18px; }
  .mini-flow > span { padding: 8px 18px; }
  .section { padding-block: 45px; }
  .section-heading { display: block; }
  .section-heading > p { max-width: 600px; margin-top: 15px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { display: grid; grid-template-columns: 60px 1fr; column-gap: 20px; padding: 24px; }
  .project-mark { grid-row: 1 / 5; margin: 0; }
  .project-card > :not(.project-mark) { grid-column: 2; }
  .project-card .tech-list { margin-top: 0; margin-bottom: 12px; }
  .flow-steps { grid-template-columns: 1fr; gap: 24px; }
  .flow-node { padding: 18px 20px; }
  .flow-node:not(:last-child)::after { content: "\2193"; top: auto; bottom: -22px; right: calc(50% - 5px); font-size: 18px; }
  .node-number { margin-bottom: 5px; }
  .flow-node p { margin-bottom: 12px; }
  .node-tag { padding-top: 0; border: 0; }
  .storage-node { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .storage-node .node-number { grid-column: 1 / -1; margin: 0; }
  .storage-target + .storage-target { padding: 0 0 0 14px; border-top: 0; border-left: 1px solid #4c476a; }
  .workflow-notes { grid-template-columns: 1fr; gap: 20px; }
  .lane-heading { align-items: start; }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 11px; }
}
@media (max-width: 480px) {
  html { scroll-padding-top: 125px; }
  .topbar-inner { flex-direction: column; align-items: start; justify-content: center; gap: 5px; padding-block: 12px 7px; }
  .brand-logo { width: 35px; height: 35px; font-size: 13px; border-radius: 10px; }
  .brand-copy strong { font-size: 17px; }
  .subtitle { font-size: 10px; }
  .site-nav { justify-content: space-between; width: 100%; gap: 10px; }
  .site-nav a { padding-block: 8px; min-height: 36px; }
  .hero { padding-block: 45px 40px; }
  .hero h1 { font-size: 39px; letter-spacing: -1.8px; }
  .hero-intro { font-size: 14px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.5px; }
  .hero-actions { gap: 9px; }
  .hero-actions .btn { padding-inline: 12px; font-size: 11px; gap: 10px; }
  .hero-topics { gap: 8px 15px; font-size: 10px; }
  .blueprint-body { padding: 18px; }
  .blueprint-heading { padding-inline: 16px; font-size: 10px; }
  .mini-flow { gap: 8px; }
  .mini-flow > span { padding: 6px 10px; }
  .host-outline { padding: 14px; }
  .project-card { display: flex; padding: 24px; }
  .project-mark { margin-bottom: 20px; }
  .project-card .tech-list { margin-top: auto; }
  .flow-lane { padding: 20px 16px; }
  .lane-heading { gap: 12px; }
  .lane-heading p { font-size: 11px; }
  .architecture figcaption { padding-inline: 20px; }
  .launcher-toolbar { align-items: stretch; flex-direction: column; gap: 12px; }
  .launcher-toolbar .btn { align-self: start; }
  .filter-row { display: block; }
  .filter-label { display: block; margin-bottom: 8px; }
  .chip { min-height: 36px; }
  .footer-inner { align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
