/* AIM Transparency Directory — shares the landing/docs monochrome Geist system. */

:root {
  --ink: #0a0a0a;
  --ink-soft: #404040;
  --muted: #737373;
  --faint: #a3a3a3;
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-ink: #0a0a0a;
  --line: #e5e5e5;
  --line-soft: #f0f0f0;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-sm: 10px;
  --maxw: 1140px;
  --font: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 600;
  cursor: pointer; border: 1px solid transparent; white-space: nowrap; font-family: inherit;
  transition: background .16s ease, border-color .16s ease, transform .16s ease, color .16s ease;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #262626; transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { height: 40px; font-size: 14px; padding: 0 16px; }
.btn svg { width: 16px; height: 16px; }

/* Header */
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .8); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 16px; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -.02em; font-size: 16px; }
.brand .mark { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: var(--ink); flex: none; }
.brand .mark svg { width: 20px; height: 20px; }
.nav-links { display: flex; gap: 28px; margin-left: 30px; }
.nav-links a { color: var(--muted); font-size: 14.5px; font-weight: 500; transition: color .15s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.here { color: var(--ink); font-weight: 600; }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
@media (max-width: 760px) { .nav-links { display: none; } }

/* Eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600;
  color: var(--ink); background: #fff; border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; letter-spacing: -.005em;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); flex: none; }

/* Hero (search) */
.hero { padding: 72px 0 30px; text-align: center; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; margin: 22px auto 0; max-width: 760px; }
.hero .sub { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 620px; margin: 20px auto 0; line-height: 1.55; }
.hero .sub strong { color: var(--ink); font-weight: 600; }

.searchbar {
  display: flex; align-items: center; gap: 11px; max-width: 540px; margin: 30px auto 0; height: 52px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--muted);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.searchbar:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(10, 10, 10, .06); }
.searchbar svg { flex: none; }
.searchbar input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--ink); font-family: inherit; }
.count { margin-top: 16px; font-size: 13.5px; color: var(--faint); }

/* List + cards */
.list-wrap { padding: 16px 0 90px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

.site { display: flex; align-items: center; gap: 13px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .16s ease, border-color .16s ease; }
.site:hover { transform: translateY(-2px); border-color: #d4d4d4; }
.favicon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: none; font-weight: 700; font-size: 16px; color: #fff; background: var(--ink); }
.site-main { flex: 1; min-width: 0; }
.site-name { font-weight: 600; font-size: 14.5px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-host { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-meta { font-size: 11.5px; font-weight: 600; color: var(--ink-soft); background: var(--bg-soft); border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px; flex: none; }

.empty { text-align: center; color: var(--muted); padding: 64px 0; font-size: 15px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 48px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer .brand { font-size: 15px; }
footer a.ft { text-decoration: underline; text-underline-offset: 2px; }

/* Trust line under the hero */
.trustline { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin: 26px auto 0; font-size: 13.5px; color: var(--muted); }
.trustline span { display: inline-flex; align-items: center; gap: 7px; }
.trustline svg { width: 15px; height: 15px; color: var(--ink); flex: none; }

/* List header */
.list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 18px; flex-wrap: wrap; }
.list-head h2 { font-size: 18px; letter-spacing: -.015em; margin: 0; font-weight: 600; }
.list-head .note { font-size: 13px; color: var(--muted); }

/* Verified check on cards */
.site-name-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.verified { flex: none; display: inline-grid; place-items: center; color: var(--ink); }
.verified svg { width: 14px; height: 14px; }

/* Skeleton loading */
.skel { height: 72px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(100deg, #fafafa 30%, #f0f0f0 50%, #fafafa 70%); background-size: 200% 100%; animation: shimmer 1.25s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Bottom CTA band */
.cta { background: var(--bg-ink); color: #fff; border-radius: var(--radius-lg); padding: 54px 40px; text-align: center; margin: 28px 0 72px; }
.cta h2 { font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -.03em; margin: 0; font-weight: 700; }
.cta p { color: #a3a3a3; max-width: 520px; margin: 14px auto 0; line-height: 1.55; }
.cta .row { display: flex; gap: 12px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.cta .btn-primary { background: #fff; color: var(--ink); }
.cta .btn-primary:hover { background: #e5e5e5; }
.cta .btn-ghost { background: transparent; color: #fff; border-color: #333; }
.cta .btn-ghost:hover { border-color: #fff; }
