/* ═══════════════════════════════════════════════════════════
   AddVenture — design system
   Deep blue / slate, modern & professional.
   Role accents: founders = blue, investors = violet, talent = teal.
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Ink (slate) */
  --ink-900: #0f172a;
  --ink-800: #1e293b;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-400: #94a3b8;
  --ink-300: #cbd5e1;
  --ink-200: #e2e8f0;
  --ink-100: #f1f5f9;
  --bg: #f8fafc;
  --surface: #ffffff;

  /* Brand (AddVenture forest sage — from the company logo) */
  --brand-900: #1c2a20;
  --brand-800: #27392c;
  --brand-700: #33493a;
  --brand-600: #405b48;
  --brand-500: #587a61;
  --brand-100: #dce8de;
  --brand-50: #eef4ef;
  --logo-line: #bfd9bf;

  /* Role accents */
  --role-founder: #2563eb;
  --role-founder-bg: #eff6ff;
  --role-investor: #7c3aed;
  --role-investor-bg: #f5f3ff;
  --role-talent: #0d9488;
  --role-talent-bg: #f0fdfa;

  /* Semantic */
  --success: #059669;
  --success-bg: #ecfdf5;
  --warning: #d97706;
  --warning-bg: #fffbeb;

  /* Type scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: clamp(1.6rem, 3vw, 2rem);
  --text-3xl: clamp(2rem, 4.5vw, 2.75rem);
  --text-hero: clamp(2.4rem, 5.5vw, 3.6rem);

  /* Spacing & shape */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4rem; --sp-9: 6rem;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.14);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --container: 1140px;
}

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink-800);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--ink-900); line-height: 1.2; margin: 0 0 var(--sp-4); font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: var(--text-3xl); font-weight: 800; }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
p { margin: 0 0 var(--sp-4); }
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-5); }
.section { padding: var(--sp-8) 0; }
.section-tight { padding: var(--sp-7) 0; }
.section-head { max-width: 640px; margin-bottom: var(--sp-6); }
.section-head .kicker { color: var(--brand-600); font-weight: 600; font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--sp-2); }
.section-head p { color: var(--ink-500); font-size: var(--text-lg); }
.center { text-align: center; }
.center.section-head { margin-left: auto; margin-right: auto; }
.muted { color: var(--ink-500); }
.small { font-size: var(--text-sm); }

/* ── Navbar ── */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ink-200);
}
.navbar-inner { display: flex; align-items: center; gap: var(--sp-6); height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--ink-900); text-decoration: none; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--brand-800), var(--brand-600));
  display: grid; place-items: center; color: var(--logo-line); font-size: 15px; font-weight: 800;
}
.brand-mark svg { width: 22px; height: 22px; display: block; }
.nav-links { display: flex; gap: var(--sp-5); margin-right: auto; }
.nav-links a { color: var(--ink-700); font-weight: 500; font-size: var(--text-sm); padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--ink-900); text-decoration: none; }
.nav-links a.active { color: var(--brand-700); border-bottom-color: var(--brand-600); font-weight: 600; }
.nav-cta { display: flex; gap: var(--sp-3); align-items: center; margin-left: auto; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 600; font-size: var(--text-sm);
  padding: 10px 20px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; transition: all 0.15s ease; text-decoration: none; line-height: 1.4;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-700); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--ink-800); border-color: var(--ink-300); }
.btn-secondary:hover { border-color: var(--ink-400); background: var(--ink-100); }
.btn-ghost { background: transparent; color: var(--ink-700); }
.btn-ghost:hover { background: var(--ink-100); color: var(--ink-900); }
.btn-lg { padding: 14px 28px; font-size: var(--text-base); border-radius: 12px; }
.btn-sm { padding: 7px 14px; font-size: var(--text-xs); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

/* ── Hero ── */
.hero {
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(88, 122, 97, 0.16), transparent 60%),
    radial-gradient(700px 400px at 10% 110%, rgba(13, 148, 136, 0.10), transparent 60%),
    var(--surface);
  border-bottom: 1px solid var(--ink-200);
  padding: var(--sp-9) 0 var(--sp-8);
}
.hero h1 { font-size: var(--text-hero); max-width: 780px; margin-bottom: var(--sp-4); }
.hero .lede { font-size: var(--text-lg); color: var(--ink-500); max-width: 620px; margin-bottom: var(--sp-6); }
.hero-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.gradient-text {
  background: linear-gradient(100deg, var(--brand-700), var(--brand-500) 55%, var(--role-talent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── Cards & grids ── */
.grid { display: grid; gap: var(--sp-5); }
.grid > *, .dash-layout > *, .detail-layout > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--ink-200);
  border-radius: var(--radius); padding: var(--sp-5);
  box-shadow: var(--shadow-sm); transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
a.card { color: inherit; display: block; }
a.card:hover { text-decoration: none; }
.card-hover:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--ink-300); }
.card-head { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.card-head h3, .card-head h4 { margin: 0; }
.card-sub { color: var(--ink-500); font-size: var(--text-sm); margin: 0; }
.card-body { color: var(--ink-700); font-size: var(--text-sm); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--ink-100); }

/* ── Monograms (dependency-free logos/avatars) ── */
.monogram {
  display: grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: 12px;
  color: #fff; font-weight: 700; font-size: 1.05rem; letter-spacing: 0.01em;
  background: linear-gradient(135deg, var(--mono-a, var(--brand-700)), var(--mono-b, var(--brand-500)));
}
.monogram-sm { width: 36px; height: 36px; border-radius: 10px; font-size: 0.85rem; }
.monogram-lg { width: 72px; height: 72px; border-radius: 18px; font-size: 1.6rem; }
.monogram-round { border-radius: 999px; }

/* ── Chips / tags / badges ── */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--text-xs); font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
  background: var(--ink-100); color: var(--ink-700);
  white-space: nowrap;
}
.chip-brand { background: var(--brand-50); color: var(--brand-700); }
.chip-violet { background: var(--role-investor-bg); color: var(--role-investor); }
.chip-teal { background: var(--role-talent-bg); color: var(--role-talent); }
.chip-success { background: var(--success-bg); color: var(--success); }
.chip-warning { background: var(--warning-bg); color: var(--warning); }
.chip-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* ── Role cards (landing) ── */
.role-card { position: relative; overflow: hidden; padding: var(--sp-6); }
.role-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--role-accent, var(--brand-600));
}
.role-card .role-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.3rem; margin-bottom: var(--sp-4);
  background: var(--role-bg, var(--brand-50));
}

/* ── Stats bar ── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
.stat { text-align: center; padding: var(--sp-4); }
.stat .stat-value { font-size: var(--text-2xl); font-weight: 800; color: var(--ink-900); letter-spacing: -0.02em; }
.stat .stat-label { color: var(--ink-500); font-size: var(--text-sm); font-weight: 500; }

/* ── Filters ── */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center;
  background: var(--surface); border: 1px solid var(--ink-200);
  border-radius: var(--radius); padding: var(--sp-4); margin-bottom: var(--sp-5);
  box-shadow: var(--shadow-sm);
}
.filter-bar .search { flex: 1 1 220px; }
.input, .select {
  font-family: var(--font); font-size: var(--text-sm); color: var(--ink-800);
  background: var(--surface); border: 1px solid var(--ink-300); border-radius: 10px;
  padding: 9px 12px; outline: none; width: 100%; transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus, .select:focus { border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(88, 122, 97, 0.18); }
.select { width: auto; cursor: pointer; }
.filter-count { color: var(--ink-500); font-size: var(--text-sm); margin-left: auto; white-space: nowrap; }
label.field { display: block; font-size: var(--text-sm); font-weight: 600; color: var(--ink-800); margin-bottom: var(--sp-4); }
label.field .input, label.field .select { margin-top: 6px; font-weight: 400; }
label.field .select { width: 100%; }

/* ── Empty state ── */
.empty-state {
  grid-column: 1 / -1; text-align: center; padding: var(--sp-8) var(--sp-5);
  background: var(--surface); border: 1px dashed var(--ink-300); border-radius: var(--radius);
  color: var(--ink-500);
}
.empty-state strong { color: var(--ink-800); display: block; margin-bottom: var(--sp-2); font-size: var(--text-lg); }

/* ── Detail pages ── */
.detail-hero { background: var(--surface); border-bottom: 1px solid var(--ink-200); padding: var(--sp-7) 0; }
.detail-hero .card-head { margin-bottom: var(--sp-4); }
.detail-layout { display: grid; grid-template-columns: 2fr 1fr; gap: var(--sp-6); align-items: start; }
.meta-list { list-style: none; margin: 0; padding: 0; }
.meta-list li {
  display: flex; justify-content: space-between; gap: var(--sp-3);
  padding: 10px 0; border-bottom: 1px solid var(--ink-100); font-size: var(--text-sm);
}
.meta-list li:last-child { border-bottom: none; }
.meta-list .k { color: var(--ink-500); }
.meta-list .v { font-weight: 600; color: var(--ink-800); text-align: right; }

/* ── Steps (how it works / onboarding) ── */
.step-num {
  width: 36px; height: 36px; border-radius: 999px; flex: none;
  background: var(--brand-600); color: #fff; font-weight: 700;
  display: grid; place-items: center; margin-bottom: var(--sp-3);
}
.progress-dots { display: flex; gap: 8px; margin-bottom: var(--sp-5); }
.progress-dots .dot { width: 34px; height: 6px; border-radius: 999px; background: var(--ink-200); }
.progress-dots .dot.on { background: var(--brand-600); }

/* ── Dashboard ── */
.dash-layout { display: grid; grid-template-columns: 230px 1fr; gap: var(--sp-6); align-items: start; }
.dash-nav { background: var(--surface); border: 1px solid var(--ink-200); border-radius: var(--radius); padding: var(--sp-3); position: sticky; top: 90px; }
.dash-nav a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink-700); font-size: var(--text-sm); font-weight: 500; }
.dash-nav a:hover { background: var(--ink-100); text-decoration: none; }
.dash-nav a.active { background: var(--brand-50); color: var(--brand-700); font-weight: 600; }
.role-switch { display: inline-flex; background: var(--ink-100); border-radius: 10px; padding: 4px; gap: 2px; }
.role-switch button {
  font-family: var(--font); font-size: var(--text-sm); font-weight: 600;
  border: none; background: transparent; color: var(--ink-500);
  padding: 7px 16px; border-radius: 8px; cursor: pointer;
}
.role-switch button.on { background: var(--surface); color: var(--ink-900); box-shadow: var(--shadow-sm); }
.list-row {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) 0; border-bottom: 1px solid var(--ink-100);
}
.list-row:last-child { border-bottom: none; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .title { font-weight: 600; color: var(--ink-900); font-size: var(--text-sm); margin: 0; }
.list-row .sub { color: var(--ink-500); font-size: var(--text-xs); margin: 0; }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15, 23, 42, 0.55);
  display: grid; place-items: center; padding: var(--sp-5);
  opacity: 0; pointer-events: none; transition: opacity 0.18s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); width: 100%; max-width: 440px;
  padding: var(--sp-6); transform: translateY(8px); transition: transform 0.18s ease;
}
.modal-overlay.open .modal { transform: none; }
.modal h3 { margin-bottom: var(--sp-2); }
.modal .modal-sub { color: var(--ink-500); font-size: var(--text-sm); margin-bottom: var(--sp-5); }
.modal-actions { display: flex; gap: var(--sp-3); justify-content: flex-end; margin-top: var(--sp-5); }

/* ── Toast ── */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px);
  z-index: 200; background: var(--ink-900); color: #fff;
  font-size: var(--text-sm); font-weight: 500;
  padding: 12px 20px; border-radius: 12px; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: all 0.25s ease; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── Footer ── */
.footer { background: var(--ink-900); color: var(--ink-400); margin-top: var(--sp-8); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--sp-6); padding: var(--sp-7) 0; }
.footer .brand { color: #fff; }
.footer h4 { color: #fff; font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--sp-3); }
.footer a { color: var(--ink-400); display: block; padding: 4px 0; font-size: var(--text-sm); }
.footer a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid var(--ink-800); padding: var(--sp-4) 0; font-size: var(--text-xs); display: flex; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }

/* ── AddVenture AI ── */
.chip-ai {
  background: linear-gradient(100deg, var(--brand-50), var(--role-investor-bg));
  color: var(--role-investor);
  border: 1px solid #ddd6fe;
}
.ai-card {
  border: 1px solid #ddd6fe;
  background: linear-gradient(160deg, #ffffff 40%, var(--role-investor-bg));
}
.ai-reasons { list-style: none; margin: 0; padding: 0; }
.ai-reasons li { position: relative; padding: 6px 0 6px 22px; font-size: var(--text-sm); color: var(--ink-700); }
.ai-reasons li::before { content: "✦"; position: absolute; left: 2px; top: 7px; color: var(--role-investor); font-size: 11px; }
.ai-brief li { border-bottom: 1px solid var(--ink-100); padding-block: 10px; }
.ai-brief li:last-child { border-bottom: none; }
.match-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--text-xs); font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.match-strong { background: var(--success-bg); color: var(--success); }
.match-good { background: var(--brand-50); color: var(--brand-700); }
.match-weak { background: var(--ink-100); color: var(--ink-500); }

/* ── Community feed ── */
.feed-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr) 300px; gap: var(--sp-5); align-items: start; }
.feed-rail { position: sticky; top: 90px; display: flex; flex-direction: column; gap: var(--sp-5); }
.composer textarea { resize: vertical; min-height: 68px; }
.composer-row { display: flex; gap: var(--sp-3); align-items: center; justify-content: space-between; margin-top: var(--sp-3); flex-wrap: wrap; }
.feed-filters { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin: var(--sp-4) 0; }
.feed-filters .chip { cursor: pointer; border: 1px solid transparent; background: var(--surface); border-color: var(--ink-200); }
.feed-filters .chip:hover { border-color: var(--ink-400); }
.feed-filters .chip.on { background: var(--brand-600); color: #fff; border-color: var(--brand-600); }
.post-card { margin-bottom: var(--sp-4); }
.post-head { display: flex; gap: var(--sp-3); align-items: flex-start; margin-bottom: var(--sp-3); }
.post-head .who { min-width: 0; }
.post-head .who .name { font-weight: 700; color: var(--ink-900); font-size: var(--text-sm); margin: 0; }
.post-head .who .sub { color: var(--ink-500); font-size: var(--text-xs); margin: 0; }
.post-body { white-space: pre-line; color: var(--ink-800); font-size: var(--text-sm); margin: 0 0 var(--sp-3); }
.post-event {
  border: 1px solid var(--ink-200); border-left: 3px solid var(--brand-600);
  border-radius: var(--radius-sm); padding: var(--sp-3) var(--sp-4);
  background: var(--brand-50); margin-bottom: var(--sp-3);
  display: flex; gap: var(--sp-3); align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.post-event .when { font-weight: 700; color: var(--brand-800); font-size: var(--text-sm); }
.post-stats { color: var(--ink-500); font-size: var(--text-xs); padding-bottom: var(--sp-2); border-bottom: 1px solid var(--ink-100); display: flex; justify-content: space-between; gap: var(--sp-3); }
.post-actions { display: flex; gap: var(--sp-1); padding-top: var(--sp-2); }
.post-actions button {
  flex: 1; font-family: var(--font); font-size: var(--text-xs); font-weight: 600;
  color: var(--ink-500); background: transparent; border: none; border-radius: 8px;
  padding: 8px 6px; cursor: pointer;
}
.post-actions button:hover { background: var(--ink-100); color: var(--ink-800); }
.post-actions button.on { color: var(--brand-700); }
.comment-list { margin-top: var(--sp-3); display: flex; flex-direction: column; gap: var(--sp-3); }
.comment { display: flex; gap: var(--sp-2); align-items: flex-start; }
.comment .bubble { background: var(--ink-100); border-radius: 4px 12px 12px 12px; padding: 8px 12px; font-size: var(--text-xs); color: var(--ink-800); min-width: 0; }
.comment .bubble .cname { font-weight: 700; display: block; }
.comment-box { display: flex; gap: var(--sp-2); margin-top: var(--sp-3); }
.group-row, .event-row { display: flex; gap: var(--sp-3); align-items: center; padding: var(--sp-2) 0; border-bottom: 1px solid var(--ink-100); }
.group-row:last-child, .event-row:last-child { border-bottom: none; }
.group-dot { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; font-size: 1rem; background: var(--ink-100); }
@media (max-width: 1020px) { .feed-layout { grid-template-columns: minmax(0, 1fr) 280px; } .feed-rail-left { display: none; } }
@media (max-width: 760px) { .feed-layout { grid-template-columns: 1fr; } .feed-rail { position: static; } }

/* ── Utilities ── */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: var(--sp-4); } .mt-6 { margin-top: var(--sp-6); }
.mb-4 { margin-bottom: var(--sp-4); } .mb-6 { margin-bottom: var(--sp-6); }
.flex { display: flex; gap: var(--sp-3); align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.wrap { flex-wrap: wrap; }
.hide { display: none !important; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-nav { position: static; display: flex; overflow-x: auto; gap: var(--sp-2); }
  .dash-nav a { white-space: nowrap; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: var(--sp-8) 0 var(--sp-7); }
  .navbar-inner { gap: var(--sp-3); }
  .nav-cta .btn-secondary { display: none; }
  .list-row { flex-wrap: wrap; }
  .flex { flex-wrap: wrap; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
}
