/* ProvenPort — static site design system. No external dependencies. */
:root {
  --ink: #0e1726;
  --ink-soft: #41506a;
  --ink-faint: #76839c;
  --line: #e3e8f0;
  --bg: #ffffff;
  --bg-tint: #f6f8fc;
  --bg-deep: #0b1020;
  --bg-deep-2: #131a33;
  --brand: #4f46e5;
  --brand-2: #7c6cf6;
  --proven: #0fa968;
  --proven-soft: #e6f7ef;
  --warn: #b9701b;
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1080px;
  --mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow: 0 1px 2px rgba(14,23,38,.06), 0 8px 24px rgba(14,23,38,.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.02em; color: var(--ink); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin: 0 0 .4em; }
h3 { font-size: 1.22rem; margin: 2rem 0 .5em; }
p { margin: 0 0 1rem; }
code { font-family: var(--mono); font-size: .9em; background: var(--bg-tint); padding: .12em .4em; border-radius: 6px; border: 1px solid var(--line); }
pre { font-family: var(--mono); background: var(--bg-deep); color: #dce3f7; padding: 1.1rem 1.25rem; border-radius: var(--radius-sm); overflow-x: auto; font-size: .86rem; line-height: 1.6; }
pre code { background: none; border: none; padding: 0; color: inherit; }
hr { border: none; border-top: 1px solid var(--line); margin: 3rem 0; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 1.5rem; height: 60px; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 700; letter-spacing: -.02em; color: var(--ink); font-size: 1.06rem; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 26px; height: 26px; flex: none; }
.nav-links { margin-left: auto; display: flex; gap: 1.4rem; align-items: center; font-size: .96rem; }
.nav-links a { color: var(--ink-soft); font-weight: 500; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links .btn-sm { color: #fff; }
@media (max-width: 720px) { .nav-links a.hide-sm { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; background: var(--brand); color: #fff; font-weight: 600; font-size: .98rem; padding: .7rem 1.15rem; border-radius: 10px; border: 1px solid transparent; transition: transform .08s ease, box-shadow .2s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(79,70,229,.32); }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.secondary:hover { box-shadow: var(--shadow); }
.btn-sm { padding: .42rem .8rem; font-size: .9rem; border-radius: 8px; background: var(--brand); color: #fff; font-weight: 600; }
.btn-ghost { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.18); }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 78% -10%, #243056 0%, transparent 60%), linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-deep-2) 100%); color: #e8edfb; padding: 5.5rem 0 5rem; border-bottom: 1px solid #1d2745; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5.4vw, 3.55rem); margin: 0 0 1rem; }
.hero .lede { font-size: clamp(1.05rem, 2.3vw, 1.32rem); color: #b9c4e4; max-width: 680px; margin: 0 0 1.8rem; }
.hero .cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.eyebrow { display: inline-block; font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: #8ea0d6; border: 1px solid #2b386180; background: #18203c80; padding: .3rem .7rem; border-radius: 100px; margin-bottom: 1.2rem; }
.hero .tag { color: var(--brand-2); }

/* Sections */
section { padding: 4.5rem 0; }
section.tint { background: var(--bg-tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin: 0 0 .6rem; font-weight: 600; }
.section-lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 720px; }

/* Cards / grids */
.grid { display: grid; gap: 1.1rem; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.4rem 1.5rem; box-shadow: var(--shadow); }
.card h3 { margin: .1rem 0 .5rem; font-size: 1.08rem; }
.card p { color: var(--ink-soft); font-size: .96rem; margin: 0; }
.card .ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(180deg, #eef0fe, #e6e9fd); color: var(--brand); margin-bottom: .85rem; }

/* Stat figures */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; padding: 1.3rem .6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.stat .n { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.stat .n .u { color: var(--brand); }
.stat .l { font-size: .82rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .05em; margin-top: .2rem; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; font-size: .94rem; background: var(--bg); }
th, td { text-align: left; padding: .7rem .95rem; border-bottom: 1px solid var(--line); }
th { background: var(--bg-tint); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-faint); font-weight: 600; }
tbody tr:last-child td { border-bottom: none; }
td.num { font-family: var(--mono); white-space: nowrap; }

/* Badges */
.badge { display: inline-block; font-size: .74rem; font-weight: 600; padding: .16rem .55rem; border-radius: 100px; letter-spacing: .02em; }
.badge.ok { background: var(--proven-soft); color: var(--proven); }
.badge.mid { background: #fff3e3; color: var(--warn); }
.badge.mit { background: #eef0fe; color: var(--brand); }

/* Pipeline steps */
.pipe { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; counter-reset: step; }
@media (max-width: 860px) { .pipe { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .pipe { grid-template-columns: 1fr; } }
.pipe .step { position: relative; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1rem 1.1rem; background: var(--bg); }
.pipe .step b { display: block; font-size: .98rem; margin-bottom: .2rem; }
.pipe .step span { font-size: .87rem; color: var(--ink-soft); }
.pipe .step::before { counter-increment: step; content: counter(step); position: absolute; top: -11px; left: 14px; width: 22px; height: 22px; background: var(--brand); color: #fff; border-radius: 50%; font-size: .76rem; font-weight: 700; display: grid; place-items: center; }

/* Feature list */
.feat { display: flex; gap: .8rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.feat:last-child { border-bottom: none; }
.feat .tick { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--proven-soft); color: var(--proven); display: grid; place-items: center; font-size: .8rem; margin-top: .15rem; }
.feat b { display: block; }
.feat p { margin: .1rem 0 0; color: var(--ink-soft); font-size: .95rem; }
.feat code { font-size: .82em; }

/* Callout */
.callout { border: 1px solid var(--line); border-left: 4px solid var(--brand); background: var(--bg-tint); border-radius: var(--radius-sm); padding: 1.1rem 1.25rem; margin: 1.5rem 0; }
.callout.proven { border-left-color: var(--proven); }
.callout .lbl { font-family: var(--mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: .35rem; }

/* Docs layout */
.doc { display: grid; grid-template-columns: 230px 1fr; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; } .toc { display: none; } }
.toc { position: sticky; top: 76px; font-size: .92rem; }
.toc b { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); margin: 0 0 .6rem; }
.toc a { display: block; color: var(--ink-soft); padding: .26rem 0; border-left: 2px solid var(--line); padding-left: .8rem; margin-left: -2px; }
.toc a:hover { color: var(--brand); border-left-color: var(--brand); text-decoration: none; }
.doc-body { min-width: 0; }
.doc-body h2 { margin-top: 3rem; padding-top: .4rem; scroll-margin-top: 76px; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body ul, .doc-body ol { padding-left: 1.2rem; }
.doc-body li { margin: .35rem 0; }

/* Pitch */
.pitch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 760px) { .pitch-grid { grid-template-columns: 1fr; } }
.big-quote { font-size: clamp(1.3rem, 3.2vw, 1.8rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.35; }

/* Footer */
footer { background: var(--bg-deep); color: #aab6d6; padding: 3rem 0; font-size: .92rem; border-top: 1px solid #1d2745; }
footer a { color: #cdd7f3; }
footer .foot-in { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
footer .brand { color: #fff; }
.muted { color: var(--ink-faint); }
.mono { font-family: var(--mono); }
.center { text-align: center; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.lead-row { display: flex; gap: 1rem; flex-wrap: wrap; align-items: baseline; justify-content: space-between; }
