:root {
  --bf-bg: #09090c;
  --bf-panel: #151319;
  --bf-edge: rgba(255, 255, 255, 0.14);
  --bf-text: #fff8f1;
  --bf-dim: #b8aca4;
  --bf-orange: #ff8a3d;
  --bf-violet: #a86bff;
  --bf-teal: #47f0d2;
  --bf-yellow: #ffe66d;
  --bf-ink: #070509;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bf-bg); color-scheme: dark; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--bf-text);
  background:
    radial-gradient(circle at 20% 18%, rgba(255,138,61,.19), transparent 26rem),
    radial-gradient(circle at 80% 8%, rgba(168,107,255,.18), transparent 28rem),
    linear-gradient(145deg, #09090c, #17131d 58%, #09090c);
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(60deg, rgba(255,255,255,.04) 25%, transparent 25% 75%, rgba(255,255,255,.04) 75%),
    linear-gradient(120deg, rgba(255,255,255,.035) 25%, transparent 25% 75%, rgba(255,255,255,.035) 75%);
  background-size: 80px 46px;
  mask-image: linear-gradient(#000, transparent 80%);
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.bf-wrap { width: min(1390px, 100%); margin: 0 auto; padding: 22px; }
.bf-rail { position: sticky; top: 0; z-index: 25; display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 16px; align-items: center; padding: 12px 0; backdrop-filter: blur(16px); }
.bf-logo { display: inline-flex; gap: 10px; align-items: center; font-weight: 950; }
.bf-cube { display: grid; width: 36px; height: 36px; place-items: center; color: var(--bf-ink); background: linear-gradient(135deg, var(--bf-orange), var(--bf-violet)); border-radius: 6px; transform: skew(-8deg); }
.bf-cube::after { width: 14px; height: 14px; content: ""; border: 3px solid currentColor; border-right-color: transparent; border-bottom-color: transparent; transform: rotate(45deg); }
.bf-tabs { display: flex; gap: 7px; justify-content: center; padding: 6px; border: 1px solid var(--bf-edge); border-radius: 8px; background: rgba(9,9,12,.72); }
.bf-tabs a, .bf-button, .bf-secondary, .bf-square, .bf-unit, .bf-drill, .bf-card, .bf-price, .bf-hit { border: 1px solid var(--bf-edge); }
.bf-tabs a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; color: var(--bf-dim); border-radius: 6px; }
.bf-tabs a[aria-current="page"] { color: var(--bf-ink); border-color: transparent; background: var(--bf-yellow); }
.bf-tools { display: flex; gap: 10px; justify-content: flex-end; }
.bf-square, .bf-button, .bf-secondary { display: inline-flex; gap: 8px; align-items: center; justify-content: center; min-height: 42px; color: var(--bf-text); cursor: pointer; border-radius: 8px; background: rgba(255,255,255,.045); }
.bf-square { width: 42px; }
.bf-button, .bf-secondary { padding: 0 16px; font-weight: 850; }
.bf-button { color: var(--bf-ink); border-color: transparent; background: linear-gradient(135deg, var(--bf-orange), var(--bf-yellow)); }
.bf-square svg, .bf-button svg, .bf-secondary svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.bf-hero { display: grid; grid-template-columns: minmax(0,.9fr) minmax(440px,1.1fr); gap: 28px; align-items: center; min-height: calc(100vh - 86px); padding: 28px 0 42px; }
.bf-label { display: inline-flex; gap: 9px; align-items: center; margin: 0 0 18px; color: var(--bf-teal); font-size: .78rem; font-weight: 950; text-transform: uppercase; }
.bf-label::before { width: 10px; height: 10px; content: ""; background: currentColor; clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%); }
.bf-title { max-width: 12ch; margin: 0 0 18px; font-size: clamp(4rem,9vw,8rem); line-height: .84; }
.bf-page-title { max-width: 980px; margin: 0 0 18px; font-size: clamp(3.1rem,8vw,7rem); line-height: .9; }
.bf-text { max-width: 58ch; margin: 0 0 26px; color: #d8ccc4; font-size: clamp(1.04rem,1.8vw,1.24rem); line-height: 1.62; }
.bf-actions, .bf-metrics { display: flex; flex-wrap: wrap; gap: 12px; }
.bf-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); max-width: 680px; margin-top: 26px; }
.bf-metric { padding: 15px; border-left: 1px solid var(--bf-edge); }
.bf-metric strong { display: block; margin-bottom: 5px; font-size: 1.45rem; }
.bf-metric span { color: var(--bf-dim); font-size: .9rem; }
.bf-lab { overflow: hidden; border: 1px solid rgba(255,138,61,.42); border-radius: 10px; background: rgba(16,14,20,.86); box-shadow: 0 28px 90px rgba(0,0,0,.45); }
.bf-lab-head { display: flex; justify-content: space-between; align-items: center; padding: 14px; border-bottom: 1px solid var(--bf-edge); }
.bf-live { display: inline-flex; gap: 10px; align-items: center; font-weight: 950; }
.bf-live::before { width: 10px; height: 10px; content: ""; background: var(--bf-teal); border-radius: 2px; box-shadow: 0 0 22px var(--bf-teal); }
.bf-sub { color: var(--bf-dim); font-size: .88rem; }
.bf-lab-body { display: grid; grid-template-columns: .82fr 1.18fr; gap: 1px; background: var(--bf-edge); }
.bf-panel, .bf-arena { padding: 16px; background: rgba(9,9,12,.94); }
.bf-field { display: grid; gap: 10px; margin-bottom: 16px; }
.bf-field > b { color: var(--bf-dim); font-size: .78rem; text-transform: uppercase; }
.bf-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.bf-option { display: grid; gap: 5px; min-height: 70px; padding: 11px; color: var(--bf-text); text-align: left; cursor: pointer; border: 1px solid var(--bf-edge); border-radius: 8px; background: rgba(255,255,255,.04); }
.bf-option[data-hot="true"] { color: var(--bf-ink); border-color: transparent; background: linear-gradient(135deg, var(--bf-teal), var(--bf-yellow)); }
.bf-option small { color: var(--bf-dim); }
.bf-option[data-hot="true"] small { color: rgba(7,5,9,.72); }
.bf-range { display: grid; grid-template-columns: 1fr 52px; gap: 12px; align-items: center; }
.bf-range input { width: 100%; accent-color: var(--bf-orange); }
.bf-number { padding: 8px 10px; text-align: center; border: 1px solid var(--bf-edge); border-radius: 8px; background: rgba(255,255,255,.05); }
.bf-canvas-box { position: relative; min-height: 410px; overflow: hidden; border: 1px solid var(--bf-edge); border-radius: 8px; background: #09090c; }
.bf-canvas { display: block; width: 100%; height: 100%; min-height: 410px; }
.bf-pills { position: absolute; right: 12px; bottom: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.bf-pill { padding: 7px 10px; border: 1px solid var(--bf-edge); border-radius: 999px; background: rgba(9,9,12,.78); backdrop-filter: blur(10px); }
.bf-section { padding: 58px 0 24px; }
.bf-heading { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,.55fr); gap: 26px; align-items: end; margin-bottom: 20px; }
.bf-heading h2 { margin: 0; font-size: clamp(2.1rem,5vw,4.7rem); line-height: .95; }
.bf-heading p { margin: 0; color: #d8ccc4; line-height: 1.55; }
.bf-units, .bf-drills, .bf-prices, .bf-split { display: grid; gap: 12px; }
.bf-units { grid-template-columns: repeat(4,minmax(0,1fr)); }
.bf-drills, .bf-prices { grid-template-columns: repeat(3,minmax(0,1fr)); }
.bf-split { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.bf-unit, .bf-drill, .bf-card, .bf-price { padding: 18px; border-radius: 8px; background: rgba(255,255,255,.04); }
.bf-unit { min-height: 235px; cursor: pointer; }
.bf-unit[data-on="true"] { border-color: rgba(255,138,61,.64); }
.bf-unit-icon { display: grid; width: 46px; height: 46px; margin-bottom: 26px; place-items: center; color: var(--bf-ink); background: var(--bf-tone); border-radius: 6px; transform: skew(-8deg); }
.bf-unit-icon svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; fill: none; }
.bf-unit h3, .bf-drill strong, .bf-price h3 { margin: 0 0 8px; }
.bf-unit p, .bf-drill p, .bf-price li { margin: 0; color: #d8ccc4; line-height: 1.5; }
.bf-page { min-height: 54vh; padding: 72px 0 34px; }
.bf-price-tag { margin: 20px 0; font-size: 2.8rem; font-weight: 950; }
.bf-price-tag span { color: var(--bf-dim); font-size: 1rem; }
.bf-price ul { display: grid; gap: 9px; min-height: 126px; padding: 0; margin: 0 0 18px; list-style: none; }
.bf-price li::before { margin-right: 8px; color: var(--bf-orange); content: ">"; }
.bf-form { display: grid; gap: 12px; }
.bf-form label { display: grid; gap: 8px; color: var(--bf-dim); font-size: .82rem; font-weight: 950; text-transform: uppercase; }
.bf-input { width: 100%; padding: 13px 14px; color: var(--bf-text); border: 1px solid var(--bf-edge); border-radius: 8px; outline: 0; background: rgba(255,255,255,.05); }
.bf-input:focus { border-color: var(--bf-orange); box-shadow: 0 0 0 3px rgba(255,138,61,.13); }
.bf-palette { position: fixed; inset: 0; z-index: 60; display: none; place-items: start center; padding: 12vh 18px 18px; background: rgba(7,5,9,.76); backdrop-filter: blur(16px); }
.bf-palette[data-visible="true"] { display: grid; }
.bf-palette-box { width: min(720px,100%); overflow: hidden; border: 1px solid rgba(255,138,61,.42); border-radius: 10px; background: #121016; box-shadow: 0 28px 90px rgba(0,0,0,.45); }
.bf-palette input { width: 100%; min-height: 62px; padding: 0 18px; color: var(--bf-text); border: 0; border-bottom: 1px solid var(--bf-edge); outline: 0; background: transparent; }
.bf-hit-list { display: grid; gap: 8px; padding: 12px; }
.bf-hit { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 10px; align-items: center; min-height: 58px; padding: 10px; color: var(--bf-text); cursor: pointer; text-align: left; border-radius: 8px; background: rgba(255,255,255,.04); }
.bf-hit kbd { display: grid; width: 38px; height: 38px; place-items: center; color: var(--bf-ink); background: var(--bf-orange); border-radius: 8px; }
.bf-hit span { color: var(--bf-dim); font-size: .88rem; }
.bf-foot { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 38px 0 12px; color: var(--bf-dim); font-size: .88rem; }
.bf-foot nav { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width:1080px) {
  .bf-hero, .bf-lab-body, .bf-heading, .bf-split { grid-template-columns: 1fr; }
  .bf-units, .bf-drills, .bf-prices { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:740px) {
  .bf-wrap { padding: 14px; }
  .bf-rail { position: static; grid-template-columns: 1fr auto; }
  .bf-tabs { grid-column: 1 / -1; justify-content: flex-start; overflow-x: auto; }
  .bf-tools .bf-secondary { display: none; }
  .bf-title { font-size: clamp(3rem,18vw,5rem); }
  .bf-metrics, .bf-grid, .bf-units, .bf-drills, .bf-prices { grid-template-columns: 1fr; }
  .bf-foot { align-items: flex-start; flex-direction: column; }
}
