/* Tokens are compc's dark theme (frontend/computronium-brand-example); the website is dark only. */
:root {
  --canvas: #11161d; --surface: #171e27; --surface-muted: #1f2833;
  --border: #2b3542; --border-strong: #4a586a;
  --text: #e9eef4; --text-muted: #acb9c8;
  --primary: #8fb0ff; --primary-hover: #b3c9ff; --on-primary: #102238;
  --brand-from: #4d7cf3; --brand-to: #2a4fb8;
  --terminal-bg: #0b0f14; --terminal-text: #d5dde7;
  --success: #a5e2be; --warning: #f7d797;
  --radius: 10px; --radius-small: 6px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: 24px; --header-h: 76px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--canvas); color: var(--text); font: 16px/1.55 Inter, ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }

/* type */
.label { font: 500 12px/1 var(--mono); color: var(--primary); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); letter-spacing: -.025em; line-height: 1.15; margin: 0 0 12px; font-weight: 700; }
.lede { color: var(--text-muted); max-width: 40rem; margin: 0 0 40px; font-size: 1.0625rem; }
h1 em, h2 em { font-style: normal; background: linear-gradient(100deg, var(--primary), var(--brand-from)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* lockup */
.lockup { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.03em; font-size: 20px; color: var(--text); }
.lockup img { width: 30px; height: 30px; }

/* buttons */
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: var(--radius-small); font-weight: 600; font-size: 15px; border: 1px solid var(--border-strong); background: rgb(17 22 29 / 60%); color: var(--text); transition: background .15s, border-color .15s; }
.button:hover { border-color: var(--text-muted); }
.button.primary { background: var(--primary); color: var(--on-primary); border-color: transparent; }
.button.primary:hover { background: var(--primary-hover); }
.button.small { height: 36px; padding: 0 14px; font-size: 14px; }
.gh-icon { flex: none; }

/* header sits over each page's first section so the spillover runs behind it */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 10; }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.nav .links { display: flex; gap: 28px; align-items: center; color: var(--text-muted); font-size: 15px; }
.nav .links a:not(.button):hover { color: var(--text); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 40px; height: 40px; display: grid; place-content: center; gap: 4px; border: 1px solid var(--border); border-radius: var(--radius-small); background: rgb(23 30 39 / 70%); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 16px; height: 2px; border-radius: 1px; background: var(--text); }
.menu nav { position: absolute; right: 0; top: 48px; width: min(260px, calc(100vw - 32px)); display: grid; gap: 2px; padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 12px 40px rgb(0 0 0 / 45%); }
.menu nav a:not(.button) { padding: 10px 12px; border-radius: var(--radius-small); color: var(--text-muted); }
.menu nav a:not(.button):hover { background: var(--surface-muted); color: var(--text); }
.menu nav .button { margin-top: 6px; }

/* home hero: a full first screen with the mark's lattice spilling in from the right */
.hero { position: relative; overflow: hidden; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 72px; }
.hero::before { content: ""; position: absolute; inset: 0; background: url(../img/hero-bg.svg) right center / auto 100% no-repeat; pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 120px; background: linear-gradient(transparent, var(--canvas)); pointer-events: none; }
.hero .wrap { width: 100%; }
.hero-copy { position: relative; z-index: 1; }
.hero-copy > * { max-width: 600px; }
.pill { display: inline-flex; gap: 8px; align-items: center; padding: 5px 12px 5px 6px; border: 1px solid var(--border); border-radius: 999px; background: rgb(23 30 39 / 70%); color: var(--text-muted); font-size: 13px; margin-bottom: 28px; }
.pill { max-width: 100%; }
.pill b { background: var(--surface-muted); color: var(--primary); font-weight: 600; border-radius: 999px; padding: 1px 8px; font-size: 12px; white-space: nowrap; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); line-height: 1.04; letter-spacing: -.04em; margin: 0 0 22px; font-weight: 750; }
.subtitle { color: var(--text-muted); font-size: 1.15rem; margin: 0 0 34px; max-width: 40rem; }

/* install command */
.install { margin-top: 28px; display: flex; align-items: center; gap: 12px; max-width: 600px; background: var(--terminal-bg); border: 1px solid var(--border); border-radius: var(--radius-small); padding: 6px 6px 6px 14px; scroll-margin-top: 140px; }
.install:target { border-color: var(--primary); box-shadow: 0 0 0 3px rgb(143 176 255 / 18%); }
.install code { flex: 1; min-width: 0; font: 13.5px/1.5 var(--mono); color: var(--terminal-text); white-space: nowrap; overflow-x: auto; scrollbar-width: none; padding: 6px 0; }
.install code::-webkit-scrollbar { display: none; }
.install .prompt { color: var(--primary); user-select: none; }
.copy { flex: none; height: 32px; padding: 0 12px; border-radius: 4px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: 500 12px var(--mono); cursor: pointer; }
.copy:hover { border-color: var(--text-muted); }
.hero .pill { margin: 22px 0 0; padding-right: 6px; }
.install-note { margin: 10px 0 0; font: 12px/1.5 var(--mono); color: var(--text-muted); }

/* sections */
.band { padding: 88px 0; border-top: 1px solid var(--border); scroll-margin-top: 0; }
.band.flush { border-top: 0; padding-top: 0; }

/* cards */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card img.icon { display: block; width: 40px; height: 40px; margin-bottom: 18px; }
.card h3 { margin: 0 0 6px; font-size: 1.0625rem; font-weight: 650; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--text-muted); font-size: 15px; }
.card-link { display: flex; flex-direction: column; transition: border-color .15s, background .15s; }
.card-link p { flex: 1; }
.card-link .more { margin-top: 18px; color: var(--primary); font-size: 14px; font-weight: 600; }
.card-link:hover { border-color: var(--border-strong); background: var(--surface-muted); }
.card-link:hover .more span { margin-left: 4px; }
.card-link .more span { transition: margin .15s; }


/* closing call to action */
.closing { text-align: center; background: radial-gradient(60% 120% at 50% 100%, rgb(77 124 243 / 14%), transparent 70%); }
.closing .lede { margin: 0 auto 32px; }
.closing .actions { justify-content: center; }

/* solution pages */
.page-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + 72px) 0 56px; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: url(../img/hero-bg.svg) right -120px center / auto 130% no-repeat; opacity: .55; pointer-events: none; mask-image: linear-gradient(90deg, transparent 30%, #000 80%); -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 80%); }
.page-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 120px; background: linear-gradient(transparent, var(--canvas)); pointer-events: none; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.25rem); line-height: 1.08; letter-spacing: -.035em; margin: 0 0 20px; font-weight: 750; max-width: 760px; }
.page-hero .subtitle { margin: 0; max-width: 640px; }

.prose { padding-bottom: 72px; font-size: 1.0625rem; line-height: 1.7; }
.prose > * { max-width: 720px; }
.prose h2 { font-size: 1.375rem; letter-spacing: -.02em; margin: 36px 0 10px; padding-top: 28px; border-top: 1px solid var(--border); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { color: var(--text-muted); margin: 0 0 16px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(143 176 255 / 40%); }
.prose code { font: .9em var(--mono); background: var(--surface-muted); padding: 1px 6px; border-radius: 4px; }

/* footer */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 40px; color: var(--text-muted); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
.footer-brand p { margin: 12px 0 0; }
.site-footer h4 { margin: 0 0 12px; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.site-footer .footer-grid > div:not(.footer-brand) a { display: block; padding: 4px 0; }
.site-footer .footer-grid > div:not(.footer-brand) a:hover { color: var(--text); }
.copyright { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; }

/* causaLens FDE callout: a tinted full-width band between sections */
.fde { padding: 64px 0; background: linear-gradient(100deg, rgb(77 124 243 / 16%), rgb(23 30 39 / 60%) 45%, transparent); border-bottom: 1px solid var(--border); }
.fde + .band { border-top: 0; }
.fde-inner { display: flex; align-items: center; gap: 32px; }
.fde-inner img { flex: none; }
.fde-copy { flex: 1; }
.fde-copy h2 { font-size: 1.625rem; margin: 0 0 8px; }
.fde-copy p:last-child { margin: 0; color: var(--text-muted); max-width: 42rem; }
.fde .button { flex: none; }

@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .fde-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .fde-inner img { width: 48px; height: 48px; }
  :root { --gutter: 16px; --header-h: 64px; }
  .nav .links { display: none; }
  .menu { display: block; }
  .hero { min-height: auto; padding: calc(var(--header-h) + 40px) 0 56px; }
  .hero::before { opacity: .35; background-position: 60% center; }
  .features { grid-template-columns: 1fr; }
  .band { padding: 64px 0; }
  .page-hero { padding: calc(var(--header-h) + 40px) 0 40px; }
  .page-hero::before { opacity: .3; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
