/* ANT AGENTS: warm paper, editorial serif, one clay accent. Light & dark via [data-theme]. */
:root,
:root[data-theme="dark"] {
  --bg: #1f1e1d;
  --bg-raise: #262624;
  --panel: #2a2927;
  --panel2: #31302d;
  --hover: #363532;
  --line: #3a3936;
  --line2: #4b4a45;
  --ink: #faf9f5;
  --ink2: #e3e1d7;
  --mute: #b4b2a8;
  --dim: #8c8a82;
  --faint: #5f5e59;
  --accent: #dd8a68;
  --accent-bg: rgba(221, 138, 104, 0.14);
  --up: #7fbf8e;
  --up-bg: rgba(127, 191, 142, 0.13);
  --down: #e58a76;
  --down-bg: rgba(229, 138, 118, 0.13);
  --warn: #dcb163;
  --warn-bg: rgba(220, 177, 99, 0.13);
  --pri-bg: #faf9f5;
  --pri-ink: #1f1e1d;
  --dot: #faf9f5;
  --dot-a: 0.13;
  --hdr: rgba(31, 30, 29, 0.82);
  --code: #262624;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.18), 0 14px 36px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.2), 0 30px 70px rgba(0, 0, 0, 0.32);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #faf9f5;
  --bg-raise: #f4f2ea;
  --panel: #ffffff;
  --panel2: #f1efe6;
  --hover: #eeebe1;
  --line: #e7e4d9;
  --line2: #d6d2c4;
  --ink: #141413;
  --ink2: #3d3d3a;
  --mute: #5e5d59;
  --dim: #87867f;
  --faint: #b5b2a6;
  --accent: #c4623d;
  --accent-bg: rgba(196, 98, 61, 0.1);
  --up: #3f7a4f;
  --up-bg: rgba(63, 122, 79, 0.1);
  --down: #b5452f;
  --down-bg: rgba(181, 69, 47, 0.09);
  --warn: #946a14;
  --warn-bg: rgba(148, 106, 20, 0.1);
  --pri-bg: #141413;
  --pri-ink: #faf9f5;
  --dot: #141413;
  --dot-a: 0.11;
  --hdr: rgba(250, 249, 245, 0.84);
  --code: #f1efe6;
  --shadow: 0 1px 2px rgba(20, 20, 19, 0.04), 0 10px 30px rgba(20, 20, 19, 0.06);
  --shadow-lg: 0 2px 4px rgba(20, 20, 19, 0.05), 0 30px 70px rgba(20, 20, 19, 0.12);
  color-scheme: light;
}
:root {
  --font: "Geist", "Inter", "Segoe UI Variable Display", "Segoe UI", "SF Pro Display", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", "SF Mono", "Cascadia Mono", ui-monospace, Consolas, monospace;
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --r: 18px;
  --r-sm: 10px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.3, 1.25, 0.4, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
/* overflow-x must be `clip`, not `hidden`, on body: `hidden` turns body into a scroll container,
   and the sticky header then sticks to body (which never scrolls) and slides off with the page. */
body { margin: 0; font: 15px/1.6 var(--font); color: var(--ink); background: var(--bg); overflow-x: clip; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: inherit; text-decoration: none; }
p a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }
p a:hover { text-decoration-color: var(--ink); }
code { font-family: var(--mono); font-size: 0.85em; background: var(--panel2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
.mono { font-family: var(--mono); }
.muted { color: var(--mute); }
.small { font-size: 13px; }
.hidden { display: none !important; }
.num, .tnum { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
svg.i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.up { color: var(--up) !important; }
.down { color: var(--down) !important; }
::selection { background: var(--ink); color: var(--bg); }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }

/* ------------------------------------------------------------ buttons */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line2);
  background: transparent; color: var(--ink); font: 500 14px/1 var(--font); letter-spacing: -0.005em;
  cursor: pointer; white-space: nowrap; transition: background 0.2s, border-color 0.2s, transform 0.15s, opacity 0.2s, color 0.2s;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(90px 50px at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--ink) 10%, transparent), transparent 70%); opacity: 0; transition: opacity 0.25s; }
.btn:hover { border-color: var(--dim); background: var(--hover); }
.btn:hover::before { opacity: 1; }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn.primary, .btn.solid { background: var(--pri-bg); color: var(--pri-ink); border-color: transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn.primary:hover, .btn.solid:hover { background: color-mix(in srgb, var(--pri-bg) 88%, var(--mute)); }
.btn.primary::before, .btn.solid::before { background: radial-gradient(90px 50px at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--pri-ink) 12%, transparent), transparent 70%); }
.btn.danger { color: var(--down); border-color: color-mix(in srgb, var(--down) 40%, transparent); }
.btn.danger:hover { background: var(--down-bg); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.lg { height: 46px; padding: 0 22px; font-size: 15px; }
.btn .i { width: 15px; height: 15px; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--mute); cursor: pointer; transition: color 0.2s, border-color 0.2s; }
.icon-btn:hover { color: var(--ink); border-color: var(--dim); }
.theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }
.menu-btn { display: none; }

/* segmented control (pills, network tabs) */
.seg, .tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-raise); max-width: 100%; overflow-x: auto; position: relative; }
.seg button, .tab { height: 28px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--mute); font: 500 13px var(--font); cursor: pointer; white-space: nowrap; position: relative; z-index: 1; transition: color 0.3s, background 0.2s; }
.seg button:hover, .tab:hover { color: var(--ink); }
.seg button[aria-pressed="true"], .tab.active { background: var(--pri-bg); color: var(--pri-ink); }
/* one pill that slides to the active option (inserted by site.js; without JS the rule above applies) */
.seg-ind { position: absolute; left: 0; top: 3px; height: 28px; border-radius: 999px; background: var(--pri-bg); opacity: 0; pointer-events: none; }
.seg-ind.on { opacity: 1; }
.has-ind button[aria-pressed="true"], .has-ind .tab.active { background: transparent; }

/* chips / badges */
.pill { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--mute); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pill b { color: var(--ink); font-weight: 500; font-family: var(--mono); font-size: 12.5px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--up); flex: none; box-shadow: 0 0 0 3px var(--up-bg); }
.delta { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 6px; font: 500 12px var(--mono); font-variant-numeric: tabular-nums; }
.delta.up { background: var(--up-bg); }
.delta.down { background: var(--down-bg); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; height: 24px; padding: 0 9px; border-radius: 999px; color: var(--mute); border: 1px solid var(--line); white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.good { color: var(--up); background: var(--up-bg); border-color: transparent; }
.chip.bad { color: var(--down); background: var(--down-bg); border-color: transparent; }
.chip.warn { color: var(--warn); background: var(--warn-bg); border-color: transparent; }

/* avatars */
.av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 600 9.5px var(--mono); letter-spacing: 0.02em; flex: none; background: var(--panel2); color: var(--ink); border: 1px solid var(--line2); }
.av.spy { background: #e8eefc; color: #1d3fa8; border-color: transparent; }
.av.qqq { background: #efe9fd; color: #5b2fc2; border-color: transparent; }
.av.slv { background: #eceff3; color: #47505e; border-color: transparent; }
.av.sm { width: 22px; height: 22px; font-size: 7.5px; }

/* ------------------------------------------------------------ header */
.hdr { position: sticky; top: 0; z-index: 50; background: var(--hdr); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid var(--line); }
.hdr .row { height: 64px; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; letter-spacing: -0.02em; white-space: nowrap; }
.logo .mk { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line2); display: grid; place-items: center; }
.logo .mk svg { width: 13px; height: 13px; stroke-width: 2; }
.nav { display: flex; gap: 22px; align-self: stretch; position: relative; }
/* hover highlight that glides between links (inserted and positioned by site.js) */
.nav-hover { position: absolute; left: 0; top: 50%; height: 32px; margin-top: -16px; border-radius: 999px; background: var(--hover); border: 1px solid var(--line); opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.nav-hover.on { opacity: 1; }
.nav a { position: relative; display: inline-flex; align-items: center; color: var(--mute); font-size: 14px; font-weight: 450; transition: color 0.2s; }
/* active-page marker on the header's bottom edge; it morphs to the next page's link on navigation */
.nav .ind { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px 2px 0 0; background: var(--ink); view-transition-name: nav-ind; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { font-weight: 500; }
.hdr .right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.account { color: var(--mute); font-family: var(--mono); font-size: 12.5px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-panel { display: none; }

/* ------------------------------------------------------------ hero */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero .map { position: absolute; inset: -40px -10% 0 -10%; z-index: -1; background: var(--dot); opacity: var(--dot-a);
  -webkit-mask: url("img/world-dots.svg") 62% 42% / min(1600px, 150%) auto no-repeat; mask: url("img/world-dots.svg") 62% 42% / min(1600px, 150%) auto no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 82%, transparent) 30%, transparent 58%), linear-gradient(180deg, transparent 70%, var(--bg) 100%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; min-height: min(640px, calc(100svh - 64px - 52px)); padding: 64px 0 56px; }
.hero h1 { margin: 0 0 24px; font-size: clamp(42px, 5.6vw, 72px); line-height: 0.98; letter-spacing: -0.045em; font-weight: 650; }
.hero h1 .fade { background: linear-gradient(90deg, var(--ink) 0%, var(--dim) 55%, var(--faint) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { margin: 0 0 32px; color: var(--mute); font-size: 16.5px; line-height: 1.65; max-width: 540px; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 30px; font-size: 13.5px; color: var(--dim); }
.facts b { color: var(--ink); font-weight: 600; margin-right: 6px; font-variant-numeric: tabular-nums; }

/* trending-style list card */
.list-card { background: color-mix(in srgb, var(--panel) 88%, transparent); border: 1px solid var(--line); border-radius: 20px; padding: 18px 18px 16px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25); }
.list-card .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--mute); }
.rows { display: flex; flex-direction: column; }
.rowi { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 6px; border-bottom: 1px solid var(--line); border-radius: 10px; transition: background 0.15s; }
.rowi:last-child { border-bottom: 0; }
.rowi:hover { background: var(--hover); }
.rowi b { display: block; font-weight: 600; font-size: 14.5px; letter-spacing: -0.01em; }
.rowi small { display: block; color: var(--dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rowi .px { font: 500 14px var(--mono); font-variant-numeric: tabular-nums; text-align: right; }
.list-card .foot { display: inline-flex; gap: 6px; margin-top: 10px; padding: 0 6px; font-size: 13px; color: var(--mute); }
.list-card .foot:hover { color: var(--ink); }
.skeleton { height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--panel2), var(--hover), var(--panel2)); background-size: 200% 100%; animation: sk 1.4s ease-in-out infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* ticker */
.ticker { border-block: 1px solid var(--line); height: 52px; overflow: hidden; position: relative; background: var(--bg); -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker .track { display: flex; width: max-content; height: 100%; align-items: center; animation: tick 50s linear infinite; }
.ticker:hover .track { animation-play-state: paused; }
.ticker .item { display: inline-flex; align-items: center; gap: 10px; padding: 0 22px; white-space: nowrap; font-size: 14px; }
.ticker .item b { font-weight: 600; letter-spacing: -0.01em; }
.ticker .tag { font: 500 10.5px var(--mono); color: var(--dim); border: 1px solid var(--line2); border-radius: 5px; padding: 1px 5px; }
.ticker .val { font: 500 13px var(--mono); color: var(--ink2); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------ sections */
.page { padding: 56px 0 96px; }
.section { padding-top: 96px; }
.section:first-child { padding-top: 0; }
.eyebrow { display: block; font-size: 13px; color: var(--dim); margin-bottom: 10px; }
.h2 { margin: 0 0 10px; font-size: clamp(26px, 3vw, 36px); line-height: 1.1; letter-spacing: -0.035em; font-weight: 650; }
.sub { margin: 0 0 32px; color: var(--mute); max-width: 60ch; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.sec-head .sub { margin: 0; }
.link-more { display: inline-flex; align-items: center; gap: 6px; color: var(--mute); font-size: 14px; }
.link-more:hover { color: var(--ink); }

.card, .stat, .feature, .guard, .layer, .risk, .qa details, .notice, .status, .num-card, .aside-card, .cta-card, .table-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
}
.card { padding: 22px; margin-bottom: 16px; }
.card h3, .aside-card h3 { margin: 0 0 14px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-head h3 { margin: 0; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { padding: 20px 22px; min-width: 0; }
.stat .label { display: block; font-size: 13px; color: var(--mute); margin-bottom: 10px; }
.stat .value { display: block; font: 500 26px/1.1 var(--mono); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat .note { display: block; font-size: 12.5px; color: var(--dim); margin-top: 8px; }

/* chart card */
.chart-card { padding: 22px; }
.chart-card .head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.chart-card .px { font: 500 34px/1.1 var(--mono); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.chart-card .px small { font-size: 14px; color: var(--mute); margin-left: 8px; letter-spacing: 0; }
.chart-card .plot { height: 220px; }
.chart-card .plot svg { display: block; width: 100%; height: 100%; }
.chart-card .foot { margin-top: 12px; font-size: 13px; color: var(--dim); }

/* numbered cards */
.num-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.num-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.num-card { padding: 22px; }
.num-card .n { display: inline-grid; place-items: center; width: 34px; height: 30px; border: 1px solid var(--line2); border-radius: 8px; font: 500 13px var(--mono); color: var(--ink2); margin-bottom: 16px; }
.num-card h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; }
.num-card p { margin: 0; color: var(--mute); font-size: 14px; }

/* CTA */
.cta-card { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 28px 32px; }
.cta-card h2 { margin: 0 0 4px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.cta-card p { margin: 0; color: var(--mute); font-size: 14px; }

/* FAQ */
.qa { display: grid; gap: 10px; }
.qa details { padding: 16px 20px; }
.qa summary { cursor: pointer; list-style: none; font-weight: 550; display: flex; justify-content: space-between; gap: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; color: var(--dim); font-size: 18px; line-height: 1; }
.qa details[open] summary::after { content: "–"; }
.qa p { margin: 10px 0 0; color: var(--mute); max-width: 66ch; }
.two { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; }

/* ------------------------------------------------------------ page title */
.ptitle { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.ptitle h1 { view-transition-name: page-title; width: fit-content; margin: 0 0 8px; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.05; letter-spacing: -0.04em; font-weight: 650; }
.ptitle p { margin: 0; color: var(--mute); max-width: 62ch; }
.ptitle .meta { display: flex; align-items: center; gap: 10px; }
.crumb { display: block; font-size: 13px; color: var(--dim); margin-bottom: 10px; }

/* layout with aside */
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.aside { display: grid; gap: 16px; position: sticky; top: 84px; }
.aside-card { padding: 18px 20px; }
.aside-card h3 { font-size: 14px; margin-bottom: 12px; }
.kv { display: grid; gap: 0; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.kv div:last-child { border-bottom: 0; }
.kv span { color: var(--mute); }
.kv b { font: 500 13px var(--mono); font-variant-numeric: tabular-nums; text-align: right; }
.ol { margin: 0; padding-left: 18px; color: var(--mute); font-size: 13.5px; display: grid; gap: 6px; }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .q { flex: 1; min-width: 200px; }

/* ------------------------------------------------------------ table */
.table-card { overflow: hidden; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
thead th { font-size: 12.5px; color: var(--dim); font-weight: 500; }
tbody tr { transition: background 0.15s; }
tbody tr:hover { background: var(--hover); }
tbody tr:last-child td { border-bottom: 0; }
td.mono, td .mono { font-family: var(--mono); font-size: 13.5px; }
td a, .src a, #rh-roles a, #base-roles a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }
td a:hover { text-decoration-color: var(--ink); }
th.num, td.num { text-align: right; }
td .btn { height: 28px; font-size: 12.5px; padding: 0 12px; }
.rank { color: var(--dim); width: 40px; }
.asset { display: inline-flex; align-items: center; gap: 12px; }
.asset b { display: block; font-weight: 600; }
.asset small { display: block; font-size: 12px; color: var(--dim); }
.spark { width: 110px; height: 32px; display: block; margin-left: auto; }
.empty { color: var(--dim); text-align: center !important; padding: 36px !important; }
.src { font-size: 13px; color: var(--dim); margin: 0; padding: 14px 18px; border-top: 1px solid var(--line); }

/* ------------------------------------------------------------ docs (security) */
.doc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px; align-items: start; }
.toc { position: sticky; top: 92px; font-size: 13.5px; }
.toc .grp { display: block; font-size: 12px; color: var(--dim); margin: 0 0 10px; }
.toc a { display: flex; align-items: center; gap: 10px; padding: 6px 0 6px 0; color: var(--mute); }
.toc a::before { content: ""; width: 12px; height: 1px; background: var(--line2); transition: width 0.2s, background 0.2s; }
.toc a:hover { color: var(--ink); }
.toc a:hover::before { width: 20px; background: var(--ink); }
.toc .grp + a { margin-top: 0; }
.toc a + .grp { margin-top: 22px; }
.doc h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.03em; font-weight: 650; scroll-margin-top: 90px; }
.doc .lead { margin: 0 0 22px; color: var(--mute); }
.doc section + section { margin-top: 56px; }
.risk-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.risk { padding: 20px 22px; }
.risk h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.risk h3::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--down); }
.risk p { margin: 0; color: var(--mute); font-size: 14px; }

/* ------------------------------------------------------------ dashboard */
.notice { display: flex; gap: 10px; align-items: center; padding: 12px 16px; font-size: 13.5px; color: var(--mute); margin-bottom: 12px; }
.notice strong { color: var(--ink); }
.mainnet-banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; font-size: 13.5px; margin-bottom: 12px; border-radius: var(--r); border: 1px solid color-mix(in srgb, var(--down) 30%, transparent); background: var(--down-bg); color: var(--ink2); }
.mainnet-banner strong { color: var(--down); font-weight: 600; }
.status { padding: 12px 16px; margin-bottom: 12px; font-size: 13.5px; }
.status.error { border-color: color-mix(in srgb, var(--down) 35%, transparent); background: var(--down-bg); color: var(--down); }
.status.ok { border-color: color-mix(in srgb, var(--up) 35%, transparent); background: var(--up-bg); color: var(--up); }

.vault-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.vault-bar h3 { margin: 0; }
.value-card { padding: 26px; }
.value-card .label { font-size: 13.5px; color: var(--mute); }
.value-card .big { font: 500 clamp(40px, 6vw, 64px)/1.05 var(--mono); letter-spacing: -0.04em; margin: 10px 0 14px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.value-card .inline { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.value-card .inline b { display: block; font: 500 16px var(--mono); color: var(--ink); margin-top: 2px; }
.actions { display: grid; gap: 12px; }
.action { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-raise); }
.action.danger { border-color: color-mix(in srgb, var(--down) 30%, transparent); }
.action-title { font-weight: 600; font-size: 14px; }
.action .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

input, select { font: inherit; font-size: 14px; color: var(--ink); background: var(--bg-raise); border: 1px solid var(--line2); border-radius: 10px; height: 40px; padding: 0 14px; width: 100%; min-width: 0; transition: border-color 0.2s; }
input::placeholder { color: var(--dim); }
input:focus, select:focus { outline: none; border-color: var(--mute); }
select { width: auto; max-width: 100%; border-radius: 999px; padding-right: 10px; }
label { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; font-size: 13px; color: var(--mute); }
.ack { flex-direction: row; align-items: flex-start; gap: 8px; color: var(--ink2); margin: 0; }
.ack input { width: auto; height: auto; margin-top: 4px; accent-color: var(--ink); }
.create summary { cursor: pointer; font-weight: 500; margin-top: 14px; color: var(--mute); }
.create summary:hover { color: var(--ink); }

/* ------------------------------------------------------------ footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0 36px; color: var(--dim); font-size: 13px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer a:hover { color: var(--ink); }
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ------------------------------------------------------------ motion */
/* Only opacity/transform/translate are animated (compositor-only), so nothing here causes layout
   while scrolling. Everything is inside no-preference; reduced motion gets instant updates. */
@keyframes rise { from { opacity: 0; transform: translate3d(0, 18px, 0); } }
@keyframes menu-in { from { opacity: 0; transform: translate3d(0, -8px, 0); } }
@keyframes vt-reveal { from { clip-path: circle(0 at var(--vt-x, 50%) var(--vt-y, 0%)); } to { clip-path: circle(var(--vt-r, 150vmax) at var(--vt-x, 50%) var(--vt-y, 0%)); } }
@keyframes vt-out { to { opacity: 0; transform: scale(0.99); } }
@keyframes vt-in { from { opacity: 0; } }
@keyframes vt-pop-in { from { opacity: 0; transform: scale(0.92); } }
@keyframes vt-pop-out { to { opacity: 0; transform: scale(0.94); } }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hero-out { to { opacity: 0.15; translate: 0 -28px; } }
@keyframes map-drift { to { translate: 0 90px; } }
@keyframes card-drift { to { translate: 0 -36px; } }

@media (prefers-reduced-motion: no-preference) {
  /* ---- page load: content rises in, staggered */
  .hero .brandline, .hero h1, .hero .lede, .hero .cta, .hero .facts, .hero-live, .replay, .ptitle p, .ptitle .crumb, .ptitle .meta, .page > :not(.ptitle):not(.rv) { animation: rise 0.9s var(--ease) backwards; }
  .hero .lede, .ptitle p { animation-delay: 0.06s; }
  .hero .cta, .ptitle .meta { animation-delay: 0.12s; }
  .hero .facts { animation-delay: 0.18s; }
  .hero-live { animation-delay: 0.24s; }
  .replay { animation-delay: 0.18s; }
  .page > :not(.ptitle):not(.rv) { animation-delay: 0.14s; }
  .page > :not(.ptitle):not(.rv) ~ :not(.ptitle):not(.rv) { animation-delay: 0.2s; }
  .page > :not(.ptitle):not(.rv) ~ :not(.ptitle):not(.rv) ~ :not(.ptitle):not(.rv) { animation-delay: 0.26s; }
  .hdr.open .menu-panel { animation: menu-in 0.4s var(--ease) backwards; }

  /* ---- scroll reveal: site.js marks blocks below the fold with .rvu and adds .in as they enter;
     --rv-d staggers blocks that enter together */
  .js .rvu { opacity: 0; transform: translate3d(0, 44px, 0); filter: blur(10px); will-change: opacity, transform, filter; }
  .js .rvu.in { opacity: 1; transform: none; filter: blur(0); transition: opacity 0.9s var(--ease) var(--rv-d, 0ms), transform 1.2s var(--ease) var(--rv-d, 0ms), filter 0.9s var(--ease) var(--rv-d, 0ms); }
  /* site.js eases wheel scrolling itself; native smooth-scroll on top of that would fight it */
  html.smooth { scroll-behavior: auto; }

  .nav-hover.glide { transition: opacity 0.25s, transform 0.45s var(--spring), width 0.45s var(--ease); }

  /* ---- sliding pill */
  .seg-ind.glide { transition: transform 0.5s var(--spring), width 0.5s var(--ease), opacity 0.2s; }

  /* ---- FAQ open/close (browsers that can interpolate to height:auto; others toggle instantly) */
  @supports (interpolate-size: allow-keywords) {
    :root { interpolate-size: allow-keywords; }
    .qa details::details-content { block-size: 0; opacity: 0; overflow: clip; transition: block-size 0.45s var(--ease), opacity 0.35s, content-visibility 0.45s allow-discrete; }
    .qa details[open]::details-content { block-size: auto; opacity: 1; }
  }

  /* ---- morph between pages: the browser snapshots the old and new page and animates between
     them. The nav marker and the page title are named, so they glide to their new place; the
     rest cross-fades while the new content rises in (rules above). */
  @view-transition { navigation: auto; }
  ::view-transition-group(*) { animation-duration: 0.5s; animation-timing-function: cubic-bezier(0.3, 0.8, 0.2, 1); }
  /* The header is its own layer so it stays put while the page underneath changes. */
  .hdr { view-transition-name: hdr; }
  /* Page to page: the old page clears out first, then the new one fades in (its content rises via
     the load rules above). Cross-fading two full pages at once reads as a double exposure. */
  html:not(.vt-morph):not(.vt-theme)::view-transition-old(root) { animation: vt-out 0.16s cubic-bezier(0.4, 0, 1, 1) both; }
  html:not(.vt-morph):not(.vt-theme)::view-transition-new(root) { animation: vt-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.14s both; }
  html.vt-morph::view-transition-old(root), html.vt-morph::view-transition-new(root) { animation-duration: 0.3s; }
  /* titles differ in length: keep each snapshot at its own aspect ratio instead of stretching */
  ::view-transition-old(page-title), ::view-transition-new(page-title) { height: 100%; width: auto; }
  /* Shared components: the same name on two pages makes the browser morph one into the other.
     - hero replay card / a clicked market card  ->  the studio's analysis panel
     - overview strategy preview                 ->  the studio's backtest panel
     - header "Launch app"                       ->  dashboard "Connect wallet" */
  .replay, #analysis { view-transition-name: agent-panel; }
  .split:not(.rev) > .panel-card, .studio .right > .panel-card:not(.an) { view-transition-name: bt-panel; }
  .hdr .right > .btn.primary { view-transition-name: hdr-cta; }
  ::view-transition-group(agent-panel), ::view-transition-group(bt-panel) { overflow: clip; border-radius: 16px; animation-duration: 0.65s; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  ::view-transition-old(hdr-cta), ::view-transition-new(hdr-cta) { height: 100%; width: auto; left: 50%; translate: -50% 0; }
  /* a title arriving from a page that had none waits for the old page to clear */
  ::view-transition-new(page-title):only-child { animation-delay: 0.14s; animation-fill-mode: both; }
  /* market cards that only exist before or after a filter change */
  ::view-transition-new(.card):only-child { animation: vt-pop-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) both; }
  ::view-transition-old(.card):only-child { animation: vt-pop-out 0.22s ease-in both; }
  /* in-page morphs: the segmented control is shown live so its pill slides instead of cross-fading */
  html.vt-morph::view-transition-old(seg-markets), html.vt-morph::view-transition-old(seg-net) { display: none; }
  html.vt-morph::view-transition-new(seg-markets), html.vt-morph::view-transition-new(seg-net) { animation: none; }

  /* ---- theme switch: the new theme grows as a circle out of the toggle (--vt-* set by site.js) */
  html.vt-theme body, html.vt-theme body * { view-transition-name: none !important; }
  html.vt-theme::view-transition-old(root) { animation: none; }
  html.vt-theme::view-transition-new(root) { animation: vt-reveal 0.65s cubic-bezier(0.4, 0, 0.2, 1) both; mix-blend-mode: normal; }

  /* ---- scroll-linked (runs on the compositor, tied 1:1 to the scroll position) */
  @supports (animation-timeline: scroll()) {
    .hdr::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; animation: progress linear both; animation-timeline: scroll(root block); }
    .hero .map { animation: map-drift linear both; animation-timeline: scroll(root block); animation-range: 0px 800px; }
    .hero .wrap > div:first-child { animation: hero-out linear both; animation-timeline: scroll(root block); animation-range: 120px 640px; }
    .replay { animation: rise 0.9s var(--ease) 0.18s backwards, card-drift linear both; animation-timeline: auto, scroll(root block); animation-range: normal, 0px 800px; }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker .track { animation: none; }
  .ticker { overflow-x: auto; }
  .skeleton { animation: none; }
  .strat::before, .strat span, .mcard { transition: none; }
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .with-aside { grid-template-columns: 1fr; }
  .aside { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .hdr .pill { display: none; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .hdr.open .menu-panel { display: grid; padding: 0 0 12px; }
  .menu-panel a { padding: 12px 0; border-top: 1px solid var(--line); color: var(--mute); font-weight: 500; }
  .menu-panel a[aria-current="page"] { color: var(--ink); }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; min-height: 0; padding: 40px 0 40px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .num-grid, .num-grid.three, .risk-list, .two, .doc { grid-template-columns: 1fr; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 4px 16px; }
  .toc .grp { width: 100%; }
  .toc a + .grp { margin-top: 10px; }
  .col-hide-sm { display: none; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .account { display: none; }
  .hdr .row { gap: 12px; }
  .stat .value { font-size: 21px; }
  .chart-card .px { font-size: 26px; }
  .spark { width: 80px; }
  .rowi { grid-template-columns: 32px minmax(0, 1fr) auto; }
  .rowi .delta { display: none; }
}
.tc-head { padding: 18px 18px 6px; }

/* ------------------------------------------------------------ agents: shared bits */
.act { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font: 600 11px var(--mono); letter-spacing: 0.04em; background: var(--panel2); color: var(--mute); border: 1px solid var(--line2); }
.act.buy { color: var(--up); background: var(--up-bg); border-color: transparent; }
.act.sell { color: var(--down); background: var(--down-bg); border-color: transparent; }
.tag-ex { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 500; color: var(--warn); background: var(--warn-bg); }
.chart { display: block; width: 100%; height: 100%; }
.chart-empty { display: grid; place-items: center; height: 100%; color: var(--dim); font-size: 13px; }
.readout { font: 12px var(--mono); color: var(--dim); min-height: 18px; }

/* strategy list (left rail with active bar) */
.strats { display: flex; flex-direction: column; border-left: 1px solid var(--line2); position: relative; }
/* one bar that travels to the selected strategy (driven by site.js); replaces the per-item bar */
.rail-ind { position: absolute; left: -1px; top: 0; width: 2px; height: 0; background: var(--ink); opacity: 0; pointer-events: none; will-change: transform, height; }
.rail-ind.on { opacity: 1; }
.has-rail .strat::before { display: none; }
.strat { all: unset; cursor: pointer; display: block; position: relative; padding: 10px 0 10px 17px; color: var(--mute); }
.strat::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--ink); transform: scaleY(0); transition: transform 0.5s var(--ease); }
.strat b { display: block; font-weight: 500; font-size: 15px; color: var(--mute); transition: color 0.2s; }
/* the blurb opens by animating its grid row from 0fr to 1fr (works without knowing its height) */
.strat span { display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden; font-size: 13px; line-height: 1.5; color: var(--mute); max-width: 46ch; transition: grid-template-rows 0.5s var(--ease), opacity 0.3s, visibility 0s 0.5s; }
.strat span i { min-height: 0; overflow: hidden; font-style: normal; }
.strat span i::before { content: ""; display: block; height: 4px; }
.strat:hover b { color: var(--ink); }
.strat[aria-pressed="true"]::before { transform: scaleY(1); }
.strat[aria-pressed="true"] b { color: var(--ink); font-weight: 600; }
.strat[aria-pressed="true"] span { grid-template-rows: 1fr; opacity: 1; visibility: visible; transition: grid-template-rows 0.5s var(--ease), opacity 0.45s 0.08s, visibility 0s; }
.strat:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* replay card (hero) */
.replay { background: color-mix(in srgb, var(--panel) 92%, transparent); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25); }
.replay .hd { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.replay .hd .ic { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line2); display: grid; place-items: center; flex: none; }
.replay .hd b { display: block; font-size: 14px; font-weight: 600; }
.replay .hd small { display: block; color: var(--dim); font-size: 12px; }
.replay .hd .tag-ex { margin-left: auto; }
.replay .plotwrap { position: relative; height: 170px; padding: 12px 12px 0; }
.replay .bubble { position: absolute; left: 20px; top: 16px; z-index: 1; display: inline-flex; align-items: center; gap: 2px; padding: 4px 8px 4px 4px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line2); font-size: 12px; color: var(--ink2); }
.replay .three { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.replay .three div { padding: 10px 16px; border-left: 1px solid var(--line); }
.replay .three div:first-child { border-left: 0; }
.replay .three span { display: block; font-size: 12px; color: var(--dim); }
.replay .three b { display: block; font: 500 15px var(--mono); margin-top: 2px; }
.replay .logs { padding: 6px 16px; min-height: 120px; }
.lg { display: grid; grid-template-columns: 96px auto minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.lg:last-child { border-bottom: 0; }
.lg .why { color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.replay .ft { display: flex; justify-content: space-between; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--mute); }
.replay .ft .live .dot { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-bg); }

/* split section layout */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.split.rev { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.panel-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.panel-card .hd { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-card .hd b { font-weight: 600; }
.panel-card .hd small { color: var(--dim); font-size: 12.5px; margin-left: 8px; }
.panel-card .bd { padding: 16px 18px; }
.panel-card .plot { height: 240px; }
.mini-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 14px; }
.mini-stats div { background: var(--panel); padding: 12px 14px; min-width: 0; }
.mini-stats span { display: block; font-size: 12px; color: var(--dim); }
.mini-stats b { display: block; font: 500 18px var(--mono); margin-top: 4px; }
.mini-stats small { display: block; font-size: 11.5px; color: var(--dim); margin-top: 2px; }

/* vault policy card */
.vp .row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.vp .row span:first-child { color: var(--mute); }
.vp .row span:last-child { text-align: right; }
.vp .meter { margin: 0 18px 14px; }
.meter { height: 6px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: inherit; transition: width 1s cubic-bezier(0.2, 0.7, 0.2, 1); }
.vp .reqs { padding: 12px 18px 16px; display: grid; gap: 8px; }
.vp .reqs > span { font-size: 12px; color: var(--dim); }
.req { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-raise); font-size: 13px; }
.req .ok { color: var(--up); font-size: 12px; text-align: right; }
.req .no { color: var(--down); font-size: 12px; text-align: right; }

/* steps + flow */
.steps-list { display: grid; gap: 4px; border-left: 1px solid var(--line2); }
.steps-list div { padding: 10px 0 10px 16px; margin-left: -1px; border-left: 2px solid transparent; }
.steps-list div:first-child { border-left-color: var(--ink); }
.steps-list .n { display: block; font: 500 12px var(--mono); color: var(--dim); }
.steps-list b { display: block; font-weight: 600; font-size: 15px; margin: 2px 0; }
.steps-list p { margin: 0; color: var(--mute); font-size: 13.5px; }
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 8px; padding: 26px 18px; border-bottom: 1px solid var(--line); text-align: center; }
.flow .node { display: grid; justify-items: center; gap: 6px; font-size: 13px; color: var(--mute); }
.flow .node .ic { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line2); display: grid; place-items: center; color: var(--ink2); }
.flow .node.on .ic { border-color: var(--ink); color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 8%, transparent); }
.flow .node small { color: var(--dim); font-size: 11.5px; }
.flow .wire { height: 1px; min-width: 40px; background: linear-gradient(90deg, var(--line2), var(--ink), var(--line2)); background-size: 200% 100%; animation: wire 2.4s linear infinite; }
@keyframes wire { to { background-position: -200% 0; } }
.flow-out { padding: 16px 18px 18px; }
.flow-out .k { font-size: 12px; color: var(--dim); }
.flow-out .a { display: flex; align-items: center; gap: 6px; font-size: 18px; font-weight: 600; margin: 6px 0; }
.flow-out p { margin: 0 0 10px; color: var(--mute); font-size: 13.5px; }

/* studio (agents page) */
.studio { scroll-margin-top: 84px; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
.studio .left { display: grid; gap: 20px; position: sticky; top: 84px; }
.params { display: grid; gap: 14px; }
.slider { display: grid; gap: 8px; margin: 0; }
.slider .top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--mute); }
.slider .top b { color: var(--ink); font-weight: 500; font-size: 12.5px; }
.slider input[type="range"] { -webkit-appearance: none; appearance: none; height: 4px; padding: 0; border: 0; border-radius: 999px; background: var(--line2); accent-color: var(--ink); }
.slider input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 3px solid var(--panel); box-shadow: 0 0 0 1px var(--line2); cursor: pointer; }
.slider input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); border: 3px solid var(--panel); cursor: pointer; }
.signal { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); }
.signal .why { color: var(--ink2); font-size: 13.5px; }
.signal .when { grid-column: 1 / -1; font-size: 12px; color: var(--dim); }
td.reason { white-space: normal; min-width: 280px; color: var(--ink2); }
.golive { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

@media (max-width: 1080px) {
  .studio { grid-template-columns: 1fr; }
  .studio .left { position: static; }
}
@media (max-width: 900px) {
  .split, .split.rev { grid-template-columns: 1fr; gap: 28px; }
  .mini-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .golive { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .lg { grid-template-columns: 74px auto minmax(0, 1fr); gap: 8px; font-size: 12px; }
  .flow { grid-template-columns: 1fr; }
  .flow .wire { width: 1px; height: 22px; min-width: 0; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) { .flow .wire { animation: none; } }

/* ------------------------------------------------------------ markets grid */
.mtools { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.mtools .q { max-width: 300px; }
.mtools .seg { view-transition-name: seg-markets; }
.ptitle .tabs { view-transition-name: seg-net; }
.mhours { margin: 0 0 18px; font-size: 13px; color: var(--dim); }
.mgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.mcard { display: flex; flex-direction: column; gap: 14px; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; transition: border-color 0.25s, transform 0.45s var(--ease), background 0.25s; min-width: 0; view-transition-name: var(--vtn, none); view-transition-class: card; }
.mcard:hover { border-color: var(--line2); background: color-mix(in srgb, var(--panel) 80%, var(--hover)); transform: translate3d(0, -3px, 0); }
.mcard .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.mcard .id { display: flex; gap: 10px; align-items: center; min-width: 0; }
.mcard .id b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.mcard .id small { display: block; font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcard .id > div { min-width: 0; }
.mstatus { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 500; background: var(--panel2); border: 1px solid var(--line); color: var(--mute); white-space: nowrap; }
.mstatus i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.mstatus.live { color: var(--up); background: var(--up-bg); border-color: transparent; }
.mstatus.stale { color: var(--warn); background: var(--warn-bg); border-color: transparent; }
.mcard .mid { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.mcard .px { font: 500 20px var(--mono); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mcard .chg { font: 500 12.5px var(--mono); color: var(--dim); white-space: nowrap; }
.mcard .foot { display: flex; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--dim); }
.mcard .foot b { color: var(--ink2); font-weight: 500; }
.mgrid .empty { grid-column: 1 / -1; }
.disclaimer { margin-top: 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--ink2); font-size: 13.5px; line-height: 1.6; }
.stats.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1200px) { .stats.six { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1080px) { .mgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .mgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mtools .q { max-width: none; } }
@media (max-width: 520px) { .mgrid { grid-template-columns: 1fr; } .stats.six { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* studio: market picker */
.asset-pick { width: 100%; border-radius: 10px; }

/* ------------------------------------------------------------ market analysis panel */
.studio .right { display: grid; gap: 16px; min-width: 0; }
.an .hd .an-bias { display: inline-flex; align-items: center; gap: 6px; }
.an-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.an-grid div { background: var(--panel); padding: 10px 12px; min-width: 0; }
.an-grid span { display: block; font-size: 11.5px; color: var(--dim); }
.an-grid b { display: block; font: 500 15px var(--mono); margin-top: 3px; white-space: nowrap; }
.an-notes { margin: 14px 0 10px; padding-left: 18px; display: grid; gap: 6px; color: var(--ink2); font-size: 13.5px; }
.an-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.an-row .k { color: var(--dim); font-size: 12.5px; min-width: 150px; }
.an-sigs { display: flex; flex-wrap: wrap; gap: 6px; }
.an-sig { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 9px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; color: var(--mute); }
.act.long { color: var(--up); background: transparent; border-color: color-mix(in srgb, var(--up) 40%, transparent); }
@media (max-width: 900px) { .an-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ============================================================ ANT AGENTS look
   Layered on the component rules above: an editorial serif for headings, softer rounded-rectangle
   controls instead of pills, quiet shadows on paper, and the clay accent for "you are here" marks. */
/* One family per job, all self-hosted so every device renders the same: Source Serif 4 for
   headings, Geist for interface text, Geist Mono for numbers. */
@font-face { font-family: "Source Serif 4"; src: url("vendor/fonts/source-serif-4-latin.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("vendor/fonts/geist-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("vendor/fonts/geist-mono-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }


body { font-size: 15.5px; line-height: 1.65; letter-spacing: -0.006em; }
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); color: var(--ink); }
:focus-visible { outline-color: var(--accent); }
p a, td a, .src a { text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); }
p a:hover, td a:hover { text-decoration-color: var(--accent); }

/* ---- type */
.hero h1, .ptitle h1, .h2, .doc h2, .cta-card h2 { font-family: var(--serif); font-optical-sizing: none; font-variation-settings: "opsz" 30; font-weight: 500; letter-spacing: -0.024em; }
.hero h1 { font-size: clamp(44px, 5.6vw, 76px); line-height: 1.04; letter-spacing: -0.032em; font-weight: 480; margin-bottom: 28px; }
.hero h1 .fade { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--accent); }
.ptitle h1 { font-size: clamp(36px, 4vw, 52px); line-height: 1.04; margin-bottom: 12px; }
.h2 { font-size: clamp(29px, 3.3vw, 42px); line-height: 1.1; margin-bottom: 12px; }
.doc h2 { font-size: 28px; }
.cta-card h2 { font-size: 26px; }
.hero .lede { font-size: 17.5px; line-height: 1.6; color: var(--ink2); }
.sub, .ptitle p { font-size: 16px; }
.eyebrow, .crumb { color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; margin-bottom: 14px; }

/* ---- hero live board: three in-vault assets with a sparkline each */
.hero-live { margin-top: 30px; max-width: 560px; padding: 15px 16px 16px; border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--panel) 72%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: var(--shadow); }
.hero-live .hl-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 13px; font-size: 12.5px; color: var(--mute); }
.hero-live .hl-head a { display: inline-flex; align-items: center; gap: 4px; color: var(--mute); }
.hero-live .hl-head a:hover { color: var(--ink); }
.hero-live .hl-head a .i { width: 13px; height: 13px; }
.hl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hl-card { display: flex; flex-direction: column; gap: 9px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); min-width: 0; transition: border-color 0.2s, transform 0.3s var(--ease); }
.hl-card:hover { border-color: var(--line2); transform: translateY(-2px); }
.hl-top { display: flex; align-items: center; gap: 8px; }
.hl-top b { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.hl-spark { height: 34px; border-radius: 7px; overflow: hidden; }
.hl-spark:empty { background: linear-gradient(90deg, var(--panel2), var(--hover), var(--panel2)); background-size: 200% 100%; animation: sk 1.4s ease-in-out infinite; }
.hl-spark svg { display: block; width: 100%; height: 100%; }
.hl-row { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.hl-price { font: 500 14.5px var(--mono); font-variant-numeric: tabular-nums; }
.hl-chg { font: 500 11.5px var(--mono); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .hl-card { padding: 10px; } .hl-top b { font-size: 12px; } .hl-price { font-size: 13px; } }

/* ---- "Built with Claude" badge in the hero */
.brandline { display: inline-flex; align-items: center; gap: 9px; height: 32px; padding: 0 14px 0 6px; margin-bottom: 22px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel); color: var(--mute); font-size: 13px; font-weight: 500; width: fit-content; box-shadow: var(--shadow); transition: border-color 0.2s, color 0.2s, transform 0.2s; }
.brandline:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-1px); }
.brandline b { color: var(--ink); font-weight: 600; }
.brandline .bl-mk { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--accent); color: #fffdf8; }
.brandline .bl-mk svg { width: 14px; height: 14px; stroke-width: 1.6; }

/* ---- brand */
.logo { font-size: 13.5px; font-weight: 600; letter-spacing: 0.1em; }
.logo .mk { width: auto; height: auto; border-radius: 0; border: 0; background: none; color: var(--ink); font: 800 20px/1 "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: -0.045em; }

/* ---- controls: rounded rectangles */
.btn { border-radius: 12px; height: 42px; font-weight: 500; letter-spacing: -0.01em; }
.btn.sm { border-radius: 10px; height: 34px; }
.btn.lg { border-radius: 14px; height: 50px; padding: 0 24px; }
.btn.primary, .btn.solid { box-shadow: none; }
.icon-btn { border-radius: 10px; }
.seg, .tabs { border-radius: 12px; }
.seg button, .tab, .seg-ind { border-radius: 9px; }
.nav-hover { border-radius: 9px; border-color: transparent; }
input, select, select.asset-pick { border-radius: 12px; }
.pill { border-radius: 10px; }

/* ---- accent marks */
.nav .ind, .rail-ind, .strat::before, .hdr::before, .meter i { background: var(--accent); }
.steps-list div:first-child { border-left-color: var(--accent); }
.num-card .n { color: var(--accent); background: var(--accent-bg); border-color: transparent; }
.flow .node.on .ic { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px var(--accent-bg); }
.slider input[type="range"] { accent-color: var(--accent); }
.slider input[type="range"]::-webkit-slider-thumb { background: var(--accent); }
.slider input[type="range"]::-moz-range-thumb { background: var(--accent); }
.qa summary::after { color: var(--accent); }

/* ---- surfaces: paper cards with a quiet lift */
.card, .stat, .num-card, .risk, .qa details, .aside-card, .table-card, .panel-card, .mcard, .disclaimer { box-shadow: var(--shadow); }
.replay { box-shadow: var(--shadow-lg); border-radius: 22px; background: var(--panel); }
.mcard { border-radius: 18px; }
.mcard:hover { box-shadow: var(--shadow-lg); background: var(--panel); border-color: var(--line2); }
.cta-card { background: var(--panel2); border-color: transparent; padding: 36px 40px; border-radius: 24px; box-shadow: none; }
.ticker { background: var(--bg-raise); }
.hdr { border-bottom-color: color-mix(in srgb, var(--line) 70%, transparent); }
.footer { background: var(--bg-raise); }
