/* Quorum marketing site — one stylesheet, no framework.
   Palette is the app's own: Violet · Quorum #6B3FAE on light, #C4A3FF on dark ground,
   with the four semantic roles (activity, remote, failure, limit) kept off the accent. */

:root {
  --ink: #f4f1f7;
  --ink-soft: #b9b2c6;
  --ink-faint: #7d7690;
  --ground: #0a090d;
  --ground-2: #100e15;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #c4a3ff;
  --accent-deep: #6b3fae;
  --accent-ink: #16101f;
  --activity: #4fcf7f;
  --remote: #ffa04d;
  --failure: #ff6b6b;
  --radius: 14px;
  --radius-lg: 22px;
  --page: 1120px;
  --font: "Archivo", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The page's own light: a soft violet field that follows the pointer. */
body::before {
  content: "";
  position: fixed;
  inset: -20vmax;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38vmax 38vmax at calc(50% + var(--px, 0px) * 0.06) calc(28% + var(--py, 0px) * 0.06),
      rgba(107, 63, 174, 0.40), transparent 62%),
    radial-gradient(28vmax 28vmax at calc(84% - var(--px, 0px) * 0.04) calc(12% - var(--py, 0px) * 0.04),
      rgba(196, 163, 255, 0.16), transparent 60%),
    radial-gradient(34vmax 34vmax at calc(12% + var(--px, 0px) * 0.03) calc(78% + var(--py, 0px) * 0.03),
      rgba(64, 39, 110, 0.34), transparent 64%);
  filter: blur(10px);
  transition: background 400ms linear;
}

/* Fine grain, so the flat ground does not band. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, header, footer { position: relative; z-index: 1; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: rgba(196, 163, 255, 0.3); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { width: min(100% - 48px, var(--page)); margin-inline: auto; }
@media (max-width: 640px) { .wrap { width: calc(100% - 32px); } }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 0 0 10px 0; font-weight: 700; z-index: 99;
}
.skip:focus { left: 0; }

/* ---------- type ---------- */

h1, h2, h3 { font-weight: 800; letter-spacing: -0.025em; line-height: 1.06; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 7.4vw, 5.2rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.16rem; letter-spacing: -0.015em; }
p { margin: 0; text-wrap: pretty; }

.lede { font-size: clamp(1.08rem, 1.7vw, 1.32rem); color: var(--ink-soft); line-height: 1.55; max-width: 62ch; }
.eyebrow {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.19em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: 10px; margin: 0;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: 0.6; }

.accent { color: var(--accent); }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: linear-gradient(to bottom, rgba(10, 9, 13, 0.82), rgba(10, 9, 13, 0.42));
  border-bottom: 1px solid transparent;
  transition: border-color 240ms ease, background 240ms ease;
}
.site-header[data-stuck="true"] { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }

.lockup { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-weight: 800; letter-spacing: -0.03em; font-size: 1.12rem; }
.lockup:hover { text-decoration: none; }
.lockup svg { width: 28px; height: 28px; border-radius: 7px; display: block; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav a {
  color: var(--ink-soft); font-size: 0.93rem; font-weight: 600; padding: 8px 12px; border-radius: 9px;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease;
}
@media (max-width: 520px) { .nav { gap: 0; } .nav a { font-size: 0.82rem; padding: 8px 7px; } }
.nav a:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
@media (max-width: 780px) { .nav a.hide-sm { display: none; } }

/* ---------- buttons ---------- */

.btn {
  --lift: 0px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 12px;
  font-weight: 700; font-size: 0.98rem; letter-spacing: -0.01em;
  border: 1px solid transparent; cursor: pointer;
  transform: translate3d(var(--mx, 0px), calc(var(--my, 0px) + var(--lift)), 0);
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 260ms ease, background 200ms ease, border-color 200ms ease;
  will-change: transform;
}
.btn:hover { text-decoration: none; --lift: -2px; }

.btn-primary {
  background: linear-gradient(180deg, #d7bfff, var(--accent));
  color: var(--accent-ink);
  box-shadow: 0 10px 34px -12px rgba(196, 163, 255, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-primary:hover { box-shadow: 0 18px 44px -12px rgba(196, 163, 255, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.6); }

.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--accent); }

.btn svg { width: 18px; height: 18px; flex: none; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.cta-note { font-size: 0.87rem; color: var(--ink-faint); }
.cta-note strong { color: var(--ink-soft); font-weight: 600; }

/* ---------- hero ---------- */

.hero { position: relative; padding: clamp(64px, 11vh, 120px) 0 clamp(72px, 12vh, 132px); }
.hero .wrap { position: relative; z-index: 2; }

#field {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 1; display: block; pointer-events: none;
}

.hero-grid { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 { margin: 22px 0 0; }
.hero h1 .line { display: block; }
.hero .lede { margin-top: 22px; }
.hero .cta-row { margin-top: 34px; }

.stat-row { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--line); }
.stat { min-width: 96px; }
.stat dt { font-size: 0.74rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }
.stat dd { margin: 5px 0 0; font-size: 1.06rem; font-weight: 700; letter-spacing: -0.02em; }

/* The app window mock */
.mock {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(24, 20, 32, 0.94), rgba(13, 11, 18, 0.94));
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(196, 163, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  overflow: hidden;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: perspective(1400px) rotateY(calc(var(--tilt-x, 0) * -1deg)) rotateX(calc(var(--tilt-y, 0) * 1deg));
  transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.mock-title { margin-left: 8px; font-size: 0.78rem; color: var(--ink-faint); font-weight: 600; letter-spacing: 0.02em; }
.mock-body { display: grid; grid-template-columns: 140px minmax(0, 1fr); min-height: 314px; }
@media (max-width: 520px) { .mock-body { grid-template-columns: 1fr; } .mock-side { display: none; } }
.mock-side { border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 3px; }
.mock-side .group { font-size: 0.66rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; padding: 10px 8px 5px; }
.mock-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; font-size: 0.83rem; color: var(--ink-soft); }
.mock-row[data-on="true"] { background: rgba(196, 163, 255, 0.14); color: var(--ink); font-weight: 600; }
.pip { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--accent); }
.mock-feed { padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; gap: 11px; opacity: 0; transform: translateY(8px); }
.msg[data-in="true"] { opacity: 1; transform: none; transition: opacity 520ms ease, transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.avatar {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  display: grid; place-items: center; font-size: 0.68rem; font-weight: 800; color: #fff;
}
.msg-name { font-size: 0.79rem; font-weight: 700; letter-spacing: -0.01em; }
.msg-name span { font-weight: 500; color: var(--ink-faint); margin-left: 7px; font-size: 0.72rem; letter-spacing: 0.02em; }
.msg-text { font-size: 0.855rem; color: var(--ink-soft); line-height: 1.5; margin-top: 3px; }
.round-rule {
  display: flex; align-items: center; gap: 10px; font-size: 0.69rem; letter-spacing: 0.13em;
  text-transform: uppercase; font-weight: 700; color: rgba(244, 241, 247, 0.38);
}
.round-rule::before, .round-rule::after { content: ""; height: 1px; background: var(--line); flex: 1; }

/* ---------- sections ---------- */

section { padding: clamp(72px, 11vh, 124px) 0; }
.section-head { max-width: 66ch; margin-bottom: clamp(38px, 5vw, 58px); }
.section-head h2 { margin-top: 16px; }
.section-head p { margin-top: 18px; }

.reveal { opacity: 0; transform: translateY(22px); }
.reveal[data-seen="true"] {
  opacity: 1; transform: none;
  transition: opacity 760ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 760ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--delay, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .mock { transform: none; }
}

/* cards */

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  padding: 26px 24px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 300ms ease, background 300ms ease, transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* A light that tracks the cursor across the card. */
.card::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 320ms ease;
  background: radial-gradient(260px circle at var(--cx, 50%) var(--cy, 50%), rgba(196, 163, 255, 0.16), transparent 70%);
  pointer-events: none;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.card:hover::before { opacity: 1; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 0.94rem; }
.card .ico {
  width: 38px; height: 38px; border-radius: 11px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: rgba(196, 163, 255, 0.12); border: 1px solid rgba(196, 163, 255, 0.22);
}
.card .ico svg { width: 19px; height: 19px; stroke: var(--accent); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.card-wide { grid-column: span 2; }
@media (max-width: 900px) { .card-wide { grid-column: span 2; } }
@media (max-width: 620px) { .card-wide { grid-column: span 1; } }

/* pillars */

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }
.pillar { padding: 34px 30px 36px; border-right: 1px solid var(--line); }
.pillar:last-child { border-right: 0; }
@media (max-width: 860px) { .pillar { border-right: 0; border-bottom: 1px solid var(--line); } .pillar:last-child { border-bottom: 0; } }
.pillar .n { font-family: var(--mono); font-size: 0.74rem; color: var(--accent); letter-spacing: 0.1em; }
.pillar h3 { margin: 14px 0 10px; font-size: 1.34rem; }
.pillar p { color: var(--ink-soft); font-size: 0.95rem; }

/* steps */

.steps { counter-reset: step; display: grid; gap: 2px; }
.step {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 24px; align-items: start;
  padding: 30px 26px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); transition: background 300ms ease, border-color 300ms ease;
}
.step:hover { background: var(--surface-2); border-color: var(--line-strong); }
.step .num {
  counter-increment: step; font-family: var(--mono); font-size: 2.1rem; font-weight: 500;
  color: rgba(196, 163, 255, 0.42); letter-spacing: -0.04em; line-height: 1;
}
.step .num::before { content: counter(step, decimal-leading-zero); }
.step p { color: var(--ink-soft); font-size: 0.95rem; margin-top: 9px; }
@media (max-width: 560px) { .step { grid-template-columns: 1fr; gap: 10px; } }

/* privacy strip */

.strip {
  border: 1px solid rgba(79, 207, 127, 0.22);
  background: linear-gradient(135deg, rgba(79, 207, 127, 0.07), rgba(196, 163, 255, 0.05));
  border-radius: var(--radius-lg); padding: clamp(30px, 5vw, 48px);
}
.strip ul { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .strip ul { grid-template-columns: 1fr; } }
.strip li { display: flex; gap: 12px; font-size: 0.95rem; color: var(--ink-soft); }
.strip li svg { width: 19px; height: 19px; flex: none; margin-top: 3px; stroke: var(--activity); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* final cta */

.finale { text-align: center; padding-bottom: clamp(84px, 13vh, 150px); }
.finale .cta-row { justify-content: center; margin-top: 34px; }
.finale .lede { margin-inline: auto; }
.ring-wrap { display: grid; place-items: center; margin-bottom: 34px; }
.ring { width: 96px; height: 96px; }
.ring .seat-empty { fill: none; stroke: rgba(196, 163, 255, 0.55); stroke-width: 3; }
.ring .seat-taken { fill: var(--accent); }
.ring .spin { transform-origin: 50px 50px; animation: spin 26s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ring .spin { animation: none; } }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 44px 0 56px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.site-footer nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer a { color: var(--ink-soft); font-size: 0.9rem; }
.site-footer a:hover { color: var(--accent); }
.legal-note { font-size: 0.82rem; color: var(--ink-faint); width: 100%; margin-top: 6px; }

/* ---------- legal pages ---------- */

.doc { padding: clamp(52px, 8vh, 92px) 0 clamp(70px, 10vh, 110px); }
.doc .wrap { width: min(100% - 48px, 760px); }
.doc h1 { font-size: clamp(2.3rem, 5vw, 3.3rem); }
.doc .updated { margin-top: 18px; color: var(--ink-faint); font-size: 0.9rem; }
.doc .summary {
  margin-top: 34px; padding: 22px 24px; border-radius: var(--radius);
  border: 1px solid rgba(196, 163, 255, 0.24); background: rgba(196, 163, 255, 0.06);
  font-size: 0.96rem; color: var(--ink-soft);
}
.doc h2 { font-size: 1.45rem; margin-top: 52px; scroll-margin-top: 90px; }
.doc h3 { margin-top: 30px; font-size: 1.06rem; }
.doc p, .doc li { color: var(--ink-soft); font-size: 0.99rem; }
.doc p { margin-top: 15px; }
.doc ul, .doc ol { margin-top: 15px; padding-left: 22px; display: grid; gap: 9px; }
.doc strong { color: var(--ink); font-weight: 700; }
.doc code { font-family: var(--mono); font-size: 0.86em; background: var(--surface-2); padding: 2px 6px; border-radius: 5px; color: var(--ink); }
.doc mark { background: rgba(255, 160, 77, 0.18); color: var(--remote); padding: 1px 6px; border-radius: 5px; font-weight: 600; }
.toc { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.toc a { font-size: 0.92rem; color: var(--ink-soft); }
.toc a:hover { color: var(--accent); }
