/* ForEvidence.ai — shared stylesheet
   Pure static, no external dependencies. */

:root {
  --ink: #0f1b2d;
  --ink-soft: #33455c;
  --muted: #5f7188;
  --brand: #16457a;
  --brand-dark: #0e2f57;
  --brand-050: #eef4fb;
  --accent: #12a594;
  --accent-dark: #0e857a;
  --amber: #d98a2b;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-deep: #0e2136;
  --line: #e2e8f0;
  --line-strong: #cdd7e3;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, .06), 0 1px 3px rgba(15, 27, 45, .08);
  --shadow: 0 10px 30px -12px rgba(15, 27, 45, .22);
  --maxw: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.2; color: var(--ink); font-weight: 700; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.015em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: .9rem;
}
.lede { font-size: 1.2rem; color: var(--ink-soft); }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .98rem;
  padding: .72rem 1.35rem; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .06s ease, background .15s ease, box-shadow .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.btn-light:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn-arrow::after { content: "→"; font-weight: 700; }

/* ---- Header / Nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.15rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 28px; height: 28px; border-radius: 7px; flex: none;
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .95rem;
}
.brand .dot { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-links a.navlink {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .55rem .8rem; border-radius: 8px;
  color: var(--ink-soft); font-weight: 550; font-weight: 500;
}
.nav-links a.navlink:hover, .nav-links a.navlink[aria-current="page"] {
  color: var(--brand-dark); background: var(--brand-050); text-decoration: none;
}
.nav-cta { display: flex; align-items: center; gap: .6rem; }

/* Dropdown */
.has-dropdown > .navlink .caret { font-size: .65rem; opacity: .7; transition: transform .15s ease; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 300px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: .5rem; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  list-style: none; margin: 0;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.has-dropdown:hover .caret { transform: rotate(180deg); }
.dropdown a {
  display: block; padding: .6rem .7rem; border-radius: 8px; color: var(--ink);
}
.dropdown a:hover { background: var(--bg-soft); text-decoration: none; }
.dropdown a .d-title { font-weight: 600; display: block; }
.dropdown a .d-sub { font-size: .82rem; color: var(--muted); }
.dropdown .divider { height: 1px; background: var(--line); margin: .4rem .3rem; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; transition: .2s; }

/* ---- Layout sections ---- */
section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-soft { background: var(--bg-soft); }
.section-deep { background: var(--bg-deep); color: #d7e2ee; }
.section-deep h1, .section-deep h2, .section-deep h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---- Hero ---- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(18,165,148,.12), transparent 60%),
    radial-gradient(900px 500px at 5% 10%, rgba(22,69,122,.10), transparent 55%),
    var(--bg);
  padding: 88px 0 76px;
}
.hero .badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; border: 1px solid var(--line-strong);
  padding: .38rem .8rem; border-radius: 999px; font-size: .82rem; font-weight: 600;
  color: var(--ink-soft); margin-bottom: 1.4rem; box-shadow: var(--shadow-sm);
}
.hero .badge .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-note { margin-top: 1.4rem; font-size: .9rem; color: var(--muted); }

/* ---- Grid / cards ---- */
.grid { display: grid; gap: 1.25rem; }
.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: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.6rem; box-shadow: var(--shadow-sm); transition: transform .12s ease, box-shadow .15s ease, border-color .15s;
  display: flex; flex-direction: column;
}
a.card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card .ico {
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  background: var(--brand-050); color: var(--brand); margin-bottom: 1rem; font-size: 1.3rem;
}
.card h3 { margin-bottom: .35rem; }
.card p { color: var(--ink-soft); margin-bottom: 1rem; font-size: .96rem; }
.card .more { margin-top: auto; font-weight: 600; color: var(--brand); font-size: .92rem; }
.card .flag { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-dark); }
.card.featured { border-color: var(--brand); box-shadow: 0 12px 34px -14px rgba(22,69,122,.4); }
.card.featured .ico { background: var(--brand); color: #fff; }

/* eyebrow chips row */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.chip { background: var(--brand-050); color: var(--brand-dark); border: 1px solid #dbe7f4; padding: .35rem .8rem; border-radius: 999px; font-size: .85rem; font-weight: 550; font-weight: 500; }

/* feature list */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.checks li { position: relative; padding-left: 1.9rem; color: var(--ink-soft); }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--accent);
  color: #fff; font-size: .8rem; font-weight: 700; display: grid; place-items: center;
}

/* numbered steps */
.steps { display: grid; gap: 1.1rem; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { display: flex; gap: 1rem; align-items: flex-start; }
.steps li .n {
  counter-increment: step; flex: none;
  width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 700;
}
.steps li .n::before { content: counter(step); }
.steps li h3 { margin-bottom: .2rem; }
.steps li p { margin: 0; color: var(--ink-soft); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.stat .num { font-size: 2.4rem; font-weight: 800; color: var(--brand); letter-spacing: -.02em; }
.section-deep .stat .num { color: #4fd1c0; }
.stat .lbl { color: var(--muted); font-size: .95rem; }
.section-deep .stat .lbl { color: #9fb3c8; }

/* split / two-col */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split.wide-left { grid-template-columns: 1.1fr .9fr; }

/* callout / mission thread */
.callout {
  border-left: 4px solid var(--accent); background: var(--bg-soft);
  padding: 1.4rem 1.6rem; border-radius: 0 var(--radius) var(--radius) 0;
}
.mission-band {
  background: linear-gradient(135deg, var(--brand-dark), #123a63);
  color: #e6eef7; border-radius: var(--radius-lg); padding: 2.6rem;
}
.mission-band h2 { color: #fff; }
.mission-band p { color: #cdddec; }

/* table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 520px; }
th, td { text-align: left; padding: .9rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-soft); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
tbody tr:last-child td { border-bottom: 0; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .btn { margin: .4rem; }

/* breadcrumb */
.crumb { font-size: .88rem; color: var(--muted); margin-bottom: 1rem; }
.crumb a { color: var(--muted); }

/* ---- Forms ---- */
.form { display: grid; gap: 1.1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .7rem .85rem; border: 1.5px solid var(--line-strong);
  border-radius: 10px; font: inherit; color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(22,69,122,.12);
}
.field textarea { min-height: 130px; resize: vertical; }

/* ---- Insights list ---- */
.post { border-bottom: 1px solid var(--line); padding: 1.6rem 0; }
.post:first-child { padding-top: 0; }
.post .meta { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.post h3 { margin: .35rem 0 .4rem; }
.post p { color: var(--ink-soft); margin: 0; }

/* ---- Footer ---- */
.site-footer { background: var(--bg-deep); color: #a9bcd0; padding: 60px 0 30px; }
.site-footer h4 { color: #fff; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer a { color: #a9bcd0; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-brand .brand { color: #fff; margin-bottom: .8rem; }
.footer-brand p { color: #8ba0b6; max-width: 30ch; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .85rem; color: #7e94ab;
}
.badge-venture { display: inline-flex; align-items: center; gap: .45rem; color: #9fb3c8; }
.badge-venture::before { content: "◆"; color: var(--accent); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .split.wide-left { grid-template-columns: 1fr; gap: 2rem; }
  .stats { grid-template-columns: 1fr; gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 1rem 24px 1.5rem; gap: .1rem;
    box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a.navlink { padding: .8rem .4rem; border-radius: 8px; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; border-left: 2px solid var(--line); border-radius: 0; margin: .2rem 0 .6rem .6rem;
    min-width: auto; display: none;
  }
  .has-dropdown.open .dropdown { display: block; }
  .has-dropdown:hover .dropdown { opacity: 1; }
  .nav-cta .btn-consult { display: none; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
}
