/* ==========================================================
   Vault CapFx — Site styles
   ========================================================== */

:root {
    --navy-950: #05080f;
    --navy-900: #0b1120;
    --navy-850: #101a30;
    --navy-800: #15213b;
    --navy-700: #15305a;
    --brand: #1e3a5f;

    --mint: #e2b65c;
    --mint-600: #b98a2f;
    --blue: #5b8cff;
    --gold: #e2b65c;
    --red: #ff5d73;

    --ink: #0b1a33;
    --ink-2: #33445f;
    --muted: #64748b;
    --line: #ebe5d9;
    --bg: #ffffff;
    --bg-soft: #f8f5ef;

    --on-dark: #e9eef7;
    --on-dark-muted: #9aabc6;
    --glass: rgba(255, 255, 255, .06);
    --glass-line: rgba(255, 255, 255, .12);

    --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Sora", var(--font);

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(11, 26, 51, .06), 0 2px 8px rgba(11, 26, 51, .04);
    --shadow: 0 10px 30px -10px rgba(11, 26, 51, .18);
    --shadow-lg: 0 30px 60px -20px rgba(4, 11, 25, .45);

    --header-h: 76px;
    --container: 1200px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 200;
    background: var(--mint); color: var(--navy-900); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 48px; padding: 0 24px; border-radius: 999px;
    font-weight: 600; font-size: 15px; white-space: nowrap;
    border: 1px solid transparent;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-lg { height: 56px; padding: 0 30px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary {
    background: linear-gradient(135deg, var(--mint) 0%, var(--mint-600) 100%);
    color: var(--navy-900);
    box-shadow: 0 10px 24px -10px rgba(226, 182, 92, .7);
}
.btn-primary:hover { box-shadow: 0 16px 32px -12px rgba(226, 182, 92, .85); }
.btn-dark { background: var(--navy-900); color: #fff; }
.btn-dark:hover { background: var(--brand); box-shadow: var(--shadow); }
.btn-glass { background: var(--glass); color: #fff; border-color: var(--glass-line); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .12); }
.btn-ghost { color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-outline { border-color: var(--glass-line); color: #fff; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--brand); margin-top: 14px; }
.link-arrow svg { transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

.icon-btn {
    width: 48px; height: 48px; border-radius: 50%;
    display: grid; place-items: center;
    border: 1px solid var(--line); background: #fff; color: var(--ink);
    transition: background .2s, color .2s, border-color .2s;
}
.icon-btn:hover { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }

/* ---------- Eyebrow / headings ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: var(--mint-600);
    padding: 6px 14px; border-radius: 999px;
    background: rgba(185, 138, 47, .1);
    margin-bottom: 18px;
}
.eyebrow--dark { color: var(--mint); background: rgba(226, 182, 92, .1); border: 1px solid rgba(226, 182, 92, .25); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(226, 182, 92, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(226, 182, 92, 0); } 100% { box-shadow: 0 0 0 0 rgba(226, 182, 92, 0); } }

.text-gradient {
    background: linear-gradient(90deg, var(--mint) 0%, #f3dca6 60%, var(--blue) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

.section { padding: 110px 0; }
.section h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
.section-head { margin-bottom: 56px; }
.section-head--center { text-align: center; max-width: 720px; margin-inline: auto; }
.section-head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.section-head--split > div:first-child { max-width: 600px; }
.section-head--split p { color: var(--muted); max-width: 380px; font-size: 17px; }

/* ---------- Header ---------- */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    height: var(--header-h);
    transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.is-scrolled {
    background: rgba(7, 18, 38, .82);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { flex-shrink: 0; position: relative; }
.brand-logo { height: 44px; width: auto; }
.brand-logo--dark { display: none; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
    position: relative; display: block;
    padding: 8px 12px; border-radius: 8px;
    font-size: 14.5px; font-weight: 500; color: var(--on-dark-muted);
    transition: color .2s, background .2s;
}
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.main-nav a.is-active { color: #fff; }
.main-nav a.is-active::after {
    content: ""; position: absolute; left: 50%; bottom: 0; width: 18px; height: 2px; margin-left: -9px;
    border-radius: 2px; background: var(--mint);
}
.header-actions { display: flex; align-items: center; gap: 8px; }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; position: relative; background: rgba(255, 255, 255, .08); }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: #fff; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--navy-900); padding: 16px 24px 32px; overflow-y: auto;
    animation: slideDown .3s var(--ease);
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.mobile-nav li a {
    display: block; padding: 16px 4px; font-size: 18px; font-weight: 600; color: var(--on-dark);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.mobile-nav li a.is-active { color: var(--mint); }
.mobile-nav-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
body.nav-open { overflow: hidden; }
body.nav-open .site-header { background: var(--navy-900); }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background: radial-gradient(1200px 600px at 80% -10%, #1a2747 0%, transparent 60%), var(--navy-900);
    color: var(--on-dark);
    padding: calc(var(--header-h) + 70px) 0 40px;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid {
    position: absolute; inset: 0;
    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: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.hero-glow--a { width: 460px; height: 460px; background: #e2b65c; left: -160px; top: 30%; opacity: .22; }
.hero-glow--b { width: 520px; height: 520px; background: #3f57c9; right: -140px; top: -120px; opacity: .3; }

.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.6vw, 68px); font-weight: 800; color: #fff; letter-spacing: -.03em; }
.hero-lead { margin-top: 22px; font-size: 18px; color: var(--on-dark-muted); max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .08); }
.hero-badges li { display: flex; align-items: center; gap: 12px; }
.hero-badge-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(226, 182, 92, .1); color: var(--mint); border: 1px solid rgba(226, 182, 92, .2); }
.hero-badge-icon svg { width: 20px; height: 20px; }
.hero-badges strong { display: block; font-size: 15px; color: #fff; }
.hero-badges small { display: block; font-size: 13px; color: var(--on-dark-muted); }

.hero-note { position: relative; margin-top: 40px; font-size: 12px; color: rgba(154, 171, 198, .6); }

/* Terminal widget */
.hero-visual { position: relative; }
.terminal {
    position: relative;
    background: linear-gradient(180deg, rgba(20, 40, 76, .85), rgba(10, 24, 48, .92));
    border: 1px solid var(--glass-line);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .08);
    backdrop-filter: blur(12px);
}
.is-up { color: #22c55e !important; }
.is-down { color: var(--red) !important; }

/* Live TradingView widgets */
.tv-widget { position: relative; width: 100%; }
.tv-widget .tradingview-widget-container__widget { min-height: 60px; }
.tv-widget iframe { display: block; }
.tradingview-widget-copyright { margin-top: 6px; font-size: 11.5px; text-align: right; }
.tradingview-widget-copyright a { color: var(--muted); }
.tradingview-widget-copyright a:hover { color: var(--brand); }
.tv-widget--hero .tradingview-widget-container__widget { min-height: 440px; }
.tv-widget--hero .tradingview-widget-copyright a,
.tv-widget--dark .tradingview-widget-copyright a { color: var(--on-dark-muted); }
.tv-widget--hero .tradingview-widget-copyright a:hover,
.tv-widget--dark .tradingview-widget-copyright a:hover { color: #fff; }

.terminal--live { padding: 16px 14px 12px; }
.terminal-live-head { display: flex; align-items: center; gap: 8px; padding: 2px 6px 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-muted); }

.float-chip {
    position: absolute; display: flex; align-items: center; gap: 10px;
    padding: 12px 16px 12px 12px; border-radius: 14px;
    background: rgba(255, 255, 255, .96); color: var(--ink);
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}
.float-chip strong { display: block; font-size: 13.5px; }
.float-chip small { display: block; font-size: 12px; color: var(--muted); }
.float-chip--a { left: -56px; bottom: -28px; }
.float-chip--b { right: -36px; top: -34px; animation-delay: -3s; }
.chip-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #e9efff; color: var(--blue); }
.chip-icon svg { width: 18px; height: 18px; }
.chip-icon--up { background: #faf0dc; color: var(--mint-600); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Ticker ---------- */
.ticker { background: linear-gradient(90deg, var(--mint) 0%, #f1d394 50%, #c9963c 100%); color: var(--navy-900); overflow: hidden; }
.ticker--live { padding: 4px 0; min-height: 54px; }
.ticker--live .tradingview-widget-container__widget { min-height: 46px; }

/* ---------- Stats ---------- */
.stats { padding: 64px 0; border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 8px 16px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: -12px; top: 15%; bottom: 15%; width: 1px; background: var(--line); }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(34px, 4vw, 48px); font-weight: 800; color: var(--navy-900); letter-spacing: -.03em; line-height: 1.1; }
.stat > span { color: var(--muted); font-size: 15px; }

/* ---------- Markets ---------- */
.markets { background: var(--bg-soft); }
.markets-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.markets-tabs { display: flex; gap: 6px; padding: 10px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.markets-tabs::-webkit-scrollbar { display: none; }
.markets-tabs button {
    flex: 1 0 auto; padding: 12px 22px; border-radius: 12px;
    font-weight: 600; font-size: 15px; color: var(--muted);
    transition: background .2s, color .2s;
}
.markets-tabs button:hover { color: var(--ink); background: var(--bg-soft); }
.markets-tabs button.is-active { background: var(--navy-900); color: #fff; }
.markets-body { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; padding: 44px; animation: fadeIn .4s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.markets-info h3 { font-size: 28px; font-weight: 800; }
.markets-info p { color: var(--muted); margin: 16px 0 28px; font-size: 16.5px; }

.quotes { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.quotes--live { padding: 8px 10px 10px; min-width: 0; }
.quotes--live .tradingview-widget-container__widget { min-height: 330px; }

/* ---------- Why ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card {
    position: relative; padding: 32px 28px; border-radius: var(--radius-lg);
    background: #fff; border: 1px solid var(--line);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
    overflow: hidden;
}
.feature-card::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
    background: linear-gradient(90deg, var(--mint), var(--blue));
    transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
    width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--navy-800), var(--brand)); color: var(--mint);
    margin-bottom: 24px; box-shadow: 0 10px 20px -10px rgba(13, 31, 61, .6);
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 15px; }

/* ---------- About ---------- */
.about { background: var(--bg-soft); }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-visual { position: relative; padding: 24px 0 40px 24px; }
.about-visual::before {
    content: ""; position: absolute; inset: 0 40px 0 0; border-radius: 32px;
    background: linear-gradient(135deg, var(--navy-900), var(--brand));
}
.about-card {
    position: relative; margin: 40px 0 0 40px; padding: 28px;
    border-radius: var(--radius-lg); background: rgba(255, 255, 255, .06);
    border: 1px solid var(--glass-line); color: #fff; backdrop-filter: blur(6px);
}
.about-card-top { display: flex; justify-content: space-between; font-weight: 600; font-size: 15px; }
.about-card-top .is-up { font-size: 13px; }
.about-bars { display: flex; align-items: flex-end; gap: 10px; height: 180px; margin: 24px 0; }
.about-bars span {
    flex: 1; height: var(--h); border-radius: 8px 8px 3px 3px;
    background: linear-gradient(180deg, var(--mint), rgba(226, 182, 92, .15));
    transform-origin: bottom; transform: scaleY(0); transition: transform .9s var(--ease);
}
.about-bars span:nth-child(even) { background: linear-gradient(180deg, #c9963c, rgba(91, 140, 255, .15)); }
.is-visible .about-bars span { transform: scaleY(1); }
.about-bars span:nth-child(2) { transition-delay: .06s; } .about-bars span:nth-child(3) { transition-delay: .12s; }
.about-bars span:nth-child(4) { transition-delay: .18s; } .about-bars span:nth-child(5) { transition-delay: .24s; }
.about-bars span:nth-child(6) { transition-delay: .30s; } .about-bars span:nth-child(7) { transition-delay: .36s; }
.about-bars span:nth-child(8) { transition-delay: .42s; }
.about-alloc { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--on-dark-muted); }
.about-alloc li { display: flex; align-items: center; gap: 6px; }
.about-alloc i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.about-badge {
    position: absolute; right: 0; bottom: 0;
    background: #fff; border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow);
    display: flex; align-items: center; gap: 14px; max-width: 250px;
}
.about-badge strong { font-family: var(--font-display); font-size: 34px; font-weight: 800; color: var(--mint-600); line-height: 1; }
.about-badge span { font-size: 14px; color: var(--ink-2); font-weight: 500; line-height: 1.35; }

.about-copy p { color: var(--muted); font-size: 17px; margin: 20px 0 28px; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin-bottom: 36px; }
.check-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink-2); }
.check-list li > span { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(185, 138, 47, .14); color: var(--mint-600); }
.check-list svg { width: 14px; height: 14px; }

/* ---------- Steps ---------- */
.steps { background: var(--navy-900); color: var(--on-dark); position: relative; overflow: hidden; }
.steps::before { content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%; background: #3f57c9; filter: blur(140px); opacity: .18; left: 50%; top: -300px; transform: translateX(-50%); }
.steps .container { position: relative; }
.steps h2 { color: #fff; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step {
    position: relative; padding: 36px 32px; border-radius: var(--radius-lg);
    background: var(--glass); border: 1px solid var(--glass-line);
    transition: background .3s, transform .35s var(--ease);
}
.step:hover { background: rgba(255, 255, 255, .09); transform: translateY(-4px); }
.step:not(:last-child)::after {
    content: ""; position: absolute; top: 58px; right: -24px; width: 24px; height: 2px;
    background: linear-gradient(90deg, var(--mint), transparent);
}
.step-num { display: inline-block; font-family: var(--font-display); font-size: 44px; font-weight: 800; line-height: 1; background: linear-gradient(180deg, var(--mint), rgba(226, 182, 92, .2)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 20px; }
.step h3 { color: #fff; font-size: 21px; margin-bottom: 10px; }
.step p { color: var(--on-dark-muted); font-size: 15.5px; }
.steps-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 52px; }

/* ---------- Testimonials ---------- */
.slider-nav { display: flex; gap: 10px; }
.slider {
    display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3);
    gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    scrollbar-width: none; padding-bottom: 8px;
}
.slider::-webkit-scrollbar { display: none; }
.testimonial {
    margin: 0; scroll-snap-align: start;
    padding: 32px; border-radius: var(--radius-lg);
    background: #fff; border: 1px solid var(--line);
    display: flex; flex-direction: column; gap: 20px;
    transition: box-shadow .3s, border-color .3s;
}
.testimonial:hover { box-shadow: var(--shadow); border-color: transparent; }
.stars { color: var(--gold); letter-spacing: 3px; font-size: 18px; }
.testimonial blockquote { margin: 0; font-size: 16.5px; color: var(--ink-2); flex: 1; }
.testimonial figcaption { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--brand), var(--navy-900)); flex-shrink: 0; }
.testimonial strong { display: block; }
.testimonial small { color: var(--muted); font-size: 14px; }

/* ---------- FAQ ---------- */
.faq { background: var(--bg-soft); }
.faq-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
.faq-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-intro p { color: var(--muted); margin: 18px 0 30px; font-size: 17px; }
.accordion { display: grid; gap: 12px; }
.acc-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .3s, border-color .3s; }
.acc-item.is-open { box-shadow: var(--shadow-sm); border-color: rgba(185, 138, 47, .4); }
.acc-item h3 { font-size: inherit; letter-spacing: 0; }
.acc-trigger {
    width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px;
    padding: 20px 24px; text-align: left; font-family: var(--font); font-weight: 600; font-size: 16.5px; color: var(--ink);
}
.acc-icon { position: relative; width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: var(--bg-soft); transition: background .3s, transform .3s var(--ease); }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease), background .3s; }
.acc-icon::after { transform: rotate(90deg); }
.is-open .acc-icon { background: var(--navy-900); transform: rotate(180deg); }
.is-open .acc-icon::before, .is-open .acc-icon::after { background: var(--mint); }
.is-open .acc-icon::after { transform: rotate(0deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.acc-panel > div { overflow: hidden; }
.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel p { padding: 0 24px 22px; color: var(--muted); }

/* ---------- CTA / Contact ---------- */
.contact { padding-top: 110px; }
.cta-band {
    position: relative; overflow: hidden;
    display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
    padding: 64px; border-radius: 32px;
    background: radial-gradient(600px 400px at 0% 0%, rgba(226, 182, 92, .22), transparent 60%),
                radial-gradient(600px 400px at 100% 100%, rgba(91, 140, 255, .3), transparent 60%),
                var(--navy-900);
    color: var(--on-dark);
}
.cta-copy h2 { color: #fff; font-size: clamp(32px, 4vw, 50px); }
.cta-copy p { margin: 18px 0 32px; color: var(--on-dark-muted); font-size: 18px; max-width: 460px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.contact-form { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-lg); display: grid; gap: 16px; }
.contact-form h3 { font-size: 22px; margin-bottom: 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field small { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
    width: 100%; padding: 13px 16px; border-radius: 12px;
    border: 1px solid var(--line); background: var(--bg-soft);
    transition: border-color .2s, box-shadow .2s, background .2s; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #9aa7ba; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--mint-600); background: #fff; box-shadow: 0 0 0 4px rgba(185, 138, 47, .15); }
.field.has-error input, .field.has-error textarea { border-color: var(--red); }
.field-error { font-style: normal; font-size: 13px; color: #d93a50; }
.form-alert { padding: 12px 16px; border-radius: 12px; font-size: 14.5px; font-weight: 500; }
.form-alert--success { background: #faf0dc; color: #8a5f12; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--on-dark-muted); padding: 90px 0 0; }
.footer-mail { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; color: #fff; font-weight: 500; font-size: 15px; transition: color .2s; }
.footer-mail:hover { color: var(--mint); }
.footer-brand .btn { display: flex; width: max-content; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; padding-bottom: 56px; }
.footer-brand img { height: 52px; width: auto; }
.footer-brand p { margin: 20px 0 24px; font-size: 15px; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 20px; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { font-size: 14.5px; transition: color .2s, padding .2s; }
.footer-col a:hover { color: var(--mint); padding-left: 4px; }
.footer-risk { padding: 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); font-size: 13.5px; line-height: 1.7; }
.footer-risk strong { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 28px 0; font-size: 14px; }
.footer-bottom ul { display: flex; gap: 24px; }
.footer-bottom a:hover { color: var(--mint); }

/* ==========================================================
   Inner pages
   ========================================================== */
.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; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 90px 0; }

/* Page hero */
.page-hero {
    position: relative; overflow: hidden; text-align: center;
    background: radial-gradient(1000px 500px at 80% -20%, #1a2747 0%, transparent 60%), var(--navy-900);
    color: var(--on-dark);
    padding: calc(var(--header-h) + 80px) 0 90px;
}
.page-hero-inner { position: relative; max-width: 820px; }
.page-hero h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; color: #fff; letter-spacing: -.03em; }
.page-hero p { margin: 18px auto 0; max-width: 620px; font-size: 18px; color: var(--on-dark-muted); }
.breadcrumb { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 6px 16px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); font-size: 13.5px; color: var(--on-dark-muted); }
.breadcrumb a:hover { color: var(--mint); }
.breadcrumb [aria-current] { color: var(--mint); font-weight: 600; }

/* Split media/text */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split-media { position: relative; }
.split-media img { width: 100%; height: auto; border-radius: 28px; object-fit: cover; box-shadow: var(--shadow); aspect-ratio: 1 / 1; }
.split-media::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; border-radius: 28px; background: linear-gradient(135deg, rgba(226, 182, 92, .25), rgba(91, 140, 255, .25)); z-index: -1; }
.split { position: relative; z-index: 0; }
.media-badge { position: absolute; left: -24px; bottom: 32px; display: flex; align-items: center; gap: 12px; padding: 14px 18px 14px 14px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); max-width: 320px; }
.media-badge-icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--navy-900); color: var(--mint); }
.media-badge strong { display: block; font-size: 15px; }
.media-badge small { display: block; font-size: 12.5px; color: var(--muted); }
.prose p { color: var(--muted); font-size: 16.5px; margin-top: 16px; }
.prose h2 + p { margin-top: 20px; }
.prose .btn { margin-top: 32px; }
.info-chip { display: inline-flex; align-items: center; gap: 14px; margin-top: 30px; padding: 12px 22px 12px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; transition: border-color .2s, box-shadow .2s; }
.info-chip:hover { border-color: var(--mint-600); box-shadow: var(--shadow-sm); }
.info-chip > span:first-child { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(185, 138, 47, .12); color: var(--mint-600); }
.info-chip small { display: block; font-size: 12px; color: var(--muted); }
.info-chip strong { display: block; font-size: 15px; }

.feature-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* Markets page */
.market-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.market-card {
    position: relative; display: flex; flex-direction: column; padding: 32px 28px; border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #fff, var(--bg-soft)); border: 1px solid var(--line);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.market-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.market-card-icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 22px; background: linear-gradient(135deg, var(--mint), #f3dca6); color: var(--navy-900); }
.market-card h3 { font-size: 22px; margin-bottom: 10px; }
.market-card p { color: var(--muted); font-size: 15px; flex: 1; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 6px; }
.tag-list li { padding: 4px 10px; border-radius: 999px; background: #eaf0fb; color: var(--brand); font-size: 12.5px; font-weight: 600; }

/* Products */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-soft); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7, 18, 38, .35)); }
.product-card:hover .product-media img { transform: scale(1.06); }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 26px 26px 24px; }
.product-body h3 { font-size: 20px; margin-bottom: 8px; }
.product-body p { color: var(--muted); font-size: 15px; flex: 1; }

/* FAQ page */
.faq-search { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding: 0 20px; height: 56px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; color: var(--muted); transition: border-color .2s, box-shadow .2s; }
.faq-search:focus-within { border-color: var(--mint-600); box-shadow: 0 0 0 4px rgba(185, 138, 47, .15); }
.faq-search input { flex: 1; border: 0; outline: 0; background: transparent; height: 100%; font-size: 16px; color: var(--ink); }
.faq-empty { padding: 24px; text-align: center; color: var(--muted); }
.faq-empty a { color: var(--mint-600); font-weight: 600; }
.help-card { margin-top: 8px; padding: 28px; border-radius: var(--radius-lg); background: var(--navy-900); color: var(--on-dark-muted); }
.help-card-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(226, 182, 92, .12); color: var(--mint); margin-bottom: 18px; }
.help-card h3 { color: #fff; font-size: 20px; }
.help-card p { margin: 8px 0 14px !important; font-size: 15px !important; color: var(--on-dark-muted) !important; }
.help-mail { display: block; color: var(--mint); font-weight: 600; margin-bottom: 20px; word-break: break-all; }

/* Career */
.apply-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
.apply-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.apply-intro p { color: var(--muted); font-size: 17px; margin: 18px 0 28px; }
.check-list--single { grid-template-columns: 1fr; }
.apply-form { border: 1px solid var(--line); box-shadow: var(--shadow); }
.file-drop { position: relative; display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: 14px; border: 1.5px dashed #c9d3e2; background: var(--bg-soft); cursor: pointer; transition: border-color .2s, background .2s; }
.file-drop:hover, .file-drop.is-drag { border-color: var(--mint-600); background: #effcf7; }
.file-drop.has-file { border-style: solid; border-color: var(--mint-600); background: #effcf7; }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop-icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--mint-600); box-shadow: var(--shadow-sm); }
.file-drop-text { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; word-break: break-word; }
.file-drop-text small { color: var(--muted); }
.field.has-error .file-drop { border-color: var(--red); }

/* Contact */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; }
.contact-info > p { color: var(--muted); font-size: 17px; margin: 18px 0 32px; }
.info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.info-card { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: border-color .2s, box-shadow .2s, transform .3s var(--ease); min-width: 0; }
.info-card:first-child { grid-column: 1 / -1; }
.info-card:hover { border-color: var(--mint-600); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.info-card-icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--navy-900); color: var(--mint); }
.info-card > span:last-child { min-width: 0; }
.info-card small { display: block; font-size: 12.5px; color: var(--muted); }
.info-card strong { display: block; font-size: 14.5px; overflow-wrap: anywhere; }
.contact-form-wrap .contact-form { border: 1px solid var(--line); box-shadow: var(--shadow); }

/* Simple CTA band */
.cta-band--simple { grid-template-columns: 1.3fr auto; }
.cta-band--simple .cta-copy p { margin-bottom: 0; }

/* ---------- Back to top ---------- */
.to-top {
    position: fixed; right: 24px; bottom: 24px; z-index: 90;
    width: 48px; height: 48px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--mint); color: var(--navy-900); box-shadow: 0 10px 24px -8px rgba(226, 182, 92, .7);
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity .3s, transform .3s var(--ease), visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- Reveal ---------- */
/* Content is hidden only once JS has confirmed it is running (html.js) */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1180px) {
    .main-nav a { padding: 8px 9px; font-size: 14px; }
    .float-chip--a { left: -12px; }
    .float-chip--b { right: 0; }
}

@media (max-width: 1080px) {
    .main-nav, .header-actions .btn { display: none; }
    .nav-toggle { display: block; }
    .header-actions { margin-left: auto; }

    .hero-inner { grid-template-columns: 1fr; gap: 56px; }
    .hero-copy { text-align: center; }
    .hero-lead { margin-inline: auto; }
    .hero-cta, .hero-badges { justify-content: center; }
    .hero-visual { max-width: 560px; margin-inline: auto; width: 100%; }

    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .markets-body { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
    .about-inner, .faq-inner, .cta-band { grid-template-columns: 1fr; gap: 48px; }
    .faq-intro { position: static; }
    .about-visual { max-width: 560px; }
    .slider { grid-auto-columns: calc((100% - 24px) / 2); }
    .footer-top { grid-template-columns: repeat(2, 1fr); }
    .footer-brand { grid-column: 1 / -1; }

    .split, .apply-wrap, .contact-wrap { grid-template-columns: 1fr; gap: 56px; }
    .split-media { max-width: 600px; }
    .apply-intro { position: static; }
    .feature-grid--3, .market-cards, .product-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-band--simple { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 768px) {
    :root { --header-h: 68px; }
    .container { padding-inline: 16px; }
    .brand-logo { height: 38px; }
    .section { padding: 80px 0; }
    .section-head { margin-bottom: 40px; }
    .section-head--split { flex-direction: column; align-items: flex-start; gap: 16px; }

    .hero { padding-top: calc(var(--header-h) + 48px); }
    .hero-lead { font-size: 16.5px; }
    .hero-badges { gap: 16px; }
    .hero-badges li { flex: 1 1 100%; justify-content: center; }
    .float-chip { display: none; }
    .terminal--live { padding: 12px 8px 10px; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
    .stat:nth-child(3)::before { display: none; }

    .markets-body { padding: 24px 16px; }
    .hide-sm { display: none; }

    .steps-grid { grid-template-columns: 1fr; }
    .step:not(:last-child)::after { display: none; }

    .check-list { grid-template-columns: 1fr; }
    .about-card { margin: 24px 0 0 16px; padding: 20px; }
    .about-bars { height: 140px; }

    .slider { grid-auto-columns: 88%; gap: 16px; }
    .testimonial { padding: 24px; }

    .cta-band { padding: 36px 20px; border-radius: 24px; }
    .contact-form { padding: 24px 18px; }
    .field-row { grid-template-columns: 1fr; }

    .site-footer { padding-top: 64px; }
    .section--tight { padding: 64px 0; }
    .page-hero { padding: calc(var(--header-h) + 48px) 0 64px; }
    .page-hero p { font-size: 16.5px; }
    .feature-grid, .feature-grid--3, .market-cards, .product-grid, .info-cards { grid-template-columns: 1fr; }
    .media-badge { left: 12px; right: 12px; bottom: 16px; max-width: none; }
    .split-media::before { inset: 14px -10px -14px 10px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .to-top { right: 16px; bottom: 16px; }
}

@media (max-width: 480px) {
    .hero-cta .btn { width: 100%; }
    .cta-actions .btn, .steps-cta .btn { flex: 1 1 100%; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
    .markets-tabs button { padding: 10px 16px; font-size: 14px; }
}

/* ==========================================================
   Auth (login / register)
   ========================================================== */
.auth-body { background: #fff; }
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: 100vh; min-height: 100dvh; }

/* Brand side */
.auth-aside {
    position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden;
    background: radial-gradient(900px 500px at 90% -10%, #1a2747 0%, transparent 60%), var(--navy-900);
    color: var(--on-dark);
}
.auth-aside-inner { position: relative; height: 100%; display: flex; flex-direction: column; gap: 36px; padding: 36px 56px 32px; overflow-y: auto; scrollbar-width: none; }
.auth-aside-inner::-webkit-scrollbar { display: none; }
.auth-aside-body { margin-block: auto; max-width: 520px; }
.auth-aside h1 { font-size: clamp(32px, 3.3vw, 46px); font-weight: 800; color: #fff; letter-spacing: -.03em; }
.auth-lead { margin-top: 16px; font-size: 17px; color: var(--on-dark-muted); max-width: 470px; }
.auth-risk { font-size: 12px; line-height: 1.6; color: rgba(154, 171, 198, .65); max-width: 520px; }
.auth-risk strong { color: var(--on-dark-muted); }

.auth-watch {
    margin-top: 32px; padding: 18px 22px 8px; border-radius: var(--radius-lg);
    background: #111a2e; /* matches the quote widget background */
    border: 1px solid var(--glass-line); box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.auth-watch-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 6px; }
.auth-watch-head strong { color: #fff; font-size: 15px; }
.auth-watch-head small { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--on-dark-muted); }
.auth-watch .tv-widget { margin-top: 6px; }
.auth-watch .tradingview-widget-container__widget { min-height: 360px; }

.auth-trust { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 28px; }
.auth-trust li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--on-dark); }
.auth-trust li > span { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(226, 182, 92, .1); color: var(--mint); border: 1px solid rgba(226, 182, 92, .2); }

.auth-steps { display: grid; gap: 4px; margin-top: 32px; }
.auth-steps li { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: center; padding: 10px 0; }
.auth-steps li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 54px; bottom: -10px; width: 2px; background: linear-gradient(180deg, rgba(226, 182, 92, .5), rgba(226, 182, 92, .05)); }
.auth-step-num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; color: var(--navy-900); background: linear-gradient(135deg, var(--mint), #f3dca6); box-shadow: 0 0 0 6px rgba(226, 182, 92, .1); }
.auth-steps strong { display: block; color: #fff; font-size: 16px; }
.auth-steps small { display: block; color: var(--on-dark-muted); font-size: 14px; }

.auth-quote { margin: 32px 0 0; padding: 22px 24px; border-radius: var(--radius-lg); background: var(--glass); border: 1px solid var(--glass-line); }
.auth-quote .stars { font-size: 15px; }
.auth-quote blockquote { margin: 10px 0 16px; font-size: 15px; color: var(--on-dark); line-height: 1.65; }
.auth-quote figcaption { display: flex; align-items: center; gap: 12px; }
.auth-quote .avatar { width: 38px; height: 38px; font-size: 14px; background: linear-gradient(135deg, var(--mint-600), var(--blue)); }
.auth-quote strong { display: block; color: #fff; font-size: 14px; }
.auth-quote small { display: block; color: var(--on-dark-muted); font-size: 13px; }

/* Form side */
.auth-main { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; padding: 28px 48px 24px; background: #fff; }
.auth-topbar { display: flex; align-items: center; gap: 16px; }
.auth-topbar-logo { display: none; }
.auth-topbar-logo img { height: 40px; width: auto; }
.auth-back, .auth-help { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; color: var(--muted); padding: 8px 12px; margin: -8px -12px; border-radius: 10px; transition: color .2s, background .2s; }
.auth-back:hover, .auth-help:hover { color: var(--ink); background: var(--bg-soft); }
.auth-back svg { transition: transform .25s var(--ease); }
.auth-back:hover svg { transform: translateX(-3px); }
.auth-help { margin-left: auto; }

.auth-card-wrap { flex: 1; display: grid; place-items: center; padding: 40px 0; }
.auth-card { width: 100%; max-width: 440px; animation: fadeIn .5s var(--ease); }

.auth-switch { display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--line); }
.auth-switch a { text-align: center; padding: 10px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: var(--muted); transition: color .2s, background .2s, box-shadow .2s; }
.auth-switch a:hover { color: var(--ink); }
.auth-switch a.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

.auth-head { margin: 32px 0 24px; }
.auth-head h2 { font-size: clamp(26px, 3vw, 32px); font-weight: 800; }
.auth-head p { margin-top: 8px; color: var(--muted); font-size: 16px; }
.auth-card > .form-alert { margin-bottom: 20px; }

.auth-form { display: grid; gap: 20px; }
.field-label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field-link { font-size: 13.5px; font-weight: 600; color: var(--mint-600); }
.field-link:hover { text-decoration: underline; }

.input-wrap { position: relative; }
.input-wrap > svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #94a3b8; pointer-events: none; transition: color .2s; }
.input-wrap:focus-within > svg { color: var(--mint-600); }
.field .input-wrap input { height: 52px; padding: 0 16px 0 46px; font-size: 15.5px; }
.field .input-wrap:has(.pw-toggle) input { padding-right: 52px; }
.field.has-error .input-wrap > svg { color: var(--red); }
.field.has-error input:focus { box-shadow: 0 0 0 4px rgba(255, 93, 115, .15); border-color: var(--red); }
.field-error a { color: inherit; font-weight: 700; text-decoration: underline; }

.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); transition: color .2s, background .2s; }
.pw-toggle:hover { color: var(--ink); background: rgba(11, 26, 51, .05); }
.pw-toggle .pw-hide, .pw-toggle[aria-pressed="true"] .pw-show { display: none; }
.pw-toggle[aria-pressed="true"] .pw-hide { display: block; }

.caps-hint, .match-hint { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
.caps-hint { color: #b7791f; }
.match-hint.is-ok { color: var(--mint-600); }
.match-hint.is-bad { color: #d93a50; }

.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 4px; }
.pw-meter span { height: 4px; border-radius: 4px; background: var(--line); transition: background .3s; }
.pw-meter[data-score="1"] span:nth-child(-n+1) { background: var(--red); }
.pw-meter[data-score="2"] span:nth-child(-n+2) { background: var(--gold); }
.pw-meter[data-score="3"] span:nth-child(-n+3) { background: #f3dca6; }
.pw-meter[data-score="4"] span { background: var(--mint-600); }
.pw-rules { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.pw-rules li { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); transition: color .2s; }
.pw-rules li::before { content: ""; width: 16px; height: 16px; box-sizing: border-box; border-radius: 50%; border: 1.5px solid #c9d3e2; transition: background .2s, border-color .2s; }
.pw-rules li.is-met { color: var(--mint-600); }
.pw-rules li.is-met::before { border-color: var(--mint-600); background: var(--mint-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 10px no-repeat; }

.check { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; color: var(--ink-2); cursor: pointer; line-height: 1.5; }
.check input {
    appearance: none; -webkit-appearance: none; flex-shrink: 0; margin: 1px 0 0;
    width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #c9d3e2; background: #fff; cursor: pointer;
    transition: background .2s, border-color .2s, box-shadow .2s;
}
.field .check input { width: 20px; height: 20px; padding: 0; border-radius: 6px; border: 1.5px solid #c9d3e2; background-color: #fff; }
.check input:hover { border-color: var(--mint-600); }
.check input:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(185, 138, 47, .2); border-color: var(--mint-600); }
.check input:checked { border-color: var(--mint-600); background: var(--mint-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.check a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.field.has-error .check input { border-color: var(--red); }

.auth-form .btn-lg { margin-top: 4px; border-radius: 14px; }
.btn .spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading .btn-icon { display: none; }
.btn-icon { display: inline-flex; }
@keyframes spin { to { transform: rotate(360deg); } }

.auth-alt { margin-top: 24px; text-align: center; color: var(--muted); font-size: 15px; }
.auth-alt a { color: var(--brand); font-weight: 700; }
.auth-alt a:hover { color: var(--mint-600); }
.auth-note { display: flex; align-items: center; gap: 10px; margin-top: 28px; padding: 14px 16px; border-radius: 12px; background: var(--bg-soft); color: var(--muted); font-size: 13.5px; }
.auth-note svg { flex-shrink: 0; color: var(--mint-600); }

.auth-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; font-size: 13px; color: var(--muted); }
.auth-foot a:hover { color: var(--ink); }

/* Header: signed-in state */
.header-user { display: inline-flex; align-items: center; gap: 10px; padding: 4px 14px 4px 4px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--glass-line); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; }
.header-user .avatar, .mobile-user .avatar { width: 32px; height: 32px; font-size: 13px; color: var(--navy-900); background: linear-gradient(135deg, var(--mint), #f3dca6); }
.header-actions form, .mobile-nav-actions form { display: contents; }
.mobile-user { display: flex; align-items: center; gap: 12px; margin-top: 24px; color: #fff; font-weight: 600; }
.mobile-user .avatar { width: 40px; height: 40px; }

/* Toast */
.toast {
    position: fixed; top: calc(var(--header-h) + 16px); right: 24px; z-index: 150;
    display: flex; align-items: center; gap: 12px; max-width: min(420px, calc(100vw - 32px));
    padding: 12px 12px 12px 14px; border-radius: var(--radius); background: #fff; color: var(--ink);
    box-shadow: var(--shadow-lg); border: 1px solid var(--line); font-size: 14.5px; font-weight: 500;
    animation: toastIn .45s var(--ease);
}
.toast-icon { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: #faf0dc; color: var(--mint-600); }
.toast-close { width: 32px; height: 32px; flex-shrink: 0; border-radius: 8px; display: grid; place-items: center; color: var(--muted); }
.toast-close:hover { background: var(--bg-soft); color: var(--ink); }
.toast.is-leaving { opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .3s var(--ease); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

@media (max-width: 1180px) {
    .auth-aside-inner { padding: 32px 40px 28px; }
    .auth-main { padding: 28px 36px 24px; }
}
@media (max-width: 1080px) {
    .header-actions .header-user { display: none; }
}
@media (max-width: 960px) {
    .auth { grid-template-columns: 1fr; }
    .auth-aside { display: none; }
    .auth-main { padding: 16px 16px 20px; }
    .auth-topbar { min-height: 48px; }
    .auth-topbar-logo { display: block; }
    .auth-back { margin-left: auto; }
    .auth-help { display: none; }
    .auth-card-wrap { place-items: start center; padding: 28px 0 36px; }
    .auth-head { margin: 28px 0 20px; }
}
@media (max-width: 480px) {
    .auth-back span { display: none; }
    .auth-back { padding: 10px; margin: 0; }
    .field .input-wrap input { font-size: 16px; } /* avoids iOS zoom on focus */
    .toast { right: 16px; left: 16px; max-width: none; }
}

/* ==========================================================
   Theme: "Midnight Navy & Gold"
   Layer on top of the base styles above — layout and behaviour unchanged.
   ========================================================== */
body { background: #fffdf9; }
::selection { background: rgba(226, 182, 92, .35); color: var(--navy-900); }

/* Buttons: solid gold with navy text, crisp dark variants */
.btn { letter-spacing: .01em; font-weight: 700; }
.btn-primary { background: linear-gradient(180deg, #ecc777 0%, #d9a845 100%); color: #0b1120; border-color: rgba(185, 138, 47, .5); box-shadow: 0 10px 24px -12px rgba(185, 138, 47, .8), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-primary:hover { background: linear-gradient(180deg, #f1d189 0%, #e0b252 100%); }
.btn-dark { background: var(--navy-900); border-color: rgba(226, 182, 92, .35); }
.btn-outline, .btn-glass { border-color: rgba(226, 182, 92, .45); }
.btn-outline:hover, .btn-glass:hover { background: rgba(226, 182, 92, .12); }
.link-arrow { color: var(--mint-600); }

/* Headings: serif-free display with a small gold rule */
.section h2 { letter-spacing: -.035em; }
.section-head .eyebrow, .eyebrow { border: 1px solid rgba(185, 138, 47, .25); }
.section-head--center h2::after { content: ""; display: block; width: 56px; height: 3px; margin: 18px auto 0; border-radius: 3px; background: linear-gradient(90deg, #e2b65c, #c9963c); }
.text-gradient { background: linear-gradient(90deg, #f3dca6 0%, #e2b65c 45%, #c9963c 100%); -webkit-background-clip: text; background-clip: text; }

/* Header */
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(226, 182, 92, .18), 0 12px 30px -20px rgba(0, 0, 0, .6); }
.main-nav a.is-active, .main-nav a:hover { color: var(--mint) !important; }

/* Hero: deep navy with a warm gold glow instead of green/blue */
.hero { background: radial-gradient(1100px 560px at 85% -10%, #1d2b52 0%, transparent 60%), radial-gradient(700px 420px at 0% 100%, rgba(226, 182, 92, .12) 0%, transparent 70%), var(--navy-900); }
.hero-glow--a { opacity: .14; }
.hero-glow--b { opacity: .22; }
.hero h1 { letter-spacing: -.045em; }
.hero-badge-icon { border-radius: 50%; }
.terminal { border-color: rgba(226, 182, 92, .22); background: linear-gradient(180deg, rgba(22, 33, 62, .9), rgba(9, 15, 30, .94)); }

/* Ticker: gold band */
.ticker { background: linear-gradient(90deg, #f1d394 0%, #e2b65c 50%, #c9963c 100%); }

/* Cards: softer, warmer, slightly squarer */
.feature-card, .market-card, .product-card, .testimonial, .acc-item, .markets-panel, .contact-form, .info-chip, .faq-search { border-color: var(--line); }
.feature-card, .market-card, .testimonial { border-radius: 20px; }
.feature-card:hover, .market-card:hover, .product-card:hover { border-color: rgba(226, 182, 92, .55); box-shadow: 0 24px 48px -28px rgba(11, 17, 32, .35); }
.feature-icon, .market-card-icon { background: linear-gradient(135deg, #fbf1dc, #f3dca6); color: #8a5f12; }
.markets-tabs button.is-active { background: var(--navy-900); color: var(--mint); }
.stat strong { background: linear-gradient(180deg, var(--navy-900), #2a3a66); -webkit-background-clip: text; background-clip: text; color: transparent; }
.avatar { background: linear-gradient(135deg, #e2b65c, #b98a2f); color: #0b1120; }
.acc-item.is-open, .acc-item[open] { border-color: rgba(226, 182, 92, .6); }

/* Dark bands (steps, CTA, footer, page heroes) */
.steps { background: radial-gradient(800px 400px at 100% 0%, rgba(226, 182, 92, .1), transparent 60%), var(--navy-900); }
.step { border-color: rgba(226, 182, 92, .16) !important; }
.page-hero { background: radial-gradient(900px 480px at 85% -20%, #1d2b52 0%, transparent 60%), radial-gradient(600px 360px at 0% 120%, rgba(226, 182, 92, .14), transparent 70%), var(--navy-900) !important; }
.site-footer { border-top: 3px solid transparent; border-image: linear-gradient(90deg, transparent, #e2b65c, transparent) 1; }
.footer-mail:hover, .site-footer a:hover { color: var(--mint); }
.help-card { border: 1px solid rgba(226, 182, 92, .2); }
.media-badge-icon { color: var(--mint); }

/* Auth pages */
.auth-aside { background: radial-gradient(900px 500px at 90% -10%, #1d2b52 0%, transparent 60%), radial-gradient(600px 400px at 0% 110%, rgba(226, 182, 92, .14), transparent 70%), var(--navy-900); }
.auth-body { background: #fffdf9; }

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