:root {
  --bg: #050907;
  --surface: #09130f;
  --panel: rgba(10, 22, 17, .82);
  --line: rgba(187, 231, 209, .13);
  --line-hi: rgba(187, 231, 209, .25);
  --text: #f4faf6;
  --muted: #9aaca2;
  --dim: #697a70;
  --mint: #78f0b5;
  --mint-hi: #a3ffd1;
  --danger: #ffb4aa;
  --radius: 18px;
  --mono: "Geist Mono", monospace;
  --sans: "Geist", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; z-index: -2; background: radial-gradient(ellipse 55% 40% at 15% 15%, rgba(52, 173, 112, .1), transparent 70%), linear-gradient(180deg, #050a07, #07100c 58%, #050907); }
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .28; background-image: linear-gradient(rgba(133, 209, 171, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(133, 209, 171, .035) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(#000, transparent 78%); }
a { color: inherit; }
.shell { width: min(1240px, calc(100% - 56px)); margin-inline: auto; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 30; background: linear-gradient(180deg, rgba(4, 9, 6, .92), rgba(4, 9, 6, .68)); border-bottom: 1px solid var(--line); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
.nav { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -.03em; white-space: nowrap; }
.wordmark img { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; border: 1px solid var(--line-hi); box-shadow: 0 0 24px rgba(120, 240, 181, .12); }
.wordmark small { font: 500 9px var(--mono); letter-spacing: .13em; color: var(--dim); padding-left: 10px; border-left: 1px solid var(--line); }
.nav nav { display: flex; gap: 34px; }
.nav nav a { position: relative; padding: 24px 0; font-size: 12px; color: var(--muted); text-decoration: none; transition: color .2s; }
.nav nav a:hover, .nav nav a[aria-current="page"] { color: var(--text); }
.nav nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 17px; height: 1px; background: var(--mint); }
.nav-cta, .button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; font-weight: 700; white-space: nowrap; transition: .22s; }
.nav-cta { padding: 8px 15px; border: 1px solid var(--line-hi); border-radius: 999px; background: rgba(255, 255, 255, .04); font-size: 12px; }
.nav-cta:hover, .button-ghost:hover { border-color: var(--mint); color: var(--mint); }

.hero { position: relative; min-height: 100dvh; display: grid; align-items: end; isolation: isolate; overflow: hidden; }
.hero-backdrop { position: absolute; inset: 0; z-index: -2; }
.hero-backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.78) contrast(1.08); animation: hero-drift 16s ease-in-out infinite alternate; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(3, 8, 5, .96) 0%, rgba(3, 8, 5, .78) 42%, rgba(3, 8, 5, .2) 78%), linear-gradient(0deg, var(--bg) 0%, transparent 34%); }
.hero-inner { min-height: 100dvh; padding-top: 120px; padding-bottom: 76px; display: flex; align-items: flex-end; justify-content: space-between; gap: 7vw; }
.hero-copy { max-width: 730px; }
.eyebrow { display: inline-flex; align-items: center; padding: 7px 11px; border: 1px solid rgba(120, 240, 181, .25); border-radius: 999px; background: rgba(5, 18, 12, .55); color: var(--mint); font: 600 10px var(--mono); letter-spacing: .12em; backdrop-filter: blur(10px); }
.hero h1 { max-width: 850px; margin: 27px 0 26px; font-size: clamp(52px, 6.8vw, 92px); line-height: .94; letter-spacing: -.07em; }
.hero h1 em { color: #b7c7be; font-style: normal; font-weight: 500; }
.hero-lead { max-width: 570px; margin: 0; color: #becdc5; font-size: clamp(16px, 1.5vw, 20px); }
.hero-actions { display: flex; gap: 10px; margin-top: 34px; }
.button { min-height: 50px; padding: 0 22px; border-radius: 999px; font-size: 13px; }
.button:active, .primary:active:not(:disabled) { transform: scale(.98); }
.button-primary { background: var(--mint); color: #052016; box-shadow: 0 12px 44px rgba(63, 211, 139, .2), inset 0 0 0 1px rgba(255, 255, 255, .1); }
.button-primary:hover { background: var(--mint-hi); }
.button-ghost { border: 1px solid var(--line-hi); background: rgba(5, 12, 8, .5); color: #d8e3dd; backdrop-filter: blur(12px); }
.hero-seat { width: min(390px, 34vw); margin: 0 0 10px; border: 1px solid var(--line-hi); border-radius: var(--radius); overflow: hidden; box-shadow: 0 36px 100px rgba(0, 0, 0, .42); transform: rotate(2deg); }
.hero-seat img { display: block; width: 100%; aspect-ratio: 1.5 / 1; object-fit: cover; }

.stats-strip { border-block: 1px solid var(--line); background: rgba(8, 18, 13, .76); }
.stats-grid { min-height: 118px; display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: center; gap: 0; }
.stats-grid > div { min-height: 66px; padding: 10px 32px; border-right: 1px solid var(--line); display: grid; align-content: center; }
.stats-grid > div:first-child { padding-left: 0; }
.stats-grid small { color: var(--dim); font: 500 8px var(--mono); letter-spacing: .12em; }
.stats-grid strong { font-size: 22px; letter-spacing: -.04em; }
.stats-grid strong span { color: var(--muted); font-size: 12px; }
.stats-grid > a, .text-link { color: var(--mint); font-size: 12px; font-weight: 650; text-decoration: none; }
.stats-grid > a { padding-left: 32px; }

.section { padding: 120px 0; border-top: 1px solid var(--line); }
.section h2, .terminal-intro h2 { margin: 0 0 20px; font-size: clamp(38px, 5vw, 64px); line-height: 1.02; letter-spacing: -.06em; }
.section p, .terminal-intro > p { color: var(--muted); }
.home-protocol { display: grid; grid-template-columns: .82fr 1.18fr; gap: 10vw; align-items: start; }
.home-protocol-copy { position: sticky; top: 116px; }
.home-protocol-copy p { max-width: 440px; margin-bottom: 30px; }
.protocol-list { border-top: 1px solid var(--line-hi); }
.protocol-list article { display: grid; grid-template-columns: 180px 1fr; gap: 30px; padding: 27px 0; border-bottom: 1px solid var(--line); }
.protocol-list b { font-size: 16px; }
.protocol-list p { margin: 0; font-size: 12px; }
.home-callout { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.home-callout h2 { font-size: clamp(36px, 4.2vw, 58px); }
.home-callout p { max-width: 620px; margin-bottom: 0; }

.subpage-main { padding-top: 72px; }
.page-intro { padding-top: 92px; padding-bottom: 46px; }
.page-intro h1, .docs-hero h1 { margin: 20px 0 15px; font-size: clamp(48px, 7vw, 86px); line-height: .96; letter-spacing: -.07em; }
.page-intro > p, .docs-hero > p { max-width: 670px; color: var(--muted); font-size: 17px; }
.terminal-section { padding: 48px 0 120px; display: grid; grid-template-columns: .78fr 1.22fr; gap: 9vw; align-items: center; }
.terminal-notes { display: grid; margin-top: 38px; border-top: 1px solid var(--line); }
.terminal-notes span { padding: 14px 0; border-bottom: 1px solid var(--line); color: #809488; font: 500 9px var(--mono); }
.console { position: relative; overflow: hidden; border: 1px solid var(--line-hi); border-radius: var(--radius); background: linear-gradient(150deg, rgba(16, 34, 25, .96), rgba(6, 15, 10, .98)); box-shadow: 0 40px 120px rgba(0, 0, 0, .42), inset 0 1px rgba(255, 255, 255, .05); }
.console::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; opacity: .65; background: linear-gradient(90deg, transparent, var(--mint), transparent); animation: scanline 4s linear infinite; }
.console-head { height: 56px; padding: 0 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: #bed0c6; font: 500 8px var(--mono); letter-spacing: .12em; }
.network { color: #71867a; }
.agent-only { margin: 20px 24px 0; padding: 14px; display: flex; gap: 12px; align-items: center; border: 1px solid rgba(120, 240, 181, .22); border-radius: 12px; background: rgba(27, 79, 56, .18); }
.agent-badge { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: var(--mint); color: #082016; font: 800 10px var(--mono); }
.agent-only > div:last-child { display: grid; }
.agent-only b { font-size: 11px; }
.agent-only span { color: #82998d; font-size: 9px; }
.gate { margin: 14px 24px 0; padding: 13px; display: flex; gap: 12px; border: 1px solid rgba(220, 181, 99, .22); border-radius: 12px; background: rgba(100, 75, 26, .12); }
.gate[hidden], .agent-help[hidden] { display: none; }
.gate > span { color: #e3c079; font: 600 8px var(--mono); }
.gate b { font-size: 11px; }
.gate p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.progress-copy { padding: 30px 26px 14px; display: flex; justify-content: space-between; align-items: flex-end; }
.progress-copy > div { display: grid; }
.progress-copy span { color: var(--muted); font-size: 10px; }
.progress-copy strong { font-size: 30px; letter-spacing: -.05em; }
.progress-copy strong small { color: var(--dim); font-size: 13px; }
.progress-copy > b { color: var(--mint); font: 600 11px var(--mono); }
.progress { position: relative; height: 6px; margin: 0 26px; overflow: hidden; border-radius: 10px; background: #17261f; }
.progress i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #35b875, var(--mint)); transition: width .7s cubic-bezier(.2, .8, .2, 1); }
.progress-meta { margin: 10px 26px 23px; display: flex; justify-content: space-between; color: var(--dim); font-size: 10px; }
.progress-meta b { color: #bac9c1; }
.data-loading { display: inline-block; min-width: 42px; border-radius: 5px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .1), transparent); background-size: 200% 100%; animation: skeleton 1.4s infinite; color: transparent; }
.purchase { padding: 22px 26px 26px; border-top: 1px solid var(--line); }
.wallet-row { margin-bottom: 19px; display: flex; justify-content: space-between; align-items: center; color: #899d92; font-size: 11px; }
.text-button { padding: 7px; border: 0; background: none; color: var(--mint); font: 600 11px var(--sans); cursor: pointer; }
.purchase label { display: block; margin-bottom: 8px; color: #899d92; font-size: 10px; }
.qty-row { display: grid; grid-template-columns: 50px 1fr 50px; overflow: hidden; border: 1px solid var(--line-hi); border-radius: 12px; }
.qty-row button, .qty-row input { height: 50px; border: 0; background: rgba(255, 255, 255, .025); color: var(--text); font-family: var(--sans); font-size: 18px; }
.qty-row button { color: #81968a; cursor: pointer; }
.qty-row button:hover { background: rgba(120, 240, 181, .05); color: var(--mint); }
.qty-row input { width: 100%; border-inline: 1px solid var(--line); outline: 0; text-align: center; font-weight: 700; }
.quote { margin: 17px 0; display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.quote strong { color: var(--text); }
.primary { width: 100%; height: 52px; border: 0; border-radius: 12px; background: var(--mint); color: #052016; font-family: var(--sans); font-weight: 800; cursor: pointer; transition: .18s; }
.primary:hover:not(:disabled) { background: var(--mint-hi); }
.primary:disabled { background: #1b2922; color: #718278; cursor: not-allowed; }
.status { color: #bed0c6; font-size: 11px; }
.status:not(:empty) { margin-top: 13px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .025); }
.status.error { border-color: rgba(255, 130, 115, .3); background: rgba(120, 35, 25, .1); color: var(--danger); }
.status a, .fine a { color: var(--mint); }
.agent-help { margin-top: 13px; padding: 12px; border: 1px solid rgba(224, 176, 92, .3); border-radius: 10px; background: rgba(105, 67, 13, .13); }
.agent-help b { color: #efc478; font-size: 11px; }
.agent-help p { margin: 3px 0 0; color: #b3a184; font-size: 9px; }
.fine { margin: 13px 0 0; color: #718278; font-size: 9px; }

.buy-guide { display: grid; grid-template-columns: .72fr 1.28fr; gap: 8vw; align-items: start; }
.buy-guide > div > p { max-width: 400px; }
.compact-steps { margin: 0; padding: 0; border-top: 1px solid var(--line-hi); list-style: none; }
.compact-steps li { padding: 22px 0; display: grid; grid-template-columns: 170px 1fr; gap: 30px; border-bottom: 1px solid var(--line); }
.compact-steps b { font-size: 14px; }
.compact-steps span { color: var(--muted); font-size: 12px; }
.buy-guide > .text-link { grid-column: 2; }
.activity { display: grid; grid-template-columns: .55fr 1.45fr; gap: 8vw; }
.activity > div > p { max-width: 420px; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(8, 18, 13, .55); }
table { width: 100%; border-collapse: collapse; font-size: 11px; }
th { padding: 13px 15px; border-bottom: 1px solid var(--line-hi); color: var(--dim); text-align: left; font: 500 8px var(--mono); letter-spacing: .08em; }
td { padding: 18px 15px; border-bottom: 1px solid var(--line); color: #bac9c1; }
.empty { padding: 64px 20px; color: #7d9185; text-align: center; }

footer { border-top: 1px solid var(--line); background: #030705; }
.footer-inner { min-height: 168px; display: grid; grid-template-columns: 1fr 1fr 1.4fr; align-items: center; color: var(--dim); font-size: 10px; }
.footer-inner > p { text-align: center; }
.footer-inner > div { display: flex; justify-content: flex-end; gap: 16px; flex-wrap: wrap; }
.footer-inner a { color: #81958a; text-decoration: none; }
.mobile-buy { display: none; }
.reveal { animation: enter .8s cubic-bezier(.2, .8, .2, 1) both; }
.hero-seat.reveal { animation-delay: .14s; }
.reveal-on-scroll { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal-on-scroll.visible { opacity: 1; transform: none; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; border-radius: 5px; }

@keyframes enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes scanline { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes skeleton { to { background-position: -200% 0; } }
@keyframes hero-drift { to { transform: scale(1.035) translate3d(-.5%, .5%, 0); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-on-scroll { opacity: 1; transform: none; }
}

@media (max-width: 960px) {
  .hero-seat { display: none; }
  .hero-copy { max-width: 760px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid > a { grid-column: 1 / -1; padding: 17px 0; border-top: 1px solid var(--line); }
  .home-protocol, .terminal-section, .buy-guide, .activity { grid-template-columns: 1fr; gap: 48px; }
  .home-protocol-copy { position: static; }
  .buy-guide > .text-link { grid-column: 1; }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 30px, 1240px); }
  .nav { height: 66px; }
  .wordmark small, .nav-cta { display: none; }
  .nav nav { gap: 22px; }
  .nav nav a { padding-block: 20px; }
  .nav nav a[aria-current="page"]::after { bottom: 13px; }
  .hero-inner { min-height: 100dvh; padding-top: 100px; padding-bottom: 52px; align-items: flex-end; }
  .hero::after { background: linear-gradient(0deg, var(--bg), rgba(3, 8, 5, .72) 52%, rgba(3, 8, 5, .3)), linear-gradient(90deg, rgba(3, 8, 5, .76), transparent); }
  .hero-backdrop img { object-position: 62% center; }
  .hero h1 { font-size: clamp(48px, 14vw, 64px); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid > div { min-height: 88px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
  .stats-grid > div:first-child { padding-left: 16px; }
  .stats-grid > div:nth-child(3) { grid-column: 1 / -1; }
  .stats-grid strong { font-size: 18px; }
  .section { padding: 82px 0; }
  .protocol-list article, .compact-steps li { grid-template-columns: 1fr; gap: 7px; }
  .home-callout { align-items: flex-start; flex-direction: column; }
  .home-callout .button { width: 100%; }
  .subpage-main { padding-top: 66px; }
  .page-intro { padding-top: 62px; padding-bottom: 24px; }
  .page-intro h1 { font-size: 50px; }
  .terminal-section { padding: 38px 0 82px; }
  .console { border-radius: 15px; }
  .console-head { padding-inline: 16px; }
  .agent-only, .gate { margin-inline: 16px; }
  .progress { margin-inline: 18px; }
  .progress-copy { padding-inline: 18px; }
  .progress-meta { margin-inline: 18px; }
  .purchase { padding-inline: 18px; }
  .table-wrap { margin-inline: -4px; }
  .footer-inner { grid-template-columns: 1fr; padding: 42px 0 96px; gap: 18px; }
  .footer-inner > p { margin: 0; text-align: left; }
  .footer-inner > div { justify-content: flex-start; }
  body[data-page="buy"] .mobile-buy { position: fixed; z-index: 40; left: 14px; right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); height: 62px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border: 1px solid rgba(255, 255, 255, .28); border-radius: 16px; background: rgba(120, 240, 181, .95); color: #052016; text-decoration: none; box-shadow: 0 18px 55px rgba(0, 0, 0, .42); }
  .mobile-buy span { display: grid; line-height: 1.15; }
  .mobile-buy small { opacity: .68; font: 600 8px var(--mono); letter-spacing: .1em; }
  .mobile-buy b { font-size: 14px; }
  .mobile-buy i { font-style: normal; font-size: 20px; }
}

/* 2026 premium refinement */
:root { --bg: #030705; --surface: #07110c; --panel: rgba(7, 17, 12, .92); --line: rgba(206, 235, 220, .11); --line-hi: rgba(206, 235, 220, .23); --muted: #a5b4ac; --dim: #718078; --mint: #74efae; --mint-hi: #a4ffce; --radius: 16px; }
body { font-size: 15px; text-rendering: optimizeLegibility; }
body::before { background: radial-gradient(ellipse 48% 32% at 12% 10%, rgba(56, 174, 112, .09), transparent 72%), linear-gradient(180deg, #030705, #07100c 60%, #030705); }
.ambient { opacity: .2; background-size: 80px 80px; }
.shell { width: min(1280px, calc(100% - 72px)); }
.site-header { background: rgba(3, 8, 5, .76); }
.nav { height: 76px; }
.wordmark img { width: 34px; height: 34px; border-radius: 8px; }
.nav nav a { font-size: 13px; }
.nav-cta { padding: 9px 17px; }

.hero-inner { padding-top: 104px; padding-bottom: 68px; }
.hero::after { background: linear-gradient(90deg, rgba(2, 6, 4, .97) 0%, rgba(2, 6, 4, .76) 43%, rgba(2, 6, 4, .08) 76%), linear-gradient(0deg, var(--bg) 0%, transparent 38%); }
.hero-copy { max-width: 790px; }
.eyebrow { padding: 7px 12px; border-radius: 6px; background: rgba(7, 20, 13, .64); font-size: 9px; letter-spacing: .15em; }
.hero h1 { margin: 24px 0 22px; font-size: clamp(56px, 7vw, 100px); line-height: .92; letter-spacing: -.075em; }
.hero h1 em { color: #aab9b1; }
.hero-lead { max-width: 500px; color: #bdcac3; line-height: 1.55; }
.hero-actions { margin-top: 30px; }
.button { min-height: 52px; padding-inline: 24px; border-radius: 10px; }
.button-primary { box-shadow: 0 18px 56px rgba(45, 190, 116, .16); }
.hero-proof { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 18px; color: #7f9187; font: 500 9px var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.hero-proof span { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof i { width: 5px; height: 5px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px rgba(116, 239, 174, .7); }
.hero-seat { width: min(420px, 35vw); transform: translateY(-18px) rotate(1.5deg); box-shadow: 0 42px 120px rgba(0, 0, 0, .5); }
.stats-grid { min-height: 128px; }
.stats-grid small { margin-bottom: 3px; }
.stats-grid strong { font-size: 25px; font-variant-numeric: tabular-nums; }

.section { padding-block: clamp(92px, 10vw, 144px); }
.section h2, .terminal-intro h2 { font-size: clamp(42px, 5.2vw, 68px); }
.home-protocol { grid-template-columns: .75fr 1.25fr; }
.protocol-list article { grid-template-columns: 38px 160px 1fr; align-items: baseline; padding: 30px 0; }
.protocol-list article > span { color: var(--mint); font: 500 9px var(--mono); }
.protocol-list p { font-size: 13px; line-height: 1.65; }
.home-callout { padding-inline: clamp(0px, 4vw, 56px); }

.subpage-main { padding-top: 76px; }
.page-intro { padding-top: 108px; padding-bottom: 38px; }
.page-intro h1, .docs-hero h1 { margin-top: 22px; }
.terminal-section { grid-template-columns: .72fr 1.28fr; gap: 8vw; padding-top: 56px; }
.terminal-intro { align-self: start; padding-top: 62px; }
.console { max-width: 720px; justify-self: end; width: 100%; background: linear-gradient(155deg, rgba(14, 30, 22, .98), rgba(4, 11, 7, .99)); box-shadow: 0 46px 130px rgba(0, 0, 0, .5), inset 0 1px rgba(255, 255, 255, .05); }
.console-head { height: 58px; }
.terminal-flow { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); color: #607169; font: 500 8px var(--mono); letter-spacing: .04em; }
.terminal-flow span { position: relative; padding: 13px 10px; text-align: center; }
.terminal-flow span + span { border-left: 1px solid var(--line); }
.terminal-flow .active { color: var(--mint); background: rgba(116, 239, 174, .04); }
.terminal-flow .active::after { content: ""; position: absolute; inset: auto 0 -1px; height: 1px; background: var(--mint); }
.agent-only { margin-top: 22px; }
.progress-copy { padding-top: 26px; }
.purchase { padding-top: 24px; }
.wallet-row { padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.qty-row { border-radius: 10px; }
.qty-row button, .qty-row input { height: 54px; }
.quote { margin: 19px 0 0; }
.receive { margin: 8px 0 20px; display: flex; justify-content: space-between; color: var(--dim); font-size: 11px; }
.receive strong { color: var(--mint); font: 600 12px var(--mono); }
.primary { height: 56px; border-radius: 10px; font-size: 13px; }
.primary:disabled { opacity: .82; }
.fine { line-height: 1.8; }
.compact-steps li { padding-block: 25px; }
.table-wrap { box-shadow: inset 0 1px rgba(255,255,255,.025); }

@media (max-width: 960px) {
  .shell { width: min(100% - 44px, 1280px); }
  .hero h1 { max-width: 720px; }
  .terminal-intro { padding-top: 0; }
  .console { justify-self: stretch; max-width: none; }
  .protocol-list article { grid-template-columns: 34px 150px 1fr; }
}

@media (max-width: 680px) {
  html { scroll-padding-top: 76px; }
  .shell { width: min(100% - 32px, 1280px); }
  .nav { height: 64px; }
  .nav nav { gap: 18px; }
  .nav nav a { font-size: 11px; }
  .hero-inner { min-height: 100svh; padding-top: 92px; padding-bottom: 42px; }
  .hero h1 { margin-block: 20px; font-size: clamp(46px, 14.5vw, 62px); line-height: .94; }
  .hero-lead { max-width: 35ch; font-size: 15px; }
  .hero-actions { margin-top: 26px; }
  .hero-proof { margin-top: 25px; gap: 10px 14px; font-size: 7px; }
  .stats-grid { min-height: 0; }
  .stats-grid > div { min-height: 82px; }
  .stats-grid strong { font-size: 18px; }
  .section { padding-block: 78px; }
  .section h2, .terminal-intro h2 { font-size: clamp(38px, 12vw, 52px); }
  .protocol-list article { grid-template-columns: 30px 1fr; gap: 6px 12px; }
  .protocol-list article p { grid-column: 2; }
  .page-intro { padding-top: 64px; padding-bottom: 18px; }
  .page-intro h1 { font-size: 48px; }
  .terminal-section { padding-top: 32px; gap: 42px; }
  .terminal-flow span { padding-inline: 4px; font-size: 7px; }
  .console-head { height: 52px; }
  .agent-only { align-items: flex-start; }
  .progress-copy strong { font-size: 27px; }
  .purchase { padding-bottom: 22px; }
  .home-callout { gap: 28px; }
  .footer-inner { min-height: 0; }
}

/* Live audit polish: legibility, first-viewport balance, and resilient loading states */
:root {
  --line: rgba(206, 235, 220, .14);
  --line-hi: rgba(206, 235, 220, .3);
  --muted: #b8c6be;
  --dim: #91a198;
}
.wordmark img { display: block; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 9px; object-fit: cover; }
.wordmark small { color: #9caca3; font-size: 10px; }
.nav nav a { color: #c3d0c9; font-size: 14px; }
.nav-cta { border-color: rgba(206, 235, 220, .32); background: rgba(255, 255, 255, .06); color: #e4ede8; font-size: 13px; }
.eyebrow { padding: 8px 12px; color: #8ff5bf; font-size: 11px; letter-spacing: .11em; }
.button-ghost { border-color: rgba(206, 235, 220, .34); background: rgba(5, 12, 8, .7); color: #eef5f1; }
.hero-backdrop img { filter: saturate(.92) contrast(1.06) brightness(1.08); }
.hero::after { background: linear-gradient(90deg, rgba(2, 6, 4, .91) 0%, rgba(2, 6, 4, .62) 43%, rgba(2, 6, 4, .03) 76%), linear-gradient(0deg, var(--bg) 0%, transparent 32%); }
.hero-inner { padding-top: 88px; padding-bottom: 52px; }
.hero h1 { margin: 20px 0 18px; font-size: clamp(56px, 6.7vw, 94px); line-height: .94; }
.hero h1 em { color: #d3ddd7; }
.hero-actions { margin-top: 26px; }
.hero-proof { margin-top: 26px; color: #a9b8b0; font-size: 10px; }
.hero-seat { width: min(440px, 36vw); transform: translateY(-6px) rotate(1.25deg); }
.stats-grid small { color: #95a69d; font-size: 10px; }
.stats-grid > a, .text-link { font-size: 13px; }
.data-loading { display: inline-block; min-width: 64px; border-radius: 5px; background: linear-gradient(90deg, rgba(255,255,255,.035), rgba(255,255,255,.14), rgba(255,255,255,.035)); background-size: 200% 100%; animation: skeleton 1.4s infinite; color: transparent !important; }
.page-intro { padding-top: 64px; padding-bottom: 22px; }
.page-intro > p { color: #bdcbc3; font-size: 18px; }
.terminal-section { grid-template-columns: .82fr 1.18fr; gap: 5vw; padding-top: 18px; }
.terminal-intro { align-self: start; padding-top: 28px; }
.terminal-intro h2 { max-width: 8ch; }
.terminal-intro h2 span { white-space: nowrap; }
.terminal-intro > p { max-width: 42ch; color: #b8c6be; font-size: 15px; line-height: 1.75; }
.terminal-notes { margin-top: 26px; }
.terminal-notes span { color: #9eafa6; font-size: 11px; }
.console-head, .terminal-flow { font-size: 9px; }
.agent-only b, .gate b { font-size: 12px; }
.agent-only span, .gate p { color: #a0b2a8; font-size: 10px; }
.progress-copy span, .progress-meta, .purchase label, .fine { font-size: 11px; }
.wallet-row, .status { font-size: 12px; }

@media (max-width: 960px) {
  .terminal-section { grid-template-columns: 1fr; gap: 34px; }
  .terminal-intro { padding-top: 0; }
  .terminal-intro h2 { max-width: none; }
}

@media (max-width: 680px) {
  .wordmark img { width: 36px; height: 36px; flex-basis: 36px; }
  .nav nav a { font-size: 12px; }
  .hero-inner { padding-top: 82px; padding-bottom: 38px; }
  .hero::after { background: linear-gradient(0deg, var(--bg), rgba(3, 8, 5, .65) 52%, rgba(3, 8, 5, .18)), linear-gradient(90deg, rgba(3, 8, 5, .65), transparent); }
  .hero-proof { font-size: 9px; }
  .page-intro { padding-top: 44px; padding-bottom: 12px; }
  .terminal-section { padding-top: 16px; gap: 28px; }
}

.agent-rail{display:grid;grid-template-columns:1.05fr .95fr;gap:28px;align-items:stretch;margin:48px auto}
.agent-rail-copy h2{font-size:clamp(28px,4vw,44px);line-height:1.1;margin:10px 0 14px}
.agent-rail-actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 8px}
.agent-rail .prompt-box{min-height:100%;background:rgba(8,14,12,.82);border:1px solid rgba(120,255,200,.18);border-radius:22px;padding:18px}
.agent-rail .prompt-box pre{max-height:280px;overflow:auto;white-space:pre-wrap;font-size:13px;line-height:1.55;color:#d7efe4}
@media (max-width:900px){.agent-rail{grid-template-columns:1fr}}
