/* SageBirch — AI Expert Network Intelligence */
:root {
  --bg: #FBFAF7;
  --surface: #FFFFFF;
  --ink: #1F2937;
  --muted: #6B7280;
  --muted-light: #9CA3AF;
  --forest: #2F6B55;
  --forest-dark: #245443;
  --forest-soft: #E8F2ED;
  --gold: #D6A95C;
  --gold-soft: #F5EDD8;
  --blue: #2563EB;
  --purple: #7C3AED;
  --border: #E7E5E4;
  --display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, sans-serif;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 1px 3px rgba(31,41,55,0.05), 0 8px 30px rgba(47,107,85,0.08);
  --max: 1200px;
  --announce-h: 36px;
  --header-h: 56px;
  --site-top-h: calc(var(--announce-h) + var(--header-h));
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); font-size: 0.9375rem; line-height: 1.65; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--forest); text-decoration: none; }
a:hover { color: var(--forest-dark); }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.site-shell { min-height: 100vh; display: flex; flex-direction: column; padding-top: var(--site-top-h); }
main { flex: 1; }
.container { width: min(var(--max), 90vw); margin: 0 auto; }
.container.narrow { width: min(720px, 90vw); }
.centered { text-align: center; }
.centered-head { text-align: center; }

.kicker { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--forest); }
.kicker.centered { display: block; }
.lead { font-size: 1.02rem; color: var(--muted); line-height: 1.7; }
.lead.centered { text-align: center; }
h1, h2, h3, .section-title, .page-title { font-family: var(--display); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.section-title { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.section-head { margin-bottom: 32px; }
.section-intro { font-size: 0.88rem; color: var(--muted); margin-bottom: 24px; text-align: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--radius); font-size: 0.84rem; font-weight: 600;
  border: 1.5px solid transparent; transition: all 0.15s; white-space: nowrap;
}
.btn-sm { padding: 7px 14px; font-size: 0.78rem; }
.btn-lg { padding: 13px 24px; font-size: 0.9rem; }
.btn-full { width: 100%; }
.btn-primary { background: var(--forest); color: #fff; border-color: var(--forest); }
.btn-primary:hover { background: var(--forest-dark); color: #fff; }
.btn-outline { background: var(--surface); border-color: var(--border); color: var(--ink); }
.btn-outline:hover { border-color: var(--forest); color: var(--forest); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.35); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; }

.tag { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; }
.tag-expert { background: #EDE9FE; color: var(--purple); }
.tag-neutral { background: #F3F4F6; color: var(--muted); }

/* Announce */
.announce-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 110;
  display: flex; align-items: center; justify-content: center; min-height: var(--announce-h);
  background: linear-gradient(90deg, #E8F2ED 0%, #FBFAF7 30%, #FFF 50%, #FBFAF7 70%, #E8F2ED 100%);
  border-bottom: 1px solid rgba(47,107,85,0.12); overflow: hidden;
}
.announce-bar-inner {
  display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 8px;
  width: min(var(--max), 90vw); white-space: nowrap;
  font-size: clamp(0.66rem, 1vw, 0.76rem); font-weight: 500; color: var(--ink);
}
.announce-bar-inner span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.announce-bar-inner a { color: var(--forest); font-weight: 600; flex-shrink: 0; }

/* Header — single row */
[data-site-header] { flex-shrink: 0; }
.site-header {
  position: fixed; top: var(--announce-h); left: 0; right: 0; z-index: 100;
  background: rgba(251,250,247,0.94); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: nowrap; min-height: var(--header-h);
  width: min(var(--max), 90vw); margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 24px);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); flex-shrink: 0; }
.brand:hover { opacity: 0.85; color: var(--ink); }
.logo-mark { width: 36px; height: 36px; flex-shrink: 0; }
.logo-mark svg { width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--display); font-size: 1rem; font-weight: 700; white-space: nowrap; }
.brand-text span { font-size: 0.64rem; color: var(--muted); white-space: nowrap; }
.nav-main {
  display: flex; flex-wrap: nowrap; align-items: center; justify-content: center;
  gap: 2px; flex: 1; min-width: 0;
}
.nav-main .nav-link { font-size: 0.8125rem; padding: 6px 10px; border-radius: var(--radius); }
.nav-main .nav-link:hover { background: var(--forest-soft); }
.header-actions { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; flex-shrink: 0; }
.nav-link { font-size: 0.84rem; font-weight: 500; color: var(--muted); padding: 6px 10px; white-space: nowrap; }
.nav-link:hover { color: var(--forest); }
.nav-link--login { padding: 6px 8px; }
.nav-toggle { display: none; font-size: 1rem; padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--radius); }

/* Hero — centered network */
.hero-network { padding: clamp(28px, 5vw, 48px) 0 clamp(36px, 5vw, 56px); }
.hero-network-inner { text-align: center; }
.hero-network h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); margin: 12px 0 16px; max-width: 18ch; margin-inline: auto; }
.hero-lead { max-width: 52ch; margin: 0 auto 24px; }
.hero-search {
  display: flex; max-width: 640px; margin: 0 auto 14px; gap: 8px;
  padding: 8px; background: var(--surface); border: 2px solid var(--forest);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.hero-search input, .search-input {
  flex: 1; border: none; outline: none; font: inherit; font-size: 0.95rem;
  padding: 10px 14px; background: transparent; min-width: 0;
}
.hero-search--page { max-width: 100%; margin-bottom: 16px; }
.search-suggestions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }
.suggestion-chip {
  padding: 6px 12px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; font-size: 0.74rem; color: var(--muted); cursor: pointer;
}
.suggestion-chip:hover { border-color: var(--forest); color: var(--forest); }
.network-stage {
  position: relative; margin: 0 auto 24px; max-width: 800px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
}
.network-map-svg { width: 100%; height: auto; display: block; }
.network-map-svg.is-animating circle { animation: pulse-node 1.2s ease-in-out infinite alternate; }
.network-map-svg.is-animating line { animation: pulse-line 1.5s ease-in-out infinite; }
@keyframes pulse-node { from { opacity: 0.6; } to { opacity: 1; r: calc(var(--r, 20px) + 4px); } }
@keyframes pulse-line { from { stroke-opacity: 0.2; } to { stroke-opacity: 0.6; } }
.network-search-overlay {
  position: absolute; right: 16px; top: 16px; width: min(240px, 42%);
  padding: 16px; background: rgba(255,255,255,0.95); border: 1px solid var(--border);
  border-radius: var(--radius); text-align: left; font-size: 0.78rem;
}
.network-search-overlay p { font-weight: 600; margin: 6px 0 10px; font-size: 0.82rem; }
.mini-expert-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--border); }
.mini-expert-list strong { font-size: 0.8rem; }
.mini-expert-list span { font-size: 0.68rem; color: var(--muted); margin-left: auto; }
.avatar-dot {
  width: 28px; height: 28px; border-radius: 50%; background: var(--forest); color: #fff;
  font-size: 0.62rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hero-btns { margin-top: 8px; }

/* Stats */
.demo-stats { padding: 24px 0; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stats-row div { padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-align: center; }
.stats-row strong { display: block; font-family: var(--display); font-size: 1.6rem; color: var(--forest); }
.stats-row span { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.demo-org-label { font-size: 0.78rem; color: var(--muted); margin-bottom: 16px; letter-spacing: 0.04em; }

/* Platform modules */
.module-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.module-card {
  display: block; padding: 22px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); color: var(--ink); text-align: left;
}
.module-card:hover { border-color: var(--forest); box-shadow: var(--shadow); color: var(--ink); }
.module-card strong { display: block; font-family: var(--display); font-size: 0.95rem; margin-bottom: 6px; }
.module-card span { font-size: 0.78rem; color: var(--muted); line-height: 1.45; }

/* Knowledge map */
.knowledge-map-viz {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px;
}
.map-node {
  padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  text-align: center;
}
.map-node span { display: block; font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.map-node strong { font-family: var(--display); color: var(--forest); font-size: 1.1rem; }
.map-node--hub { background: var(--forest-soft); border-color: var(--forest); }
.map-node--gap strong { color: var(--gold); }

/* Discovery panel */
.discovery-panel {
  margin-top: 20px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); text-align: center;
}
.discovery-steps { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }
.discovery-steps span {
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: 0.75rem; color: var(--muted);
}
.discovery-steps span.is-active { border-color: var(--forest); background: var(--forest-soft); color: var(--forest-dark); font-weight: 600; }

/* Integration chips */
.integration-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 20px; }
.integration-chips span {
  padding: 8px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 0.8rem; font-weight: 600;
}

/* Sections */
.section-breathe { padding: clamp(40px, 6vw, 72px) 0; }
.section--surface { background: var(--surface); border-block: 1px solid var(--border); }
.problem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; text-align: left; }
.problem-grid article { padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.problem-grid h3 { font-family: var(--sans); font-size: 0.9rem; margin-bottom: 6px; }
.problem-grid p { font-size: 0.82rem; color: var(--muted); }

.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.feature-copy .section-title { margin: 10px 0 14px; text-align: left; }
.card-lead { font-size: 0.92rem; color: var(--muted); margin-bottom: 18px; line-height: 1.65; }
.value-list { font-size: 0.88rem; color: var(--muted); padding-left: 18px; line-height: 1.75; margin-bottom: 20px; }
.forest-mini { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; padding: 28px; background: var(--forest-soft); border-radius: var(--radius-lg); }
.forest-mini span { padding: 8px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.78rem; font-weight: 600; }
.forest-engine-mini { padding: 12px 16px; background: var(--forest); color: #fff; border-radius: var(--radius); font-size: 0.8rem; font-weight: 600; }

/* Avatar wall */
.avatar-wall { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 28px; }
.avatar-node {
  width: 48px; height: 48px; border-radius: 50%; color: #fff; font-size: 0.72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--surface);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Expert cards */
.expert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.expert-grid--spotlight { grid-template-columns: repeat(3, 1fr); }
.expert-card {
  display: flex; gap: 14px; padding: 20px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg); transition: border-color 0.15s, box-shadow 0.15s;
}
.expert-card:hover { border-color: var(--forest); box-shadow: var(--shadow); }
.expert-card--compact { align-items: flex-start; }
.expert-card--compact p { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
.expert-card--compact span { font-size: 0.72rem; color: var(--purple); font-weight: 600; }
.expert-avatar {
  width: 44px; height: 44px; border-radius: 50%; color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.9rem;
}
.expert-card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.expert-role { font-size: 0.8rem; color: var(--muted); margin-bottom: 10px; }
.skill-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.skill-chip { padding: 3px 8px; background: var(--forest-soft); border-radius: 999px; font-size: 0.68rem; font-weight: 600; color: var(--forest-dark); }
.expert-meta { font-size: 0.76rem; color: var(--muted); margin-bottom: 12px; }
.expert-actions { display: flex; flex-wrap: wrap; gap: 6px; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; justify-content: center; }
.filter-chip { padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; font-size: 0.78rem; color: var(--muted); cursor: pointer; }
.filter-chip.is-active, .filter-chip:hover { border-color: var(--forest); color: var(--forest); background: var(--forest-soft); }

.solutions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.solution-card {
  display: block; padding: 22px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); color: var(--ink);
}
.solution-card:hover { border-color: var(--forest); box-shadow: var(--shadow); color: var(--ink); }
.solution-card strong { display: block; font-family: var(--display); margin-bottom: 4px; }
.solution-card span { font-size: 0.8rem; color: var(--muted); }

/* Skill cloud */
.skill-cloud { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 32px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.cloud-skill {
  padding: calc(6px + (var(--w) - 68) * 0.04px) calc(12px + (var(--w) - 68) * 0.06px);
  background: var(--forest-soft); border-radius: 999px; font-size: calc(0.72rem + (var(--w) - 68) * 0.002rem);
  font-weight: 600; color: var(--forest-dark);
}

/* Integration forest */
.integration-forest {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center;
  padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.forest-node { padding: 10px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.82rem; font-weight: 600; margin-bottom: 8px; }
.forest-engine { padding: 20px; background: var(--forest); color: #fff; border-radius: var(--radius); text-align: center; min-width: 150px; }
.forest-engine span { display: block; font-size: 0.68rem; opacity: 0.75; margin-top: 4px; }
.integration-result { margin-top: 14px; padding: 12px 16px; background: var(--forest-soft); border-radius: var(--radius); font-size: 0.84rem; }
.integration-hints { margin-top: 10px; font-size: 0.72rem; color: var(--muted); text-align: center; }

/* Page templates */
.page-hero { padding: clamp(32px, 5vw, 48px) 0 clamp(24px, 4vw, 36px); text-align: center; }
.page-title { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin: 10px 0 12px; }
.page-body { padding: clamp(24px, 4vw, 40px) 0 clamp(40px, 6vw, 64px); }
.content-card { padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 20px; }
.content-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.editorial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.graph-panel { padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.graph-legend { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 16px; font-size: 0.78rem; color: var(--muted); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.dot--person { background: var(--forest); }
.dot--project { background: var(--blue); }
.dot--doc { background: var(--gold); }
.dot--meeting { background: var(--purple); }

.team-rec { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 20px; }
.team-member { padding: 16px; background: var(--bg); border-radius: var(--radius); border: 1px solid var(--border); }
.team-role { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; color: var(--forest); display: block; margin-bottom: 4px; }
.team-member span:last-child { font-size: 0.76rem; color: var(--muted); }

.ranking-list { display: flex; flex-direction: column; gap: 12px; }
.rank-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 16px; align-items: center; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.rank-num { font-family: var(--display); font-size: 1.2rem; font-weight: 700; color: var(--forest); }
.rank-role { font-size: 0.76rem; color: var(--muted); display: block; }
.rank-row p { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
.rank-score { font-family: var(--display); font-size: 1.1rem; font-weight: 700; color: var(--purple); }

.onboard-path { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.path-step { padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.path-step span { font-size: 0.68rem; font-weight: 700; color: var(--forest); text-transform: uppercase; }
.path-step strong { display: block; margin: 8px 0 6px; font-family: var(--display); }
.path-step p { font-size: 0.84rem; color: var(--muted); }

.search-panel { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 28px; }
.match-results h3 { font-size: 1rem; margin-bottom: 16px; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pricing-grid--teaser { max-width: 880px; margin: 0 auto; }
.pricing-card { padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); text-align: center; }
.pricing-card.is-featured { border-color: var(--forest); box-shadow: var(--shadow); }
.pricing-desc { font-size: 0.82rem; color: var(--muted); margin: 8px 0; }
.pricing-price { font-family: var(--display); font-size: 2.2rem; margin: 12px 0; }
.pricing-price span { font-size: 0.9rem; color: var(--muted); }
.pricing-card ul { text-align: left; font-size: 0.84rem; color: var(--muted); padding-left: 18px; margin: 16px 0; line-height: 1.65; }
.pricing-cta-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 28px; }

.value-calculator, .calc-row { margin-top: 28px; }
.calc-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.calc-result { margin-top: 16px; padding: 18px; background: var(--forest-soft); border-radius: var(--radius); }
.calc-result strong { font-family: var(--display); font-size: 1.8rem; color: var(--forest); }

.about-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.about-values h3 { font-size: 0.95rem; margin-bottom: 8px; }
.about-values p { font-size: 0.86rem; color: var(--muted); line-height: 1.65; }

.data-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.data-table th { text-align: left; padding: 10px; font-size: 0.68rem; text-transform: uppercase; color: var(--muted-light); border-bottom: 1px solid var(--border); }
.data-table td { padding: 12px 10px; border-bottom: 1px solid var(--border); }

/* Footer */
.site-footer { margin-top: auto; }
.footer-cta { padding: clamp(40px, 6vw, 56px) 0; background: var(--forest); color: rgba(255,255,255,0.85); }
.footer-cta-inner { text-align: center; max-width: 580px; margin: 0 auto; }
.footer-cta-inner h2 { font-family: var(--display); font-size: clamp(1.25rem, 2.5vw, 1.65rem); color: #fff; margin-bottom: 10px; }
.footer-cta-inner p { font-size: 0.9rem; margin-bottom: 22px; }
.footer-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.footer-panel { padding: clamp(32px, 5vw, 48px) 0 clamp(20px, 3vw, 28px); }
.footer-brand { margin-bottom: 28px; }
.footer-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-bottom: 24px; }
.footer-col h4 { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-light); margin-bottom: 12px; }
.footer-col li { margin-bottom: 7px; }
.footer-col a { font-size: 0.82rem; color: var(--muted); }
.footer-col a:hover { color: var(--forest); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 0.76rem; color: var(--muted-light); }
.footer-bottom-links { display: flex; gap: 14px; }
.footer-bottom-links a { color: var(--muted); }

/* Auth */
.auth-page { min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); }
.auth-header { padding: 20px; width: min(var(--max), 90vw); margin: 0 auto; }
.auth-center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px 16px 48px; }
.auth-card { width: min(400px, 100%); padding: 36px 32px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.auth-card h1 { font-family: var(--display); font-size: 1.35rem; margin-bottom: 8px; }
.auth-lead { color: var(--muted); font-size: 0.88rem; margin-bottom: 22px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form-row { display: flex; justify-content: space-between; font-size: 0.82rem; margin: 4px 0 8px; }
.auth-remember { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.auth-forgot { color: var(--forest); font-weight: 500; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 20px 0 14px; font-size: 0.76rem; color: var(--muted-light); }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-social { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-social { padding: 10px; border: 1px solid var(--border); border-radius: var(--radius); font-weight: 600; background: var(--surface); }
.auth-note { text-align: center; font-size: 0.84rem; color: var(--muted); margin-top: 20px; }

.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.form-field input, .form-field textarea, .form-field select {
  padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); font: inherit; background: var(--surface);
}

/* Modals */
.site-modal[hidden] { display: none; }
.site-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.site-modal-backdrop { position: absolute; inset: 0; background: rgba(31,41,55,0.45); }
.site-modal-panel { position: relative; width: min(420px, 100%); padding: 32px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.site-modal-close { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border: 1px solid var(--border); border-radius: var(--radius); }
.site-modal-panel h2 { font-family: var(--display); font-size: 1.3rem; margin-bottom: 8px; }
.site-modal-lead { font-size: 0.88rem; color: var(--muted); margin-bottom: 18px; }
.site-modal-form { display: flex; flex-direction: column; gap: 14px; }
.form-success { font-size: 0.84rem; color: var(--forest); font-weight: 500; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.45s, transform 0.45s; }
.reveal.is-visible { opacity: 1; transform: none; }
.is-searching { animation: search-flash 0.6s ease; }
@keyframes search-flash { 50% { box-shadow: 0 0 0 3px var(--forest-soft); } }

@media (max-width: 1024px) {
  .expert-grid, .solutions-grid, .problem-grid, .onboard-path, .team-rec { grid-template-columns: 1fr 1fr; }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .knowledge-map-viz { grid-template-columns: repeat(2, 1fr); }
  .feature-split { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .integration-forest { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .network-search-overlay { position: static; width: 100%; margin-top: 12px; }
}

@media (max-width: 768px) {
  .brand-text span { display: none; }
  .header-actions .btn-outline:not(.btn-primary) { display: none; }
  .nav-toggle { display: block; }
  .nav-main {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border); flex-direction: column; padding: 12px;
  }
  .nav-main.is-open { display: flex; }
  .site-header { position: fixed; }
  .header-inner { position: relative; }
  .expert-grid, .solutions-grid, .problem-grid, .pricing-grid, .about-values, .editorial-grid, .onboard-path, .team-rec { grid-template-columns: 1fr; }
  .module-grid, .knowledge-map-viz { grid-template-columns: 1fr; }
  .calc-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-search { flex-direction: column; border-width: 1px; }
}

@media (min-width: 769px) and (max-width: 1180px) {
  .brand-text span { display: none; }
  .header-actions .btn-sm { padding: 6px 10px; font-size: 0.72rem; }
  .nav-main .nav-link { font-size: 0.75rem; padding: 6px 8px; }
}
