/* Synpse Labs — publisher site */

:root {
  --navy: #0F172A;
  --indigo: #4C6FFF;
  --periwinkle: #A3BFFA;
  --cloud: #F6F8FF;
  --slate: #73829B;

  --bg: #F6F8FF;
  --surface: #FFFFFF;
  --surface-2: #EEF2FD;
  --ink: #0F172A;
  --ink-2: #334155;
  --muted: #56647A;
  --line: #DFE5F3;
  --line-strong: #C9D3EA;
  --accent: #4C6FFF;
  --accent-ink: #3550E6;
  --accent-soft: #E6ECFF;
  --on-accent: #FFFFFF;
  --wordmark-labs: #73829B;

  --g0: #A3BFFA; --g1: #4C6FFF; --g2: #3048D8; --g3: #16248A;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .12);
  --max: 1140px;
  --font-display: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1120;
    --surface: #111A2E;
    --surface-2: #16213A;
    --ink: #F6F8FF;
    --ink-2: #D3DBEC;
    --muted: #9AA8C1;
    --line: #1F2B45;
    --line-strong: #2C3A5A;
    --accent: #6F8BFF;
    --accent-ink: #9DB0FF;
    --accent-soft: #1A2547;
    --on-accent: #0B1120;
    --wordmark-labs: #8C9AB3;
    --g0: #C7D6FF; --g1: #7A94FF; --g2: #4C6FFF; --g3: #3550E6;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B1120;
  --surface: #111A2E;
  --surface-2: #16213A;
  --ink: #F6F8FF;
  --ink-2: #D3DBEC;
  --muted: #9AA8C1;
  --line: #1F2B45;
  --line-strong: #2C3A5A;
  --accent: #6F8BFF;
  --accent-ink: #9DB0FF;
  --accent-soft: #1A2547;
  --on-accent: #0B1120;
  --wordmark-labs: #8C9AB3;
  --g0: #C7D6FF; --g1: #7A94FF; --g2: #4C6FFF; --g3: #3550E6;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -16px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 16px; }

/* ---------- Brand ---------- */
.mark { width: 32px; height: 32px; flex: none; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.wordmark { font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -0.03em; line-height: 1; display: inline-flex; align-items: baseline; gap: 7px; }
.wordmark .labs { font-weight: 600; font-size: .56em; letter-spacing: .3em; color: var(--wordmark-labs); text-transform: uppercase; transform: translateY(-1px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 14.5px; font-weight: 500; padding: 8px 12px; border-radius: 999px; transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.theme-btn {
  width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); display: grid; place-items: center; cursor: pointer; margin-left: 6px;
}
.theme-btn:hover { border-color: var(--line-strong); }
.theme-btn svg { width: 17px; height: 17px; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
@media (max-width: 720px) { .nav-links a:not(.keep) { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 20px; border-radius: 999px;
  font: 600 15px/1 var(--font-body); text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s, background .15s, border-color .15s, box-shadow .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 88px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .02em;
  color: var(--accent-ink); background: var(--accent-soft); padding: 6px 12px 6px 8px; border-radius: 999px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); margin-left: 4px; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0; }
.hero h1 { font-size: clamp(40px, 6.4vw, 72px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 800; margin: 22px 0 22px; }
.hero h1 .soft { color: var(--muted); font-weight: 700; }
.lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 34em; margin: 0 0 32px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

.profile {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow);
  padding: 28px; position: relative; overflow: hidden;
}
.profile-head { display: flex; align-items: center; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.profile-icon { width: 64px; height: 64px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; }
.profile-icon .mark { width: 40px; height: 40px; }
.profile-name { font: 800 20px/1.2 var(--font-display); letter-spacing: -0.02em; }
.profile-sub { font-size: 13.5px; color: var(--muted); margin-top: 3px; display: flex; align-items: center; gap: 6px; }
.verified { width: 15px; height: 15px; color: var(--accent); }
.profile dl { margin: 18px 0 0; display: grid; gap: 0; }
.profile dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.profile dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.profile dt { color: var(--muted); }
.profile dd { margin: 0; font-weight: 600; text-align: right; }
.profile dd a { text-decoration: none; color: var(--accent-ink); }
.profile dd a:hover { text-decoration: underline; }
.profile dt a { color: inherit; text-decoration: none; }
.profile dt a:hover { color: var(--ink); text-decoration: underline; }


@media (max-width: 900px) {
  .hero { padding: 40px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Sections ---------- */
section { scroll-margin-top: 76px; }
.section { padding: 88px 0; border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.kicker { font: 600 12.5px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.section h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 800; max-width: 16em; }
.section-head p { color: var(--muted); max-width: 30em; margin: 0; }
@media (max-width: 560px) { .section { padding: 64px 0; } }

/* ---------- Products ---------- */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.product { padding: 32px; display: flex; flex-direction: column; gap: 22px; }
.product-top { display: flex; gap: 20px; align-items: flex-start; }
.app-icon { width: 84px; height: 84px; border-radius: 20px; flex: none; box-shadow: 0 6px 18px -8px rgba(15, 23, 42, .35); }
.product h3 { font-size: 28px; letter-spacing: -0.03em; font-weight: 800; line-height: 1.1; }
.product .tagline { color: var(--muted); margin: 6px 0 0; font-size: 15.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { font-size: 12.5px; font-weight: 600; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }
.product p.desc { margin: 0; color: var(--ink-2); max-width: 40em; }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.features li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.features svg { width: 18px; height: 18px; flex: none; color: var(--accent); margin-top: 2px; }
.product-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 22px; border-top: 1px solid var(--line); margin-top: auto; }

.lab { grid-column: 1 / -1; padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 28px; background: var(--surface-2); border-style: dashed; border-color: var(--line-strong); }
.lab h3 { font-size: 22px; letter-spacing: -0.025em; font-weight: 800; }
.lab p { color: var(--muted); margin: 10px 0 0; font-size: 15px; }
.lab-nodes { display: flex; gap: 10px; align-items: center; }
.lab-nodes span { height: 10px; border-radius: 999px; background: var(--line-strong); }
.lab-nodes span:nth-child(1) { width: 10px; background: var(--accent); }
.lab-nodes span:nth-child(2) { width: 46px; }
.lab-nodes span:nth-child(3) { width: 10px; background: var(--periwinkle); }
.lab-nodes span:nth-child(4) { width: 28px; }
.lab-nodes span:nth-child(5) { width: 10px; }

@media (max-width: 900px) {
  .products { grid-template-columns: 1fr; }
  .lab { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .product, .lab { padding: 22px; }
  .product-top { flex-direction: column; gap: 16px; }
  .app-icon { width: 72px; height: 72px; border-radius: 18px; }
}

/* ---------- Principles ---------- */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.principle { padding: 28px 28px 8px 0; }
.principle + .principle { padding-left: 28px; border-left: 1px solid var(--line); }
.principle .num { font: 600 13px/1 var(--font-body); color: var(--accent-ink); letter-spacing: .08em; }
.principle h3 { font-size: 19px; letter-spacing: -0.02em; font-weight: 700; margin: 18px 0 10px; }
.principle p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) {
  .principles { grid-template-columns: 1fr 1fr; }
  .principle:nth-child(3) { padding-left: 0; border-left: 0; }
  .principle:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 20px; }
}
@media (max-width: 560px) {
  .principles { grid-template-columns: 1fr; }
  .principle, .principle + .principle { padding: 22px 0 4px; border-left: 0; margin-top: 0; }
  .principle + .principle { border-top: 1px solid var(--line); margin-top: 18px; }
}

/* ---------- About ---------- */
.info { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.info p.body { color: var(--muted); margin: 18px 0 0; max-width: 32em; }
.facts { padding: 8px 28px; }
.facts > div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.facts dd a { color: var(--accent-ink); text-decoration: none; font-weight: 600; }
.facts dd a:hover { text-decoration: underline; }
.facts dd small { display: block; color: var(--muted); font-weight: 400; font-size: 13.5px; margin-top: 2px; }
@media (max-width: 900px) { .info { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 560px) {
  .facts { padding: 4px 20px; }
  .facts > div { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
}

/* ---------- Contact band ---------- */
.band {
  margin: 0 0 88px; padding: 48px; border-radius: 28px; background: var(--navy); color: #F6F8FF; position: relative; overflow: hidden;
  display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap;
}
:root[data-theme="dark"] .band { background: var(--surface-2); border: 1px solid var(--line); }
.band h2 { color: #F6F8FF; font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.03em; font-weight: 800; line-height: 1.15; max-width: 15em; position: relative; }
.band p { color: #A9B5CC; margin: 10px 0 0; position: relative; }
.band .btn { position: relative; }
.band .btn-primary { background: #F6F8FF; color: var(--navy); }
.band .btn-ghost { background: transparent; color: #F6F8FF; border-color: rgba(246, 248, 255, .25); }
.band .btn-ghost:hover { border-color: rgba(246, 248, 255, .5); }
.band-art { position: absolute; right: -40px; bottom: -120px; width: 340px; opacity: .14; pointer-events: none; }
@media (max-width: 560px) { .band { padding: 32px 22px; margin-bottom: 64px; border-radius: 22px; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 14px; color: var(--muted); }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.footer-grid .tag { margin: 12px 0 0; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-links h4 { font: 600 12px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin: 4px 0 14px; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-links a { text-decoration: none; color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
.legal-row { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }

/* ---------- Prose pages ---------- */
.prose { max-width: 720px; padding: 56px 0 88px; }
.prose h1 { font-size: clamp(34px, 5vw, 48px); letter-spacing: -0.04em; font-weight: 800; line-height: 1.08; margin: 16px 0 10px; }
.prose .meta { color: var(--muted); font-size: 14px; margin: 0 0 36px; }
.prose h2 { font-size: 21px; letter-spacing: -0.02em; font-weight: 700; margin: 40px 0 10px; }
.prose p, .prose li { color: var(--ink-2); }
.prose a:not(.btn) { color: var(--accent-ink); }
.prose ul { padding-left: 20px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Misc ---------- */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.g0 { stop-color: var(--g0); } .g1 { stop-color: var(--g1); } .g2 { stop-color: var(--g2); } .g3 { stop-color: var(--g3); }
.prose-404 { padding-top: 96px; }
