/* DataJoinery.io — site styles
   One stylesheet, no inline styles, so the CSP can stay at style-src 'self'. */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face { font-family: "Montserrat"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/montserrat-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/geist-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/geist-mono-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
  --night: #0B0A22;
  --night-2: #0E0C2B;
  --night-3: #15133C;
  --night-4: #1E1B4C;
  --night-footer: #08071A;
  --paper: #F6F5FB;
  --paper-line: #DEDAEE;
  --card-line: #E3DFF2;
  --chip-light: #EEEBF8;
  --ink: #15122F;
  --ink-muted: #4D4A6B;
  --text: #F4F2FF;
  --text-soft: #D6D2F2;
  --text-muted: #B9B5DA;
  --text-faint: #9C98C2;
  --lav: #C9B6FF;
  --lav-2: #D3BFFF;
  --lav-3: #E4DAFF;
  --lav-4: #EDE6FF;
  --purple: #8F4098;
  --indigo: #4C499C;
  --blue: #154B9E;
  --violet: #3F4AA0;
  --link-light: #6B3C9A;
  --focus: #A96FDB;
  --success: #9FE8CC;
  --line-dark: rgba(255, 255, 255, 0.10);
  --grad: linear-gradient(120deg, #8F4098 0%, #4C499C 55%, #154B9E 100%);
  --grad-btn: linear-gradient(120deg, #8F4098, #3F4AA0 60%, #154B9E);
  --grad-soft: linear-gradient(160deg, rgba(143, 64, 152, 0.42), rgba(21, 75, 158, 0.42));
  --font-display: "Montserrat", "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --header-h: 76px;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--lav); text-underline-offset: 4px; }
a:hover { color: var(--lav-3); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
p, h1, h2, h3, h4, dl, dd, ul, ol, figure { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
code, .mono { font-family: var(--font-mono); }
::selection { background: rgba(169, 111, 219, 0.45); color: #fff; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 18px; border-radius: 10px; background: #fff; color: var(--ink); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
}
.section { position: relative; overflow: hidden; padding-block: 112px; }
.section--dark { background: var(--night); }
.section--deep { background: var(--night-2); }
.section--light { background: var(--paper); color: var(--ink); color-scheme: light; }
.section--light a { color: var(--link-light); }
.section--light a:hover { color: #4B2C82; }
.section--tight-top { padding-top: 40px; }
.section--tight-bottom { padding-bottom: 40px; }
.section--doc { overflow: visible; } /* lets the sticky table of contents work */
.section--bordered { border-top: 1px solid rgba(255, 255, 255, 0.06); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
@media (max-width: 720px) { .section { padding-block: 72px; } .section--tight-top { padding-top: 24px; } }

.split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px 64px; }
.split > * { flex: 1 1 440px; min-width: 0; }
.split--top { align-items: flex-start; }
.stack { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.stack--sm { gap: 16px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px 64px; margin-bottom: 48px; }
.section-head > * { flex: 1 1 420px; min-width: 0; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid--300 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid--320 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.grid--wide { grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); }
.grid--tight { gap: 16px; }

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.04;
  text-wrap: balance;
}
.h1 { font-size: clamp(40px, 5.2vw, 68px); color: #fff; }
.h2 { font-size: clamp(30px, 3.8vw, 52px); line-height: 1.08; letter-spacing: -0.025em; color: #fff; }
.section--light .h2 { color: var(--ink); }
.h3 { font-family: var(--font-display); font-weight: 500; font-size: 20px; line-height: 1.3; }
.lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--text-muted); max-width: 34em; }
.lead--bright { color: var(--text); }
.section--light .lead { color: var(--ink-muted); }
.muted { color: var(--text-muted); }
.small { font-size: 14px; line-height: 1.5; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn--primary { background: var(--grad-btn); color: #fff; box-shadow: 0 10px 30px rgba(143, 64, 152, 0.35); }
.btn--primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 14px 36px rgba(143, 64, 152, 0.45); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.24); background: rgba(255, 255, 255, 0.04); color: var(--text); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.10); color: #fff; }
.btn--light { background: #fff; color: #4B2C82; }
.btn--light:hover { color: #4B2C82; transform: translateY(-1px); }
.btn--outline-light { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; }

/* ---------- Decor ---------- */
.dots {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.10) 1px, transparent 1.6px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 75% 40%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 60% 70% at 75% 40%, #000 10%, transparent 72%);
}
.dots--right {
  -webkit-mask-image: radial-gradient(ellipse 50% 80% at 85% 50%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 50% 80% at 85% 50%, #000 10%, transparent 72%);
}
.glow { position: absolute; border-radius: 50%; pointer-events: none; }
.glow--purple { background: radial-gradient(circle, rgba(143, 64, 152, 0.55) 0%, rgba(143, 64, 152, 0) 62%); }
.glow--blue { background: radial-gradient(circle, rgba(21, 75, 158, 0.55) 0%, rgba(21, 75, 158, 0) 62%); }
.glow--soft { opacity: 0.7; }
.glow--hero-a { width: 760px; height: 760px; right: -180px; top: -220px; }
.glow--hero-b { width: 680px; height: 680px; right: 160px; top: 220px; }
.glow--left-top { width: 700px; height: 700px; left: -220px; top: -120px; }
.glow--right-bottom { width: 640px; height: 640px; right: -160px; bottom: -200px; }
.glow--left-bottom { width: 640px; height: 640px; left: -200px; bottom: -240px; }
.glow--center-top { width: 700px; height: 700px; left: 50%; top: -260px; transform: translateX(-50%); }
.watermark { position: absolute; pointer-events: none; opacity: 0.12; right: -50px; top: 48px; width: 280px; }
@media (max-width: 720px) { .watermark { width: 180px; opacity: 0.08; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 10, 34, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; min-height: var(--header-h); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; min-height: 48px; text-decoration: none; }
.brand__icon { width: 36px; height: 36px; border-radius: 10px; }
.brand__wordmark { width: 149px; height: 22px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; }
.nav__link { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-soft); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav__link:hover { color: #fff; }
.nav__link[aria-current="page"] { color: #fff; text-decoration: underline; text-decoration-color: var(--focus); text-decoration-thickness: 2px; text-underline-offset: 9px; }
.nav .btn[aria-current="page"] { box-shadow: 0 0 0 2px var(--night), 0 0 0 3px rgba(201, 182, 255, 0.6); }
.nav-toggle {
  display: none; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.04); color: #fff; cursor: pointer;
}
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }
@media (max-width: 960px) {
  .js .nav-toggle { display: inline-flex; }
  .js .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px; background: var(--night); border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.4);
  }
  .js .nav[data-open="true"] { display: flex; }
  .js .nav__link { min-height: 52px; font-size: 17px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .js .nav__link[aria-current="page"] { text-underline-offset: 6px; }
  .js .nav .btn { margin-top: 16px; min-height: 52px; font-size: 16px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 80px 0 104px; }
.hero--compact { padding: 80px 0 88px; }
.hero__grid { display: flex; flex-wrap: wrap; align-items: center; gap: 56px 48px; }
.hero__grid--between { justify-content: space-between; gap: 40px 64px; }
.hero__copy { flex: 1 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.hero__copy--narrow { flex-basis: 500px; gap: 24px; }
.hero__visual { flex: 1 1 420px; min-width: 0; display: flex; justify-content: center; }
.hero__mark { flex: 0 0 auto; width: 240px; max-width: 60%; filter: drop-shadow(0 0 24px rgba(201, 182, 255, 0.4)); }
.hero__title-wide { max-width: 820px; }
@media (max-width: 720px) { .hero, .hero--compact { padding: 56px 0 72px; } }

.announce {
  display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 16px 4px 6px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.05);
  color: #E9E5FF; text-decoration: none; font-size: 14px; font-weight: 500;
}
.announce:hover { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.announce__tag { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 999px; background: linear-gradient(120deg, var(--purple), var(--blue)); color: #fff; font-size: 13px; font-weight: 600; }

/* Orbiting cube */
.orbit { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1 / 1; }
.orbit__ring { position: absolute; inset: 3%; border-radius: 50%; border: 1px solid rgba(201, 182, 255, 0.18); }
.orbit__ring--inner { inset: 17%; border-style: dashed; }
.orbit__mark { position: absolute; left: 22%; top: 22%; width: 56%; filter: drop-shadow(0 0 28px rgba(201, 182, 255, 0.45)); }
.float-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px;
  background: rgba(18, 16, 54, 0.86); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  font-size: 14px; font-weight: 500; color: var(--text); white-space: nowrap;
}
.float-chip svg { color: var(--lav-2); }
.float-chip--a { left: 0; top: 12%; }
.float-chip--b { right: 0; top: 46%; }
.float-chip--c { left: 6%; bottom: 8%; }
@media (max-width: 520px) { .float-chip { font-size: 12px; padding: 8px 10px; gap: 6px; } }
@media (prefers-reduced-motion: no-preference) {
  .orbit__mark { animation: drift 9s ease-in-out infinite; }
  .orbit__ring--inner { animation: spin 90s linear infinite; }
}
@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Tech strip */
.tech-strip { border-top: 1px solid rgba(255, 255, 255, 0.08); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.tech-strip__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; padding-block: 28px; }
.tech-strip__list { display: flex; flex-wrap: wrap; gap: 12px 44px; font-family: var(--font-display); font-size: 20px; font-weight: 500; letter-spacing: -0.01em; color: #E4E0FA; }

/* ---------- Icon tiles ---------- */
.icon-tile { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(169, 111, 219, 0.16); color: var(--lav-2); }
.icon-tile--lg { width: 48px; height: 48px; border-radius: 12px; }
.icon-tile--md { width: 44px; height: 44px; border-radius: 12px; }
.icon-tile--grad { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, var(--purple), var(--blue)); color: #fff; }
.icon-tile--glass { background: rgba(255, 255, 255, 0.14); color: #fff; }

/* ---------- Flow (architecture / sign-in) ---------- */
.flow { display: flex; align-items: stretch; gap: 8px; }
.stage {
  flex: 1 1 0; min-width: 0; position: relative; overflow: hidden;
  background: var(--night-3); border: 1px solid var(--line-dark); border-radius: 16px; padding: 24px 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.stage::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--purple), var(--blue)); }
.stage--featured { background: var(--grad-soft); border-color: rgba(201, 182, 255, 0.36); }
.stage--featured::before { display: none; }
.stage h3 { font-family: var(--font-display); font-weight: 500; font-size: 18px; color: #fff; }
.stage p { font-size: 15px; line-height: 1.55; color: var(--text-muted); }
.stage--featured p { color: var(--lav-4); }
.stage__num { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(120deg, var(--purple), var(--blue)); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.stage--featured .stage__num { background: #fff; color: #4B2C82; }
.flow__chev { flex: 0 0 24px; display: flex; align-items: center; justify-content: center; color: #7C77B0; }
@media (max-width: 1000px) {
  .flow { flex-direction: column; }
  .stage { flex: 0 0 auto; } /* overflow:hidden would otherwise let stacked cards collapse */
  .flow__chev { flex-basis: auto; height: 20px; }
  .flow__chev svg { transform: rotate(90deg); }
}

.ticks { display: flex; flex-wrap: wrap; gap: 20px 40px; margin-top: 40px; }
.tick { flex: 1 1 280px; min-width: 0; display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.55; color: var(--text-soft); }
.tick svg { flex: 0 0 auto; margin-top: 3px; color: var(--lav); }
.tick-list { display: flex; flex-direction: column; gap: 14px; }
.tick-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; color: #E4E0FA; }
.tick-list svg { flex: 0 0 auto; margin-top: 3px; color: var(--lav); }

/* ---------- Steps (light list) ---------- */
.steps li { display: flex; gap: 20px; padding: 24px 0; border-top: 1px solid var(--paper-line); }
.steps li:last-child { border-bottom: 1px solid var(--paper-line); }
.step-num { flex: 0 0 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(120deg, var(--purple), var(--blue)); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.steps h3 { font-family: var(--font-display); font-weight: 500; font-size: 20px; line-height: 1.3; margin-bottom: 6px; }
.steps p { font-size: 16px; color: var(--ink-muted); }

/* Step cards (dark) */
.step-card { position: relative; overflow: hidden; padding: 32px 28px; border-radius: 20px; background: var(--night-3); border: 1px solid var(--line-dark); display: flex; flex-direction: column; gap: 14px; }
.step-card--featured { background: var(--grad-soft); border-color: rgba(201, 182, 255, 0.36); }
.step-card__num { font-family: var(--font-display); font-weight: 300; font-size: 56px; line-height: 1; color: var(--lav); }
.step-card--featured .step-card__num { color: #fff; }
.step-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 20px; line-height: 1.3; color: #fff; }
.step-card p { font-size: 16px; color: var(--text-muted); }
.step-card--featured p { color: var(--lav-4); }

/* ---------- Panels and mock UI ---------- */
.panel { background: var(--night-2); color: var(--text); border-radius: 20px; padding: 28px; box-shadow: 0 30px 60px rgba(21, 18, 60, 0.22); display: flex; flex-direction: column; gap: 18px; }
.panel--glass { background: rgba(21, 19, 60, 0.88); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.panel__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.panel__eyebrow { font-size: 13px; color: var(--text-muted); }
.panel__title { font-family: var(--font-display); font-weight: 500; font-size: 20px; color: #fff; }
.panel__title--sm { font-size: 18px; }
.panel__note { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--text-muted); }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(93, 214, 176, 0.14); color: var(--success); font-size: 13px; font-weight: 600; }
.status--sm { padding: 5px 10px; font-size: 12px; }
.badge { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; background: rgba(169, 111, 219, 0.16); color: var(--lav-2); font-size: 12px; font-weight: 600; }
.run-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 14px; color: #E4E0FA; }
.run-list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.run-list .mono { font-size: 14px; }
.run-list__ok { font-size: 13px; color: var(--success); }
.run-list__total { font-weight: 600; color: #fff; }

.chat { gap: 16px; padding: 24px; }
.chat__head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.chat__icon { width: 32px; height: 32px; border-radius: 8px; }
.chat__who { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.chat__name { font-size: 15px; font-weight: 600; color: #fff; }
.chat__meta { font-size: 13px; color: var(--text-muted); overflow-wrap: anywhere; }
.chat__meta.mono { font-size: 12px; }
.bubble { max-width: 85%; padding: 12px 16px; font-size: 15px; line-height: 1.5; }
.bubble--user { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: linear-gradient(120deg, var(--purple), var(--violet)); color: #fff; }
.bubble--agent { align-self: flex-start; max-width: 90%; padding: 14px 16px; line-height: 1.55; border-radius: 16px 16px 16px 4px; background: var(--night-4); color: var(--text); }
.tool-call {
  align-self: flex-start; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px;
  border: 1px solid rgba(169, 111, 219, 0.32); background: rgba(169, 111, 219, 0.12);
  font-family: var(--font-mono); font-size: 13px; color: var(--lav-2); overflow-wrap: anywhere;
}
.tool-call span { color: var(--text-muted); }

/* ---------- Cards ---------- */
.card { border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.card--light { background: #fff; border: 1px solid var(--card-line); }
.card--light h3 { font-family: var(--font-display); font-weight: 500; font-size: 20px; color: var(--ink); }
.card--light p { font-size: 16px; line-height: 1.6; color: var(--ink-muted); }
.card--roomy { padding: 32px; }
.card--roomy h3 { font-size: 22px; }
.card--dark { background: var(--night-3); border: 1px solid var(--line-dark); padding: 24px; gap: 10px; }
.card--dark h3 { font-family: var(--font-display); font-weight: 500; font-size: 18px; color: #fff; }
.card--dark p { font-size: 15px; line-height: 1.6; color: var(--text-muted); }
.card--dark > svg { color: var(--lav-2); }
.card--storage h3 { font-size: 22px; }

.audience { display: flex; flex-wrap: wrap; gap: 20px; }
.audience-card {
  flex: 1 1 460px; min-width: 0; min-height: 300px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 16px; padding: 40px; border-radius: 24px; text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.audience-card:hover { transform: translateY(-3px); box-shadow: 0 24px 50px rgba(21, 18, 60, 0.25); }
.audience-card--dark { background: var(--night-2); color: var(--text); }
.audience-card--dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.10) 1px, transparent 1.6px); background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(225deg, #000, transparent 60%); mask-image: linear-gradient(225deg, #000, transparent 60%);
}
.audience-card--grad { background: var(--grad); color: #fff; }
.audience-card__mark { position: absolute; right: -30px; bottom: -40px; width: 220px; opacity: 0.2; pointer-events: none; }
.audience-card__title { position: relative; font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; color: #fff; }
.audience-card__text { position: relative; max-width: 28em; font-size: 17px; line-height: 1.6; color: var(--text-muted); }
.audience-card--grad .audience-card__text { color: var(--lav-4); }
.section--light .audience-card__more, .audience-card__more { position: relative; margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; color: var(--lav-3); }
.audience-card--grad .audience-card__more { color: #fff; }
@media (max-width: 520px) { .audience-card { padding: 28px; min-height: 0; } }

/* ---------- Platform ---------- */
.layer-stack { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.layer { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 14px; background: rgba(21, 19, 60, 0.9); border: 1px solid var(--line-dark); }
.layer svg { flex: 0 0 auto; color: var(--lav-2); }
.layer__text { display: flex; flex-direction: column; gap: 2px; }
.layer__title { font-family: var(--font-display); font-weight: 500; font-size: 17px; color: #fff; }
.layer__sub { font-size: 14px; color: var(--text-muted); }
.layer--featured { padding: 20px; background: linear-gradient(120deg, rgba(143, 64, 152, 0.55), rgba(21, 75, 158, 0.55)); border-color: rgba(201, 182, 255, 0.4); box-shadow: 0 16px 40px rgba(143, 64, 152, 0.25); }
.layer--featured svg { color: #fff; }
.layer--featured .layer__sub { color: var(--lav-4); }
.layer--dashed { border-style: dashed; border-color: rgba(201, 182, 255, 0.38); }

.feature-panel { position: relative; overflow: hidden; padding: 36px; border-radius: 24px; background: var(--night-3); border: 1px solid var(--line-dark); display: flex; flex-direction: column; gap: 18px; }
.feature-panel::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--purple), var(--blue)); }
.feature-panel h3 { font-family: var(--font-display); font-weight: 400; font-size: 28px; letter-spacing: -0.02em; color: #fff; }
.feature-panel p { font-size: 17px; line-height: 1.65; color: var(--text-muted); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); font-size: 14px; color: #E4E0FA; }
.side-by-side { display: flex; flex-wrap: wrap; gap: 20px; }
.side-by-side > * { flex: 1 1 460px; min-width: 0; }
.governance { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.governance__intro { flex: 1 1 380px; min-width: 0; }
.governance__grid { flex: 2 1 560px; min-width: 0; }

/* ---------- MCP ---------- */
.server-url { width: 100%; max-width: 540px; display: flex; flex-direction: column; gap: 8px; }
.server-url__label { font-size: 14px; color: var(--text-muted); }
.server-url__value { padding: 14px 18px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.14); font-family: var(--font-mono); font-size: 15px; color: var(--lav-3); overflow-wrap: anywhere; }
.tool-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-chips code { max-width: 100%; padding: 6px 10px; border-radius: 8px; background: var(--chip-light); color: #3B2A6E; font-size: 13px; overflow-wrap: anywhere; }
.card--light .card__sub { font-size: 15px; }
.prompt-card { padding: 24px; border-radius: 18px; background: var(--night-3); border: 1px solid var(--line-dark); display: flex; flex-direction: column; gap: 16px; }
.prompt-card__q { font-family: var(--font-display); font-weight: 400; font-size: 20px; line-height: 1.35; color: #fff; }
.prompt-card code { align-self: flex-start; max-width: 100%; padding: 6px 10px; border-radius: 8px; background: rgba(169, 111, 219, 0.14); color: var(--lav-2); font-size: 13px; overflow-wrap: anywhere; }

/* ---------- Data leaders ---------- */
.model-panel { flex: 0 1 420px; }
.model-panel__intro { font-size: 15px; line-height: 1.55; color: var(--text-soft); }
.model { display: flex; flex-direction: column; align-items: center; }
.model__node { width: 100%; max-width: 240px; min-height: 64px; padding: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border-radius: 12px; font-size: 14px; line-height: 19px; color: #fff; }
.model__node b { font-family: var(--font-display); font-weight: 500; font-size: 16px; }
.model__node--hub { background: #2B2770; border: 1px solid rgba(201, 182, 255, 0.35); }
.model__node--link { background: linear-gradient(135deg, var(--purple), var(--blue)); }
.model__node--child { background: var(--night-3); border: 1px solid rgba(255, 255, 255, 0.16); }
.model__edge { position: relative; width: 2px; height: 56px; background: #7C77B0; }
.model__edge span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: 13px; line-height: 16px; color: var(--text-muted); }
.benefit-row { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.benefit { display: flex; gap: 16px; align-items: flex-start; }
.benefit h2 { font-family: var(--font-display); font-weight: 500; font-size: 19px; color: #fff; margin-bottom: 6px; }
.benefit p { font-size: 15px; color: var(--text-muted); }

/* ---------- Engineers ---------- */
.objects-table-wrap { max-width: 100%; overflow-x: auto; }
.objects-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.4; }
.objects-table th { text-align: left; padding: 10px 16px 10px 0; font-weight: 500; color: var(--text-muted); border-bottom: 1px solid var(--line-dark); }
.objects-table td { padding: 12px 16px 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); color: #E4E0FA; }
.objects-table tr:last-child td { border-bottom: 0; }
.objects-table td:first-child { font-family: var(--font-mono); font-size: 14px; color: var(--lav-2); white-space: nowrap; }
.statement { position: relative; overflow: hidden; padding: clamp(32px, 5vw, 64px); border-radius: 28px; background: #121036; border: 1px solid rgba(201, 182, 255, 0.24); display: flex; flex-wrap: wrap; align-items: center; gap: 32px 56px; }
.statement::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1.6px); background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); mask-image: linear-gradient(90deg, transparent 30%, #000);
}
.statement__mark { position: relative; flex: 0 0 auto; width: 140px; }
.statement__body { position: relative; flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.statement__quote { max-width: 30em; font-family: var(--font-display); font-weight: 300; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.3; letter-spacing: -0.015em; color: #fff; }

/* ---------- Data Vault reference ---------- */
.doc-layout { display: flex; flex-wrap: wrap; gap: 40px 72px; align-items: flex-start; }
.toc { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding-top: 16px; border-top: 3px solid var(--purple); }
@media (min-width: 900px) { .toc { position: sticky; top: calc(var(--header-h) + 24px); } }
.toc__title { margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--ink-muted); }
.section--light .toc a { display: inline-flex; align-items: center; min-height: 40px; font-size: 16px; color: var(--ink); text-decoration: none; }
.section--light .toc a:hover { color: var(--link-light); text-decoration: underline; }
.doc { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 80px; }
.doc section { display: flex; flex-direction: column; gap: 20px; }
.doc h2 { font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1.15; letter-spacing: -0.02em; }
.doc__intro { max-width: 38em; font-size: 18px; line-height: 1.6; color: var(--ink-muted); }
.def-list > div { padding: 20px 0; border-top: 1px solid var(--paper-line); display: flex; flex-direction: column; gap: 6px; }
.def-list > div:last-child { border-bottom: 1px solid var(--paper-line); }
.def-list dt, .def-cards dt { font-family: var(--font-display); font-size: 19px; font-weight: 500; }
.def-list dd { max-width: 40em; font-size: 17px; line-height: 1.6; color: var(--ink-muted); }
.def-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.def-cards > div { padding: 24px; border-radius: 16px; background: #fff; border: 1px solid var(--card-line); display: flex; flex-direction: column; gap: 8px; }
.def-cards dd { font-size: 16px; line-height: 1.6; color: var(--ink-muted); }
.aspects { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.aspect { padding: 24px; border-radius: 16px; color: #fff; display: flex; flex-direction: column; gap: 8px; }
.aspect h3 { font-family: var(--font-display); font-weight: 500; font-size: 18px; }
.aspect p { font-size: 15px; line-height: 1.55; color: #F1EAFF; }
.aspect--1 { background: linear-gradient(160deg, #8F4098, #4C499C); }
.aspect--2 { background: linear-gradient(160deg, #6A449A, #2E4C9E); }
.aspect--3 { background: linear-gradient(160deg, #4C499C, #154B9E); }
.example-card { position: relative; overflow: hidden; background: var(--night-2); color: var(--text); border-radius: 18px; padding: 32px; display: flex; flex-direction: column; gap: 10px; }
.example-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--purple), var(--blue)); }
.example-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 20px; color: #fff; }
.example-card p { max-width: 40em; font-size: 17px; line-height: 1.6; color: var(--text-soft); }
.table-card { max-width: 100%; overflow-x: auto; border-radius: 16px; background: #fff; border: 1px solid var(--card-line); }
.naming-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.naming-table thead tr { background: var(--chip-light); }
.naming-table th { text-align: left; padding: 14px 16px; font-weight: 600; color: #3B2A6E; }
.naming-table td { padding: 14px 16px; border-top: 1px solid var(--card-line); }
.naming-table th:first-child, .naming-table td:first-child { padding-left: 24px; }
.naming-table th:last-child, .naming-table td:last-child { padding-right: 24px; }
.naming-table .mono { font-size: 15px; }
.naming-table .example { color: var(--link-light); }
.naming-table .note { color: var(--ink-muted); }

/* ---------- Contact ---------- */
.contact-layout { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: flex-start; }
.form-card { flex: 1 1 520px; min-width: 0; background: #fff; border: 1px solid var(--card-line); border-radius: 24px; padding: clamp(24px, 3vw, 44px); box-shadow: 0 30px 60px rgba(21, 18, 60, 0.10); display: flex; flex-direction: column; gap: 22px; }
.form-card h2 { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; }
.field-row { display: flex; flex-wrap: wrap; gap: 22px 20px; }
.field-row > .field { flex: 1 1 220px; }
.field { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 15px; font-weight: 600; }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 0 16px; border: 1.5px solid #8E8AA8; border-radius: 12px;
  background: #fff; color: var(--ink); font-family: inherit; font-size: 16px;
}
.field textarea { padding: 14px 16px; line-height: 1.5; resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { border-color: var(--purple); }
.field input::placeholder, .field textarea::placeholder { color: #6E6A8C; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-hint { font-size: 14px; line-height: 1.5; color: var(--ink-muted); }
.form-status { font-size: 15px; font-weight: 500; color: var(--ink); }
.form-status:empty { display: none; }
.contact-cards { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-cards__logo { width: 240px; margin-bottom: 8px; }
.contact-card { padding: 24px; border-radius: 18px; background: #fff; border: 1px solid var(--card-line); display: flex; flex-direction: column; gap: 6px; }
.contact-card h2 { font-family: var(--font-display); font-weight: 500; font-size: 19px; }
.contact-card p { font-size: 15px; line-height: 1.55; color: var(--ink-muted); }
.contact-card a { display: inline-flex; align-items: center; min-height: 40px; font-size: 17px; font-weight: 600; }
.contact-card--dark { background: var(--night-2); border-color: transparent; color: var(--text); }
.contact-card--dark h2 { color: #fff; }
.contact-card--dark p { color: var(--text-soft); line-height: 1.65; }

/* ---------- Legal prose ---------- */
.prose { max-width: 46em; display: flex; flex-direction: column; gap: 18px; font-size: 17px; line-height: 1.7; color: var(--ink-muted); }
.prose h2 { margin-top: 24px; font-family: var(--font-display); font-weight: 500; font-size: 26px; line-height: 1.25; color: var(--ink); }
.prose h3 { margin-top: 8px; font-family: var(--font-display); font-weight: 500; font-size: 19px; color: var(--ink); }
.prose strong { color: var(--ink); }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; }
.prose dt { font-weight: 600; color: var(--ink); }
.prose h4 { margin-top: 4px; font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--ink); }
.prose ul { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 8px; }
.prose ul ul { margin-top: 8px; gap: 4px; }
.prose li::marker { color: var(--purple); }
.prose--doc { flex: 999 1 560px; min-width: 0; max-width: none; gap: 64px; }
.prose--doc > section { display: flex; flex-direction: column; gap: 16px; }
.prose--doc h2 { margin-top: 0; font-weight: 400; font-size: clamp(26px, 2.6vw, 32px); letter-spacing: -0.02em; }
.prose--doc h3 { margin-top: 16px; }
.prose--doc > section > p, .prose--doc > section > ul, .prose--doc > section > dl { max-width: 46em; }
.toc--wide { flex-basis: 260px; }
.policy-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 15px; line-height: 1.55; color: var(--ink-muted); }
.policy-table thead tr { background: var(--chip-light); }
.policy-table th { text-align: left; vertical-align: bottom; padding: 14px 16px; font-weight: 600; color: #3B2A6E; }
.policy-table td { vertical-align: top; padding: 16px; border-top: 1px solid var(--card-line); }
.policy-table td:first-child { width: 34%; color: var(--ink); font-weight: 500; }
.policy-table th:first-child, .policy-table td:first-child { padding-left: 24px; }
.policy-table th:last-child, .policy-table td:last-child { padding-right: 24px; }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; background: var(--grad); padding-block: 96px; }
.cta__mark { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); width: 420px; opacity: 0.16; pointer-events: none; }
.cta__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; }
.cta__copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cta__title { font-size: clamp(32px, 4vw, 54px); line-height: 1.08; letter-spacing: -0.025em; color: #fff; }
.cta__text { font-size: 19px; line-height: 1.55; color: var(--lav-4); }
@media (max-width: 720px) { .cta { padding-block: 72px; } .cta__mark { width: 260px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--night-footer); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.site-footer__inner { padding-block: 72px 36px; display: flex; flex-direction: column; gap: 56px; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px; }
.site-footer__brand { flex: 1 1 280px; max-width: 360px; display: flex; flex-direction: column; gap: 18px; }
.site-footer__badge { width: 220px; }
.site-footer__brand p { font-size: 15px; line-height: 1.6; color: var(--text-muted); }
.site-footer__navs { display: flex; flex-wrap: wrap; gap: 40px 72px; }
.footer-nav { display: flex; flex-direction: column; gap: 2px; }
.footer-nav h2 { margin-bottom: 10px; font-size: 14px; font-weight: 600; color: #fff; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 40px; color: var(--text-muted); text-decoration: none; font-size: 15px; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: 14px; line-height: 1.5; color: var(--text-faint); }

/* ---------- 404 ---------- */
.not-found { min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; }
.not-found__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 64px; }
.not-found__mark { width: 220px; opacity: 0.9; filter: drop-shadow(0 0 24px rgba(201, 182, 255, 0.4)); }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cta, .glow, .dots, .watermark, .nav-toggle { display: none !important; }
  body, .section--dark, .section--deep { background: #fff; color: #000; }
  .h1, .h2, .stage h3, .card--dark h3 { color: #000; }
}
