/* Final visual and interaction polish. Loaded after the core experience layer. */

html {
    color-scheme: dark;
}

body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection {
    color: #03100b;
    background: var(--green);
}

:where(h1, h2, h3) {
    text-wrap: balance;
}

:where(p, li, dd) {
    text-wrap: pretty;
}

:where(section[id], article[id], div[id]) {
    scroll-margin-top: calc(var(--header-height) + 24px);
}

.site-header {
    border-bottom-color: rgba(140, 238, 224, .11);
}

.site-header.is-scrolled {
    border-bottom-color: rgba(140, 238, 224, .18);
    box-shadow: 0 14px 38px rgba(0, 0, 0, .38);
}

.brand-logo {
    transition: opacity .2s ease, filter .2s ease;
}

.brand:hover .brand-logo {
    opacity: .9;
    filter: brightness(1.08);
}

.main-nav a {
    position: relative;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.main-nav a.active:not(.nav-cta)::after {
    content: "";
    position: absolute;
    right: 11px;
    bottom: 5px;
    left: 11px;
    height: 2px;
    border-radius: 2px;
    background: var(--green);
}

.main-nav .nav-exchange.active::after {
    background: var(--cyan);
}

.button {
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
    transition: transform .18s ease, color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.button.primary {
    box-shadow: 0 10px 28px rgba(54, 239, 164, .14);
}

.button.primary:hover {
    box-shadow: 0 13px 34px rgba(54, 239, 164, .24);
}

.button.secondary:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
}

.button:active {
    transform: translateY(0);
    box-shadow: 0 5px 14px rgba(0, 0, 0, .2);
}

.button[aria-disabled="true"],
.button:disabled {
    transform: none;
    box-shadow: none;
}

.text-link span[aria-hidden="true"] {
    transition: transform .18s ease;
}

.text-link:hover span[aria-hidden="true"] {
    transform: translateX(3px);
}

.home-hero-copy {
    filter: drop-shadow(0 16px 38px rgba(0, 0, 0, .2));
}

.home-hero .hero-lede {
    max-width: 680px;
}

.trust-chips span {
    border-color: rgba(102, 228, 214, .23);
    background: rgba(5, 14, 18, .79);
    box-shadow: inset 0 1px rgba(255, 255, 255, .025);
    backdrop-filter: blur(8px);
}

.proof-band {
    overflow: hidden;
    border-color: rgba(102, 228, 214, .23);
    background: rgba(8, 18, 24, .96);
    box-shadow: 0 24px 64px rgba(0, 0, 0, .42), inset 0 1px rgba(255, 255, 255, .025);
}

.proof-band article {
    position: relative;
}

.proof-band article::before {
    content: "";
    position: absolute;
    top: 0;
    right: 26px;
    left: 26px;
    height: 2px;
    border-radius: 2px;
    background: var(--green);
    opacity: .66;
}

.proof-band article:nth-child(2)::before {
    background: var(--cyan);
}

.proof-band article:nth-child(3)::before {
    background: var(--amber);
}

.proof-band article:nth-child(4)::before {
    background: var(--red);
}

.proof-band article:nth-child(2) strong {
    color: var(--cyan);
}

.proof-band article:nth-child(3) strong {
    color: var(--amber);
}

.proof-band article:nth-child(4) strong {
    color: var(--red);
}

.market-chart-panel,
.market-settings-panel {
    box-shadow: 0 20px 50px rgba(0, 0, 0, .22), inset 0 1px rgba(255, 255, 255, .02);
}

.market-symbols button,
.market-setting-grid input[type="range"],
.market-switch input,
.boost-toggle input,
.faq-list summary,
details summary {
    cursor: pointer;
}

.market-symbols button:active {
    transform: translateY(1px);
}

.suite-links a,
.faq-list details,
.route-comparison article,
.bot-card {
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.suite-links a:hover,
.bot-card:hover {
    border-color: var(--line-strong);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .24);
    transform: translateY(-2px);
}

.faq-list details[open] {
    border-color: var(--line-strong);
    background: rgba(12, 27, 35, .96);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
}

.comparison-wrap {
    scrollbar-color: var(--line-strong) transparent;
    scrollbar-width: thin;
}

.site-footer a {
    transition: color .18s ease;
}

.site-footer a:hover {
    color: var(--text);
}

.accessibility-launcher,
.nav-toggle,
.accessibility-close {
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.accessibility-launcher:hover,
.nav-toggle:hover,
.accessibility-close:hover {
    border-color: var(--line-strong);
    background: rgba(56, 216, 244, .09);
    box-shadow: 0 9px 24px rgba(0, 0, 0, .24);
}

.accessibility-launcher:active,
.nav-toggle:active,
.accessibility-close:active {
    transform: translateY(1px);
}

@media (max-width: 980px) {
    body.nav-open {
        overflow: hidden;
    }

    .main-nav.open {
        animation: final-nav-enter .18s ease-out both;
        max-height: calc(100svh - var(--header-height) - 24px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .main-nav a.active:not(.nav-cta)::after {
        top: 10px;
        right: auto;
        bottom: 10px;
        left: 4px;
        width: 2px;
        height: auto;
    }

    @keyframes final-nav-enter {
        from { opacity: 0; }
        to { opacity: 1; }
    }
}

@media (max-width: 720px) {
    .home-hero-copy {
        filter: none;
    }

    .proof-band article::before {
        right: 18px;
        left: 18px;
    }

    .suite-links a:hover,
    .bot-card:hover {
        transform: none;
    }
}

@media (forced-colors: active) {
    .main-nav a.active:not(.nav-cta)::after,
    .proof-band article::before {
        background: Highlight;
    }
}


/* Release polish: product explanations, simulation controls and coming-soon editions */
.main-nav .nav-exchange {
    min-width: 74px;
    display: grid;
    align-content: center;
    gap: 2px;
    line-height: 1.05;
}

.main-nav .nav-exchange small {
    color: #7f929c;
    font-size: 8px;
    font-weight: 750;
    letter-spacing: 0;
    text-transform: uppercase;
}

.main-nav .nav-exchange.active small,
.main-nav .nav-exchange:hover small { color: var(--green); }

.market-lab-commandbar {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-bottom: 0;
    background: #071119;
}

.market-demo-state { min-width: 0; display: flex; align-items: center; gap: 12px; }
.market-demo-dot { width: 10px; height: 10px; flex: 0 0 10px; border: 2px solid #738792; border-radius: 50%; }
.is-replaying .market-demo-dot { border-color: var(--green); background: var(--green); box-shadow: 0 0 0 5px rgba(54,239,164,.1); }
.market-demo-state p { min-width: 0; display: grid; gap: 2px; margin: 0; }
.market-demo-state strong { color: var(--text); font-size: 13px; }
.market-demo-state span:last-child { color: var(--muted); font-size: 12px; }
.market-lab-command-actions { display: flex; flex: 0 0 auto; gap: 9px; }
.market-lab-command-actions .button { min-height: 42px; padding: 0 16px; }

.product-gallery-item figcaption {
    min-height: 210px;
    justify-content: flex-start;
    gap: 8px;
    padding: 18px;
}

.product-gallery-item figcaption .gallery-kicker {
    color: var(--green);
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
}

.product-gallery-item figcaption strong { font-size: 17px; }
.product-gallery-item figcaption p { margin: 0; color: #9fb0b9; font-size: 13px; line-height: 1.58; }
.product-gallery-item figcaption > a { margin-top: auto; color: var(--cyan); font-size: 12px; font-weight: 800; }
.product-gallery-item--featured { border-color: rgba(54,239,164,.46); }

.standard-settings-explainer { max-width: none; padding-top: 88px; padding-bottom: 88px; background: #050a0d; }
.standard-settings-heading { max-width: 880px; }
.settings-window-layout { display: grid; grid-template-columns: minmax(360px,.82fr) minmax(0,1.18fr); gap: 36px; align-items: start; margin-top: 38px; }
.settings-window-visual { position: sticky; top: 104px; margin: 0; border: 1px solid rgba(56,216,244,.26); border-radius: 8px; overflow: hidden; background: #020507; }
.settings-window-visual a { display: block; }
.settings-window-visual img { width: 100%; height: auto; display: block; }
.settings-window-visual figcaption { display: grid; gap: 7px; padding: 18px; border-top: 1px solid var(--line); }
.settings-window-visual figcaption strong { color: var(--text); }
.settings-window-visual figcaption span { color: var(--muted); font-size: 13px; line-height: 1.55; }
.settings-window-groups { min-width: 0; border-top: 1px solid var(--line); }
.settings-explainer-group { padding: 26px 0 10px; border-bottom: 1px solid var(--line); }
.settings-explainer-group > header { display: grid; grid-template-columns: 40px minmax(0,1fr); gap: 14px; align-items: start; margin-bottom: 12px; }
.settings-explainer-group > header > span { color: var(--cyan); font-size: 11px; font-weight: 900; }
.settings-explainer-group header p { color: var(--green); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.settings-explainer-group h3 { margin-top: 4px; font-size: 24px; }
.settings-explainer-group dl { margin: 0; }
.settings-explainer-group dl > div { display: grid; grid-template-columns: minmax(145px,.3fr) minmax(0,1fr) 112px; gap: 18px; padding: 15px 0; border-top: 1px solid rgba(102,228,214,.11); }
.settings-explainer-group dt { color: var(--text); font-size: 13px; font-weight: 820; }
.settings-explainer-group dd { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.56; }
.settings-explainer-group dl span { justify-self: end; color: var(--cyan); font-size: 10px; text-align: right; }
.settings-explainer-foot { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.settings-explainer-foot p { max-width: 760px; color: var(--muted); font-size: 13px; }

.coming-soon-hero { min-height: 610px; display: grid; grid-template-columns: minmax(0,1.2fr) minmax(300px,.55fr); align-items: center; gap: 64px; padding: 150px max(24px,calc((100vw - var(--content))/2)) 84px; border-bottom: 1px solid var(--line); background: rgba(5,10,14,.82); }
.coming-soon-copy { max-width: 820px; }
.coming-soon-copy h1 { max-width: 760px; font-size: 56px; }
.coming-soon-badge { display: inline-flex; min-height: 30px; align-items: center; margin: 24px 0 18px; padding: 0 11px; border: 1px solid rgba(240,189,91,.45); border-radius: 6px; color: #f0bd5b; background: rgba(240,189,91,.08); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.coming-soon-status { margin: 0; border-block: 1px solid var(--line); }
.coming-soon-status div { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.coming-soon-status div:last-child { border-bottom: 0; }
.coming-soon-status dt { color: var(--muted); font-size: 12px; }
.coming-soon-status dd { margin: 0; color: #f0bd5b; font-size: 13px; font-weight: 800; }
.coming-soon-detail { padding-top: 80px; padding-bottom: 80px; }
.coming-soon-roadmap { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; margin: 36px 0 0; padding: 0; border: 1px solid var(--line); list-style: none; }
.coming-soon-roadmap li { min-width: 0; min-height: 205px; display: grid; align-content: start; gap: 24px; padding: 24px; border-right: 1px solid var(--line); }
.coming-soon-roadmap li:last-child { border-right: 0; }
.coming-soon-roadmap li > span { color: var(--cyan); font-size: 11px; font-weight: 900; }
.coming-soon-roadmap strong { display: block; color: var(--text); font-size: 17px; }
.coming-soon-roadmap p { margin-top: 9px; color: var(--muted); font-size: 13px; }
.coming-soon-callout { margin-top: 0; }
.suite-link--soon { border-color: rgba(240,189,91,.24) !important; }

.community-release-status { display: grid; grid-template-columns: minmax(0,1fr) minmax(340px,.7fr); gap: 48px; align-items: center; padding-top: 68px; padding-bottom: 68px; border-bottom: 1px solid var(--line); }
.community-release-status h2 { font-size: 36px; }
.community-release-status p:last-child { margin-top: 14px; color: var(--muted); }
.community-release-status dl { margin: 0; border-block: 1px solid var(--line); }
.community-release-status dl div { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.community-release-status dl div:last-child { border-bottom: 0; }
.community-release-status dt { color: var(--muted); font-size: 12px; }
.community-release-status dd { margin: 0; color: var(--text); font-size: 13px; font-weight: 750; }

.legal-content { min-width: 0; grid-template-columns: minmax(0, 1fr); }
.legal-content article { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 1050px) {
    .settings-window-layout { grid-template-columns: 1fr; }
    .settings-window-visual { position: static; max-width: 820px; }
    .coming-soon-hero { grid-template-columns: 1fr; gap: 38px; }
    .coming-soon-status { max-width: 620px; }
}

@media (max-width: 760px) {
    .main-nav .nav-exchange { min-width: 0; }
    .market-lab-commandbar { align-items: stretch; flex-direction: column; }
    .market-lab-command-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .market-lab-command-actions .button { min-width: 0; width: 100%; }
    .product-gallery-item figcaption { min-height: 0; }
    .standard-settings-explainer { padding: 68px 18px; }
    .settings-explainer-group dl > div { grid-template-columns: 1fr; gap: 7px; }
    .settings-explainer-group dl span { justify-self: start; text-align: left; }
    .settings-explainer-foot { align-items: stretch; flex-direction: column; }
    .coming-soon-hero { min-height: 0; padding: 130px 18px 68px; }
    .coming-soon-copy h1 { font-size: 40px; }
    .coming-soon-roadmap { grid-template-columns: 1fr; }
    .coming-soon-roadmap li { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .coming-soon-roadmap li:last-child { border-bottom: 0; }
    .community-release-status { grid-template-columns: 1fr; gap: 28px; padding: 58px 18px; }
}

@media (max-width: 430px) {
    .market-lab-command-actions { grid-template-columns: 1fr; }
    .market-demo-state { align-items: flex-start; }
    .coming-soon-copy h1 { font-size: 34px; }
}


.availability-notice {
  position: relative;
  z-index: 9;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  padding: 8px clamp(18px, 4vw, 72px);
  border-bottom: 1px solid rgba(36, 235, 175, .22);
  background: rgba(5, 13, 18, .96);
  color: var(--muted, #a9bac4);
  font-size: .78rem;
  text-align: center;
}
.availability-notice strong { color: var(--green, #24ebaf); }
.footer-region-note { color: var(--muted, #a9bac4); font-size: .82rem; }
@media (max-width: 720px) {
  .availability-notice { align-items: flex-start; flex-direction: column; gap: 2px; text-align: left; }
}


/* BOVOTRADE_LANGUAGE_SWITCHER */
.language-switcher {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 38px;
    padding: 3px;
    border: 1px solid rgba(102, 228, 214, .24);
    border-radius: 6px;
    background: rgba(5, 12, 17, .78);
}

.language-switcher a {
    display: grid;
    min-width: 38px;
    min-height: 30px;
    place-items: center;
    padding: 0 8px;
    border-radius: 4px;
    color: var(--muted);
    font-size: .76rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

.language-switcher a:hover,
.language-switcher a:focus-visible {
    color: var(--text);
    background: rgba(56, 216, 244, .1);
}

.language-switcher a[aria-current="page"] {
    color: #04100c;
    background: var(--green);
}

@media (max-width: 720px) {
    .language-switcher {
        min-height: 36px;
    }

    .language-switcher a {
        min-width: 34px;
        min-height: 28px;
        padding-inline: 6px;
    }
}
