@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root,
[data-bs-theme="dark"] {
  --spc-ink: #0A0A0C;
  --spc-graphite: #141419;
  --spc-slate: #1E1F26;
  --spc-line: #2A2B34;
  --spc-silver-1: #D9DCE3;
  --spc-silver-2: #9A9FAC;
  --spc-ember: #E0782E;
  --spc-text: #EEF0F4;
  --spc-muted: #A0A5B2;
  --spc-font: "Manrope", "Segoe UI", system-ui, sans-serif;
  --spc-mono: "IBM Plex Mono", Consolas, monospace;

  /* Bitrader theme variables mapped to the brand */
  --brand-color: var(--spc-silver-1);
  --secondary-color: var(--spc-ember);
  --tertiary-color: var(--spc-slate);
  --tertiary-color2: var(--spc-graphite);
  --tertiary-color3: var(--spc-graphite);
  --body-color: var(--spc-ink);
  --bg-color: var(--spc-graphite);
  --bg-color-2: var(--spc-graphite);
  --bg-color-3: var(--spc-slate);
  --bg-color-6: var(--spc-graphite);
  --bg-color-7: var(--spc-slate);
  --bg-white: var(--spc-graphite);
  --header-bg-color: var(--spc-ink);
  --header-bg-color2: var(--spc-ink);
  --footer-bg-color: #070709;
  --feature-bg-color: var(--spc-graphite);
  --title-color: var(--spc-text);
  --title-color-style2: var(--spc-text);
  --text-color: var(--spc-muted);
  --text-color-light: var(--spc-muted);
  --border-color: var(--spc-line);
  --header-border-color: var(--spc-line);
  --header-border-color2: var(--spc-line);
  /* Named "white" in the vendor's original light-first template, but its own dark theme maps this to a
     dark surface color (#1B2D29), not white -- it's a surface/panel-background role (same as --bg-white,
     already mapped to --spc-graphite below), not a text color. Mapping it to --spc-text (as this used to)
     made every element using it as a background paired with --title-color text of the exact same color --
     e.g. the mobile nav dropdown, which rendered with invisible white-on-white nav links as a result. */
  --wh-color: var(--spc-graphite);
  --black-color: var(--spc-text);
  --service-item-bg-color: var(--spc-graphite);
  --service-item-border-color: var(--spc-line);
  --faq-bg-color: var(--spc-graphite);
  --extra-bg-color: var(--spc-graphite);
  --section-bg-color: var(--spc-graphite);
  --sec-bg-color-2: var(--spc-ink);
  --account-bg-color: var(--spc-graphite);
  --account-bg-color2: var(--spc-slate);
  --bs-body-bg: var(--spc-ink);
  --bs-body-color: var(--spc-text);
}

/* light theme: same token names, inverted values -- everything mapped above picks this up automatically */
[data-bs-theme="light"] {
  --spc-ink: #F5F5F7;
  --spc-graphite: #FFFFFF;
  --spc-slate: #ECEDF0;
  --spc-line: #DFE1E6;
  --spc-silver-1: #23242B;
  --spc-silver-2: #53565F;
  --spc-text: #14151A;
  --spc-muted: #5B5F6B;
}

/* The header/footer logo (logo-lockup.svg) is a light-on-dark asset, so the header and footer chrome
   stay pinned dark regardless of site theme -- only the page content between them flips. Re-pinning the
   token values here (rather than the header/footer's own mapped variables) covers every descendant that
   reads var(--spc-*), including nav link color and the hamburger icon, with one rule. */
.header-section, .footer, .spc-consent {
  --spc-ink: #0A0A0C;
  --spc-graphite: #141419;
  --spc-slate: #1E1F26;
  --spc-line: #2A2B34;
  --spc-silver-1: #D9DCE3;
  --spc-silver-2: #9A9FAC;
  --spc-text: #EEF0F4;
  --spc-muted: #A0A5B2;
}
/* The template ships the header transparent by default (only .header-fixed on scroll gets an opaque
   background), relying on it happening to sit over dark content either way. That coincidence breaks once
   light mode makes the page behind it light -- give it its own solid background always. */
.header-section--style2 .header-bottom { background: var(--spc-ink); }

body {
  font-family: var(--spc-font);
  background: var(--spc-ink);
  color: var(--spc-text);
}

h1, h2, h3, h4, h5, h6, .trk-btn {
  font-family: var(--spc-font);
}

.num, .price, .ticker {
  font-family: var(--spc-mono);
  font-variant-numeric: tabular-nums;
}

/* smoke-silver gradient text for hero headlines */
.spc-smoke,
.banner__content-heading .spc-smoke {
  background: linear-gradient(120deg, var(--spc-silver-1), var(--spc-silver-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}

/* primary button: brushed silver, always -- the gradient background doesn't change with theme, so its
   text color is hardcoded rather than tied to --spc-ink (which does, and would go unreadable in light mode) */
.trk-btn--primary {
  background: linear-gradient(120deg, #EEF0F4, #B9BEC9);
  color: #0A0A0C !important;
  border-color: transparent;
}
.trk-btn--primary:hover {
  background: linear-gradient(120deg, #FFFFFF, #D9DCE3);
}
.trk-btn--border.trk-btn--primary {
  background: transparent;
  color: var(--spc-text) !important;
  border-color: var(--spc-line);
}
/* Same story as .trk-btn--primary above: the vendor template hardcodes this panel's text to a fixed dark
   navy (#0C263A, in style.css, not a token), which only reads correctly on a light panel -- but its
   background comes from --brand-color, i.e. --spc-silver-1, which flips dark in light mode for the hero
   heading's sake elsewhere. Pin the panel itself so the two stay compatible in both themes. */
.cta__newsletter-inner { background: linear-gradient(120deg, #EEF0F4, #B9BEC9) !important; }

/* hero atmosphere */
.banner--style1 {
  background:
    radial-gradient(70% 60% at 70% 20%, rgba(217, 220, 227, .10), transparent 60%),
    radial-gradient(40% 50% at 15% 90%, rgba(224, 120, 46, .10), transparent 60%),
    var(--spc-ink);
}
.banner__smoke {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: url("/vendor/brand/smoke-hero.jpg") center / cover no-repeat;
  opacity: .35;
  pointer-events: none;
}
.banner__smoke-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (prefers-reduced-motion: reduce) {
  /* the static background-image on .banner__smoke shows through instead */
  .banner__smoke-video { display: none; }
}
[data-bs-theme="light"] .banner__smoke { opacity: .18; }

/* template chrome we do not use */
.preloader, .lightdark-switch { display: none !important; }

/* Bitrader's --style2 header ships position:absolute (floats over a hero banner).
   Every inner page here uses it as a normal top bar, so pin it back into the
   document flow — otherwise page content starts at y:0 and the header floats
   on top of it, crowding page titles into the nav (only .header-fixed, added
   by site.js on scroll, should ever be position:fixed). */
.header-section--style2 {
  position: relative;
}

/* header: one row on desktop — logo · nav · language + login */
.header-section--style2 .header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 16px;
  padding-block: 18px;
}
.header-section--style2 .header-wrapper .logo { flex: 0 0 auto; width: 200px; }
.header-section--style2 .header-wrapper > .menu-area { flex: 1 1 auto; display: flex; justify-content: center; min-width: 0; }
.header-section--style2 .menu { column-gap: 2px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 992px) {
  .header-section--style2 .menu { display: flex; flex-wrap: nowrap; align-items: center; }
}
.header-section--style2 .menu > li > a { font-family: var(--spc-font); font-size: .95rem; font-weight: 500; padding: 12px 12px; white-space: nowrap; }
.header-section--style2 .menu > li > a:hover { color: var(--spc-silver-1); }
.header-section--style2 .header-action { flex: 0 0 auto; }
.header-section--style2 .header-action .menu-area { display: flex; align-items: center; gap: 14px; justify-content: flex-end; }
.header-section--style2 .header-action .header-btn .trk-btn { padding: 10px 18px; font-size: .9rem; white-space: nowrap; }
.lang-switch { margin: 0; }
@media (min-width: 1400px) {
  /* Bootstrap's .container caps out at 1170px from here on (doesn't keep growing on wider screens), so
     this tier's available width is fixed too -- the old 16px padding no longer leaves room for the theme
     toggle added to this same row, and overlaps the logo/header-action at every width from 1400px up,
     which covers most real desktop screens (1440/1536/1920...). Confirmed clear up to 1920px. */
  .header-section--style2 .menu > li > a { padding: 12px 4px; font-size: 1rem; }
}
@media (max-width: 1399px) {
  .header-section--style2 .menu > li > a { font-size: .9rem; padding: 12px 9px; }
}
@media (max-width: 1199px) {
  /* Adding the theme toggle to this row (46px incl. margin) tipped an already-tight tier into the nav
     overflowing its allotted space -- items don't wrap (white-space: nowrap), so past this point they
     visibly overlap the logo and header-action rather than shrinking further. Padding trimmed here to
     claw back more room than that toggle costs, confirmed clear across the whole 992-1199px tier. */
  .header-section--style2 .menu > li > a { font-size: .8rem; padding: 10px 3px; }
  .header-section--style2 .header-wrapper { gap: 10px; }
  .header-section--style2 .header-wrapper .logo { width: 160px; }
  .header-section--style2 .header-action .header-btn .trk-btn { padding: 8px 12px; font-size: .8rem; }
  .header-section--style2 .header-action .menu-area { gap: 6px; }
  .theme-toggle { width: 32px; height: 32px; margin-right: 6px; }
}
@media (max-width: 991px) {
  .header-section--style2 .header-wrapper { padding-block: 12px; }
  .header-section--style2 .header-action .header-btn { display: none; }
}
/* sticky header stays dark (template used the "white" token) */
.header-section.header-fixed,
.header-section--style2.header-fixed {
  background: rgba(10, 10, 12, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--spc-line);
}
/* back-to-top toggled by site.js */
.scrollToTop { opacity: 0; pointer-events: none; bottom: -30%; transition: opacity .3s, bottom .3s; }
.scrollToTop.is-visible { opacity: 1; pointer-events: auto; bottom: 7%; }
/* page section components */
.spc-hero-emblem { max-width: 380px; opacity: .92; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .6)); }
.spc-card .service__item-inner { padding: 0 0 22px; overflow: hidden; }
.spc-card__media { aspect-ratio: 3 / 2; overflow: hidden; margin-bottom: 18px; border-radius: 12px 12px 0 0; }
.spc-card__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.85); transition: transform .5s ease; }
.spc-card:hover .spc-card__media img { transform: scale(1.04); }
.spc-card .service__item-content { padding: 0 22px; }
.spc-panel { background: var(--spc-graphite); border: 1px solid var(--spc-line); border-radius: 16px; padding: 32px; }
.spc-panel h3 { margin: 6px 0 12px; }
.spc-panel p { color: var(--spc-muted); }
.spc-panel--ember { border-color: rgba(224, 120, 46, .35); background: linear-gradient(180deg, rgba(224, 120, 46, .08), var(--spc-graphite) 60%); }
.service__item--style1 { background: var(--spc-graphite); border: 1px solid var(--spc-line); border-radius: 14px; }
/* Bitrader's .service__item-inner has no explicit height, so when Bootstrap's
   h-100 stretches sibling cards to match the tallest one, a shorter card's
   inner bordered frame stays at its content height instead of filling the
   stretched outer box -- leaving a gap of bare outer background below the
   frame (most visible as an "open" corner). Stretch it to fill instead. */
.service__item--style1.h-100 { display: flex; flex-direction: column; }
.service__item--style1.h-100 .service__item-inner { flex: 1 1 auto; display: flex; }
.service__item--style1.h-100 .service__item-content { display: flex; flex-direction: column; width: 100%; }
.service__item--style1 h5 a { color: var(--spc-text); }
.service__item--style1 p { color: var(--spc-muted); }
.section-header h2 { color: var(--spc-text); }
.section-header p { color: var(--spc-muted); }

.spc-table { --bs-table-bg: transparent; color: var(--spc-text); border-color: var(--spc-line); }
.spc-table th { font-family: var(--spc-mono); font-size: 11.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--spc-muted); border-bottom: 1px solid var(--spc-line); }
.spc-table td { color: var(--spc-muted); border-bottom: 1px solid var(--spc-line); padding: 14px 12px; }
.spc-table td.num { color: var(--spc-silver-1); }
.spc-list { list-style: none; padding: 0; margin: 12px 0 0; }
.spc-list li { position: relative; padding: 8px 0 8px 22px; color: var(--spc-muted); border-bottom: 1px dashed var(--spc-line); }
.spc-list li::before { content: "—"; position: absolute; left: 0; color: var(--spc-ember); }
.spc-empty { border: 1px dashed var(--spc-line); border-radius: 14px; padding: 28px; text-align: center; color: var(--spc-muted); }
.spc-cnmv-warning, .spc-notice { margin-top: 20px; padding: 16px 18px; border-radius: 12px; background: var(--spc-graphite); border: 1px solid rgba(224, 120, 46, .45); color: var(--spc-muted); font-size: 14px; }
.spc-cnmv-warning strong, .spc-notice strong { display: block; color: var(--spc-ember); font-family: var(--spc-mono); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 6px; }
.spc-track .spc-list li strong { display: block; color: var(--spc-text); font-weight: 600; }
.spc-track .spc-list li span { display: block; font-size: 14px; }
.spc-plan { text-align: center; }
.spc-plan .trk-btn { margin-top: 8px; }
.spc-panel a:not(.trk-btn) { color: var(--spc-silver-1); text-decoration: underline; text-underline-offset: 3px; }

/* contact form */
.form-label { color: var(--spc-text); font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.form-control {
  background: var(--spc-ink);
  border: 1px solid var(--spc-line);
  color: var(--spc-text);
}
.form-control::placeholder { color: var(--spc-muted); }
.form-control:focus {
  background: var(--spc-ink);
  color: var(--spc-text);
  border-color: var(--spc-ember);
  box-shadow: 0 0 0 3px rgba(224, 120, 46, .18);
}
.spc-field-error { display: block; margin-top: 4px; font-size: 12.5px; color: var(--spc-ember); }
/* asp-validation-summary always renders a wrapper (with a hidden placeholder <li> when there's nothing to
   report), so it's never truly :empty — key off the tag helper's own valid/invalid class instead. */
.spc-form-errors.validation-summary-valid { display: none; }
.spc-form-errors ul { list-style: none; padding: 14px 16px; margin: 0 0 20px; border-radius: 10px; background: rgba(224, 120, 46, .12); border: 1px solid rgba(224, 120, 46, .45); color: var(--spc-text); font-size: 14px; }
.spc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* cookie consent banner */
.spc-consent {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  background: rgba(10, 10, 12, .97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--spc-line);
  padding: 18px 0;
}
.spc-consent__inner { max-width: 1140px; margin: 0 auto; padding-inline: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
/* min-width, not a flex-basis shorthand: flex-basis is axis-dependent, and the mobile breakpoint below
   switches this container to flex-direction:column, where a "320px" basis becomes a 320px-tall paragraph. */
.spc-consent__text { flex: 1 1 auto; min-width: 320px; margin: 0; color: var(--spc-muted); font-size: 14px; }
.spc-consent__text a { color: var(--spc-silver-1); text-decoration: underline; text-underline-offset: 3px; }
.spc-consent__form { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
/* :not([hidden]) so the browser's own [hidden]{display:none} still wins before site.js reveals this row —
   an author display:flex rule would otherwise override it even while the hidden attribute is set. */
.spc-consent__choices:not([hidden]) { display: flex; flex-wrap: wrap; gap: 14px; flex-basis: 100%; order: 3; color: var(--spc-muted); font-size: 13.5px; }
.spc-consent__choices label { display: flex; align-items: center; gap: 6px; }
.spc-consent__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.spc-consent .trk-btn { padding: 9px 16px; font-size: .85rem; white-space: nowrap; }
@media (max-width: 767px) {
  .spc-consent__inner { flex-direction: column; align-items: stretch; }
  .spc-consent__actions { justify-content: stretch; }
  .spc-consent .trk-btn { flex: 1 1 auto; text-align: center; }
}

/* eyebrows, facts, index numbers used by page sections */
.spc-eyebrow { font-family: var(--spc-mono); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--spc-silver-2); }
.spc-facts { list-style: none; padding: 0; margin: 18px 0 0; display: flex; gap: 28px; flex-wrap: wrap; color: var(--spc-muted); }
.spc-facts .num { display: block; color: var(--spc-silver-1); font-size: 15px; }
.spc-index { display: inline-block; color: var(--spc-ember); font-size: 13px; margin-bottom: 8px; }
.spc-photo img { border-radius: 16px; border: 1px solid var(--spc-line); width: 100%; height: auto; }

/* language switcher */
.lang-switch {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0 16px 0 0;
  padding: 0;
  font-family: var(--spc-mono);
  font-size: 12px;
  letter-spacing: 1px;
}
.lang-switch a { color: var(--spc-muted); text-decoration: none; }
.lang-switch .active a { color: var(--spc-text); border-bottom: 1px solid var(--spc-ember); }

/* light/dark theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  margin-right: 10px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--spc-line);
  color: var(--spc-text);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.theme-toggle:hover { border-color: var(--spc-silver-1); color: var(--spc-silver-1); }
.theme-toggle__icon { display: none; font-size: 14px; }
[data-bs-theme="dark"] .theme-toggle__icon--light,
[data-bs-theme="light"] .theme-toggle__icon--dark { display: inline-block; }

/* risk disclaimer block */
.risk {
  font-size: 12.5px;
  color: var(--spc-muted);
  border-left: 2px solid var(--spc-ember);
  padding-left: 12px;
  max-width: 70ch;
}

/* no horizontal scroll, ever */
html, body { overflow-x: hidden; }
