:root {
  color-scheme: dark;
  --page: #111622;
  --surface: #151c2a;
  --surface-raised: #192231;
  --border: rgba(144, 158, 185, .16);
  --text: #f3f1e9;
  --muted: #9aa8bb;
  --soft: #718198;
  --gold: #d9b85d;
  --green: #94c78e;
  --mono: "DM Mono", monospace;
  --sans: "DM Sans", sans-serif;
  --display: "Playfair Display", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { margin: 0; background: var(--page); color: var(--text); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.site-nav { position: sticky; z-index: 20; top: 0; min-height: 76px; background: rgba(17, 22, 34, .94); border-bottom: 1px solid rgba(144, 158, 185, .11); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); font-family: var(--mono); font-size: .9rem; letter-spacing: -.06em; }
.brand:hover { color: var(--text); }
.brand-dot { color: var(--gold); }
.brand-mark { display: block; flex: 0 0 27px; width: 27px; height: 27px; overflow: visible; fill: none; stroke: var(--gold); stroke-linecap: round; stroke-width: 1.5; }
.brand-mark .candle-up { fill: var(--green); stroke: var(--green); }
.brand-mark .candle-down { fill: var(--gold); stroke: var(--gold); }
.navbar-nav .nav-link { color: #a5b0c1; font-family: var(--mono); font-size: .72rem; transition: color .2s ease; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link:focus { color: var(--gold); }
.navbar-nav .nav-status { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid rgba(148, 199, 142, .25); border-radius: 30px; color: var(--green); }
.status-dot { display: inline-block; flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px rgba(148, 199, 142, .6); }
.section-shell { padding: 112px 0; }
.hero { position: relative; overflow: hidden; min-height: 690px; padding-top: 104px; padding-bottom: 92px; }
.hero::before { position: absolute; top: 1%; right: -15%; z-index: -1; width: 59%; height: 75%; background: radial-gradient(ellipse, rgba(217, 184, 93, .07), transparent 68%); content: ""; pointer-events: none; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: var(--gold); font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow-line { display: inline-block; width: 22px; height: 1px; background: var(--gold); }
h1, h2, h3, p { overflow-wrap: break-word; }
.hero h1 { margin: 0; font-family: var(--display); font-size: clamp(3.55rem, 6vw, 5.45rem); font-weight: 500; letter-spacing: -.055em; line-height: .99; }
.hero h1 span, .section-heading h2 span, .technology-section h2 span { color: var(--gold); }
.hero-lede { max-width: 485px; margin: 28px 0 12px; color: #d0d5df; font-size: 1.07rem; line-height: 1.75; }
.hero-note { max-width: 460px; margin: 0; color: var(--muted); font-family: var(--mono); font-size: .78rem; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; margin-top: 32px; }
.btn-gold { padding: 12px 17px; border: 1px solid var(--gold); border-radius: 2px; background: var(--gold); color: #171a20; font-size: .83rem; font-weight: 600; transition: background .2s ease, color .2s ease, transform .2s ease; }
.btn-gold:hover, .btn-gold:focus { transform: translateY(-2px); border-color: #e7cc7d; background: #e7cc7d; color: #171a20; }
.btn-gold span { margin-left: 12px; }
.text-link { color: #b6c0cd; font-family: var(--mono); font-size: .73rem; text-decoration: none; }
.text-link span { margin-left: 8px; color: var(--gold); }
.text-link:hover { color: var(--gold); }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 42px; padding-top: 17px; border-top: 1px solid var(--border); }
.hero-facts div { display: flex; flex-direction: column; gap: 8px; }
.hero-facts strong { color: var(--soft); font-family: var(--mono); font-size: .67rem; font-weight: 400; line-height: 1.5; }
.hero-facts span { color: var(--gold); font-family: var(--display); font-size: .96rem; letter-spacing: 0; }
.market-panel { overflow: hidden; padding: 25px; border: 1px solid var(--border); border-radius: 4px; background: linear-gradient(145deg, rgba(25, 34, 49, .98), rgba(20, 27, 40, .98)); box-shadow: 0 24px 80px rgba(0, 0, 0, .2); }
.panel-topline { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.panel-kicker, .detail-label { color: var(--soft); font-family: var(--mono); font-size: .63rem; letter-spacing: .11em; text-transform: uppercase; }
.panel-topline h2 { margin: 7px 0 0; font-family: var(--display); font-size: 1.65rem; font-weight: 500; }
.panel-indicator { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid rgba(148, 199, 142, .17); border-radius: 30px; color: var(--green); font-family: var(--mono); font-size: .58rem; white-space: nowrap; }
.panel-indicator .status-dot { width: 6px; height: 6px; flex-basis: 6px; }
.panel-description { margin: 13px 0 19px; color: var(--muted); font-size: .83rem; }
.market-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--border); background: rgba(10, 14, 22, .38); }
.market-tab { padding: 8px 10px; border: 0; border-radius: 2px; background: transparent; color: var(--muted); font-family: var(--mono); font-size: .63rem; transition: background .2s ease, color .2s ease; }
.market-tab span { margin-left: 3px; color: var(--soft); font-size: .58rem; }
.market-tab.active { background: #293142; color: var(--gold); }
.market-tab.active span { color: var(--gold); }
.market-tab:focus-visible, .market-row:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.market-list { margin-top: 13px; }
.market-row { display: flex; width: 100%; min-height: 52px; align-items: center; gap: 12px; padding: 7px 8px; border: 0; border-bottom: 1px solid rgba(144, 158, 185, .09); background: transparent; color: var(--text); text-align: left; transition: background .2s ease; }
.market-row:hover, .market-row.selected { background: rgba(217, 184, 93, .055); }
.market-row.selected { box-shadow: inset 2px 0 var(--gold); }
.market-row[hidden] { display: none; }
.asset-icon { display: grid; flex: 0 0 31px; width: 31px; height: 31px; place-items: center; border: 1px solid var(--border); border-radius: 50%; font-family: var(--mono); font-size: .7rem; }
.equities-icon { color: var(--green); }
.crypto-icon { color: #98a9de; }
.commodity-icon { color: var(--gold); font-size: .62rem; }
.market-name { display: flex; flex: 1; flex-direction: column; gap: 2px; }
.market-name strong { font-size: .81rem; font-weight: 500; }
.market-name small { color: var(--soft); font-family: var(--mono); font-size: .59rem; }
.market-symbol { color: var(--soft); font-family: var(--mono); font-size: .65rem; }
.row-arrow { margin-left: 4px; color: #718198; font-size: .78rem; }
.market-detail { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 18px; padding: 13px 14px; border: 1px solid rgba(144, 158, 185, .11); background: rgba(10, 14, 22, .27); }
.market-detail > div { display: flex; flex-direction: column; gap: 6px; }
.market-detail strong { font-family: var(--display); font-size: 1rem; font-weight: 500; }
.market-detail strong span { color: var(--gold); font-family: var(--mono); font-size: .64rem; }
.market-detail > span { max-width: 47%; color: var(--muted); font-size: .67rem; text-align: right; }
.panel-footnote { margin: 12px 0 0; color: var(--soft); font-family: var(--mono); font-size: .59rem; }
.hero-caption { display: flex; align-items: center; gap: 10px; margin: 16px 3px 0; color: var(--soft); font-family: var(--mono); font-size: .61rem; }
.caption-rule { width: 19px; height: 1px; background: var(--gold); }
.section-divider { border-top: 1px solid var(--border); }
.section-heading { margin-bottom: 42px; }
.section-heading .eyebrow, .technology-section .eyebrow { margin-bottom: 18px; }
.section-heading h2, .technology-section h2 { margin: 0; font-family: var(--display); font-size: clamp(2.5rem, 4vw, 3.65rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.12; }
.section-intro { max-width: 460px; margin: 0 0 5px; color: var(--muted); font-size: .92rem; line-height: 1.8; }
.workflow-grid { position: relative; }
.info-card { position: relative; display: flex; height: 100%; min-height: 275px; flex-direction: column; padding: 25px; border: 1px solid var(--border); background: rgba(21, 28, 42, .65); transition: border-color .2s ease, transform .2s ease; }
.info-card:hover, .method-card:hover { transform: translateY(-3px); border-color: rgba(217, 184, 93, .37); }
.card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.card-icon { display: grid; width: 41px; height: 41px; place-items: center; border: 1px solid rgba(217, 184, 93, .3); color: var(--gold); font-family: var(--mono); font-size: .67rem; }
.card-index { color: var(--soft); font-family: var(--mono); font-size: .63rem; letter-spacing: .12em; }
.info-card h3, .method-card h3 { margin: 0 0 12px; font-family: var(--display); font-size: 1.32rem; font-weight: 500; }
.info-card p, .method-card p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.75; }
.card-accent { width: 30px; height: 1px; margin-top: auto; padding-top: 20px; background: var(--gold); background-clip: content-box; }
.method-grid { margin-top: 0; }
.method-card { position: relative; height: 100%; min-height: 228px; padding: 24px 23px 20px; border: 1px solid var(--border); background: rgba(21, 28, 42, .52); transition: border-color .2s ease, transform .2s ease; }
.method-number { display: block; margin-bottom: 18px; color: var(--gold); font-family: var(--mono); font-size: .64rem; letter-spacing: .09em; }
.method-card h3 { font-size: 1.2rem; }
.method-card p { font-size: .78rem; }
.method-tag { display: inline-block; margin-top: 18px; color: var(--soft); font-family: var(--mono); font-size: .56rem; letter-spacing: .1em; }
.methods-note { margin: 25px 0 0; color: var(--soft); font-family: var(--mono); font-size: .65rem; line-height: 1.7; }
.methods-note span { margin-right: 7px; color: var(--gold); }
.technology-section { background: linear-gradient(180deg, rgba(21, 28, 42, .28), transparent); }
.technology-section h2 { font-size: clamp(2.4rem, 4vw, 3.3rem); }
.technology-section .section-intro { margin-top: 20px; }
.tech-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tech-item { display: flex; min-height: 76px; align-items: center; gap: 13px; padding: 13px; border: 1px solid var(--border); background: rgba(21, 28, 42, .65); }
.tech-symbol { display: grid; flex: 0 0 37px; width: 37px; height: 37px; place-items: center; border: 1px solid rgba(144, 158, 185, .18); color: var(--gold); font-family: var(--mono); font-size: .76rem; }
.numpy-symbol { color: #8db4dc; }
.pandas-symbol { color: #c9a7d6; }
.torch-symbol { color: #e4a178; }
.sklearn-symbol { color: #91c6a9; }
.fastapi-symbol { color: #85c9bb; }
.docker-symbol { color: #86b8d7; }
.tech-item > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.tech-item strong { font-size: .78rem; font-weight: 500; }
.tech-item small { color: var(--soft); font-family: var(--mono); font-size: .58rem; }
.site-footer { padding: 25px 0; border-top: 1px solid var(--border); }
.footer-brand { font-size: .76rem; }
.site-footer p { margin: 0; color: var(--soft); font-family: var(--mono); font-size: .65rem; }
.footer-copy { color: var(--soft); font-family: var(--mono); font-size: .61rem; }

@media (min-width: 992px) {
  .hero { display: flex; align-items: center; }
  .hero > .container { width: 100%; }
}
@media (max-width: 991.98px) {
  .section-shell { padding: 84px 0; }
  .hero { min-height: auto; padding-top: 76px; }
  .hero-copy { margin-bottom: 8px; }
  .hero-facts { margin-top: 38px; }
  .navbar-collapse { padding: 15px 0 18px; }
  .navbar-nav { align-items: flex-start !important; }
  .navbar-nav .nav-status { margin-top: 7px; }
}
@media (max-width: 575.98px) {
  .site-nav { min-height: 66px; }
  .brand { gap: 8px; font-size: .78rem; }
  .section-shell { padding: 70px 0; }
  .hero { padding-top: 60px; padding-bottom: 65px; }
  .hero h1 { font-size: clamp(3.25rem, 15vw, 4.3rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 17px; }
  .hero-facts { grid-template-columns: 1fr; gap: 16px; }
  .hero-facts div { gap: 4px; }
  .hero-facts strong { font-size: .64rem; }
  .hero-facts span { font-size: .92rem; }
  .market-panel { padding: 18px 14px; }
  .panel-topline { flex-direction: column; }
  .panel-topline h2 { font-size: 1.5rem; }
  .market-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-tab { text-align: left; }
  .market-detail { align-items: flex-start; flex-direction: column; }
  .market-detail > span { max-width: none; text-align: left; }
  .section-heading { margin-bottom: 30px; }
  .section-heading h2, .technology-section h2 { font-size: 2.55rem; }
  .info-card { min-height: 250px; }
  .tech-grid { grid-template-columns: 1fr; }
  .site-footer .container { align-items: flex-start !important; }
}

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