/* ==========================================================================
   Brookfield Forex Option - public site & auth design system
   Material-inspired tonal system. One accent, bright surfaces, sharp type.
   ========================================================================== */

:root {
  /* Color */
  --bf-primary: #3D6BFF;
  --bf-primary-deep: #2457F5;
  --bf-link: #8FAAFF;
  --bf-primary-container: rgba(61, 107, 255, .16);
  --bf-on-primary-container: #B9CAFF;
  --bf-cyan: #22D3EE;
  --bf-violet: #7C5CFF;
  --bf-ink: #EAF0FB;
  --bf-ink-2: #A3AFC8;
  --bf-ink-3: #6F7B96;
  --bf-surface: #0B1226;
  --bf-surface-tint: #0E1630;
  --bf-surface-tint-2: #1A2442;
  --bf-surface-2: #121B36;
  --bf-surface-3: #1A2546;
  --bf-outline: rgba(255, 255, 255, .08);
  --bf-outline-strong: rgba(255, 255, 255, .18);
  --bf-gain: #34D399;
  --bf-gain-container: rgba(52, 211, 153, .14);
  --bf-loss: #F87171;
  --bf-loss-container: rgba(248, 113, 113, .14);
  --bf-amber: #FBBF24;
  --bf-amber-container: rgba(251, 191, 36, .14);
  --bf-navy: #070C1C;
  --bf-grad: linear-gradient(135deg, #3D6BFF 0%, #7C5CFF 50%, #22D3EE 100%);
  --bf-grad-line: linear-gradient(90deg, transparent 0%, rgba(61, 107, 255, .9) 30%, rgba(34, 211, 238, .9) 70%, transparent 100%);

  /* Elevation */
  --bf-shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 1px 3px rgba(0, 0, 0, .2);
  --bf-shadow-2: 0 6px 16px rgba(0, 0, 0, .35), 0 1px 3px rgba(0, 0, 0, .25);
  --bf-shadow-3: 0 24px 48px rgba(0, 0, 0, .5), 0 6px 16px rgba(0, 0, 0, .3);

  /* Shape */
  --bf-r-sm: 8px;
  --bf-r-md: 12px;
  --bf-r-lg: 16px;
  --bf-r-xl: 24px;
  --bf-r-pill: 999px;

  /* Type */
  --bf-font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Layout */
  --bf-container: 1200px;
  --bf-gutter: 24px;
  --bf-appbar: 72px;

  /* Motion */
  --bf-ease: cubic-bezier(.2, 0, 0, 1);
  --bf-ease-out: cubic-bezier(0, 0, .2, 1);
  --bf-dur: 220ms;
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bf-appbar) + 16px); }
body.bf {
  margin: 0;
  font-family: var(--bf-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--bf-ink);
  background: var(--bf-surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.bf img, body.bf svg { max-width: 100%; display: block; }
body.bf a { text-decoration: none; }
body.bf a:not([class]) { color: var(--bf-link); }
body.bf a:not([class]):hover { text-decoration: underline; text-underline-offset: 3px; }
body.bf h1, body.bf h2, body.bf h3, body.bf h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; color: var(--bf-ink); }
body.bf h1 { font-size: clamp(2.25rem, 4.6vw, 3.6rem); font-weight: 800; }
body.bf h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; }
body.bf h3 { font-size: 1.375rem; font-weight: 700; letter-spacing: -.01em; }
body.bf h4 { font-size: 1.0625rem; font-weight: 700; letter-spacing: 0; }
body.bf p { margin: 0 0 1em; }
body.bf ul, body.bf ol { margin: 0; padding: 0; }
body.bf button { font: inherit; color: inherit; }
body.bf table { border-collapse: collapse; width: 100%; }
body.bf :focus-visible { outline: 3px solid rgba(61, 107, 255, .6); outline-offset: 2px; border-radius: 4px; }
body.bf ::selection { background: var(--bf-primary-container); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--bf-ink-2); }
.small { font-size: .875rem; }
.lead { font-size: 1.125rem; color: var(--bf-ink-2); max-width: 60ch; }
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.prose h3 { font-size: 1.125rem; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--bf-ink-2); }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 1em; }
.prose li { margin-bottom: 6px; }
.hidden { display: none !important; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--bf-ink); color: #fff; padding: 10px 16px; border-radius: var(--bf-r-sm); z-index: 1000; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Material Symbols */
.msr {
  font-family: "Material Symbols Rounded";
  font-weight: normal; font-style: normal;
  font-size: 24px; line-height: 1;
  letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap;
  word-wrap: normal; direction: ltr; -webkit-font-feature-settings: "liga"; font-feature-settings: "liga";
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  vertical-align: middle; flex: none;
}
.msr--fill { font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }
.msr--sm { font-size: 20px; }
.msr--lg { font-size: 32px; }

/* Layout helpers */
.container { width: 100%; max-width: var(--bf-container); margin-inline: auto; padding-inline: var(--bf-gutter); }
.section { padding-block: clamp(64px, 8vw, 104px); }
.section--tint { background: var(--bf-surface-tint); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--navy { background: var(--bf-navy); color: #fff; border-block: 1px solid var(--bf-outline); }
body.bf .section--navy h2, body.bf .section--navy h3 { color: #fff; }
.section--navy .section__lede, .section--navy p { color: rgba(255,255,255,.72); }
.section__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(32px, 4vw, 48px); }
.section__head--single { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.section__title { max-width: 22ch; }
.section__lede { color: var(--bf-ink-2); font-size: 1.0625rem; margin: 0; max-width: 56ch; }
.section__lede a { font-weight: 600; }
.section__foot { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.section__note { font-size: .875rem; color: var(--bf-ink-3); margin: 0; }
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 72px; align-items: center; }
.split--reverse > :first-child { order: 2; }
.stack > * + * { margin-top: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* --------------------------------------------------------------------------
   Buttons (Material: filled / tonal / outlined / text)
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--bf-link); --btn-bd: transparent;
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: var(--bf-r-pill);
  border: 1px solid var(--btn-bd); background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: .9375rem; line-height: 1; letter-spacing: 0;
  cursor: pointer; text-decoration: none; white-space: nowrap; user-select: none;
  transition: background-color var(--bf-dur) var(--bf-ease), box-shadow var(--bf-dur) var(--bf-ease), transform var(--bf-dur) var(--bf-ease), color var(--bf-dur) var(--bf-ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn .msr { font-size: 20px; }
.btn--filled { --btn-bg: var(--bf-primary); --btn-fg: #fff; box-shadow: var(--bf-shadow-1); }
.btn--filled:hover { --btn-bg: var(--bf-primary-deep); box-shadow: var(--bf-shadow-2); }
.btn--tonal { --btn-bg: var(--bf-primary-container); --btn-fg: var(--bf-on-primary-container); }
.btn--tonal:hover { --btn-bg: rgba(61, 107, 255, .3); }
.btn--outlined { --btn-bd: var(--bf-outline-strong); --btn-fg: var(--bf-ink); }
.btn--outlined:hover { --btn-bg: rgba(255, 255, 255, .06); }
.btn--text { padding-inline: 14px; }
.btn--text:hover { --btn-bg: var(--bf-primary-container); }
.btn--white { --btn-bg: #fff; --btn-fg: #1239B8; box-shadow: var(--bf-shadow-1); }
.btn--white:hover { --btn-bg: var(--bf-primary-container); }
.btn--ghost-dark { --btn-bd: rgba(255,255,255,.45); --btn-fg: #fff; }
.btn--ghost-dark:hover { --btn-bg: rgba(255,255,255,.12); }
.btn--lg { min-height: 52px; padding-inline: 28px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn .ripple, .tab .ripple, .chip--select .ripple, .assistant__chip .ripple { position: absolute; border-radius: 50%; transform: scale(0); background: currentColor; opacity: .16; pointer-events: none; animation: ripple 520ms var(--bf-ease-out) forwards; z-index: -1; }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }

.iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--bf-ink); cursor: pointer; transition: background-color var(--bf-dur); padding: 0; }
.iconbtn:hover { background: rgba(255, 255, 255, .08); }

/* Chips */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: var(--bf-r-sm); font-size: .8125rem; font-weight: 600; background: var(--bf-surface-tint-2); color: var(--bf-ink-2); white-space: nowrap; }
.chip .msr { font-size: 16px; }
.chip--primary { background: var(--bf-primary-container); color: var(--bf-on-primary-container); }
.chip--up { background: var(--bf-gain-container); color: var(--bf-gain); }
.chip--down { background: var(--bf-loss-container); color: var(--bf-loss); }
.chip--amber { background: var(--bf-amber-container); color: var(--bf-amber); }
.chip--outline { background: transparent; border: 1px solid var(--bf-outline-strong); color: var(--bf-ink); }
.chip--select { position: relative; overflow: hidden; isolation: isolate; height: 36px; padding: 0 16px; border-radius: var(--bf-r-pill); border: 1px solid var(--bf-outline-strong); background: var(--bf-surface-2); color: var(--bf-ink); cursor: pointer; transition: background-color var(--bf-dur), border-color var(--bf-dur), color var(--bf-dur); }
.chip--select:hover { background: var(--bf-surface-3); }
.chip--select.is-active { background: var(--bf-primary-container); border-color: transparent; color: var(--bf-on-primary-container); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* Cards */
.card { background: var(--bf-surface-2); border: 1px solid var(--bf-outline); border-radius: var(--bf-r-lg); padding: 24px; }
.card--elevated { border-color: transparent; box-shadow: var(--bf-shadow-3); }
.card--tint { background: var(--bf-surface-2); border-color: var(--bf-outline); }
.card--pad-lg { padding: 32px; }
.card__media { margin: -24px -24px 20px; border-radius: var(--bf-r-lg) var(--bf-r-lg) 0 0; overflow: hidden; aspect-ratio: 16 / 9; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--bf-outline); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; overflow: hidden; isolation: isolate; flex: none; height: 48px; padding: 0 18px; border: 0; background: transparent; color: var(--bf-ink-2); font-weight: 600; cursor: pointer; border-radius: var(--bf-r-sm) var(--bf-r-sm) 0 0; transition: color var(--bf-dur), background-color var(--bf-dur); }
.tab:hover { color: var(--bf-ink); background: rgba(255, 255, 255, .05); }
.tab.is-active { color: var(--bf-link); }
.tab::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--bf-primary); transform: scaleX(0); transition: transform var(--bf-dur) var(--bf-ease); }
.tab.is-active::after { transform: scaleX(1); }
.tabpanel { display: none; padding-top: 24px; }
.tabpanel.is-active { display: block; animation: fade-in 260ms var(--bf-ease-out); }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Tables */
.table__wrap { overflow-x: auto; border: 1px solid var(--bf-outline); border-radius: var(--bf-r-lg); background: var(--bf-surface-2); }
.table th, .table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--bf-outline); vertical-align: middle; font-size: .9375rem; }
.table th { font-size: .8125rem; font-weight: 600; color: var(--bf-ink-2); background: var(--bf-surface-3); white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color var(--bf-dur); }
.table tbody tr:hover { background: rgba(255, 255, 255, .04); }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table .sym { font-weight: 700; white-space: nowrap; }
.table .sym small { display: block; font-weight: 500; color: var(--bf-ink-2); font-size: .8125rem; }
.table--compare th:first-child, .table--compare td:first-child { font-weight: 600; color: var(--bf-ink); min-width: 200px; }
.table--compare td, .table--compare th { text-align: center; }
.table--compare th:first-child, .table--compare td:first-child { text-align: left; }
.table--compare thead th { background: var(--bf-surface-2); padding: 22px 16px; vertical-align: top; }
.table--compare .plan-price { display: block; font-size: 1.625rem; font-weight: 800; letter-spacing: -.02em; color: var(--bf-ink); line-height: 1.1; }
.table--compare .plan-name { display: block; font-size: .875rem; font-weight: 700; color: var(--bf-link); margin-bottom: 6px; }
.table--compare .plan-sub { display: block; font-size: .8125rem; font-weight: 500; color: var(--bf-ink-2); margin-top: 4px; }
.table--compare td .msr { color: var(--bf-gain); }
.table--compare td .msr.is-no { color: var(--bf-ink-3); }
.table--compare .is-featured { background: var(--bf-surface-3); }
.chg { font-weight: 600; font-variant-numeric: tabular-nums; }
.chg--up { color: var(--bf-gain); }
.chg--down { color: var(--bf-loss); }

/* Avatars & sparklines */
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar--lg { width: 64px; height: 64px; }
.spark { width: 96px; height: 32px; }
.spark path { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spark--up path { stroke: var(--bf-gain); }
.spark--down path { stroke: var(--bf-loss); }
.spark area { fill: none; }

/* Fields (Material outlined with floating label) */
.field { position: relative; margin-bottom: 18px; }
.field__input {
  width: 100%; height: 56px; padding: 22px 16px 8px; border: 1px solid var(--bf-outline-strong); border-radius: var(--bf-r-md);
  background: var(--bf-surface); color: var(--bf-ink); font: inherit; font-size: 1rem; outline: none;
  transition: border-color var(--bf-dur), box-shadow var(--bf-dur);
}
.field__input:hover { border-color: var(--bf-ink-3); }
.field__input:focus { border-color: var(--bf-primary); box-shadow: 0 0 0 3px rgba(61, 107, 255, .28); }
.field__input.input-validation-error { border-color: var(--bf-loss); }
.field__label {
  position: absolute; left: 16px; top: 18px; color: var(--bf-ink-2); font-size: 1rem; pointer-events: none;
  transform-origin: left top; transition: transform var(--bf-dur) var(--bf-ease), color var(--bf-dur);
}
.field__input:focus ~ .field__label, .field__input:not(:placeholder-shown) ~ .field__label, .field--float .field__label { transform: translateY(-11px) scale(.76); }
.field__input:focus ~ .field__label { color: var(--bf-link); }
.field--icon .field__input { padding-left: 48px; }
.field--icon .field__label { left: 48px; }
.field__icon { position: absolute; left: 14px; top: 16px; color: var(--bf-ink-3); pointer-events: none; }
.field--trail .field__input { padding-right: 52px; }
.field__trail { position: absolute; right: 6px; top: 6px; width: 44px; height: 44px; color: var(--bf-ink-2); }
select.field__input { appearance: none; -webkit-appearance: none; padding-top: 20px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='%23A3AFC8'><path d='M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; cursor: pointer; }
textarea.field__input { height: auto; min-height: 150px; padding-top: 26px; resize: vertical; line-height: 1.5; }
.field__hint { display: block; margin: 6px 0 0 4px; font-size: .8125rem; color: var(--bf-ink-2); }
.field__error, .field-validation-error { display: block; margin: -10px 0 14px 4px; font-size: .8125rem; color: var(--bf-loss); font-weight: 500; }
.field-validation-valid { display: none; }
.validation-summary-errors { margin: 0 0 18px; padding: 12px 16px 12px 44px; border-radius: var(--bf-r-md); background: var(--bf-loss-container); color: var(--bf-loss); font-size: .9375rem; font-weight: 500; position: relative; }
.validation-summary-errors::before { content: "error"; font-family: "Material Symbols Rounded"; font-size: 20px; position: absolute; left: 14px; top: 13px; }
.validation-summary-errors ul { list-style: none; }
.validation-summary-valid { display: none; }
.alert { padding: 14px 16px 14px 48px; border-radius: var(--bf-r-md); position: relative; font-size: .9375rem; margin-bottom: 18px; }
.alert::before { font-family: "Material Symbols Rounded"; font-size: 22px; position: absolute; left: 14px; top: 13px; }
.alert--success { background: var(--bf-gain-container); color: var(--bf-gain); }
.alert--success::before { content: "check_circle"; }
.alert--info { background: var(--bf-primary-container); color: var(--bf-on-primary-container); }
.alert--info::before { content: "info"; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: .9375rem; color: var(--bf-ink-2); cursor: pointer; margin-bottom: 18px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--bf-primary); flex: none; cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.code-input { letter-spacing: .5em; font-size: 1.5rem; font-weight: 700; text-align: center; padding-left: 16px !important; }

/* Accordion */
.acc { border-bottom: 1px solid var(--bf-outline); }
.acc:first-of-type { border-top: 1px solid var(--bf-outline); }
.acc__q { list-style: none; cursor: pointer; color: var(--bf-ink); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 4px; font-weight: 600; font-size: 1.0625rem; }
.acc__q::-webkit-details-marker { display: none; }
.acc__q .msr { color: var(--bf-ink-2); transition: transform var(--bf-dur) var(--bf-ease); }
.acc[open] .acc__q .msr { transform: rotate(180deg); }
.acc__a { padding: 0 4px 20px; color: var(--bf-ink-2); max-width: 70ch; }
.acc__a p:last-child { margin-bottom: 0; }
.acc-group + .acc-group { margin-top: 48px; }
.acc-group h3 { margin-bottom: 8px; }

/* Steps (sequence) */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.steps li { counter-increment: step; position: relative; padding-top: 56px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--bf-primary); color: #fff; font-weight: 700; display: grid; place-items: center; }
.steps li::after { content: ""; position: absolute; left: 48px; right: -24px; top: 20px; height: 1px; background: var(--bf-outline-strong); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.125rem; margin-bottom: 6px; }
.steps p { color: var(--bf-ink-2); margin: 0; font-size: .9375rem; }

/* Feature list (icon + text) */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; }
.features--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.feature__icon { width: 48px; height: 48px; border-radius: var(--bf-r-md); background: var(--bf-primary-container); border: 1px solid rgba(61,107,255,.25); color: var(--bf-link); display: grid; place-items: center; }
.feature h3 { font-size: 1.125rem; margin-bottom: 4px; }
.feature p { color: var(--bf-ink-2); margin: 0; font-size: .9375rem; }
.feature--amber .feature__icon { background: var(--bf-amber-container); color: var(--bf-amber); }
.feature--gain .feature__icon { background: var(--bf-gain-container); color: var(--bf-gain); }

/* Photo blocks */
.photo { position: relative; border-radius: var(--bf-r-xl); overflow: hidden; background: var(--bf-surface-tint-2); border: 1px solid var(--bf-outline-strong); box-shadow: var(--bf-shadow-3); }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,18,38,0) 55%, rgba(11,18,38,.55)); pointer-events: none; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--4x3 { aspect-ratio: 4 / 3; }
.photo--3x2 { aspect-ratio: 3 / 2; }
.photo--square { aspect-ratio: 1; }
.photo--tall { aspect-ratio: 4 / 5; }

/* Checklist */
.ticks { list-style: none; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--bf-ink-2); }
.ticks .msr { color: var(--bf-gain); font-size: 22px; margin-top: 1px; }
.ticks strong { color: var(--bf-ink); font-weight: 600; }

/* Section background images with overlay, and gradient rules */
.section--img { position: relative; isolation: isolate; }
.section--img::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--bg) center / cover no-repeat; opacity: .26; }
.section--img::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bf-surface) 0%, rgba(11,18,38,.72) 35%, rgba(11,18,38,.72) 65%, var(--bf-surface) 100%); }
.section--img.section--tint::after { background: linear-gradient(180deg, var(--bf-surface-tint) 0%, rgba(14,22,48,.74) 35%, rgba(14,22,48,.74) 65%, var(--bf-surface-tint) 100%); }
.section--line { position: relative; }
.section--line > .container::before { content: ""; position: absolute; left: 10%; right: 10%; top: 0; height: 1px; background: var(--bf-grad-line); }
.gline { display: block; height: 1px; border: 0; margin: 0; background: var(--bf-grad-line); }
.section__title::after { content: ""; display: block; width: 56px; height: 3px; margin-top: 18px; border-radius: 3px; background: var(--bf-grad); }
.signal, .trader, .calc, .ai-mock, .auth__card, .product { position: relative; overflow: hidden; }
.signal::before, .trader::before, .calc::before, .ai-mock::before, .auth__card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--bf-grad); }
.product::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--bf-grad); transform: scaleX(0); transform-origin: left; transition: transform var(--bf-dur) var(--bf-ease); }
.product:hover::before { transform: scaleX(1); }
.cta::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.22), transparent 70%); pointer-events: none; }
.cta::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 48px 48px; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); }
.cta > * { position: relative; z-index: 1; }
.page-hero.section--img::after { background: linear-gradient(90deg, rgba(14,22,48,.96) 0%, rgba(14,22,48,.8) 55%, rgba(14,22,48,.45) 100%), linear-gradient(180deg, rgba(14,22,48,0) 60%, var(--bf-surface) 100%); }
.page-hero h1 { color: #fff; }
.page-hero__rule { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--bf-grad-line); }

/* Reveal on scroll (once) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 560ms var(--bf-ease-out), transform 560ms var(--bf-ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   App bar & navigation
   -------------------------------------------------------------------------- */
.appbar { position: sticky; top: 0; z-index: 100; background: rgba(11, 18, 38, .82); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: box-shadow var(--bf-dur), border-color var(--bf-dur); }
.appbar.is-scrolled { border-bottom-color: var(--bf-outline); box-shadow: var(--bf-shadow-1); }
.appbar__inner { height: var(--bf-appbar); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--bf-ink); font-weight: 800; letter-spacing: -.02em; font-size: 1.125rem; line-height: 1; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 36px; height: 36px; flex: none; }
.brand__name span { display: block; font-size: .6875rem; font-weight: 600; letter-spacing: .01em; color: var(--bf-ink-2); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: 12px; }
.nav__link { display: inline-flex; align-items: center; height: 40px; padding: 0 13px; border-radius: var(--bf-r-pill); color: var(--bf-ink-2); font-weight: 600; font-size: .9375rem; transition: background-color var(--bf-dur), color var(--bf-dur); }
.nav__link:hover { background: rgba(255, 255, 255, .06); color: var(--bf-ink); text-decoration: none; }
.nav__link.is-active { color: var(--bf-link); background: var(--bf-primary-container); }
.appbar__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; }

/* Drawer (mobile nav) */
.drawer { position: fixed; inset: var(--bf-appbar) 0 0 0; z-index: 99; background: var(--bf-surface); padding: 16px var(--bf-gutter) 32px; overflow-y: auto; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity var(--bf-dur) var(--bf-ease), transform var(--bf-dur) var(--bf-ease); }
.drawer.is-open { opacity: 1; transform: none; pointer-events: auto; }
.drawer__list { list-style: none; display: grid; }
.drawer__link { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--bf-outline); color: var(--bf-ink); font-weight: 600; font-size: 1.0625rem; }
.drawer__link:hover { text-decoration: none; color: var(--bf-link); }
.drawer__actions { display: grid; gap: 10px; margin-top: 20px; }
body.drawer-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   Hero carousel
   -------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(56px, 8vw, 112px) clamp(56px, 7vw, 96px); background: var(--bf-surface); }
.hero__bgs { position: absolute; inset: 0; z-index: -3; }
.hero__bg { position: absolute; inset: 0; background: var(--bg) center / cover no-repeat; opacity: 0; transform: scale(1.04); transition: opacity 1100ms var(--bf-ease), transform 7500ms linear; }
.hero__bg.is-active { opacity: 1; transform: scale(1); }
.hero__shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(11,18,38,.96) 0%, rgba(11,18,38,.9) 38%, rgba(11,18,38,.55) 70%, rgba(11,18,38,.35) 100%), linear-gradient(180deg, rgba(11,18,38,.2) 0%, rgba(11,18,38,0) 30%, rgba(11,18,38,.9) 100%); }
.hero__lines { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(70% 70% at 30% 40%, #000 20%, transparent 100%); mask-image: radial-gradient(70% 70% at 30% 40%, #000 20%, transparent 100%); pointer-events: none; }
.hero__glow { position: absolute; z-index: -1; width: 720px; height: 720px; right: -200px; top: -260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(61,107,255,.35), rgba(124,92,255,.15) 50%, transparent 75%); filter: blur(30px); pointer-events: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.hero__slides { display: grid; }
.hero__slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 520ms var(--bf-ease-out), transform 520ms var(--bf-ease-out), visibility 0s linear 520ms; }
.hero__slide.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.hero__slide > * { animation: rise 640ms var(--bf-ease-out) both; animation-delay: calc(var(--i, 0) * 90ms); }
.hero__slide:not(.is-active) > * { animation: none; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero__kicker { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 8px; border-radius: var(--bf-r-pill); background: rgba(18, 27, 54, .8); border: 1px solid var(--bf-outline-strong); backdrop-filter: blur(8px); font-size: .8125rem; font-weight: 600; color: var(--bf-ink-2); margin-bottom: 24px; }
.hero__kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bf-gain); box-shadow: 0 0 0 4px var(--bf-gain-container); }
.hero__kicker .msr { color: var(--bf-cyan); }
.hero h1 { max-width: 15ch; margin-bottom: 20px; color: #fff; }
.grad-text { background: var(--bf-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lede { font-size: 1.125rem; color: var(--bf-ink-2); max-width: 52ch; margin-bottom: 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: .875rem; color: var(--bf-ink-2); font-weight: 500; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--bf-outline); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust .msr { font-size: 20px; color: var(--bf-cyan); }
.hero__nav { display: flex; align-items: center; gap: 16px; margin-top: 28px; }
.hero__dots { display: flex; gap: 8px; }
.hero__dot { position: relative; width: 40px; height: 4px; border-radius: 4px; border: 0; padding: 0; background: rgba(255,255,255,.18); cursor: pointer; overflow: hidden; transition: background-color var(--bf-dur); }
.hero__dot:hover { background: rgba(255,255,255,.3); }
.hero__dot::after { content: ""; position: absolute; inset: 0; background: var(--bf-grad); transform: scaleX(0); transform-origin: left; }
.hero__dot.is-active::after { animation: dotfill var(--dot-dur, 7s) linear forwards; }
.hero.is-paused .hero__dot.is-active::after { animation-play-state: paused; }
@keyframes dotfill { to { transform: scaleX(1); } }
.hero__arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--bf-outline-strong); background: rgba(18,27,54,.7); color: var(--bf-ink); display: grid; place-items: center; cursor: pointer; padding: 0; transition: background-color var(--bf-dur), border-color var(--bf-dur); }
.hero__arrow:hover { background: var(--bf-primary); border-color: transparent; color: #fff; }
.hero__count { font-size: .8125rem; color: var(--bf-ink-3); font-variant-numeric: tabular-nums; margin-left: auto; }
.hero__visual { position: relative; }
.hero__rule { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--bf-grad-line); }

/* Live market panel - the one memorable element */
.market-panel { position: relative; width: 100%; max-width: 420px; margin-left: auto; padding: 22px; border-radius: var(--bf-r-xl); background: rgba(18, 27, 54, .88); border: 1px solid var(--bf-outline-strong); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--bf-shadow-3); overflow: hidden; }
.market-panel::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--bf-grad); }
.market-panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.market-panel__head h3 { font-size: 1rem; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; color: var(--bf-gain); }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bf-gain); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(14,159,110,.45); } 60% { box-shadow: 0 0 0 7px rgba(14,159,110,0); } }
.market-panel__chart { height: 96px; margin: 4px -4px 10px; }
.market-panel__chart svg { width: 100%; height: 100%; overflow: visible; }
.market-panel__chart .line { fill: none; stroke: var(--bf-cyan); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.market-panel__chart .area { fill: url(#bf-area); opacity: .9; }
.market-panel__chart .line.is-drawing { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 1.6s var(--bf-ease-out) forwards; animation-delay: 420ms; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.market-panel__rows { list-style: none; display: grid; }
.market-panel__rows li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--bf-outline); font-size: .875rem; }
.market-panel__rows .sym { font-weight: 700; }
.market-panel__rows .sym small { display: block; font-weight: 500; font-size: .75rem; color: var(--bf-ink-3); }
.market-panel__rows .px { font-variant-numeric: tabular-nums; font-weight: 600; transition: color 400ms; }
.market-panel__rows .px.tick-up { color: var(--bf-gain); }
.market-panel__rows .px.tick-down { color: var(--bf-loss); }
.market-panel__rows .chip { height: 26px; padding-inline: 8px; min-width: 64px; justify-content: center; }
.market-panel__foot { margin-top: 12px; padding: 10px 12px; border-radius: var(--bf-r-md); background: var(--bf-primary-container); color: var(--bf-on-primary-container); font-size: .8125rem; font-weight: 500; display: flex; gap: 10px; align-items: flex-start; opacity: 0; animation: rise 500ms var(--bf-ease-out) forwards; animation-delay: 1.5s; }
.market-panel__foot .msr { font-size: 18px; margin-top: 1px; }

/* Ticker band (TradingView) */
.ticker { border-block: 1px solid var(--bf-outline); background: var(--bf-surface-tint); min-height: 46px; }
.ticker .tradingview-widget-container { min-height: 46px; }

/* --------------------------------------------------------------------------
   Product overview tiles
   -------------------------------------------------------------------------- */
.products { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.product { display: grid; gap: 12px; padding: 22px 20px; border: 1px solid var(--bf-outline); border-radius: var(--bf-r-lg); color: var(--bf-ink); background: var(--bf-surface-2); transition: border-color var(--bf-dur), box-shadow var(--bf-dur), transform var(--bf-dur); }
.product:hover { text-decoration: none; border-color: var(--bf-primary); box-shadow: var(--bf-shadow-2); }
.product .msr { font-size: 28px; color: var(--bf-primary); }
.product h3 { font-size: 1.0625rem; }
.product p { margin: 0; font-size: .875rem; color: var(--bf-ink-2); }
.product span.link { font-size: .875rem; font-weight: 600; color: var(--bf-link); }

/* --------------------------------------------------------------------------
   Signals
   -------------------------------------------------------------------------- */
.signals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.signal { background: var(--bf-surface-2); border: 1px solid var(--bf-outline); border-radius: var(--bf-r-lg); padding: 20px; display: grid; gap: 14px; }
.signal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.signal__pair { font-weight: 800; font-size: 1.125rem; letter-spacing: -.01em; }
.signal__pair small { display: block; font-weight: 500; font-size: .8125rem; color: var(--bf-ink-2); letter-spacing: 0; }
.signal__levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.signal__levels div { padding: 10px 12px; border-radius: var(--bf-r-md); background: var(--bf-surface-3); }
.signal__levels span { display: block; font-size: .75rem; color: var(--bf-ink-2); font-weight: 600; }
.signal__levels strong { font-variant-numeric: tabular-nums; font-size: .9375rem; }
.signal__levels .tp { background: var(--bf-gain-container); }
.signal__levels .sl { background: var(--bf-loss-container); }
.signal__meta { display: grid; gap: 6px; font-size: .8125rem; color: var(--bf-ink-2); }
.conf { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.conf__bar { width: 80px; height: 6px; border-radius: 6px; background: var(--bf-surface-tint-2); overflow: hidden; }
.conf__bar i { display: block; height: 100%; width: var(--v, 70%); background: var(--bf-primary); border-radius: 6px; transform-origin: left; animation: grow 900ms var(--bf-ease-out) both; }
@keyframes grow { from { transform: scaleX(0); } }

/* --------------------------------------------------------------------------
   Copy trading
   -------------------------------------------------------------------------- */
.traders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.trader { background: var(--bf-surface-2); border: 1px solid var(--bf-outline); border-radius: var(--bf-r-lg); padding: 20px; display: grid; gap: 16px; }
.trader__head { display: flex; align-items: center; gap: 14px; }
.trader__head h3 { font-size: 1.0625rem; }
.trader__head p { margin: 0; font-size: .8125rem; color: var(--bf-ink-2); }
.trader__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.trader__stats div { padding: 10px 12px; border-radius: var(--bf-r-md); background: var(--bf-surface-3); }
.trader__stats span { display: block; font-size: .75rem; color: var(--bf-ink-2); font-weight: 600; }
.trader__stats strong { font-variant-numeric: tabular-nums; font-size: 1rem; }
.trader__stats .ret { color: var(--bf-gain); }
.trader__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .8125rem; color: var(--bf-ink-2); }
.trader__spark { width: 100%; height: 48px; }
.trader__spark path { fill: none; stroke: var(--bf-gain); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.risk { display: inline-flex; gap: 3px; align-items: center; }
.risk i { width: 6px; height: 14px; border-radius: 3px; background: var(--bf-surface-tint-2); }
.risk i.on { background: var(--bf-amber); }

/* --------------------------------------------------------------------------
   Staking
   -------------------------------------------------------------------------- */
.staking { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: start; }
.calc { background: var(--bf-surface-2); border: 1px solid var(--bf-outline); border-radius: var(--bf-r-xl); padding: 28px; position: sticky; top: calc(var(--bf-appbar) + 24px); }
.calc h3 { margin-bottom: 20px; }
.calc__label { display: block; font-size: .8125rem; font-weight: 600; color: var(--bf-ink-2); margin: 0 0 8px 2px; }
.calc__terms { margin-bottom: 22px; }
.calc__result { background: linear-gradient(135deg, rgba(251, 191, 36, .2), rgba(251, 191, 36, .05)); border: 1px solid rgba(251, 191, 36, .3); border-radius: var(--bf-r-lg); padding: 20px; display: grid; gap: 12px; }
.calc__result .big { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; color: var(--bf-ink); line-height: 1; font-variant-numeric: tabular-nums; }
.calc__result .big small { font-size: 1rem; font-weight: 600; color: var(--bf-amber); margin-left: 6px; }
.calc__result dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; margin: 0; font-size: .875rem; }
.calc__result dt { color: var(--bf-ink-2); }
.calc__result dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.calc__note { font-size: .8125rem; color: var(--bf-ink-3); margin: 14px 0 0; }
.asset { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.asset i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .75rem; font-weight: 800; color: #fff; background: var(--bf-ink-2); }
.asset i.btc { background: #F7931A; } .asset i.eth { background: #627EEA; } .asset i.usdt { background: #26A17B; }
.asset i.sol { background: #9945FF; } .asset i.bnb { background: #E3A700; } .asset i.ada { background: #0033AD; }
.apy { font-weight: 700; color: var(--bf-amber); font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   AI assistant section (marketing) & chat mock
   -------------------------------------------------------------------------- */
.ai-mock { background: var(--bf-surface-2); border: 1px solid var(--bf-outline); border-radius: var(--bf-r-xl); box-shadow: var(--bf-shadow-3); overflow: hidden; }
.ai-mock__head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--bf-outline); }
.ai-mock__head strong { display: block; font-size: .9375rem; }
.ai-mock__head small { color: var(--bf-ink-2); font-size: .8125rem; }
.ai-avatar { width: 36px; height: 36px; border-radius: 12px; background: var(--bf-primary); color: #fff; display: grid; place-items: center; flex: none; }
.ai-avatar .msr { font-size: 20px; }
.ai-mock__body { padding: 20px; display: grid; gap: 12px; background: var(--bf-surface); }
.bubble { max-width: 86%; padding: 12px 14px; border-radius: 18px; font-size: .9375rem; line-height: 1.5; }
.bubble--user { align-self: flex-end; justify-self: end; background: var(--bf-primary); color: #fff; border-bottom-right-radius: 6px; }
.bubble--bot { justify-self: start; background: var(--bf-surface-3); border: 1px solid var(--bf-outline); border-bottom-left-radius: 6px; }
.bubble--bot ul { padding-left: 18px; margin: 6px 0 0; }
.bubble--bot li { margin: 3px 0; }
.bubble p { margin: 0; }
.bubble p + p { margin-top: 6px; }
.bubble .msr { font-size: 18px; color: var(--bf-primary); }

/* --------------------------------------------------------------------------
   AI trading bot: console mock & strategy cards
   -------------------------------------------------------------------------- */
.console { position: relative; overflow: hidden; background: var(--bf-surface-2); border: 1px solid var(--bf-outline-strong); border-radius: var(--bf-r-xl); box-shadow: var(--bf-shadow-3); }
.console::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--bf-grad); }
.console__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--bf-outline); }
.console__title { display: flex; align-items: center; gap: 12px; }
.console__title strong { display: block; font-size: .9375rem; }
.console__title small { color: var(--bf-ink-2); font-size: .8125rem; }
.console__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--bf-outline); border-bottom: 1px solid var(--bf-outline); }
.console__kpis div { background: var(--bf-surface-2); padding: 14px 20px; min-width: 0; }
.console__kpis span { display: block; font-size: .75rem; color: var(--bf-ink-2); font-weight: 600; margin-bottom: 2px; }
.console__kpis strong { font-size: 1.0625rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.console__kpis strong small { font-size: .75rem; font-weight: 600; margin-left: 4px; }
.console__chart { padding: 12px 20px 0; }
.console__chart svg { width: 100%; height: 56px; }
.console__chart path { fill: none; stroke: var(--bf-cyan); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.console__positions { list-style: none; padding: 8px 20px 0; }
.console__positions li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--bf-outline); font-size: .875rem; }
.console__positions .sym { font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }
.console__positions .chip { height: 22px; padding-inline: 8px; font-size: .6875rem; }
.console__limits { display: grid; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--bf-outline); font-size: .8125rem; }
.console__limits div { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; }
.console__limits span { font-weight: 600; }
.console__limits i { grid-column: 1 / -1; display: block; height: 6px; border-radius: 6px; background: var(--bf-surface-tint-2); overflow: hidden; }
.console__limits b { display: block; height: 100%; border-radius: 6px; background: var(--bf-grad); }
.console__limits small { color: var(--bf-ink-2); }
.console__actions { display: flex; align-items: center; gap: 8px; padding: 12px 20px 16px; border-top: 1px solid var(--bf-outline); }
.console__actions .btn { min-height: 36px; padding-inline: 14px; font-size: .8125rem; pointer-events: none; }
.console__actions .btn .msr { font-size: 18px; }

.bots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.bot { position: relative; overflow: hidden; background: var(--bf-surface-2); border: 1px solid var(--bf-outline); border-radius: var(--bf-r-lg); padding: 20px; display: grid; gap: 14px; align-content: start; }
.bot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--bf-grad); }
.bot__head { display: flex; gap: 12px; align-items: center; }
.bot__head h3 { font-size: 1.0625rem; }
.bot__head p { margin: 0; font-size: .8125rem; color: var(--bf-ink-2); }
.bot__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--bf-primary-container); border: 1px solid rgba(61,107,255,.25); color: var(--bf-link); display: grid; place-items: center; flex: none; }
.bot__desc { margin: 0; font-size: .875rem; color: var(--bf-ink-2); }
.bot__spark { width: 100%; height: 48px; }
.bot__spark path { fill: none; stroke: var(--bf-gain); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bot__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bot__stats div { padding: 10px 12px; border-radius: var(--bf-r-md); background: var(--bf-surface-3); min-width: 0; }
.bot__stats span { display: block; font-size: .75rem; color: var(--bf-ink-2); font-weight: 600; }
.bot__stats strong { font-variant-numeric: tabular-nums; font-size: 1rem; }
.bot__stats .ret { color: var(--bf-gain); }
.bot__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .8125rem; color: var(--bf-ink-2); }

/* --------------------------------------------------------------------------
   CTA band & footer
   -------------------------------------------------------------------------- */
.cta { position: relative; overflow: hidden; background: linear-gradient(120deg, #1B3BD6 0%, #3D6BFF 45%, #22B8D6 100%); color: #fff; border-radius: var(--bf-r-xl); padding: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: center; }
body.bf .cta h2 { color: #fff; max-width: 20ch; }
.cta p { color: rgba(255,255,255,.85); margin: 12px 0 0; max-width: 50ch; }
.cta .actions { justify-content: flex-end; }

.footer { background: var(--bf-navy); border-top: 1px solid var(--bf-outline); padding-top: 64px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; padding-bottom: 48px; }
.footer__brand p { color: var(--bf-ink-2); font-size: .9375rem; margin: 16px 0 20px; max-width: 34ch; }
.footer h4 { margin-bottom: 14px; font-size: .9375rem; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer li a { color: var(--bf-ink-2); font-size: .9375rem; }
.footer li a:hover { color: var(--bf-link); }
.footer__legal { border-top: 1px solid var(--bf-outline); padding: 24px 0; font-size: .8125rem; color: var(--bf-ink-3); line-height: 1.6; }
.footer__legal p { margin: 0 0 8px; }
.footer__bottom { border-top: 1px solid var(--bf-outline); padding: 20px 0 28px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; font-size: .875rem; color: var(--bf-ink-2); }
.lang { display: inline-flex; align-items: center; gap: 8px; }
.lang select { height: 36px; padding: 0 32px 0 10px; border-radius: var(--bf-r-sm); border: 1px solid var(--bf-outline-strong); background: var(--bf-surface-2); font: inherit; font-size: .875rem; color: var(--bf-ink); appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='%23A3AFC8'><path d='M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z'/></svg>"); background-repeat: no-repeat; background-position: right 8px center; }
.social { display: flex; gap: 6px; }

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero { position: relative; background: var(--bf-surface-tint); padding-block: clamp(40px, 6vw, 72px); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: center; }
.page-hero h1 { max-width: 16ch; margin-bottom: 16px; font-size: clamp(2rem, 4vw, 3.1rem); }
.page-hero p { font-size: 1.125rem; color: var(--bf-ink-2); max-width: 54ch; margin-bottom: 24px; }
.page-hero .photo { box-shadow: var(--bf-shadow-2); }
.crumbs { list-style: none; display: flex; gap: 8px; font-size: .8125rem; color: var(--bf-ink-3); margin-bottom: 20px; }
.crumbs a { color: var(--bf-ink-2); font-weight: 500; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--bf-outline-strong); }

/* --------------------------------------------------------------------------
   Floating AI assistant widget
   -------------------------------------------------------------------------- */
.assistant { position: fixed; left: 24px; bottom: 24px; z-index: 120; }
.assistant__launch { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px 0 14px; border: 0; border-radius: var(--bf-r-pill); background: var(--bf-primary); color: #fff; font-weight: 700; font-size: .9375rem; box-shadow: var(--bf-shadow-3); cursor: pointer; transition: transform var(--bf-dur) var(--bf-ease), background-color var(--bf-dur); }
.assistant__launch:hover { background: var(--bf-primary-deep); transform: translateY(-1px); }
.assistant__launch .msr { font-size: 22px; }
.assistant__panel { position: absolute; left: 0; bottom: 64px; width: 380px; max-width: calc(100vw - 48px); height: 560px; max-height: calc(100vh - 110px); background: var(--bf-surface-2); border: 1px solid var(--bf-outline-strong); border-radius: var(--bf-r-xl); box-shadow: var(--bf-shadow-3); display: flex; flex-direction: column; overflow: hidden; transform-origin: bottom left; transform: scale(.96) translateY(8px); opacity: 0; pointer-events: none; transition: opacity var(--bf-dur) var(--bf-ease), transform var(--bf-dur) var(--bf-ease); }
.assistant.is-open .assistant__panel { opacity: 1; transform: none; pointer-events: auto; }
.assistant__head { display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 16px; border-bottom: 1px solid var(--bf-outline); }
.assistant__head strong { display: block; font-size: .9375rem; }
.assistant__head small { color: var(--bf-ink-2); font-size: .75rem; }
.assistant__head .iconbtn { margin-left: auto; width: 36px; height: 36px; }
.assistant__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bf-surface); }
.assistant__log .bubble { animation: fade-in 220ms var(--bf-ease-out); }
.assistant__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px 0; }
.assistant__chip { position: relative; overflow: hidden; isolation: isolate; height: 30px; padding: 0 12px; border-radius: var(--bf-r-pill); border: 1px solid var(--bf-outline-strong); background: var(--bf-surface-2); font-size: .8125rem; font-weight: 600; color: var(--bf-ink); cursor: pointer; transition: background-color var(--bf-dur); }
.assistant__chip:hover { background: var(--bf-primary-container); border-color: transparent; color: var(--bf-on-primary-container); }
.assistant__form { display: flex; gap: 8px; padding: 10px 12px 12px; }
.assistant__input { flex: 1; height: 44px; padding: 0 14px; border-radius: var(--bf-r-pill); border: 1px solid var(--bf-outline-strong); background: var(--bf-surface); color: var(--bf-ink); font: inherit; font-size: .9375rem; outline: none; transition: border-color var(--bf-dur), box-shadow var(--bf-dur); }
.assistant__input:focus { border-color: var(--bf-primary); box-shadow: 0 0 0 3px rgba(36,87,245,.18); }
.assistant__send { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--bf-primary); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background-color var(--bf-dur); }
.assistant__send:hover { background: var(--bf-primary-deep); }
.assistant__send:disabled { opacity: .5; cursor: default; }
.assistant__disclaimer { padding: 0 16px 10px; font-size: .6875rem; color: var(--bf-ink-3); line-height: 1.4; }
.typing { display: inline-flex; gap: 4px; align-items: center; height: 18px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--bf-ink-3); animation: blink 1.1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

/* --------------------------------------------------------------------------
   Auth layout
   -------------------------------------------------------------------------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.auth__side { position: relative; overflow: hidden; background: var(--bf-navy); color: #fff; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; }
.auth__side .auth__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.auth__side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(7,12,28,.15), rgba(7,12,28,.9) 70%), radial-gradient(600px 400px at 20% 100%, rgba(61,107,255,.35), transparent 70%); }
.auth__side > * { position: relative; z-index: 1; }
.auth__side .brand { color: #fff; }
.auth__side .brand__name span { color: rgba(255,255,255,.7); }
body.bf .auth__pitch h2 { color: #fff; font-size: clamp(1.75rem, 2.6vw, 2.4rem); max-width: 16ch; margin-bottom: 24px; }
.auth__pitch .ticks li { color: rgba(255,255,255,.78); }
.auth__pitch .ticks strong { color: #fff; }
.auth__pitch .ticks .msr { color: #7CE0B8; }
.auth__side small { color: rgba(255,255,255,.55); font-size: .8125rem; }
.auth__main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px var(--bf-gutter); background: var(--bf-surface-tint); }
.auth__card { position: relative; overflow: hidden; width: 100%; max-width: 520px; background: var(--bf-surface-2); border: 1px solid var(--bf-outline); border-radius: var(--bf-r-xl); padding: 40px; box-shadow: var(--bf-shadow-2); animation: rise 520ms var(--bf-ease-out) both; }
.auth__card--wide { max-width: 640px; }
.auth__title { font-size: 1.75rem; font-weight: 800; margin-bottom: 6px; }
.auth__sub { color: var(--bf-ink-2); margin-bottom: 28px; }
.auth__foot { margin-top: 20px; text-align: center; color: var(--bf-ink-2); font-size: .9375rem; }
.auth__foot a { font-weight: 600; }
.auth__links { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; font-size: .8125rem; color: var(--bf-ink-3); }
.auth__links a { color: var(--bf-ink-2); }
.auth__brand-mobile { display: none; margin-bottom: 24px; }
.auth__icon { width: 64px; height: 64px; border-radius: 20px; background: var(--bf-primary-container); color: var(--bf-link); display: grid; place-items: center; margin-bottom: 20px; }
.auth__icon .msr { font-size: 32px; }
.auth__icon--success { background: var(--bf-gain-container); color: var(--bf-gain); }
.resend { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--bf-link); font-weight: 600; cursor: pointer; padding: 0; }
.resend:disabled { color: var(--bf-ink-3); cursor: default; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .nav, .appbar__actions .btn--text { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { margin-top: 8px; }
  .market-panel { margin-inline: auto; max-width: 560px; }
  .section__head { grid-template-columns: 1fr; gap: 12px; }
  .split, .staking, .cta, .page-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .staking > * { min-width: 0; }
  .split--reverse > :first-child { order: 0; }
  .calc { position: static; }
  .cta .actions { justify-content: flex-start; }
  .signals, .traders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .steps li:nth-child(2)::after { display: none; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features--3 { grid-template-columns: 1fr 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth__side { display: none; }
  .auth__brand-mobile { display: inline-flex; }
  .auth__main { justify-content: flex-start; padding-top: 32px; }
}
@media (max-width: 640px) {
  :root { --bf-gutter: 18px; --bf-appbar: 64px; }
  .brand__name span { display: none; }
  .appbar__inner { gap: 12px; }
  .appbar__actions { gap: 4px; }
  .appbar__actions .btn--filled { min-height: 40px; padding-inline: 14px; font-size: .875rem; }
  .products, .signals, .traders, .bots, .grid--2, .grid--3, .grid--4, .features, .features--3, .form-row { grid-template-columns: 1fr; }
  .console__kpis { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .auth__card { padding: 28px 22px; }
  .assistant { left: 12px; bottom: 12px; }
  .assistant__panel { position: fixed; left: 12px; right: 12px; bottom: 76px; width: auto; max-width: none; height: auto; top: 12px; max-height: none; }
  .assistant__launch span.label { display: none; }
  .assistant__launch { padding: 0 14px; }
  .hero__cta .btn { flex: 1; }
  .market-panel { padding: 16px; }
  .hero__count { display: none; }
  .market-panel__rows .chip { min-width: 56px; }
  .signal__levels, .trader__stats { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .signal__levels div, .trader__stats div { padding: 8px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .market-panel__chart .line.is-drawing { stroke-dashoffset: 0; }
  .market-panel__foot { opacity: 1; }
  .hero__bg { transition: none; transform: none; }
  .hero__dot.is-active::after { animation: none; transform: scaleX(1); }
}

/* Google Translate: hide its injected banner */
.goog-te-banner-frame, #goog-gt-tt, .skiptranslate iframe { display: none !important; }
body { top: 0 !important; }

/* Dark colour scheme hints */
body.bf { color-scheme: dark; scrollbar-color: var(--bf-surface-3) var(--bf-surface); }
