/* Copyright © 2026 Thompson Axiomata LLC — Brent Alexander Thompson. All rights reserved. */
:root {
  --bg: #0c1319;
  --surface: #131e27;
  --surface-2: #182631;
  --border: #233544;
  --text: #e8f0f6;
  --muted: #8fa6b8;
  --accent: #54d1c9;
  --accent-strong: #2fb8af;
  --ps-bg: #162b3d;
  --ps-fg: #7cc4ff;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.55 var(--sans);
  padding-bottom: 88px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: 12px; color: #b7e6e1; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1220px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: #0f1820;
}
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 58px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
}
.brand:hover { text-decoration: none; }
.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(84, 209, 201, 0.7);
}
.badge {
  font-family: var(--mono);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(84, 209, 201, 0.14);
  color: var(--accent);
}
.nav { display: flex; gap: 18px; font-size: 13px; }
.nav a { color: var(--muted); }
.nav a:hover { color: #fff; }

/* Hero */
.hero { padding: 34px 0 20px; max-width: 780px; }
.eyebrow {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.hero h1 { margin: 0 0 10px; font-size: 32px; line-height: 1.15; color: #fff; }
.lead { margin: 0; color: var(--muted); font-size: 15px; }

/* Controls */
.controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 14px 0 22px;
}
.presets { display: flex; gap: 8px; flex-wrap: wrap; }
.preset-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 13px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.preset-btn:hover { border-color: var(--accent); color: var(--accent); }
.preset-btn--clear { color: var(--muted); }

.search-wrap input {
  width: 280px;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  padding: 8px 12px;
  font: inherit;
}

/* Ninite-style 4-column grid */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}
.cat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #1f2f3d;
}
.cat-head h2 {
  margin: 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-family: var(--mono);
}
.cat-toggle {
  background: none;
  border: none;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
  padding: 0;
}
.cat-toggle:hover { color: var(--accent); }

.tool-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tool-item label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
}
.tool-item label:hover { background: var(--surface-2); }
.tool-item.is-checked label {
  background: rgba(84, 209, 201, 0.09);
  border-color: rgba(84, 209, 201, 0.35);
}
.tool-item input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.tool-meta { min-width: 0; flex: 1; }
.tool-name-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tool-name { font-weight: 600; color: #fff; font-size: 13.5px; }
.method-tag {
  font-family: var(--mono);
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
}
.method-tag--ps1, .method-tag--uv-tool { background: var(--ps-bg); color: var(--ps-fg); }
.tool-desc { display: block; font-size: 12px; color: var(--muted); line-height: 1.35; }

/* Script Preview */
.preview-section { margin-top: 22px; }
.preview-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
}
.preview-box summary {
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
}
.preview-box pre {
  margin: 12px 0 0;
  background: #091016;
  border: 1px solid #1d2d3a;
  border-radius: 8px;
  padding: 14px;
  overflow-x: auto;
  max-height: 360px;
}

/* Resources */
.resources-section { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border); }
.section-head h2 { margin: 0 0 4px; font-size: 20px; color: #fff; }
.section-head p { margin: 0 0 16px; font-size: 13.5px; }
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.res-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}
.res-card h3 {
  margin: 0 0 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-family: var(--mono);
}
.res-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.res-card a { font-size: 13.5px; }

/* Sticky Action Bar */
.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 24, 32, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  padding: 12px 0;
  z-index: 30;
}
.action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.selection-summary strong { display: block; color: #fff; font-size: 14px; }
.selection-summary span { font-size: 12px; }
.action-buttons { display: flex; gap: 8px; flex-wrap: wrap; }

.btn {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn--primary { background: var(--accent); color: #07191a; border-color: var(--accent); }
.btn--primary:not(:disabled):hover { background: var(--accent-strong); }
.btn--ghost { background: var(--surface); color: var(--text); }
.btn--ghost:not(:disabled):hover { background: var(--surface-2); border-color: var(--accent); }

.toast {
  position: fixed;
  right: 20px;
  bottom: 84px;
  background: var(--surface-2);
  border: 1px solid var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  z-index: 40;
}

.site-footer { margin-top: 40px; border-top: 1px solid var(--border); padding: 20px 0; font-size: 12.5px; color: var(--muted); }
.footer-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-row p { margin: 0; }

@media (max-width: 1080px) {
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .catalog-grid, .resources-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 25px; }
}
/* Copyright © 2026 Thompson Axiomata LLC — Brent Alexander Thompson. All rights reserved. */
