:root {
  --bg: #0f1420;
  --panel: #1a2233;
  --line: #2a3550;
  --accent: #7dd3a8;
  --accent-dim: #3d7a5e;
  --head: #ffffff;
  --text: #e6ecf5;
  --sub: #c9d4e5;
  --muted: #8a97ad;
  --ok: #22c55e;
  --check: #f59e0b;
  --fix: #ef4444;
  --shadow: 0 18px 50px rgba(0,0,0,.35);
  --radius: 14px;
  --max: 1120px;
  --sans: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.55; }
html { scroll-behavior: smooth; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 12px; top: 12px; background: var(--panel); padding: 8px 12px; z-index: 80; }

header.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(15,20,32,.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  padding: 10px 20px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--accent); font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; font-size: 13px; white-space: nowrap;
}
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.brand:hover { text-decoration: none; }

nav.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
nav.tabs a {
  color: var(--sub); padding: 7px 11px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600;
}
nav.tabs a:hover { background: var(--panel); text-decoration: none; color: var(--head); }
nav.tabs a[aria-current="page"] {
  background: #223047; color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--line);
}

.menu-btn {
  display: none; margin-left: auto;
  background: var(--panel); border: 1px solid var(--line);
  color: var(--head); border-radius: 8px; padding: 8px 10px; cursor: pointer;
}

.hero {
  position: relative; min-height: 520px;
  display: grid; place-items: center;
  overflow: hidden;
  background:
    radial-gradient(800px 400px at 70% 20%, rgba(125,211,168,.12), transparent 60%),
    linear-gradient(180deg, #12192a 0%, var(--bg) 100%);
}
#hero-canvas, .hero-fallback {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
#hero-canvas { z-index: 1; display: block; }
.hero-fallback {
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(15,20,32,.25), rgba(15,20,32,.82)),
    url("../assets/hq-still.png") center/cover no-repeat;
}
.hero.no-webgl #hero-canvas { display: none; }
.hero.webgl-on .hero-fallback { display: none; }

.hero-copy {
  position: relative; z-index: 2;
  max-width: var(--max); width: 100%;
  padding: 72px 20px 56px;
  text-align: left;
  pointer-events: none;
}
.hero-copy * { pointer-events: auto; }
.kicker {
  color: var(--accent); letter-spacing: .16em; font-weight: 700;
  text-transform: uppercase; font-size: 12px; margin: 0 0 12px;
}
h1 { font-weight: 800; font-size: clamp(36px, 6vw, 64px); line-height: 1.05; color: var(--head); margin: 0 0 16px; max-width: 16ch; }
.lede { font-size: 19px; color: var(--sub); max-width: 40ch; margin: 0 0 24px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #0b1220; font-weight: 700;
  padding: 10px 16px; border-radius: 999px; border: 0;
}
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn.ghost {
  background: transparent; color: var(--head);
  box-shadow: inset 0 0 0 1px var(--line);
}

main, .wrap { max-width: var(--max); margin: 0 auto; padding: 28px 20px 64px; }
.page-head { margin: 12px 0 28px; }
.page-head h1 { font-size: clamp(28px, 4vw, 44px); max-width: none; }
.page-head p { color: var(--sub); max-width: 70ch; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 10px;
}
.card h2, .card h3 { margin: 0; color: var(--head); font-size: 18px; line-height: 1.3; }
.card p { margin: 0; color: var(--sub); font-size: 14.5px; flex: 1; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--bg);
  background: var(--accent); border-radius: 999px; padding: 3px 8px;
}
.pill.muted { background: #2a3550; color: var(--sub); }
.pill.paid { background: #3d7a5e; color: #e9fff5; }
.links { display: flex; flex-wrap: wrap; gap: 8px 12px; font-size: 13.5px; font-weight: 600; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.filters button {
  background: var(--panel); color: var(--sub); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 12px; cursor: pointer; font-weight: 600;
}
.filters button[aria-pressed="true"], .filters button:hover {
  color: var(--accent); border-color: var(--accent-dim);
}

.editions { margin-top: 8px; padding: 12px; background: #141b2b; border-radius: 10px; border: 1px solid var(--line); }
.editions h4 { margin: 0 0 8px; font-size: 13px; color: var(--accent); letter-spacing: .06em; text-transform: uppercase; }
.editions li { margin: 0 0 6px; color: var(--sub); font-size: 14px; }
.editions ul { margin: 0; padding-left: 18px; }

.home-sections h2 { margin: 36px 0 14px; }
.feature-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; align-items: center; margin: 8px 0 40px; }
.feature-row img {
  width: 100%; border-radius: var(--radius); border: 1px solid var(--line);
  aspect-ratio: 16/10; object-fit: cover;
}
.note { color: var(--muted); font-size: 14px; }

footer.site {
  border-top: 1px solid var(--line);
  padding: 28px 20px 40px;
  color: var(--muted); font-size: 14px;
}
.foot-inner { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer .oath { color: var(--sub); font-style: italic; }

.listed-on {
  max-width: var(--max);
  margin: 18px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}
.listed-on-label {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.listed-on-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.listed-on-row a { color: var(--sub); font-size: 13px; }
.listed-on-row img {
  display: block;
  height: 40px;
  width: auto;
  border: 0;
}
.listed-on-row a[href="https://fazier.com/launches/pandafederation.com"] img {
  height: auto;
  width: 120px;
}

.coming {
  background:
    linear-gradient(180deg, rgba(125,211,168,.08), transparent),
    var(--panel);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.article-list { list-style: none; padding: 0; margin: 0; }
.article-list li { border-bottom: 1px solid var(--line); padding: 12px 0; }
.article-list time { display: block; color: var(--muted); font-size: 12px; }

@media (max-width: 800px) {
  .menu-btn { display: inline-flex; }
  nav.tabs {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: rgba(15,20,32,.98); border-bottom: 1px solid var(--line);
    padding: 10px 16px 16px; flex-direction: column;
  }
  header.nav.open nav.tabs { display: flex; }
  .feature-row { grid-template-columns: 1fr; }
  .hero { min-height: 460px; }
  h1 { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

pre, code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
code { font-size: 0.95em; }
pre {
  background: #0b101c;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  overflow: auto;
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0;
}
.product-hero {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 8px;
}
.product-hero img {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #0b101c;
  flex-shrink: 0;
}
.product-hero .page-head { margin: 0; }
.tool-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.tool-grid div { color: var(--sub); font-size: 14.5px; }
.tool-grid strong { color: var(--head); display: block; margin-bottom: 2px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 800px) {
  .product-hero { flex-direction: column; align-items: flex-start; }
}

/* Visually hidden WebMCP declarative forms (scanners still read the markup). */
.webmcp-tools{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
