/* Coin Bcx theme layer - loaded after the vendor CSS. Pure-black pro look with the Coin Bcx blue. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --cbx-bg: #000000;
    --cbx-surface: #0b0b0c;
    --cbx-surface-2: #141416;
    --cbx-surface-3: #1c1c1f;
    --cbx-border: #232326;
    --cbx-text: #ffffff;
    --cbx-muted: #8e8e93;
    --cbx-accent: #2ea3ff;
    --cbx-accent-2: #1a7cff;
    --cbx-green: #20b26c;
    --cbx-red: #ef454a;
    --yellow-color: var(--cbx-accent);
    --yellow-secondary-color: var(--cbx-accent-2);
    --yellow-darker-color: var(--cbx-accent-2);
    --purple-color: var(--cbx-accent);
    --purple-second-color: var(--cbx-accent-2);
    --green-color: var(--cbx-green);
    --green-second-color: #1a9a5d;
    --red-color: var(--cbx-red);
    --red-second-color: #d63b40;
    --hover-v1-color: var(--cbx-accent);
    --progress-color: var(--cbx-accent);
    --dark-body-color: var(--cbx-bg);
    --dark-text-color: #e6e6e6;
    --blue-dark-color: var(--cbx-surface-2);
    --blue-dark-second-color: var(--cbx-surface);
    --blue-dark-thir-color: var(--cbx-surface-2);
    --blue-dark-bar-color: var(--cbx-surface);
    --blue-dark-fourth-color: var(--cbx-surface-3);
    --blue-dark-fifth-color: var(--cbx-bg);
    --purple-third-color: var(--cbx-surface);
    --purple-fourth-color: var(--cbx-surface-2);
    --strict-border-color: var(--cbx-border);
    --dark-profile-body-color: var(--cbx-bg);
}

body.dark .site-layout,
body.dark {
    --tr-hover-color: var(--cbx-surface-2);
    --tr-hover-color-second: var(--cbx-surface-3);
    --border-line-color: var(--cbx-border);
    --border-line-color-v2: var(--cbx-border);
    --rows-color: var(--cbx-surface-2);
    --hover-v1-color: var(--cbx-accent);
    --first-text-color: #e6e6e6;
    --second-text-color: var(--cbx-muted);
    --white-input: var(--cbx-surface-2);
    --progress-color: var(--cbx-accent);
    --select-option: var(--cbx-surface-2);
    --border-select-color: var(--cbx-border);
    --btn-secondary-color: var(--cbx-surface-3);
    --checkbox-bg: var(--cbx-surface-2);
    --checkbox-border: #3a3a3e;
    --yellow-darker-color: var(--cbx-accent-2);
    --table-head-color: var(--cbx-surface);
    --modal-border-line-color: #3a3a3e;
    --modal-information-color: var(--cbx-surface-2);
    --modal-information-warning-color: var(--cbx-surface);
    --modal-information-warning-color-label: var(--cbx-surface-3);
    --label-bubble-color: var(--cbx-surface-2);
    --dark-text-color2: #e6e6e6;
    background-color: var(--cbx-bg);
}

body, button, input, select, textarea, .site-layout {
    font-family: 'Inter', 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    -webkit-font-smoothing: antialiased;
}

body.dark { background: var(--cbx-bg); }

/* Header: slim flat black bar with hairline, compact logo */
.main-logo { height: 32px !important; width: auto !important; max-width: none !important; display: block; }
.header-section.header { padding: 0 !important; border-bottom: 1px solid var(--cbx-border); }
body.dark .header-section.header { background: #000 !important; }
.header__row { height: 64px !important; min-height: 64px !important; padding: 0 24px !important; }
.header__row a { font-weight: 500; }
@media (max-width: 768px) {
    .main-logo { height: 28px !important; }
    .header__row { height: 56px !important; min-height: 56px !important; padding: 0 16px !important; }
}

body.dark a:hover { color: var(--cbx-accent); }

/* Buttons: OKX-style pills */
.btn, button.btn, a.btn {
    border-radius: 999px !important;
    font-weight: 600 !important;
    letter-spacing: .01em;
}

/* Scrollbars */
body.dark ::-webkit-scrollbar { width: 6px; height: 6px; }
body.dark ::-webkit-scrollbar-thumb { background: #2a2a2e; border-radius: 6px; }
body.dark ::-webkit-scrollbar-track { background: transparent; }

/* Header mark: logo is the square mark only */
.main-logo { height: 40px !important; }
@media (max-width: 768px) { .main-logo { height: 34px !important; } }

/* Home hero - OKX style */
body.dark section.head { background: #000 !important; background-image: radial-gradient(60% 70% at 78% 20%, rgba(46,163,255,.22), rgba(26,124,255,.06) 45%, transparent 70%) !important; }
section.head .head-row { min-height: 0 !important; height: auto !important; padding: 120px 0 110px !important; }
section.head h1 { font-weight: 800 !important; font-size: 72px !important; line-height: 1.08 !important; letter-spacing: -0.03em !important; color: #fff; }
section.head .head-title p { font-size: 18px !important; color: var(--cbx-muted) !important; margin: 20px 0 28px !important; }
section.head .head-title a { display: inline-flex !important; align-items: center; justify-content: center; background: #fff !important; color: #000 !important; border: 0 !important; border-radius: 999px !important; padding: 14px 36px !important; font-weight: 700 !important; font-size: 16px !important; transition: transform .15s ease, background .15s ease; }
section.head .head-title a:hover { background: var(--cbx-accent) !important; color: #fff !important; transform: translateY(-1px); }
body.dark section.screen { background: #000 !important; }
@media (max-width: 768px) { section.head h1 { font-size: 40px !important; } section.head .head-row { padding: 72px 0 64px !important; } }
@media (min-width: 769px) and (max-width: 1100px) { section.head h1 { font-size: 52px !important; } }

/* ===== Motion & backgrounds ===== */
section.head { position: relative; overflow: hidden; isolation: isolate; }
section.head::before {
    content: ""; position: absolute; inset: -20%; z-index: -1; pointer-events: none;
    background:
        radial-gradient(35% 40% at 70% 30%, rgba(46,163,255,.35), transparent 70%),
        radial-gradient(30% 35% at 25% 75%, rgba(26,124,255,.22), transparent 70%),
        radial-gradient(25% 30% at 85% 80%, rgba(0,212,255,.14), transparent 70%);
    filter: blur(30px);
    animation: cbx-drift 18s ease-in-out infinite alternate;
}
section.head::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 30%, transparent 75%);
            mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 30%, transparent 75%);
    animation: cbx-grid 24s linear infinite;
}
@keyframes cbx-drift {
    0%   { transform: translate3d(0,0,0) scale(1); }
    50%  { transform: translate3d(-4%,3%,0) scale(1.08); }
    100% { transform: translate3d(3%,-3%,0) scale(1.02); }
}
@keyframes cbx-grid { from { background-position: 0 0, 0 0; } to { background-position: 0 64px, 64px 0; } }

section.head h1, section.head .head-title p, section.head .head-title a {
    animation: cbx-rise .9s cubic-bezier(.2,.7,.2,1) both;
}
section.head .head-title p { animation-delay: .15s; }
section.head .head-title a { animation-delay: .3s; }
@keyframes cbx-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

section.head .head-title a { box-shadow: 0 0 0 0 rgba(46,163,255,0); }
section.head .head-title a:hover { box-shadow: 0 8px 32px rgba(46,163,255,.45); }

.cbx-reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.cbx-reveal.cbx-in { opacity: 1; transform: none; }

body.dark table tbody tr { transition: background-color .18s ease; }
body.dark table tbody tr:hover { background-color: var(--cbx-surface-2) !important; }

body.dark section h2 { font-weight: 700 !important; letter-spacing: -0.02em; color: #fff; }

body.dark section.screen { position: relative; overflow: hidden; }
body.dark section.screen::before {
    content: ""; position: absolute; left: 50%; top: 55%; width: 70%; height: 60%; transform: translate(-50%,-50%);
    background: radial-gradient(closest-side, rgba(46,163,255,.18), transparent); filter: blur(20px); pointer-events: none;
}
body.dark section.screen > * { position: relative; }

@media (prefers-reduced-motion: reduce) {
    section.head::before, section.head::after, section.head h1, section.head .head-title p, section.head .head-title a { animation: none !important; }
    .cbx-reveal { opacity: 1; transform: none; transition: none; }
}

/* Fade hero glow into the page (no hard edge) */
section.head::before { -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 88%); mask-image: linear-gradient(to bottom, #000 55%, transparent 88%); }
body.dark section.head { background-image: none !important; }

/* ===== Homepage sections (cbx-*) ===== */
.cbx-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.cbx-head { text-align: center; margin-bottom: 48px; }
.cbx-head h2 { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 14px; color: var(--first-text-color); }
.cbx-head p { color: var(--cbx-muted); font-size: 17px; margin: 0; }
.cbx-head--left { text-align: left; }
.cbx-head a, .cbx-faq a { color: var(--cbx-accent); }
.cbx-eyebrow { display: inline-block; color: var(--cbx-accent); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.cbx-btn { display: inline-flex; align-items: center; justify-content: center; background: #fff; color: #000 !important; border-radius: 999px; padding: 13px 30px; font-weight: 700; font-size: 15px; transition: transform .15s ease, box-shadow .2s ease, background .2s ease; }
.cbx-btn:hover { background: var(--cbx-accent); color: #fff !important; transform: translateY(-1px); box-shadow: 0 8px 28px rgba(46,163,255,.45); }
body:not(.dark) .cbx-btn { background: #000; color: #fff !important; }

/* Highlights strip */
.cbx-stats { padding: 0 0 24px; }
.cbx-stats__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border-line-color); border: 1px solid var(--border-line-color); border-radius: 20px; overflow: hidden; }
.cbx-stat { background: var(--dark-body-color, #000); padding: 28px 24px; display: flex; flex-direction: column; gap: 6px; transition: background .2s ease; }
body:not(.dark) .cbx-stat { background: #fff; }
.cbx-stat:hover { background: var(--cbx-surface-2); }
body:not(.dark) .cbx-stat:hover { background: #f5f7fa; }
.cbx-stat b { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; background: linear-gradient(90deg, #fff, var(--cbx-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
body:not(.dark) .cbx-stat b { background: linear-gradient(90deg, #000, var(--cbx-accent-2)); -webkit-background-clip: text; background-clip: text; }
.cbx-stat span { color: var(--cbx-muted); font-size: 14px; }

/* Trade like a pro */
.cbx-pro { padding: 110px 0; }
.cbx-pro__row { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.cbx-pro__text h2 { font-size: 52px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 18px; color: var(--first-text-color); }
.cbx-pro__text p { color: var(--cbx-muted); font-size: 17px; line-height: 1.6; margin: 0 0 24px; }
.cbx-checks { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 14px; }
.cbx-checks li { position: relative; padding-left: 32px; color: var(--first-text-color); font-size: 15px; }
.cbx-checks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: rgba(46,163,255,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232ea3ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat; }
.cbx-pro__media { position: relative; }
.cbx-pro__media img { width: 100%; height: auto; position: relative; z-index: 1; filter: drop-shadow(0 30px 60px rgba(0,0,0,.6)); }
.cbx-glow { position: absolute; inset: 10% 5%; background: radial-gradient(closest-side, rgba(46,163,255,.35), transparent); filter: blur(40px); animation: cbx-pulse 6s ease-in-out infinite; }
.cbx-float { animation: cbx-float 7s ease-in-out infinite; }
@keyframes cbx-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes cbx-pulse { 0%,100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }

/* Feature cards */
.cbx-features { padding: 40px 0 110px; }
.cbx-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cbx-card { position: relative; padding: 32px 26px; border-radius: 20px; background: var(--cbx-surface); border: 1px solid var(--border-line-color); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; overflow: hidden; }
body:not(.dark) .cbx-card { background: #fff; }
.cbx-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(46,163,255,.7), transparent 45%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.cbx-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(46,163,255,.12); }
.cbx-card:hover::before { opacity: 1; }
.cbx-card__icon { display: inline-flex; width: 48px; height: 48px; border-radius: 14px; align-items: center; justify-content: center; background: rgba(46,163,255,.12); color: var(--cbx-accent); margin-bottom: 22px; }
.cbx-card__icon svg { width: 24px; height: 24px; }
.cbx-card h4 { font-size: 19px; font-weight: 700; margin: 0 0 10px; color: var(--first-text-color); }
.cbx-card p { color: var(--cbx-muted); font-size: 14.5px; line-height: 1.6; margin: 0; }
.cbx-reveal .cbx-card { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1), border-color .25s ease, box-shadow .25s ease; }
.cbx-reveal.cbx-in .cbx-card { opacity: 1; transform: none; }
.cbx-reveal.cbx-in .cbx-card:nth-child(2) { transition-delay: .1s; }
.cbx-reveal.cbx-in .cbx-card:nth-child(3) { transition-delay: .2s; }
.cbx-reveal.cbx-in .cbx-card:nth-child(4) { transition-delay: .3s; }
.cbx-reveal.cbx-in .cbx-card:hover { transform: translateY(-6px); transition-delay: 0s; }

/* Steps */
.cbx-steps { padding: 20px 0 110px; }
.cbx-steps__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; }
.cbx-steps__row::before { content: ""; position: absolute; top: 28px; left: 16%; right: 16%; height: 2px; background: linear-gradient(90deg, transparent, var(--cbx-accent), transparent); transform: scaleX(0); transform-origin: left; transition: transform 1.4s cubic-bezier(.2,.7,.2,1) .2s; }
.cbx-reveal.cbx-in .cbx-steps__row::before { transform: scaleX(1); }
.cbx-step { text-align: center; position: relative; }
.cbx-step span { display: inline-flex; width: 56px; height: 56px; border-radius: 50%; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; color: #fff; background: linear-gradient(135deg, var(--cbx-accent), var(--cbx-accent-2)); box-shadow: 0 0 0 8px var(--dark-body-color, #000), 0 10px 30px rgba(46,163,255,.4); margin-bottom: 22px; position: relative; z-index: 1; }
body:not(.dark) .cbx-step span { box-shadow: 0 0 0 8px #fff, 0 10px 30px rgba(46,163,255,.3); }
.cbx-step h4 { font-size: 19px; font-weight: 700; margin: 0 0 8px; color: var(--first-text-color); }
.cbx-step p { color: var(--cbx-muted); font-size: 14.5px; margin: 0; }

/* FAQ */
.cbx-faq { padding: 20px 0 120px; }
.cbx-faq__row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.cbx-faq__list details { border-bottom: 1px solid var(--border-line-color); }
.cbx-faq__list summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 0; font-size: 18px; font-weight: 600; color: var(--first-text-color); position: relative; transition: color .2s ease; }
.cbx-faq__list summary::-webkit-details-marker { display: none; }
.cbx-faq__list summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 300; color: var(--cbx-muted); transition: transform .25s ease, color .25s ease; }
.cbx-faq__list details[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--cbx-accent); }
.cbx-faq__list summary:hover { color: var(--cbx-accent); }
.cbx-faq__list details p { color: var(--cbx-muted); font-size: 15.5px; line-height: 1.7; margin: 0 0 24px; animation: cbx-rise .35s ease both; }

/* Footer: black, clean, glowing CTA banner */
body.dark footer.section-footer { background: #000 !important; background-image: none !important; border-top: 1px solid var(--border-line-color); }
footer.section-footer .banner { position: relative; overflow: hidden; border-radius: 24px; padding: 48px !important; margin: 64px 0 56px !important; background: radial-gradient(80% 140% at 100% 0%, rgba(46,163,255,.35), transparent 60%), var(--cbx-surface) !important; border: 1px solid var(--border-line-color); }
body:not(.dark) footer.section-footer .banner { background: radial-gradient(80% 140% at 100% 0%, rgba(46,163,255,.25), transparent 60%), #f5f7fa !important; }
footer.section-footer .banner h2 { font-size: 36px !important; font-weight: 800 !important; letter-spacing: -0.03em; }
footer.section-footer .banner a { background: #fff !important; color: #000 !important; border: 0 !important; border-radius: 999px !important; padding: 13px 30px !important; font-weight: 700 !important; transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
footer.section-footer .banner a:hover { background: var(--cbx-accent) !important; color: #fff !important; box-shadow: 0 8px 28px rgba(46,163,255,.45); }
footer.section-footer h4 { color: var(--first-text-color) !important; font-weight: 600 !important; font-size: 15px !important; }
footer.section-footer ul a { color: var(--cbx-muted) !important; transition: color .15s ease; }
footer.section-footer ul a:hover { color: var(--first-text-color) !important; }
footer.section-footer .social-icon { transition: transform .2s ease; }
footer.section-footer .social-icon:hover { transform: translateY(-2px); }

/* Responsive */
@media (max-width: 1024px) {
    .cbx-cards { grid-template-columns: repeat(2, 1fr); }
    .cbx-pro__row, .cbx-faq__row { grid-template-columns: 1fr; gap: 40px; }
    .cbx-pro__text h2 { font-size: 40px; }
}
@media (max-width: 640px) {
    .cbx-stats__row { grid-template-columns: repeat(2, 1fr); }
    .cbx-cards, .cbx-steps__row { grid-template-columns: 1fr; }
    .cbx-steps__row::before { display: none; }
    .cbx-head h2 { font-size: 32px; }
    .cbx-pro { padding: 72px 0; }
    footer.section-footer .banner { padding: 32px 24px !important; }
    footer.section-footer .banner h2 { font-size: 28px !important; }
}
@media (prefers-reduced-motion: reduce) {
    .cbx-float, .cbx-glow { animation: none !important; }
    .cbx-reveal .cbx-card { opacity: 1; transform: none; }
}
