:root {
  color-scheme: dark;
  --ink: #f1f3e9;
  --muted: #9da496;
  --paper: #10120f;
  --panel: #171a16;
  --line: #343a30;
  --lime: #c9ff63;
  --amber: #ffbe5c;
  --cyan: #64dfe6;
  --violet: #c19cff;
  --mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
a { color: inherit; }
svg { width: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: square; stroke-linejoin: miter; }
.sr-only { position: absolute; width: 1px; height: 1px; clip: rect(0, 0, 0, 0); overflow: hidden; }
.skip-link { position: fixed; z-index: 20; top: 8px; left: 8px; transform: translateY(-150%); background: var(--lime); color: #111; padding: .7rem 1rem; }
.skip-link:focus { transform: none; }

.site-header { height: 82px; padding: 0 clamp(20px, 4vw, 72px); display: flex; align-items: center; border-bottom: 1px solid var(--line); position: relative; z-index: 3; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: 250px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; color: var(--lime); }
.brand-mark svg { width: 38px; }
.brand b, .brand small { display: block; }
.brand b { font-size: 1.05rem; letter-spacing: .16em; }
.brand small { margin-top: 3px; color: var(--muted); font: .62rem/1 var(--mono); letter-spacing: .12em; }
nav { display: flex; gap: clamp(18px, 3vw, 42px); margin: auto; }
nav a { color: var(--muted); font: .77rem var(--mono); text-decoration: none; text-transform: uppercase; }
nav a:hover, nav a:focus-visible { color: var(--lime); }
.header-cta { display: inline-flex; gap: 8px; align-items: center; color: var(--ink); font: .75rem var(--mono); text-decoration: none; }

.hero { min-height: 680px; padding: 95px clamp(20px, 8vw, 150px) 0; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-grid { position: absolute; inset: 0; opacity: .18; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to right, transparent, #000 35%); }
.hero::after { content: "PI"; position: absolute; right: -2vw; top: 40px; color: transparent; -webkit-text-stroke: 1px #2c3129; font: 480px/.8 var(--mono); letter-spacing: -.16em; z-index: -1; }
.eyebrow { color: var(--muted); font: .7rem var(--mono); letter-spacing: .14em; }
.eyebrow span { display: inline-block; width: 28px; border-top: 1px solid var(--lime); vertical-align: middle; margin-right: 10px; }
h1 { max-width: 900px; margin: 32px 0 24px; font-size: clamp(3.4rem, 7.8vw, 7rem); line-height: .93; letter-spacing: -.065em; font-weight: 720; }
h1 em { color: var(--lime); font-style: normal; font-weight: 420; }
.hero-copy { max-width: 690px; color: #b8beb2; font-size: clamp(1rem, 1.5vw, 1.25rem); line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 38px; flex-wrap: wrap; }
.primary-action { display: inline-flex; align-items: center; gap: 28px; background: var(--lime); color: #11140e; padding: 16px 20px; text-decoration: none; font: 700 .82rem var(--mono); }
.primary-action:hover { background: #ddff9d; }
.hero-actions code { color: var(--muted); padding: 12px 14px; border: 1px solid var(--line); font: .75rem var(--mono); }
.hero-facts { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); max-width: 860px; margin: 72px 0 0; border: 1px solid var(--line); border-bottom: 0; }
.hero-facts div { padding: 18px 20px; border-right: 1px solid var(--line); }
.hero-facts div:last-child { border-right: 0; }
.hero-facts dt { color: var(--muted); font: .6rem var(--mono); letter-spacing: .14em; }
.hero-facts dd { margin: 8px 0 0; font: .85rem var(--mono); }

.catalog-section { padding: 90px clamp(20px, 6vw, 110px) 120px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
h2 { margin: 8px 0 0; font-size: clamp(2.4rem, 5vw, 4.5rem); letter-spacing: -.045em; }
.catalog-notice { max-width: 560px; margin: 0; color: var(--muted); line-height: 1.6; font-size: .86rem; }
.catalog-controls { display: flex; gap: 20px; justify-content: space-between; margin-top: 48px; }
.search-control { flex: 1; max-width: 650px; height: 54px; display: flex; align-items: center; gap: 12px; padding: 0 16px; border: 1px solid var(--line); background: #131612; }
.search-control:focus-within { border-color: var(--lime); }
.search-control input { flex: 1; color: var(--ink); background: transparent; border: 0; outline: 0; font: .88rem var(--mono); }
kbd { color: var(--muted); border: 1px solid var(--line); padding: 2px 7px; font: .7rem var(--mono); }
.filter-group { display: flex; border: 1px solid var(--line); }
.filter { border: 0; border-right: 1px solid var(--line); padding: 0 18px; background: transparent; color: var(--muted); font: .72rem var(--mono); cursor: pointer; }
.filter:last-child { border-right: 0; }
.filter.is-active { background: var(--ink); color: var(--paper); }
.catalog-meta { display: flex; justify-content: space-between; color: var(--muted); margin: 22px 0; font: .67rem var(--mono); letter-spacing: .08em; }
.status-dot { display: inline-block; width: 6px; height: 6px; margin: 0 5px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px var(--amber); }
.package-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.package-card { --accent: var(--lime); min-height: 330px; padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; position: relative; background: var(--panel); animation: card-in .45s calc(var(--index) * 60ms) both; }
.package-card::before { content: ""; position: absolute; top: -1px; left: -1px; width: 58px; border-top: 2px solid var(--accent); }
.package-card:hover { background: #1d211b; }
.accent-amber { --accent: var(--amber); }.accent-cyan { --accent: var(--cyan); }.accent-violet { --accent: var(--violet); }
.card-topline { display: flex; justify-content: space-between; align-items: start; }
.runtime-icon { display: grid; place-items: center; width: 38px; height: 38px; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line)); }
.runtime-icon.large { width: 54px; height: 54px; }
.package-status { padding: 6px 9px; color: var(--amber); border: 1px solid #5f4e2e; font: .63rem var(--mono); text-transform: uppercase; }
.status-available { color: var(--lime); border-color: #4c632e; }
.package-id { margin: 32px 0 8px; color: var(--muted); font: .67rem var(--mono); }
.package-card h3 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.04em; }
.package-summary { max-width: 620px; color: #b2b8ad; line-height: 1.65; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-list span { padding: 5px 8px; color: var(--muted); background: #11130f; border: 1px solid var(--line); font: .61rem var(--mono); }
.card-footer { margin-top: auto; padding-top: 26px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; color: var(--muted); font: .66rem var(--mono); }
.card-footer button { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; color: var(--ink); font: .7rem var(--mono); cursor: pointer; }
.card-footer button:hover { color: var(--accent); }
.empty-state { padding: 70px; text-align: center; border: 1px solid var(--line); color: var(--muted); }
.empty-state svg { width: 48px; }.empty-state h3 { color: var(--ink); }

.trust-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 8vw, 140px); padding: 110px clamp(20px, 6vw, 110px); background: var(--lime); color: #11140e; }
.trust-intro .eyebrow { color: #536233; }.trust-intro h2 { max-width: 520px; }.trust-intro > p:last-child { max-width: 480px; line-height: 1.65; }
.trust-flow { margin: 0; padding: 0; list-style: none; border-top: 1px solid #879f4e; }
.trust-flow li { display: grid; grid-template-columns: 50px 160px 1fr; gap: 15px; align-items: center; padding: 24px 0; border-bottom: 1px solid #879f4e; }
.trust-flow span { font: .7rem var(--mono); }.trust-flow b { font-size: 1.05rem; }.trust-flow p { margin: 0; color: #44502d; font-size: .87rem; }
footer { padding: 50px clamp(20px, 6vw, 110px); display: grid; grid-template-columns: 1fr 1fr auto; gap: 30px; align-items: center; color: var(--muted); border-top: 1px solid var(--line); font: .7rem var(--mono); }
.footer-brand { display: block; min-width: 0; }.footer-brand b { color: var(--ink); }

dialog { width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; color: var(--ink); background: #171a16; border: 1px solid #4a5145; box-shadow: 0 30px 100px #000b; }
dialog::backdrop { background: #070806cf; backdrop-filter: blur(6px); }
#dialog-content { padding: 50px; }
.dialog-close { position: absolute; right: 18px; top: 18px; display: grid; place-items: center; width: 38px; height: 38px; color: var(--muted); background: transparent; border: 1px solid var(--line); cursor: pointer; }
.dialog-close:hover { color: var(--lime); border-color: var(--lime); }
.dialog-title-row { display: flex; gap: 18px; align-items: center; margin: 24px 0; }.dialog-title-row .package-id { margin: 0 0 6px; }.dialog-title-row h2 { font-size: 2.5rem; margin: 0; }
.dialog-summary { color: #bbc1b6; line-height: 1.7; }
.package-facts { display: grid; grid-template-columns: 1fr 1fr; margin: 30px 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.package-facts div { padding: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }.package-facts dt { color: var(--muted); font: .6rem var(--mono); }.package-facts dd { margin: 7px 0 0; font: .76rem var(--mono); }.package-facts dd svg { vertical-align: middle; color: var(--lime); }
.capability-block > b { display: block; margin-bottom: 12px; font-size: .8rem; }
.dialog-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }.dialog-actions code, .preview-note { width: 100%; padding: 14px; margin: 0; border: 1px solid var(--line); color: var(--muted); font: .7rem/1.6 var(--mono); }.dialog-actions a { padding: 11px 14px; color: #111; background: var(--lime); text-decoration: none; font: 700 .68rem var(--mono); }

@keyframes card-in { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; } }
@media (max-width: 820px) {
  .site-header { height: 70px; }.site-header nav { display: none; }.header-cta { margin-left: auto; }.brand { min-width: 0; }
  .hero { min-height: auto; padding: 70px 22px 0; }.hero::after { font-size: 250px; }.hero-facts { grid-template-columns: 1fr 1fr; }.hero-facts div:nth-child(2) { border-right: 0; }.hero-facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-heading, .catalog-controls { align-items: stretch; flex-direction: column; }.filter-group { height: 46px; }.filter { flex: 1; padding: 0 8px; }
  .catalog-section { padding: 70px 18px; }.package-grid { grid-template-columns: 1fr; }
  .trust-section { grid-template-columns: 1fr; padding: 70px 22px; }.trust-flow li { grid-template-columns: 34px 1fr; }.trust-flow p { grid-column: 2; }
  footer { grid-template-columns: 1fr; }#dialog-content { padding: 46px 22px 26px; }.package-facts { grid-template-columns: 1fr; }
}
