/* HostStack — clean tech directory (not MenuDoro gold) */
:root {
  --bg: #0b0f14;
  --surface: #121820;
  --surface-2: #1a222d;
  --border: #2a3544;
  --text: #e8eef5;
  --muted: #8b9bb0;
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --accent-soft: rgba(59, 130, 246, 0.12);
  --ok: #34d399;
  --radius: 10px;
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-hover); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
code, .mono { font-family: var(--mono); font-size: 0.9em; }

.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11, 15, 20, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.85rem 0;
}
.logo {
  display: flex; align-items: center; gap: 0.55rem;
  color: var(--text); font-weight: 700; letter-spacing: -0.02em;
  text-decoration: none;
}
.logo:hover { text-decoration: none; color: var(--text); }
.logo-mark {
  width: 28px; height: 28px; border-radius: 7px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  display: grid; place-items: center; font-size: 0.75rem; font-weight: 800;
  color: #fff;
}
.nav-links { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; }
.nav-links a { color: var(--muted); font-size: 0.92rem; text-decoration: none; }
.nav-links a:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem; padding: 0.55rem 1rem; border-radius: 8px;
  font-weight: 600; font-size: 0.92rem; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; line-height: 1.2;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost {
  background: transparent; color: var(--text); border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--muted); background: var(--surface); }
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.45; cursor: not-allowed; pointer-events: none;
}

/* Sponsor slot */
.sponsor-slot {
  margin: 1.25rem 0 0;
  border: 1px dashed var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.sponsor-slot .label {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); margin: 0 0 0.2rem;
}
.sponsor-slot .cta { color: var(--text); font-weight: 600; margin: 0; }
.sponsor-slot .cta a { color: var(--accent-hover); }

/* Hero */
.hero { padding: 2.2rem 0 1.2rem; }
.hero h1 {
  margin: 0 0 0.6rem; font-size: clamp(1.7rem, 4vw, 2.35rem);
  letter-spacing: -0.03em; line-height: 1.2;
}
.hero p { margin: 0; color: var(--muted); max-width: 38rem; font-size: 1.05rem; }
.badge-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1rem; }
.badge {
  font-size: 0.75rem; color: var(--muted); background: var(--surface-2);
  border: 1px solid var(--border); padding: 0.25rem 0.55rem; border-radius: 999px;
}

/* Search + filters */
.controls {
  display: grid; gap: 0.75rem; margin: 1.5rem 0 1rem;
}
@media (min-width: 720px) {
  .controls { grid-template-columns: 1fr auto; align-items: start; }
}
.search {
  width: 100%; padding: 0.75rem 1rem; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-size: 1rem;
}
.search:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.search::placeholder { color: var(--muted); }
.cats {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.cat-btn {
  border: 1px solid var(--border); background: var(--surface);
  color: var(--muted); padding: 0.4rem 0.7rem; border-radius: 999px;
  font-size: 0.82rem; cursor: pointer;
}
.cat-btn:hover, .cat-btn[aria-pressed="true"] {
  color: var(--text); border-color: var(--accent); background: var(--accent-soft);
}

/* Tool grid */
.meta-line {
  color: var(--muted); font-size: 0.88rem; margin: 0 0 1rem;
}
.tool-grid {
  display: grid; gap: 0.85rem;
  grid-template-columns: 1fr;
  margin-bottom: 3rem;
}
@media (min-width: 640px) {
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .tool-grid { grid-template-columns: repeat(3, 1fr); }
}
.tool-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.05rem 1.1rem;
  display: flex; flex-direction: column; gap: 0.55rem;
  transition: border-color 0.15s ease;
}
.tool-card:hover { border-color: #3d4f66; }
.tool-card h2 {
  margin: 0; font-size: 1.05rem; letter-spacing: -0.02em;
}
.tool-card h2 a { color: var(--text); text-decoration: none; }
.tool-card h2 a:hover { color: var(--accent-hover); }
.tool-card .desc { margin: 0; color: var(--muted); font-size: 0.92rem; flex: 1; }
.tool-card .tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tag {
  font-size: 0.72rem; color: var(--accent-hover); background: var(--accent-soft);
  padding: 0.18rem 0.45rem; border-radius: 6px;
}
.tool-card .foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 0.5rem; margin-top: 0.25rem; font-size: 0.82rem; color: var(--muted);
}
.empty {
  grid-column: 1 / -1; text-align: center; padding: 2.5rem 1rem;
  color: var(--muted); border: 1px dashed var(--border); border-radius: var(--radius);
}

/* Pages */
.page { padding: 2rem 0 3.5rem; }
.page h1 {
  margin: 0 0 0.75rem; font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  letter-spacing: -0.03em;
}
.page .lede { color: var(--muted); max-width: 40rem; margin: 0 0 1.75rem; }
.prose { max-width: 42rem; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); }
.prose h2 { margin: 1.75rem 0 0.6rem; font-size: 1.2rem; color: var(--text); }
.prose ul { padding-left: 1.2rem; }

/* Pricing cards */
.price-grid {
  display: grid; gap: 1rem; margin: 1.5rem 0 2rem;
}
@media (min-width: 720px) {
  .price-grid { grid-template-columns: repeat(2, 1fr); }
}
.price-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.35rem 1.4rem;
}
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-soft); }
.price-card h2 { margin: 0 0 0.35rem; font-size: 1.15rem; }
.price-card .price {
  font-size: 1.85rem; font-weight: 700; letter-spacing: -0.03em; margin: 0.4rem 0;
}
.price-card .price span { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.price-card .early {
  display: inline-block; font-size: 0.75rem; color: var(--ok);
  background: rgba(52, 211, 153, 0.12); padding: 0.2rem 0.5rem; border-radius: 6px;
  margin-bottom: 0.6rem;
}
.price-card ul { margin: 0.75rem 0 1.1rem; padding-left: 1.15rem; color: var(--muted); font-size: 0.92rem; }
.fineprint {
  font-size: 0.8rem; color: var(--muted); border-top: 1px solid var(--border);
  padding-top: 1rem; margin-top: 1rem; max-width: 42rem;
}

/* Forms */
.form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem; max-width: 28rem;
}
.form label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.35rem; }
.form input {
  width: 100%; padding: 0.7rem 0.85rem; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
  font-size: 1rem; margin-bottom: 0.9rem;
}
.form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-note { font-size: 0.8rem; color: var(--muted); margin: 0.75rem 0 0; }

/* Tool detail */
.tool-hero {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start;
  justify-content: space-between; margin-bottom: 1.5rem;
}
.tool-hero .cats-inline { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }
.detail-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem 1.35rem; max-width: 42rem;
}
.detail-box dl { margin: 0; display: grid; gap: 0.85rem; }
.detail-box dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 0 0 0.15rem; }
.detail-box dd { margin: 0; color: var(--text); }
.back { display: inline-block; margin-bottom: 1rem; color: var(--muted); font-size: 0.9rem; }
.back:hover { color: var(--accent-hover); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border); padding: 1.75rem 0 2.25rem;
  color: var(--muted); font-size: 0.88rem;
}
.footer-row {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  align-items: flex-start;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.cmp{width:100%;border-collapse:collapse;font-size:.92rem}.cmp th,.cmp td{border:1px solid var(--border,#2a2f3a);padding:.6rem;text-align:left;vertical-align:top}.cmp th{background:rgba(127,127,127,.12)}
