:root {
  --navy: #0a2a66;
  --navy-deep: #07204f;
  --blue: #1c5cc4;
  --blue-soft: #eaf1fc;
  --gold: #f4b62c;
  --gold-deep: #d99a10;
  --ink: #14202e;
  --muted: #5b6b7d;
  --line: #e4e9f0;
  --bg: #f6f8fb;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(16,40,80,.04), 0 8px 24px rgba(16,40,80,.06);
  --shadow-lg: 0 20px 60px rgba(10,42,102,.22);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1160px;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-weight: 700; cursor: pointer;
  padding: 12px 20px; border-radius: 999px; border: 0;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: #3a2a00; box-shadow: 0 6px 16px rgba(217,154,16,.3); }
.btn-gold:hover { background: var(--gold-deep); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.link { background: none; border: 0; color: var(--blue); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-logos { height: 44px; width: auto; display: block; }
.brand-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 11px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff; font-weight: 800; font-size: .92rem; letter-spacing: .02em;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.12);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.02rem; }
.brand-text span { font-size: .78rem; color: var(--muted); font-weight: 600; }
.header-nav { display: flex; align-items: center; gap: 26px; }
.header-nav a { color: var(--ink); font-weight: 600; font-size: .95rem; }
.header-nav a:hover { color: var(--blue); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(28,92,196,.18), transparent 60%),
    radial-gradient(900px 400px at 0% 0%, rgba(244,182,44,.14), transparent 55%),
    linear-gradient(180deg, #fff, var(--bg));
  border-bottom: 1px solid var(--line);
}
.hero-inner { padding: 64px 24px 52px; text-align: center; }
.eyebrow {
  display: inline-block; margin: 0 0 18px; padding: 6px 14px;
  background: var(--blue-soft); color: var(--navy);
  border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; color: var(--navy-deep); }
.hero-sub { max-width: 620px; margin: 18px auto 30px; color: var(--muted); font-size: 1.08rem; }
.hero-sub strong { color: var(--ink); }
.search-bar {
  display: flex; align-items: center; gap: 12px;
  max-width: 600px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 8px 6px 18px;
  box-shadow: var(--shadow);
  transition: box-shadow .15s ease, border-color .15s ease;
}
.search-bar:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.search-icon { width: 20px; height: 20px; color: var(--muted); flex: none; }
.search-bar input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 1rem; background: transparent; padding: 10px 0; }
.hero-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.hero-stats .chip {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-size: .88rem; font-weight: 600; color: var(--muted);
  box-shadow: var(--shadow);
}
.hero-stats .chip b { color: var(--navy); }

/* ---------- Filters ---------- */
.directory { padding: 40px 24px 80px; }
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 22px; }
.filter {
  font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer;
  padding: 8px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  transition: all .14s ease;
}
.filter:hover { border-color: var(--blue); color: var(--navy); }
.filter.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.filter .n { opacity: .6; margin-left: 5px; font-weight: 700; }
.filter.active .n { opacity: .8; }

.results-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 16px; }
#result-count { color: var(--muted); font-size: .92rem; font-weight: 600; }
.sort { color: var(--muted); font-size: .9rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.sort select {
  font: inherit; font-weight: 600; color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; background: #fff; cursor: pointer;
}

/* ---------- Grid & cards ---------- */
.grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; cursor: pointer; text-align: left;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--cat-color, var(--blue)); opacity: .9;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-top { display: flex; align-items: center; gap: 14px; }
.avatar {
  flex: none; width: 52px; height: 52px; border-radius: 13px;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.15rem;
  background: var(--cat-color, var(--blue));
}
.card-id { min-width: 0; }
.card-id h3 { font-size: 1.08rem; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-biz { font-size: .9rem; color: var(--blue); font-weight: 600; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-desc {
  color: var(--muted); font-size: .92rem; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 4px; }
.cat-tag {
  font-size: .76rem; font-weight: 700; padding: 5px 11px; border-radius: 999px;
  color: var(--cat-color, var(--blue)); background: var(--cat-soft, var(--blue-soft));
}
.card-cta { font-size: .85rem; font-weight: 700; color: var(--muted); }
.offer-flag { font-size: .74rem; font-weight: 700; color: var(--gold-deep); display: inline-flex; align-items: center; gap: 4px; }

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

/* ---------- About ---------- */
.about { background: linear-gradient(180deg, var(--bg), #fff); border-top: 1px solid var(--line); padding: 64px 0; }
.about-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.about h2 { font-size: 1.9rem; color: var(--navy-deep); margin-bottom: 14px; }
.about p { color: var(--muted); font-size: 1.05rem; margin: 0 0 16px; max-width: 56ch; }
.about p strong { color: var(--ink); }
.about-card {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff; border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow-lg);
}
.about-card h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; opacity: .75; margin-bottom: 18px; }
.about-stat { display: flex; align-items: baseline; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.about-stat:last-child { border-bottom: 0; }
.about-stat b { font-size: 1.7rem; font-weight: 800; min-width: 56px; }
.about-stat span { opacity: .82; font-size: .95rem; font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #fff; padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer .brand-text strong { color: #fff; }
.site-footer .brand-text span { color: rgba(255,255,255,.6); }
.footer-note { color: rgba(255,255,255,.6); font-size: .85rem; margin: 0; text-align: right; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10,32,79,.55); backdrop-filter: blur(3px); animation: fade .2s ease; }
.modal-panel {
  position: relative; background: #fff; border-radius: 20px;
  max-width: 640px; width: 100%; max-height: 88vh; overflow-y: auto;
  box-shadow: var(--shadow-lg); animation: pop .22s cubic-bezier(.2,.8,.3,1);
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.85); color: var(--ink); font-size: 1.5rem; line-height: 1;
  display: grid; place-items: center; transition: background .15s ease;
}
.modal-close:hover { background: var(--line); }
.modal-head { padding: 32px 32px 24px; color: #fff; position: relative;
  background: linear-gradient(135deg, var(--cat-color, var(--navy)), color-mix(in srgb, var(--cat-color, var(--blue)) 60%, #07204f)); }
.modal-head .avatar { width: 64px; height: 64px; border-radius: 16px; background: rgba(255,255,255,.18); font-size: 1.5rem; margin-bottom: 16px; }
.modal-head h2 { font-size: 1.7rem; font-weight: 800; }
.modal-head .m-biz { font-size: 1.05rem; font-weight: 600; margin-top: 6px; opacity: .95; }
.modal-head .m-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.modal-head .m-pill { background: rgba(255,255,255,.18); border-radius: 999px; padding: 5px 12px; font-size: .82rem; font-weight: 600; }
.modal-body-inner { padding: 26px 32px 32px; }
.m-section { margin-bottom: 22px; }
.m-section:last-child { margin-bottom: 0; }
.m-label { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.m-section p { margin: 0; color: var(--ink); font-size: .98rem; line-height: 1.65; }
.m-offer { background: #fff8e8; border: 1px solid #f3e0a8; border-radius: 12px; padding: 16px 18px; }
.m-offer .m-label { color: var(--gold-deep); }
.m-links { display: flex; flex-wrap: wrap; gap: 10px; }
.m-link {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-soft); color: var(--navy); font-weight: 600; font-size: .9rem;
  padding: 9px 15px; border-radius: 10px; transition: background .15s ease;
  word-break: break-all;
}
.m-link:hover { background: #dce8fb; }
.m-link svg { width: 16px; height: 16px; flex: none; }

/* photo avatars (img) share the sizing of the initials avatars */
img.avatar { object-fit: cover; }
.modal-head img.avatar.has-photo { background: rgba(255,255,255,.9); }

/* founders / members list inside the modal */
.people { display: flex; flex-direction: column; gap: 14px; }
.person { display: flex; align-items: flex-start; gap: 12px; }
.person-avatar {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .95rem;
  background: var(--cat-color, var(--blue));
}
img.person-avatar { object-fit: cover; }
.person-id { min-width: 0; }
.person-name { font-weight: 700; color: var(--ink); font-size: 1rem; }
.person-role { font-size: .85rem; color: var(--muted); margin-top: 1px; }
.person-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.person-links .m-link { font-size: .82rem; padding: 6px 11px; }

@media (max-width: 720px) {
  .header-nav a:not(.btn) { display: none; }
  .about-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-note { text-align: left; }
  .hero-inner { padding: 44px 20px 40px; }
  .modal-head, .modal-body-inner { padding-left: 22px; padding-right: 22px; }
}
