:root {
  color-scheme: dark;
  --bg: #071019;
  --bg-deep: #04090e;
  --panel: #0b1721;
  --panel-soft: #0e1d28;
  --line: rgba(159, 187, 202, .15);
  --line-strong: rgba(159, 187, 202, .26);
  --text: #eef6f6;
  --muted: #91a6b0;
  --dim: #647985;
  --accent: #25d9b0;
  --accent-strong: #5ce8c7;
  --red: #ff6379;
  --amber: #f2b84b;
  --shell: 1180px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 8px 14px; background: var(--accent); color: #04110d; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid transparent; background: rgba(7, 16, 25, .78); backdrop-filter: blur(14px); transition: border-color .2s ease, background .2s ease; }
.site-header.scrolled { border-color: var(--line); background: rgba(4, 9, 14, .92); }
.header-inner { display: flex; min-height: 72px; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 750; letter-spacing: .14em; }
.brand-mark { display: inline-flex; width: 26px; height: 26px; align-items: flex-end; justify-content: center; gap: 3px; padding: 5px; border: 1px solid rgba(37, 217, 176, .42); background: rgba(37, 217, 176, .08); }
.brand-mark i { display: block; width: 3px; background: var(--accent); }
.brand-mark i:nth-child(1) { height: 7px; }
.brand-mark i:nth-child(2) { height: 15px; }
.brand-mark i:nth-child(3) { height: 11px; }
.site-nav { display: flex; align-items: center; gap: 34px; color: #afc0c8; font-size: 14px; }
.site-nav a { transition: color .2s ease; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--text); }
.nav-cta { padding: 9px 15px; border: 1px solid rgba(37, 217, 176, .36); color: var(--accent-strong) !important; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: transparent; color: var(--text); }
.nav-toggle > span:not(.sr-only) { display: block; width: 18px; height: 1px; margin: 4px auto; background: currentColor; }

.hero { position: relative; display: grid; min-height: 720px; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 62px; padding-block: 90px 110px; }
.hero > * { min-width: 0; }
.hero::before { position: absolute; z-index: -1; top: -220px; left: -310px; width: 720px; height: 720px; border-radius: 50%; background: radial-gradient(circle, rgba(37, 217, 176, .08), rgba(7, 16, 25, 0) 69%); content: ""; pointer-events: none; }
.eyebrow { margin: 0 0 18px; color: var(--accent); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 12px; font-weight: 700; letter-spacing: .16em; }
.eyebrow > span { display: inline-block; width: 18px; height: 1px; margin: 0 9px 4px 0; background: var(--accent); }
.hero h1 { max-width: 650px; margin: 0; font-size: clamp(48px, 5.6vw, 78px); font-weight: 650; letter-spacing: -.055em; line-height: 1.08; }
.hero h1 em { color: var(--accent-strong); font-style: normal; }
.hero-lead { max-width: 600px; margin: 30px 0 0; color: #a8bbc4; font-size: 18px; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 24px; padding: 10px 20px; border: 1px solid var(--line-strong); font-size: 14px; font-weight: 650; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, .site-nav a:focus-visible, .brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.button-primary { border-color: var(--accent); background: var(--accent); color: #03120e; }
.button-primary:hover { border-color: var(--accent-strong); background: var(--accent-strong); }
.button-quiet { color: #becdd3; }
.button-quiet:hover { border-color: #718995; }
.signal-strip { display: grid; margin: 64px 0 0; grid-template-columns: repeat(3, 1fr); }
.signal-strip div { padding-left: 15px; border-left: 1px solid var(--line-strong); }
.signal-strip dt { color: var(--dim); font-family: ui-monospace, Consolas, monospace; font-size: 11px; letter-spacing: .09em; }
.signal-strip dd { margin: 3px 0 0; color: #c3d1d6; font-size: 13px; }

.market-visual { position: relative; overflow: hidden; width: 100%; max-width: 100%; min-width: 0; border: 1px solid var(--line-strong); background: #08121a; box-shadow: 0 35px 90px rgba(0, 0, 0, .35); }
.market-visual::after { position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.025); content: ""; pointer-events: none; }
.terminal-head, .terminal-foot { display: flex; min-height: 48px; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid var(--line); color: var(--dim); font-family: ui-monospace, Consolas, monospace; font-size: 10px; letter-spacing: .08em; }
.terminal-symbol b { color: var(--text); font-size: 13px; }
.live-status { color: #89a29e; }
.live-status i { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.terminal-metrics { display: grid; grid-template-columns: 1.3fr 1fr 1fr; border-bottom: 1px solid var(--line); }
.terminal-metrics div { display: flex; min-height: 78px; flex-direction: column; justify-content: center; padding: 0 18px; border-right: 1px solid var(--line); }
.terminal-metrics div { min-width: 0; overflow: hidden; }
.terminal-metrics div:last-child { border-right: 0; }
.terminal-metrics span { color: var(--dim); font-family: ui-monospace, Consolas, monospace; font-size: 9px; letter-spacing: .12em; }
.terminal-metrics strong { margin-top: 2px; font-family: "Roboto Mono", Consolas, monospace; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.terminal-metrics .positive { color: var(--accent); }
.chart { position: relative; height: 330px; overflow: hidden; background: linear-gradient(90deg, rgba(37,217,176,.025), transparent 55%); }
.chart-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(159,187,202,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(159,187,202,.08) 1px, transparent 1px); background-size: 100% 55px, 78px 100%; }
.chart svg { position: absolute; inset: 28px 0 12px; width: 100%; height: calc(100% - 40px); }
.chart-area { fill: url(#area); }
.chart-line { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; filter: url(#glow); }
.liquidity { position: absolute; height: 5px; background: linear-gradient(90deg, rgba(68,135,202,0), rgba(68,135,202,.58), rgba(68,135,202,.06)); }
.liquidity-a { top: 88px; right: 8%; width: 54%; }
.liquidity-b { top: 196px; left: 4%; width: 46%; }
.liquidity-c { top: 256px; left: 17%; width: 60%; }
.trade-dot { position: absolute; border-radius: 50%; opacity: .88; }
.buy-dot { top: 112px; right: 25%; width: 32px; height: 32px; border: 1px solid var(--accent); background: rgba(37,217,176,.2); box-shadow: 0 0 24px rgba(37,217,176,.25); }
.sell-dot { top: 190px; left: 39%; width: 20px; height: 20px; border: 1px solid var(--red); background: rgba(255,99,121,.2); }
.price-tag { position: absolute; top: 104px; right: 0; padding: 3px 8px; background: var(--accent); color: #04110e; font-family: ui-monospace, Consolas, monospace; font-size: 10px; font-weight: 800; }
.terminal-foot { min-height: 50px; justify-content: flex-start; gap: 16px; border-top: 1px solid var(--line); border-bottom: 0; }
.legend { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; }
.legend.buy { background: var(--accent); }
.legend.sell { background: var(--red); }
.legend.depth { border-radius: 0; background: #4487ca; }
.terminal-foot .demo-note { margin-left: auto; color: #536873; }

.section { padding-block: 120px; }
.section-heading { max-width: 690px; margin-bottom: 48px; }
.section-heading.compact { max-width: 760px; }
.section-heading h2, .risk-inner h2, .contact-card h2, .legal-page h1 { margin: 0; font-size: clamp(34px, 4vw, 52px); font-weight: 620; letter-spacing: -.035em; line-height: 1.2; }
.section-heading > p:last-child { margin: 20px 0 0; color: var(--muted); font-size: 17px; }
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.capability-card { position: relative; min-height: 410px; padding: 34px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(11, 23, 33, .45); transition: background .25s ease, transform .25s ease; }
.capability-card:hover { z-index: 1; background: var(--panel-soft); transform: translateY(-5px); }
.capability-card.featured::before { position: absolute; top: 0; right: 0; left: 0; height: 2px; background: var(--accent); content: ""; }
.card-index { position: absolute; top: 24px; right: 27px; color: #465b66; font-family: ui-monospace, Consolas, monospace; font-size: 11px; }
.card-icon { display: flex; width: 54px; height: 54px; align-items: center; justify-content: center; gap: 4px; margin: 25px 0 46px; border: 1px solid rgba(37,217,176,.25); background: rgba(37,217,176,.05); }
.book-icon i { width: 5px; background: var(--accent); }
.book-icon i:nth-child(1) { height: 12px; }.book-icon i:nth-child(2) { height: 25px; }.book-icon i:nth-child(3) { height: 19px; }.book-icon i:nth-child(4) { height: 31px; }
.flow-icon { position: relative; flex-direction: column; }
.flow-icon i { width: 28px; height: 1px; background: var(--accent); }
.flow-icon i:nth-child(2) { width: 18px; transform: translateX(5px); }
.profile-icon { align-items: flex-end; }
.profile-icon i { width: 4px; background: var(--accent); }.profile-icon i:nth-child(1){height:9px}.profile-icon i:nth-child(2){height:16px}.profile-icon i:nth-child(3){height:27px}.profile-icon i:nth-child(4){height:20px}.profile-icon i:nth-child(5){height:12px}
.capability-card h3, .method-list h3, .principle-grid h3 { margin: 0; font-size: 21px; font-weight: 600; }
.capability-card p { min-height: 82px; margin: 13px 0 22px; color: var(--muted); font-size: 14px; }
.capability-card ul { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.capability-card li { padding: 4px 9px; border: 1px solid var(--line); color: #8399a4; font-family: ui-monospace, Consolas, monospace; font-size: 10px; }

.method-section { border-block: 1px solid var(--line); background: var(--bg-deep); }
.method-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; }
.method-copy { margin: 0; }
.method-list { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.method-list li { display: grid; grid-template-columns: 50px 1fr; gap: 12px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.method-list li > span { padding-top: 4px; color: var(--accent); font-family: ui-monospace, Consolas, monospace; font-size: 11px; }
.method-list h3 { font-size: 18px; }
.method-list p { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.principle-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 58px; }
.principle-grid article { min-height: 210px; padding: 28px 25px 10px; border-left: 1px solid var(--line); }
.principle-grid article:last-child { border-right: 1px solid var(--line); }
.principle-grid article > span { color: var(--accent); font-family: ui-monospace, Consolas, monospace; font-size: 11px; }
.principle-grid h3 { margin-top: 33px; font-size: 18px; }
.principle-grid p { margin: 11px 0 0; color: var(--muted); font-size: 13px; }

.risk-section { padding-block: 72px; border-block: 1px solid rgba(242,184,75,.2); background: rgba(242,184,75,.035); }
.risk-inner { display: grid; grid-template-columns: 74px 1fr; gap: 36px; align-items: start; }
.risk-mark { display: grid; width: 62px; height: 62px; place-items: center; border: 1px solid rgba(242,184,75,.5); color: var(--amber); font-family: ui-monospace, Consolas, monospace; font-size: 26px; }
.risk-inner .eyebrow { color: var(--amber); }
.risk-inner h2 { font-size: clamp(28px, 3vw, 40px); }
.risk-inner p:last-child { max-width: 900px; margin: 18px 0 0; color: #a9a797; font-size: 14px; }
.contact-section { padding-block: 120px; }
.contact-card { padding: 65px clamp(28px, 7vw, 90px); border: 1px solid var(--line-strong); background: linear-gradient(100deg, rgba(37,217,176,.07), rgba(11,23,33,.22) 60%), var(--panel); }
.contact-card h2 { font-size: clamp(32px, 4vw, 50px); }
.contact-card > p:not(.eyebrow) { max-width: 700px; margin: 18px 0 30px; color: var(--muted); }

.site-footer { padding: 62px 0 24px; border-top: 1px solid var(--line); background: var(--bg-deep); }
.footer-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; }
.footer-brand { margin-bottom: 13px; }
.footer-main p { margin: 0; color: var(--dim); font-size: 13px; }
.footer-main nav { display: flex; gap: 28px; color: #879ba5; font-size: 13px; }
.footer-main nav a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; margin-top: 46px; padding-top: 20px; border-top: 1px solid var(--line); color: #526771; font-size: 11px; }
.footer-bottom p { margin: 0; }

.legal-page { min-height: calc(100vh - 300px); padding-block: 90px 120px; }
.legal-page header { max-width: 800px; padding-bottom: 42px; border-bottom: 1px solid var(--line); }
.legal-page .updated { margin: 15px 0 0; color: var(--dim); font-size: 13px; }
.legal-content { max-width: 800px; }
.legal-content h2 { margin: 48px 0 12px; font-size: 21px; }
.legal-content p, .legal-content li { color: #9bafb8; font-size: 14px; }
.legal-content ul { padding-left: 20px; }
.legal-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 70px; padding-top: 72px; }
  .hero-copy { max-width: 760px; }
  .market-visual { width: min(100%, 760px); }
  .method-layout { grid-template-columns: 1fr; gap: 45px; }
  .principle-grid { grid-template-columns: repeat(2, 1fr); }
  .principle-grid article:nth-child(2) { border-right: 1px solid var(--line); }
  .principle-grid article:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .shell { width: min(calc(100% - 32px), var(--shell)); }
  .header-inner { min-height: 64px; }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 64px; right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: 12px 16px 20px; border-bottom: 1px solid var(--line); background: #071019; }
  .site-nav.open { display: flex; flex-direction: column; }
  .site-nav a { padding: 12px; }
  .nav-cta { margin-top: 8px; text-align: center; }
  .hero { min-height: auto; padding-block: 70px 88px; }
  .hero h1 { font-size: clamp(43px, 13.4vw, 66px); }
  .hero-lead { font-size: 16px; }
  .signal-strip { margin-top: 48px; }
  .signal-strip div { padding-left: 10px; }
  .signal-strip dd { font-size: 11px; }
  .terminal-foot { flex-wrap: wrap; gap: 9px 14px; padding-block: 10px; }
  .terminal-foot .demo-note { width: 100%; margin-left: 0; }
  .section { padding-block: 88px; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-card { min-height: 350px; }
  .capability-card p { min-height: 0; }
  .risk-inner { grid-template-columns: 1fr; gap: 24px; }
  .contact-section { padding-block: 88px; }
  .footer-main, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .footer-main nav { flex-wrap: wrap; gap: 12px 22px; }
}

@media (max-width: 480px) {
  .brand { font-size: 12px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .signal-strip { gap: 18px 0; grid-template-columns: 1fr; }
  .market-visual { margin-inline: -8px; width: calc(100% + 16px); }
  .terminal-metrics strong { font-size: 15px; }
  .terminal-metrics div { min-height: 66px; padding-inline: 10px; }
  .chart { height: 260px; }
  .principle-grid { grid-template-columns: 1fr; }
  .principle-grid article, .principle-grid article:nth-child(2), .principle-grid article:last-child { border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
  .principle-grid article:first-child { border-top: 0; }
}

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