
:root { --st-accent:#7063ff; --st-gradient:linear-gradient(120deg,#09c9ed,#5865ff 52%,#b546ef); }
html[data-theme="dark"] { --st-bg:#090d20; --st-surface:#11172d; --st-header:rgba(9,13,32,.96); --st-text:#f1f4ff; --st-muted:#aab4d0; --st-border:#27304c; --st-hover:#1b2443; --bg:var(--st-bg); --text:var(--st-text); --muted:var(--st-muted); --card:var(--st-surface); --border:var(--st-border); }
html[data-theme="light"] { --st-bg:#f6f8ff; --st-surface:#ffffff; --st-header:rgba(255,255,255,.97); --st-text:#172142; --st-muted:#566381; --st-border:#dce2f2; --st-hover:#eef0ff; --bg:var(--st-bg); --text:var(--st-text); --muted:var(--st-muted); --card:var(--st-surface); --border:var(--st-border); }
html { scroll-padding-top:100px; }
body { background:var(--st-bg)!important; color:var(--st-text)!important; }
.st-header, .st-header * { box-sizing:border-box; }
.header.st-header { position:sticky; top:0; z-index:1000; display:flex; align-items:center; justify-content:space-between; gap:24px; width:100%; padding:18px clamp(16px,4vw,70px); min-height:80px; background:var(--st-header); border-bottom:1px solid var(--st-border); backdrop-filter:blur(18px); }
.st-header .st-brand { display:inline-flex; align-items:center; flex-shrink:0; gap:0; max-width:none; font:800 clamp(23px,2.3vw,30px)/1.1 'DM Sans',sans-serif; letter-spacing:-1.1px; text-decoration:none; color:var(--st-text); }
.st-brand-initial { position:relative; font-size:1.44em; font-style:italic; background:var(--st-gradient); background-clip:text; -webkit-background-clip:text; color:transparent; padding-right:2px; }
.st-brand-initial>span { position:absolute; font-size:12px; top:10px; left:8px; color:var(--st-surface); -webkit-text-fill-color:var(--st-surface); }
.st-brand-trades { background:var(--st-gradient); background-clip:text; -webkit-background-clip:text; color:transparent; }
.st-nav { display:flex; align-items:center; gap:clamp(12px,1.5vw,25px); }
.st-nav a { color:var(--st-muted); font:600 13px/1.5 'DM Sans',sans-serif; white-space:nowrap; text-decoration:none; padding:8px 0; }
.st-nav a:hover,.st-nav a:focus-visible { color:var(--st-text); }
.st-actions { display:flex; align-items:center; gap:10px; }
.st-theme-toggle,.st-menu-toggle { display:inline-flex; align-items:center; justify-content:center; width:42px; height:42px; padding:0; border:1px solid var(--st-border); border-radius:12px; color:var(--st-text); background:var(--st-surface); cursor:pointer; font-size:23px; flex-shrink:0; }
.st-theme-toggle:hover,.st-menu-toggle:hover { background:var(--st-hover); }
.st-join { display:inline-flex; gap:12px; align-items:center; justify-content:center; padding:12px 19px; border-radius:12px; background:var(--st-gradient); color:#fff!important; font:700 13px/1.4 'DM Sans',sans-serif; text-decoration:none; white-space:nowrap; box-shadow:0 5px 22px #6366f126; }
.st-header :focus-visible { outline:3px solid #40bbef; outline-offset:4px; }
.st-menu-toggle { display:none; }
.st-ticker { background:var(--st-surface); border-bottom:1px solid var(--st-border); overflow:hidden; min-height:46px; }
#st-market-ticker { min-height:46px; }
/* Shared surfaces: custom widget styles still retain their artwork. */
html[data-theme] body :is(.card,.feature-card,.strategy-card,.stat-card,.metric-card,.market-card,.faq-item,.roadmap-card,.security-card,.modal-content) { background-color:var(--st-surface); color:var(--st-text); border-color:var(--st-border); }
html[data-theme] body :is(.card,.feature-card,.strategy-card,.stat-card,.metric-card,.market-card,.faq-item,.roadmap-card,.security-card,.modal-content) :is(h1,h2,h3,h4,h5,h6) { color:var(--st-text); }
html[data-theme] body :is(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),select,textarea) { background-color:var(--st-surface); color:var(--st-text); border-color:var(--st-border); }
html[data-theme] body :is(input,textarea)::placeholder { color:var(--st-muted); }
html[data-theme] body :is(table,th,td) { color:var(--st-text); border-color:var(--st-border); }
@media(max-width:1100px) {
 .header.st-header { gap:12px; padding:14px 20px; min-height:72px; }
 .st-menu-toggle { display:inline-flex; }
 .st-nav { display:none; position:absolute; top:100%; left:16px; right:16px; padding:14px; background:var(--st-surface); border:1px solid var(--st-border); border-radius:0 0 18px 18px; box-shadow:0 18px 40px #0002; }
 .st-nav.st-open { display:flex; flex-direction:column; align-items:stretch; gap:3px; }
 .st-nav a { padding:12px 14px; border-radius:8px; color:var(--st-text); }
 .st-nav a:hover { background:var(--st-hover); }
}
@media(max-width:480px) {
 .header.st-header { padding:12px; gap:8px; min-height:68px; }
 .st-header .st-brand { font-size:23px; }
 .st-actions { gap:6px; }
 .st-theme-toggle,.st-menu-toggle { width:34px; height:36px; border-radius:10px; font-size:20px; }
 .st-join { padding:10px; border-radius:10px; font-size:12px; gap:5px; }
}
@media(max-width:359px) { .st-header .st-brand { font-size:20px; } .st-join>span { display:none; } .st-join { padding:10px 8px; } }

/* Header integration: original fixed height must not clip the mobile controls. */
.header.st-header { height:auto; }
