/* Syncflow website: black-and-white glass, the same look as the app. */
:root {
  --bg: #070707; --glass: rgba(255,255,255,.06); --glass-2: rgba(255,255,255,.04); --line: rgba(255,255,255,.14);
  --text: #f4f4f4; --muted: #a1a1a1;
  --wire: #ffffff; --wire-dim: rgba(255,255,255,.12); --wire-glow: drop-shadow(0 0 5px rgba(255,255,255,.8)); --wire-bg: #070707;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: -20%; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 35% at 20% 20%, rgba(255,255,255,.10), transparent 70%),
              radial-gradient(35% 30% at 85% 60%, rgba(255,255,255,.07), transparent 70%); }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
.glass { background: var(--glass); border: 1px solid var(--line); border-radius: 20px; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* header */
.top { position: sticky; top: 16px; z-index: 6; margin-top: 16px; }
.top .bar { display: flex; align-items: center; gap: 28px; padding: 10px 10px 10px 20px; }
.logo { font-weight: 700; letter-spacing: -.02em; font-size: 19px; display: flex; align-items: center; gap: 10px; }
.logo i { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, #fff, #777); display: block; }
.links { display: flex; gap: 24px; color: var(--muted); font-size: 15px; margin-left: auto; }
.links a:hover, .links a[aria-current] { color: var(--text); }
.top .actions { display: flex; gap: 8px; }
.menu { display: none; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; padding: 9px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: #fff; color: #000; }
/* Solid, because a blur inside the already-blurred bar doesn't work in browsers. */
.menu nav { position: absolute; left: 0; right: 0; top: calc(100% + 8px); padding: 10px; display: grid; gap: 2px; background: rgba(18,18,18,.97); box-shadow: 0 20px 50px rgba(0,0,0,.6); }
.menu nav a { padding: 12px 14px; border-radius: 10px; }
.menu nav a:hover { background: var(--glass); }

.btn { display: inline-block; padding: 10px 18px; border-radius: 12px; font-weight: 600; font-size: 15px; border: 1px solid #fff; transition: transform .15s, background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn.solid { background: #fff; color: #000; }
.btn.ghost { color: #fff; }
.btn.ghost:hover { background: rgba(255,255,255,.08); }
.btn.big { padding: 13px 22px; font-size: 16px; }

/* home hero */
.hero { padding: 110px 0 70px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
h1 { font-size: clamp(40px, 5.4vw, 66px); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; }
.lead { color: var(--muted); font-size: 19px; margin: 22px 0 32px; max-width: 540px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.note { color: var(--muted); font-size: 14px; margin-top: 18px; }

/* the field-by-field picture */
.fields { padding: 22px; }
.fields .cols { display: grid; grid-template-columns: 1fr 70px 1fr; }
.rec h3 { font-size: 13px; color: var(--muted); font-weight: 500; margin-bottom: 10px; }
.rec div { padding: 9px 12px; margin-bottom: 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--glass-2); font-size: 14px; }
.fields svg { width: 70px; height: 100%; }
.fields path { fill: none; stroke: rgba(255,255,255,.5); stroke-width: 1.2; stroke-dasharray: 4 5; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -18; } }
.fields .foot { margin-top: 10px; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; }

/* page header for inner pages */
.page-head { padding: 90px 0 30px; max-width: 760px; }
.page-head h1 { font-size: clamp(36px, 4.6vw, 56px); }
.page-head .lead { margin-bottom: 0; }

section { padding: 70px 0; }
h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.03em; line-height: 1.1; margin-bottom: 14px; }
h3 { font-size: 18px; line-height: 1.3; margin-bottom: 8px; }
.sub { color: var(--muted); max-width: 640px; margin-bottom: 36px; font-size: 17px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card { padding: 24px; }
.card p, .muted { color: var(--muted); font-size: 15px; }
.apps { display: flex; flex-wrap: wrap; gap: 10px; }
.apps a, .apps span { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); font-size: 15px; transition: border-color .15s; }
.apps a:hover { border-color: #fff; }
.apps .more { color: var(--muted); }
.steps { counter-reset: s; }
.steps .card::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #fff; font-weight: 600; margin-bottom: 16px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; }
.facts div { border-top: 1px solid var(--line); padding-top: 16px; }
.facts b { display: block; margin-bottom: 4px; }
.facts span { color: var(--muted); font-size: 15px; }
.more-link { display: inline-block; margin-top: 26px; border-bottom: 1px solid var(--muted); color: var(--text); font-size: 15px; }
.final { text-align: center; padding: 60px 28px; margin: 40px 0 70px; }
.final p { color: var(--muted); margin: 12px auto 28px; max-width: 540px; }
.final .cta { justify-content: center; }

/* connections page */
.cat { padding: 50px 0 10px; }
.cat > h2 { font-size: 26px; margin-bottom: 18px; }
.conn { padding: 24px; display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 110px; }
.conn header { display: flex; align-items: center; gap: 12px; }
.conn .mark { width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line); background: var(--glass-2); display: grid; place-items: center; font-weight: 700; font-size: 13px; letter-spacing: .02em; flex: none; }
.conn h3 { margin: 0; }
.conn dl { display: grid; gap: 10px; font-size: 14px; }
.conn dt { color: var(--muted); font-size: 13px; }
.conn dd { margin: 2px 0 0; }
.tagline { color: var(--muted); font-size: 15px; }

/* plain text pages */
.prose { max-width: 760px; padding: 10px 0 70px; }
.prose h2 { font-size: 24px; margin: 38px 0 10px; }
.prose p, .prose li { color: #d6d6d6; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 22px; margin: 10px 0; }
.prose li + li { margin-top: 6px; }
.prose a { border-bottom: 1px solid var(--muted); }
.draft { padding: 16px 20px; margin-bottom: 10px; border-color: rgba(255,255,255,.35); }
.draft b { display: block; margin-bottom: 2px; }

/* footer */
footer.site { border-top: 1px solid var(--line); padding: 44px 0 56px; margin-top: 20px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; font-size: 15px; }
footer.site h2 { font-size: 13px; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-bottom: 10px; }
footer.site ul { list-style: none; padding: 0; display: grid; gap: 8px; }
footer.site a:hover { text-decoration: underline; }
footer.site .small { color: var(--muted); font-size: 14px; margin-top: 12px; }

@media (max-width: 960px) {
  .links, .top .actions { display: none; }
  .menu { display: block; }
  .grid4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 60px; gap: 40px; }
  .grid4, .grid3, .grid2, .facts { grid-template-columns: 1fr; }
  .page-head { padding-top: 60px; }
  footer.site { grid-template-columns: 1fr 1fr; }
  .wrap { padding: 0 20px 0 28px; }
  .fields { padding: 16px; }
  .fields .cols { grid-template-columns: 1fr 34px 1fr; }
  .fields svg { width: 34px; }
  .rec div { font-size: 13px; padding: 8px 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rec h3 { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fields path { animation: none; }
  .btn { transition: none; }
}

/* the wire that draws itself down the page (assets/wire.js) */
.wire { position: absolute; top: 0; left: 0; pointer-events: none; z-index: 4; overflow: visible; }
.wire-glow { filter: var(--wire-glow); }
#wire-flow { animation: wire-flow 1.1s linear infinite; }
@keyframes wire-flow { to { stroke-dashoffset: -28; } }
#wire-tip.done { opacity: 0; }
.wire-node { fill: var(--wire-bg); stroke: var(--wire-dim); stroke-width: 1.2; transition: stroke .3s, r .3s; }
.wire-node.on { stroke: var(--wire); r: 6.5; filter: var(--wire-glow); }
.wire-node-core { fill: var(--wire); opacity: 0; transition: opacity .3s; }
.wire-node-core.on { opacity: 1; }
.wire-tap { stroke: var(--wire); stroke-width: 1.2; fill: none; opacity: 0; transition: opacity .4s; }
.wire-tap.on { opacity: .8; }
@media (prefers-reduced-motion: reduce) { #wire-flow { animation: none; } }

/* small spacing helpers (inline styles are blocked by the site's security rules) */
.mt-s { margin-top: 20px; } .mt-m { margin-top: 28px; }
.list { margin: 12px 0 22px 20px; }
.underline { border-bottom: 1px solid var(--muted); }
/* brand marks */
.conn .mark svg { width: 20px; height: 20px; }
.apps a { display: inline-flex; align-items: center; gap: 8px; }
.chip-mark { display: inline-grid; width: 16px; height: 16px; }
.chip-mark svg { width: 16px; height: 16px; }
.apps .chip-mark { padding: 0; border: 0; background: none; border-radius: 0; }
