:root {
  --bg: #f4f3ee;
  --bg-2: #ebe9e1;
  --ink: #0f0f0d;
  --muted: #6a6962;
  --line: #d9d7cd;
  --card: #fbfaf7;
  --accent: #5b3cf5;
  --accent-2: #ff6a3d;
  --grad: linear-gradient(120deg, var(--accent), #b44cf0 45%, var(--accent-2));
  --radius: 18px;
  --serif: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
img, svg { display: block; max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 20px; letter-spacing: -0.03em; }
.logo-mark { width: 28px; height: 28px; }
.pill {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; color: var(--muted);
  white-space: nowrap;
}
.links { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: 14px; }
.links a { text-decoration: none; color: var(--muted); transition: color .15s; }
.links a:hover, .links a.active { color: var(--ink); }
.links .btn { color: var(--bg); padding: 8px 16px; font-size: 14px; }
.links .btn:hover { color: var(--bg); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; width: 40px; height: 40px; cursor: pointer; font-size: 18px; color: var(--ink); }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 18px;
  }
  .links.open { display: flex; }
  .links a { padding: 10px 0; font-size: 16px; width: 100%; }
  .links .btn { width: auto; margin-top: 8px; padding: 10px 18px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  background: var(--ink); color: var(--bg); border: 1px solid var(--ink);
  text-decoration: none; font-weight: 500; font-size: 15px; cursor: pointer;
  transition: transform .15s, opacity .15s; font-family: inherit;
}
.btn:hover { transform: translateY(-1px); opacity: .92; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }

/* ---------- glossary term links ---------- */
a.term {
  text-decoration: underline; text-decoration-style: dotted; text-decoration-thickness: 1.5px;
  text-underline-offset: 3px; text-decoration-color: var(--accent);
}
a.term:hover { color: var(--accent); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 110px 0 90px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 620px; height: 620px; right: -160px; top: -120px;
  background: var(--grad); border-radius: 50%; filter: blur(110px); opacity: .32; z-index: -1;
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(-120px, 80px) scale(1.15); } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-size: 13.5px; border: 1px solid var(--line); background: var(--card);
  border-radius: 999px; padding: 6px 14px 6px 10px; margin-bottom: 28px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.hero h1 { font-size: clamp(46px, 8.5vw, 104px); line-height: .98; letter-spacing: -0.045em; font-weight: 600; max-width: 980px; }
.hero h1 em { font-size: 1.06em; }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 640px; margin-top: 28px; }
.lede a.term { color: var(--ink); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ---------- subpage hero ---------- */
.page-hero { position: relative; padding: 90px 0 50px; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; width: 460px; height: 460px; right: -140px; top: -180px;
  background: var(--grad); border-radius: 50%; filter: blur(100px); opacity: .25; z-index: -1;
}
.kicker { font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.page-hero h1 { font-size: clamp(40px, 6.5vw, 76px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 600; max-width: 900px; }
.page-hero p { font-size: 19px; color: var(--muted); max-width: 640px; margin-top: 20px; }

/* ---------- sections ---------- */
section { padding: 60px 0; }
.section-title { font-size: clamp(32px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 600; margin-bottom: 40px; }
h2 { letter-spacing: -0.03em; }

.logos { padding: 20px 0 40px; }
.logos p { font-size: 13px; color: var(--muted); text-align: center; margin-bottom: 20px; }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 44px; font-size: 21px; font-weight: 600; color: #a4a299; letter-spacing: -0.02em; }
.logo-row span:nth-child(2) { letter-spacing: .2em; font-size: 17px; }
.logo-row span:nth-child(3) { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 25px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.stats > div { padding: 30px 26px; border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: none; }
.stats b { display: block; font-size: 44px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; }
.stats span { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(2) { border-right: none; }
  .stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

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

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 10px; transition: border-color .2s, transform .2s;
}
.card:hover { border-color: #bdb9ab; transform: translateY(-2px); }
.card .icon { width: 40px; height: 40px; border-radius: 12px; background: var(--grad); opacity: .9; margin-bottom: 8px; filter: blur(.4px); }
.card h3 { font-size: 20px; letter-spacing: -0.02em; font-weight: 600; }
.card p { color: var(--muted); font-size: 15px; flex: 1; }
.card .more { font-size: 14px; font-weight: 500; text-decoration: none; color: var(--accent); margin-top: 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tags span { font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; color: var(--muted); }

.quote { text-align: center; padding: 90px 0; }
.quote blockquote { font-family: var(--serif); font-size: clamp(30px, 4.6vw, 52px); line-height: 1.15; letter-spacing: -0.01em; max-width: 880px; margin: 0 auto; }
.quote cite { display: block; margin-top: 22px; font-style: normal; color: var(--muted); font-size: 15px; }

.final { text-align: center; padding: 100px 0 120px; }
.final h2 { font-size: clamp(36px, 6vw, 70px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 600; margin-bottom: 32px; }

/* ---------- steps ---------- */
.steps { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.step .n { font-family: var(--serif); font-size: 54px; line-height: 1; color: var(--accent); }
.step h3 { font-size: 26px; letter-spacing: -0.025em; margin-bottom: 8px; font-weight: 600; }
.step p { color: var(--muted); max-width: 680px; font-size: 16.5px; }
.step.mystery { opacity: .55; filter: blur(.6px); }
@media (max-width: 620px) { .step { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { cursor: pointer; font-size: 19px; font-weight: 500; letter-spacing: -0.015em; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { color: var(--muted); margin-top: 12px; max-width: 720px; }

/* ---------- prose ---------- */
.prose { max-width: 700px; font-size: 18.5px; }
.prose p { margin-bottom: 22px; color: #34332e; }
.prose h2 { font-size: 34px; margin: 52px 0 18px; font-weight: 600; }
.prose ol { padding-left: 22px; margin-bottom: 22px; color: #34332e; }
.prose li { margin-bottom: 8px; }
.prose .big { font-family: var(--serif); font-size: clamp(30px, 4vw, 42px); line-height: 1.18; color: var(--ink); margin-bottom: 36px; }
.prose .sig { color: var(--muted); font-style: italic; margin-top: 40px; }

/* ---------- glossary ---------- */
.gloss { max-width: 780px; }
.gloss-item { padding: 26px 22px; border-bottom: 1px solid var(--line); border-radius: 14px; scroll-margin-top: 90px; transition: background .4s; }
.gloss-item:target { background: color-mix(in srgb, var(--accent) 9%, var(--card)); }
.gloss-item dt { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.gloss-item dt small { font-size: 13px; font-weight: 400; color: var(--muted); font-style: italic; }
.gloss-item dd { color: #3b3a35; margin-top: 8px; font-size: 16.5px; }
.gloss-tools { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- table ---------- */
.compare { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 15.5px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.compare th { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.compare td:last-child, .compare th:last-child { color: var(--accent); font-weight: 600; }
.compare tr:last-child td { border-bottom: none; }
.table-scroll { overflow-x: auto; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; font-weight: 500; }

/* ---------- diagram ---------- */
.diagram { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.diagram svg { width: 100%; height: auto; }
.diagram text { font-family: Inter, sans-serif; }
.diagram .box { fill: var(--bg); stroke: var(--ink); stroke-width: 1.5; }
.diagram .box-label { font-size: 15px; font-weight: 600; fill: var(--ink); }
.diagram .box-sub { font-size: 11px; fill: var(--muted); }
.diagram .edge { stroke: var(--ink); stroke-width: 1.4; fill: none; }
.diagram .edge.dash { stroke-dasharray: 5 5; stroke: var(--muted); }
.diagram .edge-label { font-size: 11px; fill: var(--accent); font-style: italic; font-weight: 500; }
.diagram .core { fill: url(#coreGrad); }
.diagram .core-label { font-size: 16px; font-weight: 600; fill: #fff; }
.diagram .spin { transform-origin: 400px 265px; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.notes { counter-reset: n; display: grid; gap: 14px; margin-top: 30px; max-width: 760px; }
.notes p { color: var(--muted); padding-left: 34px; position: relative; }
.notes p::before { counter-increment: n; content: counter(n); position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); font-size: 12px; display: grid; place-items: center; color: var(--ink); }

/* ---------- metrics / investors ---------- */
.metric { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.metric span { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.metric b { display: block; font-size: 36px; letter-spacing: -0.035em; font-weight: 600; margin-top: 6px; line-height: 1.15; }
.metric small { color: var(--muted); font-size: 14px; }
.chart { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.chart svg { width: 100%; height: auto; }
.chart .axis { stroke: var(--line); }
.chart text { font-family: Inter, sans-serif; font-size: 12px; fill: var(--muted); }
.legend { display: flex; gap: 20px; font-size: 14px; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }
.letter { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; font-family: var(--serif); font-size: 22px; line-height: 1.45; }
.letter p + p { margin-top: 14px; }
.backers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.backers div { border: 1px dashed #c5c2b5; border-radius: 14px; padding: 22px 16px; text-align: center; font-weight: 500; color: var(--muted); }
@media (max-width: 760px) { .backers { grid-template-columns: 1fr 1fr; } }

/* ---------- careers ---------- */
.roles { border-top: 1px solid var(--line); }
.role { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 16px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.role h3 { font-size: 18px; letter-spacing: -0.015em; font-weight: 600; }
.role span { color: var(--muted); font-size: 15px; }
.role .btn { padding: 8px 16px; font-size: 14px; }
@media (max-width: 760px) { .role { grid-template-columns: 1fr; gap: 4px; } .role .btn { justify-self: start; margin-top: 8px; } }

/* ---------- demo ---------- */
.demo { min-height: calc(100vh - 64px); display: grid; place-items: center; text-align: center; padding: 60px 20px; }
.demo-inner { max-width: 560px; width: 100%; }
.orb { width: 120px; height: 120px; border-radius: 50%; background: var(--grad); margin: 0 auto 40px; filter: blur(6px); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.12); filter: blur(14px); opacity: .8; } }
.demo h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: -0.035em; font-weight: 600; line-height: 1.1; }
.status { color: var(--muted); margin-top: 14px; min-height: 26px; font-size: 17px; }
.bar { height: 6px; background: var(--bg-2); border-radius: 99px; margin-top: 30px; overflow: hidden; }
.bar > div { height: 100%; width: 0; background: var(--grad); border-radius: 99px; transition: width .6s ease; }
.pct { font-size: 13px; color: var(--muted); margin-top: 10px; font-variant-numeric: tabular-nums; }
.result { display: none; }
.result p { color: var(--muted); margin: 16px auto 0; max-width: 460px; font-size: 17px; }
.result .cta { justify-content: center; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 60px 0 40px; margin-top: 40px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.foot-grid h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; font-weight: 600; }
.foot-grid a { display: block; text-decoration: none; color: #3b3a35; margin-bottom: 8px; }
.foot-grid a:hover { color: var(--ink); }
.foot-grid .blurb { color: var(--muted); max-width: 280px; margin-top: 14px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2fb36d; margin-right: 6px; }
.disclaimer { font-size: 12px; color: #a4a299; margin-top: 16px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- chat widget ---------- */
.chat-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--bg); border: none; border-radius: 999px;
  padding: 12px 18px 12px 12px; font: 500 15px Inter, sans-serif; cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.chat-fab .mini-orb { width: 26px; height: 26px; border-radius: 50%; background: var(--grad); filter: blur(1.5px); animation: pulse 2.4s ease-in-out infinite; }
.chat-panel {
  position: fixed; right: 20px; bottom: 84px; z-index: 31; width: 370px; max-width: calc(100vw - 32px);
  height: 520px; max-height: calc(100vh - 120px);
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,.18); display: none; flex-direction: column; overflow: hidden;
}
.chat-panel.open { display: flex; }
@media (max-width: 480px) { .chat-panel { right: 16px; bottom: 80px; } .chat-fab { right: 16px; bottom: 16px; } }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat-head .mini-orb { width: 30px; height: 30px; border-radius: 50%; background: var(--grad); filter: blur(1.5px); }
.chat-head b { font-size: 15px; display: block; line-height: 1.2; }
.chat-head small { color: var(--muted); font-size: 12px; }
.chat-head button { margin-left: auto; background: none; border: none; font-size: 20px; cursor: pointer; color: var(--muted); }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; }
.msg.bot { background: var(--bg-2); align-self: flex-start; border-bottom-left-radius: 5px; }
.msg.me { background: var(--ink); color: var(--bg); align-self: flex-end; border-bottom-right-radius: 5px; }
.msg a { color: var(--accent); }
.typing span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); margin: 0 2px; animation: bounce 1s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 50% { transform: translateY(-4px); opacity: .5; } }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.chat-chips button { font: 13px Inter, sans-serif; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; cursor: pointer; color: var(--ink); }
.chat-chips button:hover { border-color: var(--accent); color: var(--accent); }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; font: 15px Inter, sans-serif; background: var(--bg); color: var(--ink); outline: none; min-width: 0; }
.chat-form input:focus { border-color: var(--accent); }
.chat-form button { border: none; background: var(--ink); color: var(--bg); border-radius: 999px; width: 40px; flex-shrink: 0; cursor: pointer; font-size: 16px; }

/* ---------- compliance banner ---------- */
.announce { background: var(--ink); color: #f4f3ee; text-align: center; font-size: 13.5px; padding: 9px 16px; line-height: 1.45; }
.announce b { color: #fff; }
.announce a { color: #fff; text-decoration: underline; text-decoration-color: #b44cf0; text-underline-offset: 3px; }
