/* sayvelio.org, the company site. Tokens and buttons follow sayvelio.com, with a quieter layout:
   a text hero with key facts, mission pillars, the technology pipeline and stack, a dark principles band,
   products and company facts. */
/* Fonts are served from this site, so visitors' browsers make no requests to third parties. */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/assets/fonts/manrope-latin.woff2") format("woff2"); }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/onest-latin.woff2") format("woff2"); }
:root {
  --bg: #ffffff;
  --mist: #f6f4fd;
  --surface: #ffffff;
  --line: #e7e3f4;
  --ink: #14112b;
  --muted: #5e5a78;
  --violet: #6a3bff;
  --magenta: #b43ceb;
  --coral: #ff6f61;
  --ok: #18a058;
  --band: #14112b;
  --band-ink: #f2f0fa;
  --band-muted: #a9a4c6;
  --band-line: #2c2848;
  --shadow: 0 1px 2px rgba(20, 17, 43, .05), 0 12px 40px -12px rgba(48, 30, 120, .18);
  --brand: linear-gradient(120deg, #5b34f5 0%, #b43ceb 55%, #ff6f61 100%);

  --font-display: "Manrope", "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --font-body: "Onest", "SF Pro Text", "Segoe UI", system-ui, sans-serif;

  --step--1: .875rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  --step-4: clamp(2.4rem, 1.6rem + 3.4vw, 4.25rem);
  --radius: 18px;
  --wrap: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0c1d;
    --mist: #141129;
    --surface: #18152f;
    --line: #2a2646;
    --ink: #f2f0fa;
    --muted: #a6a1c2;
    --violet: #9a7bff;
    --magenta: #d77af5;
    --coral: #ff8a7e;
    --ok: #4cd08a;
    --band: #1b1736;
    --band-line: #342f58;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 50px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e0c1d;
  --mist: #141129;
  --surface: #18152f;
  --line: #2a2646;
  --ink: #f2f0fa;
  --muted: #a6a1c2;
  --violet: #9a7bff;
  --magenta: #d77af5;
  --coral: #ff8a7e;
  --ok: #4cd08a;
  --band: #1b1736;
  --band-line: #342f58;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 50px -16px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -.025em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.eyebrow {
  font: 600 .78rem/1 var(--font-body);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--violet);
}
.lead { font-size: var(--step-1); color: var(--muted); max-width: 36em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font: 600 var(--step-0)/1 var(--font-body);
  padding: .95rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--bg); box-shadow: var(--shadow); }
.btn-ghost { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn-ghost:hover { border-color: var(--violet); }
.btn svg { width: 18px; height: 18px; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 21; background: var(--bg);
}
.nav { display: flex; align-items: center; gap: 2rem; height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.lockup { display: grid; gap: 4px; }
.lockup b { font: 800 1.3rem/1 var(--font-display); letter-spacing: -.03em; }
.lockup b span { color: var(--violet); }
.lockup small { font: 600 .62rem/1 var(--font-body); letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; gap: 1.8rem; margin-inline-start: auto; font-size: .95rem; color: var(--muted); }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.nav .btn { padding: .65rem 1.15rem; font-size: .92rem; }
@media (max-width: 900px) { .nav-links { display: none; } .nav .btn { margin-inline-start: auto; } }

/* Hero */
.hero { padding-block: 112px 88px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto 55%; height: 160%;
  background: radial-gradient(40% 40% at 50% 40%, color-mix(in srgb, var(--violet) 12%, transparent), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px 56px; align-items: center; }
.hero-copy { display: grid; gap: 28px; }
.hero-grid .keyfacts { grid-column: 1 / -1; }
.hero-visual { margin: 0; justify-self: center; width: min(100%, 460px); }
.hero-art { width: 100%; height: auto; overflow: visible; }
.ha-ring { fill: none; stroke: var(--line); stroke-width: 1; }
.ha-link { stroke: color-mix(in srgb, var(--violet) 22%, transparent); stroke-width: 1; }
.ha-node { fill: var(--bg); stroke: var(--violet); stroke-width: 2; }
.ha-core { fill: var(--surface); stroke: var(--line); box-shadow: var(--shadow); }
.ha-arrow { fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ha-text { fill: var(--ink); opacity: .8; }
.ha-spin { transform-origin: 240px 240px; animation: ha-spin 60s linear infinite; }
@keyframes ha-spin { to { transform: rotate(360deg); } }
.ha-wave rect { transform-box: fill-box; transform-origin: center; animation: ha-pulse 1.4s ease-in-out infinite; }
.ha-wave rect:nth-child(2n) { animation-delay: -.5s; } .ha-wave rect:nth-child(3n) { animation-delay: -.9s; }
@keyframes ha-pulse { 50% { transform: scaleY(.55); } }
@media (prefers-reduced-motion: reduce) { .ha-spin, .ha-wave rect { animation: none; } }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { width: min(62%, 280px); order: -1; } }
.hero h1 { font-size: var(--step-4); font-weight: 800; }
.hero .lead { max-width: 44em; }
.keyfacts { margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.keyfacts div { padding: 20px 20px 0 0; display: grid; gap: 6px; align-content: start; }
.keyfacts div + div { padding-inline-start: 20px; border-inline-start: 1px solid var(--line); }
.keyfacts dt, .facts dt { font: 600 .72rem/1.2 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.keyfacts dd { margin: 0; font: 700 1.15rem/1.3 var(--font-display); }
@media (max-width: 800px) {
  .hero { padding-block: 64px 56px; }
  .keyfacts { grid-template-columns: 1fr 1fr; }
  .keyfacts div, .keyfacts div + div { padding: 16px 12px 16px 0; border: 0; border-bottom: 1px solid var(--line); }
}

/* Sections */
.section { padding-block: 104px; }
.section-alt { background: var(--mist); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: 16px; max-width: 780px; margin-bottom: 48px; align-content: start; }
.section-head h2 { font-size: var(--step-3); font-weight: 800; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.split .section-head { margin-bottom: 0; }
.prose { display: grid; gap: 18px; font-size: var(--step-1); color: var(--muted); padding-top: 34px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 24px; } .prose { padding-top: 0; } }
@media (max-width: 700px) { .section { padding-block: 72px; } .section-head { margin-bottom: 36px; } }

.pillars { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); counter-reset: p; }
.pillars li { padding: 28px 28px 0 0; display: grid; gap: 12px; align-content: start; counter-increment: p; }
.pillars li + li { padding-inline-start: 28px; border-inline-start: 1px solid var(--line); }
.pillars li::before { content: "0" counter(p); font: 700 .85rem/1 var(--font-display); color: var(--violet); }
.pillars h3 { font-size: var(--step-1); font-weight: 700; }
.pillars p { color: var(--muted); }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } .pillars li, .pillars li + li { padding: 24px 0; border: 0; border-bottom: 1px solid var(--line); } }

/* Technology */
.pipeline { list-style: none; margin: 0 0 56px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pipeline li { position: relative; display: grid; gap: 6px; padding: 20px 22px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.pipeline span { font: 700 .8rem/1 var(--font-display); color: var(--violet); }
.pipeline b { font: 700 1.1rem/1.2 var(--font-display); }
.pipeline small { color: var(--muted); font-size: .9rem; }
.pipeline li + li::before { content: ""; position: absolute; inset-inline-start: -12px; top: 50%; width: 12px; height: 2px; background: var(--brand); }
@media (max-width: 860px) { .pipeline { grid-template-columns: 1fr 1fr; } .pipeline li::before { display: none; } }
@media (max-width: 480px) { .pipeline { grid-template-columns: 1fr; } }

.tech-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.tech-list article { display: grid; gap: 10px; padding: 28px 0; border-top: 1px solid var(--line); align-content: start; }
.tech-list h3 { font-size: var(--step-1); font-weight: 700; }
.tech-list p { color: var(--muted); }
.tags { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: .8rem; font-weight: 500; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); }
@media (max-width: 860px) { .tech-list { grid-template-columns: 1fr; } }

/* Principles band */
.band { background: var(--band); color: var(--band-ink); }
.band .wrap { padding-block: 104px; }
.band .eyebrow { color: #c9b8ff; }
.band .section-head p { color: var(--band-muted); font-size: var(--step-1); }
.principles { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 48px; }
.principles div { padding: 26px 0; border-top: 1px solid var(--band-line); display: grid; gap: 10px; align-content: start; }
.principles dt { font: 700 1.1rem/1.3 var(--font-display); }
.principles dd { margin: 0; color: var(--band-muted); font-size: .97rem; }
@media (max-width: 900px) { .principles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .principles { grid-template-columns: 1fr; } .band .wrap { padding-block: 72px; } }

/* Products */
.product {
  display: flex; gap: 28px; align-items: flex-start; padding: 32px; text-decoration: none;
  border-radius: 20px; border: 1px solid var(--line); background: var(--surface); transition: border-color .15s;
}
.product:hover { border-color: var(--violet); }
.product img { flex: none; width: 64px; height: 64px; }
.product-body { display: grid; gap: 10px; max-width: 68ch; }
.product h3 { font-size: var(--step-2); font-weight: 800; }
.product p { color: var(--muted); }
.product-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--violet); }
.product-link svg { width: 18px; height: 18px; }
.status { display: inline-block; width: fit-content; font: 600 .7rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; color: var(--muted); border: 1px solid var(--line); vertical-align: middle; }
.status-live { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); margin-inline-start: 8px; }
.lines { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.lines article { display: grid; gap: 10px; align-content: start; padding: 26px; border-radius: 20px; border: 1px dashed var(--line); background: var(--mist); }
.lines h3 { font-size: var(--step-1); font-weight: 700; }
.lines p:not(.status) { color: var(--muted); }
@media (max-width: 560px) { .product { flex-direction: column; padding: 24px; } .product img { width: 52px; height: 52px; } }

/* Company */
.facts { margin: 0; border-top: 1px solid var(--ink); }
.facts div { display: grid; grid-template-columns: 11em 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.facts a { color: var(--violet); text-decoration: none; }
@media (max-width: 480px) { .facts div { grid-template-columns: 1fr; gap: 6px; } }

/* Footer */
.foot { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; align-items: center; padding-block: 36px; font-size: .9rem; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

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

/* Privacy and legal notice pages */
.doc { padding-block: 72px 24px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: var(--step-3); font-weight: 800; margin: 12px 0 8px; }
.doc .updated { color: var(--muted); font-size: .92rem; margin-bottom: 36px; }
.doc h2 { font-size: var(--step-1); font-weight: 700; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--muted); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-inline-start: 1.2em; margin: 10px 0 0; display: grid; gap: 6px; }
.doc a { color: var(--violet); }
.doc b { color: var(--ink); font-weight: 600; }
