/* Figro — Hub CSS */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f7f9fc;
  --bg2: #ffffff;
  --bg3: #eef2f8;
  --border: #e3e8f0;
  --text: #0f172a;
  --text-muted: #5b6878;
  --accent: #2563eb;
  --accent2: #0284c7;
  --accent3: #059669;
  --card-hover: #f8fbff;
  --radius: 10px;
  --shadow: 0 6px 20px rgba(37,99,235,.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: .75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -.5px;
  white-space: nowrap;
}
.nav-logo span { color: var(--accent2); }

/* HERO */
.hero {
  background: linear-gradient(160deg, #ffffff 0%, #eaf1ff 100%);
  border-bottom: 1px solid var(--border);
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero h1 .brand { color: var(--accent); }
.hero h1 .brand2 { color: var(--accent2); }
.hero p.tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.stat {
  text-align: center;
}
.stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
}
.stat-label {
  font-size: .8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* SEARCH */
.search-wrap {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}
.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
}
#search {
  width: 100%;
  padding: .85rem 1rem .85rem 2.75rem;
  border-radius: 50px;
  border: 2px solid var(--border);
  background: var(--bg2);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color .2s;
}
#search:focus { border-color: var(--accent); }
#search::placeholder { color: var(--text-muted); }

/* MAIN */
.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* ABOUT */
.about {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  margin-bottom: 2.5rem;
}
.about h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent2);
  margin-bottom: .75rem;
}
.about p {
  color: var(--text-muted);
  margin-bottom: .6rem;
}
.about p:last-child { margin-bottom: 0; }

/* CATEGORY */
.category {
  margin-bottom: 2.5rem;
}
.category-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.1rem;
}
.category-icon { font-size: 1.25rem; }
.category-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.category-count {
  font-size: .75rem;
  background: var(--bg3);
  color: var(--text-muted);
  padding: .15rem .5rem;
  border-radius: 20px;
  border: 1px solid var(--border);
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}

/* CARD */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: transform .15s, border-color .15s, background .15s, box-shadow .15s;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: var(--card-hover);
  box-shadow: var(--shadow);
}
.card-name {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
}
.card-desc {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.card-badge {
  font-size: .7rem;
  color: var(--accent3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* NO RESULTS */
#no-results {
  display: none;
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
  font-size: 1rem;
}

/* FOOTER */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: .85rem;
}
.footer a {
  color: var(--accent);
  text-decoration: none;
}
.footer a:hover { text-decoration: underline; }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: .75rem;
}

/* RESPONSIVE */
@media (max-width: 640px) {
  .hero { padding: 2.5rem 1rem 2rem; }
  .main { padding: 1.5rem 1rem 3rem; }
  .about { padding: 1.25rem 1.25rem; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .75rem; }
  .hero-stats { gap: 1.25rem; }
}
