:root {
  color-scheme: dark;
  --black: #030403;
  --ink: #090b09;
  --paper: #eeede7;
  --white: #f8f8f4;
  --green: #4bea3a;
  --cobalt: #7895ff;
  --red: #ff7c68;
  --silver: #9ba19c;
  --muted: #8b918c;
  --line: rgba(248,248,244,.17);
  --dark-line: rgba(3,4,3,.19);
  --pad: clamp(22px,4.2vw,70px);
  --sans: "Helvetica Neue", "Arial Nova", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--black); color: var(--white); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
::selection { background: var(--green); color: var(--black); }
.skip-link { position: fixed; z-index: 1000; top: -70px; left: 16px; padding: 12px 18px; background: var(--green); color: var(--black); font-weight: 700; }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; z-index: 100; top: 0; height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--pad); border-bottom: 1px solid var(--line); background: rgba(3,4,3,.9); backdrop-filter: blur(18px); }
.wordmark, .footer-wordmark { width: max-content; color: var(--white); font-size: 18px; font-weight: 760; letter-spacing: -.055em; text-decoration: none; }
.wordmark span, .footer-wordmark span { color: var(--green); }
.site-nav { display: flex; gap: 34px; }
.site-nav a { position: relative; color: var(--silver); font-size: 13px; text-decoration: none; }
.site-nav a:hover, .site-nav a.active { color: var(--white); }
.site-nav a.active::after { position: absolute; right: 0; bottom: -26px; left: 0; height: 2px; background: var(--green); content: ""; }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 16px; }
.chain-state { display: flex; align-items: center; gap: 7px; color: var(--silver); font: 10px var(--mono); }
.chain-state i, .eyebrow i, .hero-status i, .deployment-strip > i { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px rgba(66,229,54,.65); }
.connect-button { min-width: 134px; padding: 11px 17px; border: 1px solid rgba(3,4,3,.1); border-radius: 999px; background: var(--green); color: var(--black); font-size: 12px; font-weight: 720; cursor: pointer; }
.connect-button:hover { background: #6bff61; }
.connect-button.connected { background: var(--white); }
.connect-button:disabled { cursor: wait; opacity: .55; }
.menu-button { display: none; width: 40px; height: 40px; grid-template-columns: 5px 5px; place-content: center; gap: 3px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; }
.menu-button i { width: 5px; height: 5px; background: var(--white); }

.grid-lines { background-image: linear-gradient(90deg,transparent calc(33.333% - .5px),rgba(248,248,244,.085) 33.333%,transparent calc(33.333% + .5px)),linear-gradient(90deg,transparent calc(66.666% - .5px),rgba(248,248,244,.085) 66.666%,transparent calc(66.666% + .5px)); }
.hero { min-height: min(840px,calc(100vh - 72px)); display: grid; grid-template-columns: 55% 45%; border-bottom: 1px solid var(--line); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 86px var(--pad) 72px; border-right: 1px solid var(--line); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--silver); font: 11px var(--sans); letter-spacing: -.01em; }
.hero h1 { margin: 38px 0 34px; font-size: clamp(56px,7.05vw,108px); font-weight: 300; letter-spacing: -.058em; line-height: .88; }
.hero h1 em { color: inherit; font-style: normal; }
.hero-lede { max-width: 620px; margin: 0; color: var(--silver); font-size: clamp(16px,1.3vw,20px); line-height: 1.5; letter-spacing: -.02em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 49px; padding: 0 23px; border: 1px solid transparent; border-radius: 999px; font-size: 13px; font-weight: 680; text-decoration: none; }
.button-light { background: var(--white); color: var(--black); }
.button-light:hover { background: var(--green); }
.button-line { border-color: var(--line); }
.button-line:hover { border-color: var(--white); }
.hero-status { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 48px; color: var(--muted); font: 10px var(--mono); }
.hero-status i { background: #777; box-shadow: none; }
.hero-status i.good { background: var(--green); box-shadow: 0 0 14px rgba(66,229,54,.65); }
.hero-status i.bad { background: var(--red); }
.hero-status b { color: #555; font-weight: 400; }
.hero-robot { position: relative; min-width: 0; overflow: hidden; background: var(--black); isolation: isolate; }
.hero-robot::after { position: absolute; z-index: 3; right: 0; left: 0; top: 20%; height: 1px; background: linear-gradient(90deg,transparent,var(--green),transparent); box-shadow: 0 0 22px rgba(75,234,58,.7); opacity: 0; content: ""; animation: power-scan 1.55s .22s cubic-bezier(.2,.75,.25,1) 1; pointer-events: none; }
.hero-robot img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; transform: scale(1.018); animation: robot-arrival 1.1s cubic-bezier(.2,.75,.25,1) both; }
.robot-status { position: absolute; z-index: 4; top: 25px; right: 25px; padding: 12px 14px; border: 1px solid rgba(248,248,244,.32); background: rgba(3,4,3,.7); backdrop-filter: blur(14px); }
.robot-status span, .robot-status strong { display: block; }
.robot-status span { color: var(--green); font: 9px var(--mono); }
.robot-status strong { margin-top: 4px; font-size: 11px; font-weight: 500; }
.robot-index { position: absolute; z-index: 4; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); background: rgba(3,4,3,.82); backdrop-filter: blur(16px); }
.robot-index div { min-height: 92px; display: flex; flex-direction: column; justify-content: center; padding: 15px 18px; border-right: 1px solid var(--line); }
.robot-index div:last-child { border-right: 0; }
.robot-index span { color: var(--green); font-size: 10px; }
.robot-index strong { margin-top: 5px; color: var(--white); font: 500 10px/1.25 var(--mono); }
@keyframes power-scan { 0% { top: 12%; opacity: 0; } 18% { opacity: 1; } 75% { opacity: .55; } 100% { top: 83%; opacity: 0; } }
@keyframes robot-arrival { from { transform: scale(1.06); filter: brightness(.45); } to { transform: scale(1.018); filter: brightness(1); } }

.market-open-banner { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 15px 22px; width: 100%; margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); }
.market-open-label span { color: var(--green); font: 9px var(--mono); }
.market-open-label h2 { margin: 8px 0 6px; font-size: clamp(22px,2vw,29px); font-weight: 400; letter-spacing: -.045em; line-height: 1; }
.market-open-label p { margin: 0; color: var(--silver); font: 11px var(--mono); }
.market-open-timing { padding-left: 22px; border-left: 1px solid var(--line); }
.market-open-timing > div { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.market-open-timing #market-open-days { color: var(--green); font: 16px var(--mono); }
.market-open-timing strong { font: 400 clamp(26px,2.8vw,38px)/1 var(--mono); letter-spacing: -.065em; }
.market-open-timing small { display: block; margin-top: 7px; color: var(--muted); font: 10px var(--mono); }
.market-open-banner.is-open .market-open-label h2 { margin: 0; }

.stat-grid { display: grid; grid-template-columns: 1.35fr repeat(3,1fr); background: var(--paper); color: var(--black); }
.stat { min-height: 176px; display: flex; flex-direction: column; padding: 25px 27px; border-right: 1px solid var(--dark-line); border-bottom: 1px solid var(--dark-line); }
.stat:last-child { border-right: 0; }
.stat span { font: 11px var(--sans); }
.stat strong { margin: auto 0 8px; font-size: clamp(32px,3.8vw,58px); font-weight: 400; letter-spacing: -.052em; line-height: 1; overflow-wrap: anywhere; }
.stat small { color: #666; font-size: 11px; }
.stat-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; }
.stat-profit { display: flex; align-items: baseline; justify-content: flex-end; gap: 8px; text-align: right; }
.stat-profit span { white-space: nowrap; }
.stat-profit b, .stat-profit b.negative { color: var(--black); font: 650 14px var(--mono); }
.stat-green { background: var(--green); }
.stat-green small { color: #22551e; }
.stat:last-child { background: var(--cobalt); }
.stat:last-child small { color: #27345f; }

.section { padding: 0 var(--pad) 100px; }
.section-dark { background: var(--black); color: var(--white); }
.section-paper { background: var(--paper); color: var(--black); }
.section-heading { display: grid; grid-template-columns: minmax(0,2.15fr) minmax(260px,.85fr); column-gap: clamp(44px,7vw,120px); row-gap: 22px; padding: 112px 0 62px; border-bottom: 1px solid var(--line); }
.section-heading-dark { border-color: var(--dark-line); }
.section-heading > p { grid-column: 1; grid-row: 1; margin: 0; color: var(--silver); font-size: 12px; line-height: 1.3; }
.section-heading h2 { grid-column: 1; grid-row: 2; margin: 0; font-size: clamp(48px,6.1vw,90px); font-weight: 300; letter-spacing: -.052em; line-height: .94; }
.section-heading > span { grid-column: 2; grid-row: 2; align-self: end; max-width: 340px; color: var(--silver); font-size: 15px; line-height: 1.55; }
.section-heading-dark > p, .section-heading-dark > span { color: #555; }

.treasury-layout { display: grid; grid-template-columns: .75fr 1.6fr; margin-top: 36px; border: 1px solid var(--line); }
.treasury-total { min-height: 330px; display: flex; flex-direction: column; padding: 30px; border-right: 1px solid var(--line); }
.treasury-total > p { margin: 0; color: var(--silver); font-size: 11px; }
.treasury-total > strong { margin-top: 28px; font: 400 clamp(48px,6vw,84px)/1 var(--mono); letter-spacing: -.075em; }
.allocation-bar { display: flex; gap: 3px; height: 13px; margin: auto 0 0; padding: 2px; border: 1px solid var(--line); background: #0b0d0b; }
.allocation-bar i { min-width: 3px; height: 100%; }
.allocation-legend { display: flex; flex-wrap: wrap; gap: 9px 18px; margin-top: 13px; }
.allocation-legend[hidden] { display: none; }
.allocation-legend-item { display: inline-flex; align-items: center; gap: 7px; color: #747a75; font: 9px var(--mono); }
.allocation-legend-item i, .allocation-key { width: 8px; height: 8px; flex: 0 0 auto; }
.allocation-legend-item b { color: var(--white); font-weight: 500; }
.treasury-meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 20px; color: #777; font: 9px var(--mono); }
.treasury-meta a { color: var(--green); text-underline-offset: 3px; }
.holdings-panel { min-width: 0; padding: 16px 28px 28px; }
.table-head, .holding-row { display: grid; grid-template-columns: minmax(130px,1.1fr) minmax(75px,.8fr) minmax(90px,.9fr) minmax(44px,.4fr); gap: 14px; align-items: center; min-width: 0; }
.table-head { min-height: 38px; color: #777; font: 9px var(--sans); }
.holding-row { min-height: 68px; border-top: 1px solid var(--line); font: 11px var(--mono); }
.holding-row > span:last-child { text-align: right; }
.holding-toggle { width: 100%; padding: 0; border: 0; border-top: 1px solid var(--line); appearance: none; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.holding-stock, .stock-detail { min-width: 0; }
.holding-toggle:hover, .holding-toggle[aria-expanded="true"] { background: rgba(248,248,244,.045); }
.holding-toggle[aria-expanded="true"] .asset-name small { color: var(--green); }
.asset-name { display: flex; align-items: center; gap: 8px; }
.asset-name b { font: 600 13px var(--sans); }
.asset-name small { color: #777; font: 9px var(--sans); }
.empty-state { margin: 0; padding: 50px 0; color: #777; font: 10px/1.5 var(--mono); }
.stock-detail { padding: 27px 24px 30px; border-top: 1px solid var(--line); background: #080a08; }
.stock-detail-head, .stock-buys-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.stock-detail-head span { color: var(--silver); font: 10px var(--mono); }
.stock-detail-head h3 { margin: 7px 0 0; font-size: 24px; font-weight: 400; letter-spacing: -.04em; }
.stock-ranges { display: flex; gap: 3px; }
.stock-ranges button { min-width: 44px; padding: 8px 10px; border: 1px solid var(--line); background: transparent; color: var(--silver); font: 10px var(--mono); cursor: pointer; }
.stock-ranges button[aria-pressed="true"] { border-color: var(--green); color: var(--green); }
.stock-ranges button:disabled { cursor: wait; opacity: .65; }
.stock-price-strip { display: flex; flex-wrap: wrap; gap: 16px 40px; margin-top: 26px; }
.stock-price-strip span { display: flex; flex-direction: column; gap: 5px; }
.stock-price-strip small { color: var(--silver); font: 10px var(--sans); }
.stock-price-strip strong { font: 500 12px var(--mono); }
.stock-chart { margin: 26px 0 0; }
.stock-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-guide { stroke: rgba(248,248,244,.12); stroke-width: 1; }
.chart-close { fill: none; stroke: #aeb7ae; stroke-width: 1.5; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.chart-pool { fill: none; stroke: var(--green); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.chart-point { fill: var(--green); }
.chart-buy { fill: var(--cobalt); stroke: var(--black); stroke-width: 2; vector-effect: non-scaling-stroke; }
.stock-chart-legend { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 15px; color: var(--silver); font: 10px var(--sans); }
.stock-chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.stock-chart-legend i { width: 17px; height: 3px; background: var(--green); }
.stock-chart-legend i.close { height: 0; border-top: 2px dashed #aeb7ae; background: none; }
.stock-chart-legend i.buy { width: 8px; height: 8px; border-radius: 50%; background: var(--cobalt); }
.stock-chart-axis { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; color: #777; font: 9px var(--mono); }
.stock-chart-source { margin: 14px 0 32px; color: #777; font: 10px/1.5 var(--mono); }
.stock-buys-head { padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.stock-buys-head h4 { margin: 0; font-size: 16px; font-weight: 500; }
.stock-buys-head span { color: var(--silver); font: 10px var(--mono); }
.stock-buy-row { display: grid; grid-template-columns: minmax(145px,1.2fr) minmax(110px,1fr) minmax(100px,1fr) auto; gap: 12px; align-items: center; min-height: 55px; padding: 10px 0; border-bottom: 1px solid var(--line); font: 10px var(--mono); }
.stock-buy-row > * { min-width: 0; }
.stock-buy-row time { color: var(--silver); }
.stock-buy-row span small { display: block; margin-top: 4px; color: #777; font: 9px var(--mono); }
.stock-buy-row a { color: var(--green); text-underline-offset: 4px; white-space: nowrap; }
.stock-load-more { margin-top: 17px; padding: 8px 0; border: 0; background: transparent; color: var(--green); font: 11px var(--sans); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.stock-detail-empty { margin: 0; padding: 35px 0; color: var(--silver); font: 11px/1.5 var(--mono); }
.flow-grid { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); border-top: 0; }
.flow-grid article { min-height: 170px; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; border-right: 1px solid var(--line); }
.flow-grid article:last-child { border-right: 0; }
.flow-grid span { color: #888; font-size: 11px; }
.flow-grid strong { font-size: clamp(28px,3.5vw,52px); font-weight: 400; letter-spacing: -.045em; }
.flow-grid small { color: #777; font-size: 10px; }

.exit-ledger { margin-top: 92px; border-top: 1px solid var(--line); }
.exit-intro { display: grid; grid-template-columns: 1fr minmax(240px,360px); gap: 30px; align-items: end; padding: 42px 0 34px; }
.exit-intro p { margin: 0; color: var(--silver); font-size: 12px; line-height: 1.5; }
.exit-intro h3 { margin: 14px 0 0; font-size: clamp(35px,4.2vw,61px); font-weight: 300; letter-spacing: -.05em; line-height: 1; }
.exit-intro > p { font-size: 13px; }
.exit-totals { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border: 1px solid var(--line); }
.exit-totals > div { min-height: 130px; display: flex; flex-direction: column; justify-content: space-between; padding: 22px 24px; }
.exit-totals > div:first-child { border-right: 1px solid var(--line); }
.exit-totals span { color: var(--silver); font-size: 11px; }
.exit-totals strong { font: 400 clamp(28px,3vw,42px)/1 var(--mono); letter-spacing: -.055em; }
.exit-totals strong.positive { color: var(--green); }
.exit-totals strong.negative { color: var(--red); }
.exit-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-top: 0; }
.exit-table { width: 100%; min-width: 740px; border-collapse: collapse; text-align: left; }
.exit-table th { padding: 18px 16px; color: #888; font-size: 10px; font-weight: 400; }
.exit-table td { padding: 22px 16px; border-top: 1px solid var(--line); font: 11px var(--mono); }
.exit-table td:first-child { font-family: var(--sans); }
.exit-table td:first-child strong { display: block; font-size: 14px; font-weight: 600; }
.exit-table td:first-child small { display: block; margin-top: 5px; color: #888; font-size: 10px; }
.exit-table td.positive { color: var(--green); }
.exit-table td.negative { color: var(--red); }
.exit-table a { color: var(--white); text-underline-offset: 4px; }
.exit-table a:hover { color: var(--green); }
.exit-table .exit-empty { padding: 35px 16px; color: var(--silver); font: 12px var(--sans); }
.exit-note { margin: 15px 0 0; color: #777; font: 10px/1.5 var(--mono); }

.deployment-strip { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; margin: 36px 0 20px; padding: 18px 20px; border: 1px solid var(--dark-line); background: var(--white); }
.deployment-strip > i { box-shadow: none; }
.deployment-strip span, .deployment-strip strong { display: block; }
.deployment-strip span { color: #666; font-size: 10px; }
.deployment-strip strong { margin-top: 4px; font-size: 13px; }
.deployment-strip a { font: 10px var(--mono); text-underline-offset: 4px; }
.deployment-strip.pending > i { background: var(--cobalt); }
.deployment-strip.invalid > i { background: var(--red); }
.governance-layout { display: grid; grid-template-columns: .9fr 1.1fr; border: 1px solid var(--dark-line); }
.voting-panel { padding: 32px; background: var(--cobalt); color: #050817; }
.panel-label { display: flex; justify-content: space-between; gap: 16px; font-size: 11px; }
.balance-grid { display: grid; grid-template-columns: repeat(3,1fr); margin: 40px 0; border-top: 1px solid rgba(0,0,0,.25); border-bottom: 1px solid rgba(0,0,0,.25); }
.balance-grid > div { min-height: 130px; display: flex; flex-direction: column; justify-content: space-between; padding: 18px 14px; border-right: 1px solid rgba(0,0,0,.25); }
.balance-grid > div:first-child { padding-left: 0; }
.balance-grid > div:last-child { border-right: 0; }
.balance-grid span { font: 10px var(--mono); }
.balance-grid strong { font-size: clamp(25px,3vw,42px); font-weight: 400; letter-spacing: -.04em; overflow-wrap: anywhere; }
.governance-form { margin-top: 18px; }
.governance-form label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 600; }
.governance-form > div { display: grid; grid-template-columns: 1fr auto; }
.governance-form input { min-width: 0; height: 50px; padding: 0 15px; border: 1px solid var(--black); border-right: 0; background: rgba(255,255,255,.3); color: var(--black); outline: 0; }
.governance-form input::placeholder { color: #42538e; }
.governance-form button { min-width: 156px; border: 1px solid var(--black); background: var(--black); color: var(--white); font-size: 12px; font-weight: 650; cursor: pointer; }
.governance-form button:disabled { cursor: not-allowed; opacity: .5; }
.governance-form small { display: block; margin-top: 8px; color: #263566; font-size: 10px; line-height: 1.45; }
.governance-form-secondary { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(0,0,0,.25); }
.text-button { margin-top: 22px; padding: 0; border: 0; background: none; color: var(--black); font-size: 11px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.governance-links { display: flex; flex-wrap: wrap; gap: 22px; }
.proposal-panel { min-height: 600px; padding: 32px; background: var(--ink); color: var(--white); }
.proposal-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.proposal-heading span { display: block; color: #888; font-size: 11px; }
.proposal-heading strong { display: block; margin-top: 8px; font-size: 38px; font-weight: 350; letter-spacing: -.04em; }
.refresh-button { padding: 8px 12px; border: 1px solid var(--line); background: none; color: #aaa; font: 9px var(--mono); cursor: pointer; }
.proposal-builder { border-bottom: 1px solid var(--line); }
.proposal-builder summary { display: flex; justify-content: space-between; gap: 18px; padding: 20px 0; color: var(--cobalt); font-size: 11px; cursor: pointer; list-style: none; }
.proposal-builder summary::-webkit-details-marker { display: none; }
.proposal-builder summary span { color: #777; }
.proposal-builder form { padding: 0 0 24px; }
.proposal-builder label { display: block; margin: 14px 0 7px; color: #aaa; font-size: 10px; }
.proposal-builder input, .proposal-builder textarea { width: 100%; margin-top: 7px; padding: 12px; border: 1px solid var(--line); border-radius: 0; background: #101010; color: var(--white); font: 11px/1.45 var(--mono); resize: vertical; outline: 0; }
.proposal-builder input:focus, .proposal-builder textarea:focus { border-color: var(--cobalt); }
.proposal-field-grid { display: grid; grid-template-columns: 1fr .45fr; gap: 12px; }
.proposal-builder small { display: block; margin: 13px 0; color: #777; font-size: 10px; line-height: 1.5; }
.proposal-builder button { width: 100%; min-height: 45px; border: 1px solid var(--cobalt); background: var(--cobalt); color: #050817; font-size: 11px; font-weight: 700; cursor: pointer; }
.proposal-builder button:disabled { cursor: not-allowed; opacity: .45; }
.proposal-card { padding: 22px 0; border-bottom: 1px solid var(--line); }
.proposal-meta { display: flex; justify-content: space-between; gap: 14px; color: #888; font: 9px var(--mono); }
.proposal-card h3 { margin: 14px 0 8px; font-size: 20px; font-weight: 400; letter-spacing: -.025em; }
.proposal-card p { margin: 0; color: #888; font-size: 11px; line-height: 1.45; }
.vote-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.vote-actions button { padding: 8px 12px; border: 1px solid var(--line); background: transparent; color: var(--white); font: 9px var(--mono); cursor: pointer; }
.vote-actions button:hover { border-color: var(--cobalt); color: var(--cobalt); }
.mandate-grid { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--dark-line); border-top: 0; }
.mandate-grid article { min-height: 230px; padding: 25px; border-right: 1px solid var(--dark-line); }
.mandate-grid article:last-child { border-right: 0; }
.mandate-grid b { color: #4d68c7; font: 10px var(--mono); }
.mandate-grid span { display: block; margin-top: 90px; font-size: 24px; font-weight: 400; letter-spacing: -.025em; }
.mandate-grid p { margin: 8px 0 0; color: #666; font-size: 12px; line-height: 1.45; }

.agent-layout { display: grid; grid-template-columns: 1.35fr .65fr; margin-top: 36px; border: 1px solid var(--line); }
.current-action { min-height: 400px; display: flex; flex-direction: column; padding: 32px; border-right: 1px solid var(--line); }
.panel-label time { color: #777; }
.current-action h3 { max-width: 800px; margin: auto 0 15px; font-size: clamp(40px,5vw,72px); font-weight: 300; letter-spacing: -.045em; line-height: .98; }
.current-action p { max-width: 720px; margin: 0; color: #888; font-size: 13px; line-height: 1.5; }
.action-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 20px; }
.current-action .action-links a { width: max-content; color: var(--green); font: 10px var(--mono); text-underline-offset: 4px; }
.current-action .decision-log-link { color: var(--white); }
.rules-panel { padding: 32px; }
.rules-panel dl { margin: 60px 0 0; }
.rules-panel dl > div { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.rules-panel dt { color: #888; font-size: 11px; }
.rules-panel dd { margin: 0; font: 11px var(--mono); }
.buyback-banner { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 35px; align-items: end; margin-top: 20px; padding: 40px; border: 1px solid #34436e; background: #101625; }
.buyback-banner p { margin: 0 0 38px; color: #9ba9d9; font-size: 11px; }
.buyback-banner h3 { margin: 0; font-size: clamp(39px,5vw,72px); font-weight: 300; letter-spacing: -.045em; line-height: .96; }
.buyback-banner h3 em { color: var(--cobalt); font-style: normal; }
.buyback-banner > span { color: #9ba9d9; font-size: 13px; line-height: 1.5; }
.buyback-banner > strong { padding: 9px 13px; border: 1px solid #3e4f80; color: #9ba9d9; font: 9px var(--mono); font-weight: 400; white-space: nowrap; }
.buyback-receipts { margin-top: 12px; color: var(--silver); font: 11px var(--mono); }
.buyback-receipts a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

.site-footer { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; padding: 70px var(--pad) 28px; border-top: 1px solid var(--line); }
.footer-wordmark { font-size: clamp(28px,4vw,56px); }
.site-footer > p { max-width: 350px; margin: 0; color: #888; font-size: 14px; line-height: 1.5; }
.site-footer nav { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.site-footer nav a { font-size: 13px; text-underline-offset: 4px; }
.site-footer > div { grid-column: 1/-1; display: flex; justify-content: space-between; gap: 18px; margin-top: 70px; padding-top: 18px; border-top: 1px solid var(--line); color: #777; font: 9px var(--mono); }
.toast { position: fixed; z-index: 999; right: 24px; bottom: 24px; max-width: 390px; padding: 15px 18px; border: 1px solid rgba(255,255,255,.3); background: var(--green); color: var(--black); font-size: 12px; box-shadow: 0 20px 55px rgba(0,0,0,.45); }
.toast.error { background: var(--red); }

@media (max-width: 1040px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header > .wordmark, .site-header > .header-actions { position: relative; z-index: 2; }
  .site-nav { position: fixed; z-index: 1; inset: 72px 0 auto; display: none; flex-direction: column; gap: 0; background: var(--black); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 18px var(--pad); border-top: 1px solid var(--line); font-size: 18px; }
  .site-nav a.active::after { display: none; }
  .menu-button { display: grid; }
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero-copy { min-height: 650px; border-right: 0; }
  .hero-robot { height: 700px; border-top: 1px solid var(--line); }
  .market-open-banner { grid-template-columns: minmax(0,1fr) auto; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .section-heading { grid-template-columns: 1fr; }
  .section-heading > p { grid-column: 1; grid-row: 1; }
  .section-heading h2 { grid-column: 1; grid-row: 2; }
  .section-heading > span { grid-column: 1; grid-row: 3; max-width: 560px; }
  .treasury-layout, .governance-layout, .agent-layout { grid-template-columns: 1fr; }
  .exit-intro { grid-template-columns: 1fr; }
  .treasury-total, .current-action { border-right: 0; border-bottom: 1px solid var(--line); }
  .mandate-grid { grid-template-columns: 1fr 1fr; }
  .mandate-grid article:nth-child(2) { border-right: 0; }
  .mandate-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--dark-line); }
  .buyback-banner { grid-template-columns: 1fr 1fr; }
  .buyback-banner > strong { grid-column: 2; width: max-content; }
}

@media (max-width: 680px) {
  :root { --pad: 20px; }
  .site-header { height: 64px; }
  .site-nav { top: 64px; }
  .chain-state { display: none; }
  .connect-button { min-width: 0; padding: 9px 12px; font-size: 10px; }
  .hero-copy { min-height: 600px; padding-top: 60px; }
  .hero h1 { font-size: clamp(50px,16vw,76px); }
  .hero-lede { font-size: 15px; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .hero-robot { height: 540px; }
  .market-open-banner { grid-template-columns: 1fr; gap: 14px; margin-top: 32px; padding-top: 20px; }
  .market-open-timing { padding: 0; border-left: 0; }
  .robot-status { top: 14px; right: 14px; }
  .stat { min-height: 155px; padding: 18px; }
  .stat-green .stat-foot { align-items: flex-start; flex-direction: column; gap: 5px; }
  .stat-profit { justify-content: flex-start; text-align: left; }
  .section { padding-bottom: 72px; }
  .section-heading { grid-template-columns: 1fr; gap: 28px; padding: 72px 0 40px; }
  .section-heading > span { grid-column: 1; }
  .section-heading h2 { font-size: clamp(50px,15vw,76px); }
  .treasury-total { min-height: 280px; }
  .holdings-panel { overflow-x: auto; padding: 14px 20px 24px; }
  .table-head { display: none; }
  .holding-row { grid-template-columns: 1fr auto; min-width: 0; gap: 12px; }
  .holding-row > span:nth-child(2), .holding-row > span:nth-child(4) { display: none; }
  .holding-row > span:nth-child(3) { text-align: right; }
  .asset-name { flex-wrap: wrap; gap: 5px 8px; }
  .asset-name small { width: 100%; padding-left: 16px; }
  .stock-detail { padding: 23px 16px 27px; }
  .stock-detail-head { align-items: flex-start; flex-direction: column; }
  .stock-buy-row { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 7px 12px; }
  .stock-buy-row a { justify-self: start; }
  .flow-grid { grid-template-columns: 1fr 1fr; }
  .flow-grid article { min-height: 145px; border-bottom: 1px solid var(--line); }
  .flow-grid article:nth-child(2) { border-right: 0; }
  .exit-ledger { margin-top: 64px; }
  .exit-intro { padding: 30px 0 26px; }
  .exit-totals > div { min-height: 116px; padding: 18px; }
  .exit-totals strong { font-size: clamp(23px,6vw,36px); }
  .exit-table { min-width: 0; }
  .exit-table thead { display: none; }
  .exit-table tbody, .exit-table tr { display: block; }
  .exit-table .exit-sale-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; padding: 19px 17px; border-top: 1px solid var(--line); }
  .exit-table .exit-sale-row td { padding: 0; border: 0; }
  .exit-table .exit-sale-row td:first-child, .exit-table .exit-sale-row td:last-child { grid-column: 1 / -1; }
  .exit-table .exit-sale-row td:not(:first-child)::before { display: block; margin-bottom: 7px; color: #888; font: 10px var(--sans); content: attr(data-label); }
  .exit-table .exit-sale-row td:last-child { padding-top: 4px; }
  .exit-table .exit-empty { display: block; padding: 30px 17px; }
  .deployment-strip { grid-template-columns: auto 1fr; }
  .deployment-strip a { grid-column: 2; }
  .voting-panel, .proposal-panel { padding: 24px 20px; }
  .balance-grid { grid-template-columns: 1fr; }
  .balance-grid > div, .balance-grid > div:first-child { min-height: 90px; padding: 15px 0; border-right: 0; border-bottom: 1px solid rgba(0,0,0,.25); }
  .balance-grid > div:last-child { border-bottom: 0; }
  .governance-form > div { grid-template-columns: 1fr; }
  .governance-form input { border-right: 1px solid var(--black); border-bottom: 0; }
  .governance-form button { min-height: 48px; }
  .proposal-field-grid { grid-template-columns: 1fr; gap: 0; }
  .mandate-grid { grid-template-columns: 1fr; }
  .mandate-grid article { min-height: 170px; border-right: 0; border-bottom: 1px solid var(--dark-line); }
  .mandate-grid article:last-child { border-bottom: 0; }
  .mandate-grid span { margin-top: 50px; }
  .current-action { min-height: 340px; padding: 26px 20px; }
  .rules-panel { padding: 26px 20px; }
  .buyback-banner { grid-template-columns: 1fr; padding: 28px 20px; }
  .buyback-banner > strong { grid-column: 1; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer > div { grid-column: 1; flex-direction: column; margin-top: 35px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
