:root {
  --ink: #e9f1fb;
  --muted: #94a8bf;
  --faint: #63778f;
  --page: #07111f;
  --page-2: #0a1727;
  --panel: #0e1d2f;
  --panel-2: #11243a;
  --line: rgba(157, 183, 211, .17);
  --cyan: #55d6d2;
  --cyan-2: #27aaa7;
  --green: #8fe388;
  --blue: #78adff;
  --violet: #ae9cff;
  --warm: #f6c76e;
  --shadow: 0 28px 80px rgba(0, 0, 0, .34);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 5%, rgba(45, 137, 180, .12), transparent 28rem),
    radial-gradient(circle at 10% 24%, rgba(69, 204, 180, .08), transparent 30rem),
    var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .7rem 1rem; color: #03111c; background: var(--cyan); border-radius: 8px; font-weight: 800; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(157, 183, 211, .12);
  background: rgba(7, 17, 31, .82);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: .7rem; width: max-content; text-decoration: none; font-size: 1.12rem; font-weight: 790; letter-spacing: -.02em; }
.brand-mark { width: 35px; height: 35px; fill: var(--cyan); filter: drop-shadow(0 0 16px rgba(85, 214, 210, .25)); }
.brand-cut { fill: var(--page); }
.brand-dot { fill: var(--blue); }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: .86rem; font-weight: 650; transition: color .2s ease; }
.site-nav a:hover { color: var(--ink); }
.header-cta { justify-self: end; padding: .55rem .9rem; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; font-size: .82rem; font-weight: 750; }
.header-cta:hover { border-color: rgba(85, 214, 210, .55); background: rgba(85, 214, 210, .07); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: center;
  max-width: var(--max);
  min-height: 720px;
  margin: auto;
  padding: 7rem 1.5rem 5rem;
}

.eyebrow { display: flex; align-items: center; gap: .7rem; margin: 0 0 1.2rem; color: var(--cyan); font-size: .72rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow span { width: 30px; height: 1px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 1.6rem; font-size: clamp(3rem, 6vw, 5.25rem); line-height: .98; letter-spacing: -.06em; font-weight: 710; }
h1 em { display: block; color: var(--cyan); font-family: ui-serif, Georgia, serif; font-weight: 500; }
.hero-lede { max-width: 660px; margin-bottom: 2.2rem; color: #abc0d5; font-size: clamp(1.03rem, 1.5vw, 1.2rem); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: .72rem 1.2rem; border-radius: 11px; text-decoration: none; font-size: .88rem; font-weight: 800; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #041318; background: var(--cyan); box-shadow: 0 12px 34px rgba(85, 214, 210, .18); }
.button-secondary { border: 1px solid var(--line); color: var(--ink); background: rgba(255, 255, 255, .025); }
.hero-stats { display: flex; gap: clamp(1.4rem, 4vw, 3.6rem); margin: 3rem 0 0; padding: 0; }
.hero-stats div { display: flex; flex-direction: column-reverse; }
.hero-stats dt { color: var(--faint); font-size: .68rem; font-weight: 760; letter-spacing: .1em; text-transform: uppercase; }
.hero-stats dd { margin: 0 0 .15rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.15rem; font-weight: 800; }

.hero-system { position: relative; min-height: 520px; padding: 4rem 2.2rem 2rem; border: 1px solid var(--line); border-radius: 32px; background: linear-gradient(160deg, rgba(17, 38, 60, .88), rgba(8, 22, 36, .66)); box-shadow: var(--shadow); overflow: hidden; }
.hero-system::before { content: ""; position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(rgba(150, 180, 210, .18) 1px, transparent 1px), linear-gradient(90deg, rgba(150, 180, 210, .18) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(to bottom, black, transparent 90%); }
.system-glow { position: absolute; width: 260px; height: 260px; top: 10%; left: 50%; transform: translateX(-50%); background: rgba(85, 214, 210, .12); filter: blur(70px); border-radius: 50%; }
.system-label { position: absolute; top: 1.25rem; left: 1.4rem; padding: .35rem .65rem; border: 1px solid rgba(85, 214, 210, .25); border-radius: 99px; color: var(--cyan); font-family: ui-monospace, monospace; font-size: .63rem; letter-spacing: .08em; text-transform: uppercase; }
.system-node { position: relative; z-index: 2; display: flex; align-items: center; gap: .9rem; width: min(100%, 310px); margin: auto; padding: 1rem 1.15rem; border: 1px solid rgba(168, 197, 224, .18); border-radius: 15px; background: rgba(8, 21, 35, .91); box-shadow: 0 12px 25px rgba(0,0,0,.22); }
.system-node strong, .system-node small { display: block; }
.system-node strong { font-size: .9rem; }
.system-node small { margin-top: .15rem; color: var(--faint); font-size: .7rem; }
.node-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--cyan); background: rgba(85, 214, 210, .1); font-family: ui-monospace, monospace; font-weight: 850; }
.system-arrow { position: relative; z-index: 2; display: block; margin: .3rem auto; color: var(--cyan); text-align: center; }
.system-split { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 2px 1fr; align-items: end; width: 58%; height: 42px; margin: 0 auto .35rem; }
.system-split span { height: 22px; border-top: 1px solid rgba(85, 214, 210, .58); }
.system-split span:first-child { border-left: 1px solid rgba(85, 214, 210, .58); border-radius: 8px 0 0; }
.system-split span:last-child { border-right: 1px solid rgba(85, 214, 210, .58); border-radius: 0 8px 0 0; }
.system-split i { height: 42px; background: rgba(85, 214, 210, .58); }
.system-columns { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.system-columns .system-node { padding: .85rem; }
.status-dot { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; box-shadow: 0 0 0 5px rgba(255,255,255,.03); }
.status-cyan { background: var(--blue); box-shadow: 0 0 14px rgba(120,173,255,.7); }
.status-green { background: var(--green); box-shadow: 0 0 14px rgba(143,227,136,.65); }
.authority-note { position: relative; z-index: 2; margin: 1.4rem auto 0; padding: .75rem; border-top: 1px solid var(--line); color: var(--muted); font-family: ui-monospace, monospace; font-size: .7rem; text-align: center; }
.authority-note b { margin: 0 .3rem; color: var(--warm); }

.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); max-width: var(--max); margin: 0 auto 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(14, 29, 47, .68); overflow: hidden; }
.trust-strip > div { position: relative; padding: 1.4rem 1.35rem; border-right: 1px solid var(--line); }
.trust-strip > div:last-child { border: 0; }
.trust-strip span { position: absolute; right: 1rem; top: .8rem; color: rgba(120, 173, 255, .25); font-family: ui-monospace, monospace; font-size: .7rem; }
.trust-strip strong, .trust-strip small { display: block; }
.trust-strip strong { margin-bottom: .35rem; font-size: .82rem; }
.trust-strip small { color: var(--faint); font-size: .7rem; line-height: 1.45; }

.section { max-width: var(--max); margin: auto; padding: 7rem 1.5rem; }
.section-tinted { max-width: none; padding-left: max(1.5rem, calc((100vw - var(--max)) / 2 + 1.5rem)); padding-right: max(1.5rem, calc((100vw - var(--max)) / 2 + 1.5rem)); border-block: 1px solid rgba(157, 183, 211, .1); background: rgba(10, 23, 39, .58); }
.section-heading { max-width: 720px; margin-bottom: 3.2rem; }
.section-heading h2, .quickstart h2, .safety-section h2 { margin-bottom: 1rem; font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.08; letter-spacing: -.045em; }
.section-heading > p:last-child, .quickstart-copy > p { color: var(--muted); font-size: 1.02rem; }

.architecture-map { display: grid; grid-template-columns: 1fr 120px 1.35fr 1fr; gap: 1rem; align-items: stretch; }
.arch-input, .arch-output, .arch-plane { min-height: 170px; padding: 1.35rem; border: 1px solid var(--line); border-radius: 17px; background: rgba(14, 29, 47, .72); }
.arch-input, .arch-output { display: flex; flex-direction: column; justify-content: center; }
.arch-input strong, .arch-output strong { margin-bottom: .4rem; font-size: 1rem; }
.arch-input small, .arch-output small { color: var(--faint); font-size: .75rem; }
.arch-kicker { margin-bottom: .6rem; color: var(--cyan); font-family: ui-monospace, monospace; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; }
.arch-arrow { display: grid; place-items: center; color: var(--cyan); font-size: 1.5rem; }
.arch-arrow span { position: absolute; margin-top: -2.8rem; color: var(--faint); font-family: ui-monospace, monospace; font-size: .6rem; letter-spacing: .05em; }
.arch-plane { background: linear-gradient(145deg, rgba(17, 40, 63, .95), rgba(13, 29, 47, .8)); }
.plane-cache { border-color: rgba(120, 173, 255, .28); }
.plane-ledger { border-color: rgba(143, 227, 136, .27); }
.plane-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; }
.plane-head span { color: var(--faint); font-family: ui-monospace, monospace; font-size: .62rem; text-transform: uppercase; }
.plane-cache .plane-head strong { color: var(--blue); }
.plane-ledger .plane-head strong { color: var(--green); }
.arch-plane ul { margin: 0; padding: 0; list-style: none; }
.arch-plane li { padding: .32rem 0 .32rem 1rem; color: var(--muted); font-size: .72rem; }
.arch-plane li::before { content: "·"; margin-left: -1rem; margin-right: .55rem; color: var(--cyan); }

.pipeline-card { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(16, 34, 54, .92), rgba(10, 24, 40, .8)); box-shadow: 0 18px 50px rgba(0,0,0,.16); }
.pipeline-card > header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.6rem; }
.pipeline-card h3 { margin: 0 0 .18rem; font-size: 1.06rem; }
.pipeline-card header p { margin: 0; color: var(--faint); font-size: .75rem; }
.pipeline-number { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(85,214,210,.3); border-radius: 12px; color: var(--cyan); background: rgba(85,214,210,.08); font-family: ui-monospace, monospace; font-weight: 850; }
.pipeline-flow { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; padding: 0; list-style: none; }
.pipeline-flow li { position: relative; min-height: 150px; padding: 1rem 1.15rem; border-left: 1px solid var(--line); }
.pipeline-flow li:first-child { border-left: 0; }
.pipeline-flow li:not(:last-child)::after { content: "→"; position: absolute; z-index: 2; top: 50%; right: -.52rem; display: grid; place-items: center; width: 1rem; height: 1.5rem; color: var(--cyan); background: #0d1d30; }
.pipeline-flow li > span { display: block; margin-bottom: 1.15rem; color: var(--cyan); font-family: ui-monospace, monospace; font-size: .65rem; }
.pipeline-flow strong, .pipeline-flow small { display: block; }
.pipeline-flow strong { margin-bottom: .45rem; font-size: .8rem; }
.pipeline-flow small { color: var(--faint); font-size: .68rem; line-height: 1.5; }
.pipeline-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 1.2rem; }
.vertical-flow { margin: 0; padding: 0; list-style: none; }
.vertical-flow li { position: relative; display: grid; grid-template-columns: 18px 1fr; gap: .85rem; min-height: 70px; }
.vertical-flow li > span { position: relative; z-index: 2; width: 10px; height: 10px; margin-top: .35rem; border: 2px solid var(--cyan); border-radius: 50%; background: var(--panel); }
.vertical-flow li:not(:last-child) > span::after { content: ""; position: absolute; top: 10px; left: 2px; width: 2px; height: 59px; background: rgba(85,214,210,.25); }
.vertical-flow strong, .vertical-flow small { display: block; }
.vertical-flow strong { margin-bottom: .25rem; font-size: .8rem; }
.vertical-flow small { color: var(--faint); font-size: .68rem; }
.erasure-flow li > span { border-color: var(--warm); }
.erasure-flow li:not(:last-child) > span::after { background: rgba(246,199,110,.27); }

.store-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.store-card { padding: 1.45rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(14,29,47,.76); }
.store-title { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.4rem; }
.store-title h3, .store-title p { margin: 0; }
.store-title p { color: var(--faint); font-size: .7rem; }
.store-glyph { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 50%; font-family: ui-monospace, monospace; font-weight: 900; }
.redis-card .store-glyph { color: var(--blue); background: rgba(120,173,255,.1); }
.sqlite-card .store-glyph { color: var(--green); background: rgba(143,227,136,.1); }
.pack-card .store-glyph { color: var(--violet); background: rgba(174,156,255,.1); }
.store-card dl { margin: 0; }
.store-card dl div { display: grid; grid-template-columns: 100px 1fr; gap: .8rem; padding: .7rem 0; border-top: 1px solid var(--line); font-size: .7rem; }
.store-card dt { color: var(--faint); }
.store-card dd { margin: 0; color: var(--muted); }

.dependency-table { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(14,29,47,.72); overflow: hidden; }
.dependency-row { display: grid; grid-template-columns: 1.2fr .8fr 1.3fr 1.4fr; align-items: center; min-height: 76px; border-top: 1px solid var(--line); }
.dependency-row:first-child { border: 0; }
.dependency-row > span { padding: .95rem 1.1rem; color: var(--muted); font-size: .72rem; }
.dependency-row strong, .dependency-row small { display: block; }
.dependency-row strong { color: var(--ink); font-size: .8rem; }
.dependency-row small { color: var(--faint); }
.table-head { min-height: 46px; background: rgba(255,255,255,.025); }
.table-head > span { color: var(--faint); font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pill { display: inline-block; padding: .25rem .52rem; border-radius: 99px; font-size: .61rem; white-space: nowrap; }
.required { color: var(--cyan); background: rgba(85,214,210,.1); }
.capability { color: var(--blue); background: rgba(120,173,255,.1); }
.bundled { color: var(--green); background: rgba(143,227,136,.1); }
.optional { color: var(--warm); background: rgba(246,199,110,.1); }
.no-deps { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-top: 1rem; }
.no-deps div { display: flex; align-items: center; gap: .65rem; padding: .8rem 1rem; border: 1px dashed rgba(157,183,211,.2); border-radius: 12px; color: var(--muted); font-size: .72rem; }
.no-deps span { color: var(--warm); font-family: ui-monospace, monospace; }

.quickstart { display: grid; grid-template-columns: .9fr 1.1fr; gap: 5rem; align-items: center; }
.doc-links { display: grid; gap: .65rem; margin-top: 2rem; }
.doc-links a { display: block; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; background: rgba(255,255,255,.02); }
.doc-links a:hover { border-color: rgba(85,214,210,.4); }
.doc-links strong, .doc-links small { display: block; }
.doc-links strong { font-size: .8rem; }
.doc-links small { margin-top: .15rem; color: var(--faint); font-size: .68rem; }
.terminal { border: 1px solid rgba(157,183,211,.2); border-radius: var(--radius); background: #050d17; box-shadow: var(--shadow); overflow: hidden; }
.terminal-bar { display: flex; align-items: center; gap: .4rem; height: 46px; padding: 0 1rem; border-bottom: 1px solid var(--line); background: #0e1a29; }
.terminal-bar span { width: 9px; height: 9px; border-radius: 50%; background: #41536a; }
.terminal-bar span:first-child { background: #e87876; }
.terminal-bar span:nth-child(2) { background: #e7c16b; }
.terminal-bar span:nth-child(3) { background: #7bc681; }
.terminal-bar b { margin-left: .5rem; color: var(--faint); font-family: ui-monospace, monospace; font-size: .64rem; font-weight: 500; }
.terminal pre { margin: 0; padding: 1.5rem; overflow-x: auto; }
.terminal code { color: #bed0e1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .72rem; line-height: 1.85; }
.terminal .prompt { color: var(--cyan); }
.terminal .success { color: var(--green); }

.safety-section { display: grid; grid-template-columns: 1fr 1.25fr auto; gap: 2.5rem; align-items: center; max-width: var(--max); margin: 2rem auto 6rem; padding: 2.4rem; border-radius: 28px; color: #07111f; background: var(--cyan); }
.safety-section h2 { margin: 0; font-size: clamp(1.8rem, 3.3vw, 2.7rem); }
.safety-section p { margin: 0; font-size: .82rem; }
.eyebrow.light { margin-bottom: .7rem; color: #0b6464; }
.button-light { border: 1px solid rgba(7,17,31,.2); white-space: nowrap; }

footer { display: grid; grid-template-columns: 1fr auto; gap: 1.2rem; align-items: center; max-width: var(--max); margin: auto; padding: 2.3rem 1.5rem 3rem; border-top: 1px solid var(--line); color: var(--faint); font-size: .68rem; }
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand strong { color: var(--ink); font-size: .88rem; }
.footer-links { display: flex; gap: 1.4rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
footer > p { grid-column: 1 / -1; margin: 0; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 5rem; }
  .hero-copy { max-width: 760px; }
  .hero-system { max-width: 600px; width: 100%; margin: auto; }
  .trust-strip { grid-template-columns: 1fr 1fr; margin-inline: 1.5rem; }
  .trust-strip > div:nth-child(2) { border-right: 0; }
  .trust-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .architecture-map { grid-template-columns: 1fr 50px 1.3fr; }
  .arch-output { display: none; }
  .pipeline-flow { grid-template-columns: 1fr; }
  .pipeline-flow li { min-height: auto; padding: .9rem 1rem .9rem 3.2rem; border-left: 0; border-top: 1px solid var(--line); }
  .pipeline-flow li:first-child { border-top: 0; }
  .pipeline-flow li > span { position: absolute; left: 1rem; margin: 0; }
  .pipeline-flow li:not(:last-child)::after { content: "↓"; top: auto; right: auto; bottom: -.78rem; left: 1rem; }
  .store-grid { grid-template-columns: 1fr; }
  .dependency-row { grid-template-columns: 1fr .8fr 1.4fr; }
  .dependency-row > span:last-child { display: none; }
  .no-deps { grid-template-columns: 1fr 1fr; }
  .quickstart { grid-template-columns: 1fr; gap: 3rem; }
  .safety-section { grid-template-columns: 1fr; margin-inline: 1.5rem; }
  .safety-section .button { justify-self: start; }
}

@media (max-width: 640px) {
  .site-header { min-height: 62px; padding-inline: 1rem; }
  .header-cta { font-size: 0; }
  .header-cta::after { content: "GitHub"; font-size: .74rem; }
  .hero { min-height: auto; padding: 4rem 1rem 3.5rem; }
  h1 { font-size: clamp(2.8rem, 15vw, 4.2rem); }
  .hero-stats { gap: 1rem; justify-content: space-between; }
  .hero-stats dd { font-size: .95rem; }
  .hero-system { min-height: 500px; padding-inline: 1rem; }
  .system-columns { grid-template-columns: 1fr; }
  .system-split { display: none; }
  .system-columns .system-node { margin-top: .65rem; }
  .trust-strip { grid-template-columns: 1fr; margin-inline: 1rem; }
  .trust-strip > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .section, .section-tinted { padding: 5rem 1rem; }
  .architecture-map { grid-template-columns: 1fr; }
  .arch-arrow { min-height: 44px; transform: rotate(90deg); }
  .arch-arrow span { display: none; }
  .pipeline-pair { grid-template-columns: 1fr; }
  .dependency-row { grid-template-columns: 1fr .8fr; }
  .dependency-row > span:nth-child(3), .table-head > span:nth-child(3) { display: none; }
  .no-deps { grid-template-columns: 1fr; }
  .safety-section { margin: 1rem 1rem 4rem; padding: 1.6rem; }
  footer { grid-template-columns: 1fr; padding-inline: 1rem; }
  .footer-links { flex-wrap: wrap; }
}

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