/* BlockForge landing page — page-specific styles (tokens/components in /static/css/brand.css) */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.reduced-motion { scroll-behavior: auto; }
body {
  margin: 0; overflow-x: hidden;
  font: 500 1.0625rem/1.6 var(--bf-font-body); color: var(--bf-ink);
  background: var(--bf-paper);
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
h1, h2, h3 { font-family: var(--bf-font-display); font-weight: 400; letter-spacing: .01em; }
a { color: var(--bf-blue-d); }
:focus-visible { outline: 3px solid var(--bf-blue); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: 90px; }

.lp-skip {
  position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px;
  background: var(--bf-ink); color: #fff; border-radius: 10px; font-weight: 800; text-decoration: none;
}
.lp-skip:focus { top: 12px; }

/* ---------- shared typography ---------- */
.lp-kicker {
  display: inline-flex; align-items: center; gap: .5em; margin: 0 0 14px;
  padding: 6px 14px 6px 10px; border-radius: var(--bf-r-pill);
  font: 800 .82rem/1.2 var(--bf-font-body); letter-spacing: .08em; text-transform: uppercase;
  color: var(--bf-ink); background: #fff; box-shadow: 0 4px 0 rgba(27,33,65,.12);
}
.lp-kicker svg { width: 18px; height: 18px; color: var(--bf-blue); }
.lp-h2 { margin: 0 0 14px; font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.02; }
.lp-h3 { margin: 0 0 6px; font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.05; }
.lp-lead { margin: 0; max-width: 60ch; font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--bf-ink-2); }
.lp-head { text-align: center; margin: 0 auto clamp(40px, 6vw, 70px); max-width: 780px; }
.lp-head .lp-lead { margin-inline: auto; }
.lp-head--left { text-align: left; margin-left: 0; }
.lp-head--left .lp-lead { margin-inline: 0; }
.lp-section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }

/* blocky "battlement" edge on top of coloured sections */
.lp-showcase::before, .lp-features::before, .lp-integration::before, .lp-faq::before, .lp-cta::before, .lp-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 23px; pointer-events: none;
  background: linear-gradient(90deg, var(--edge) 50%, transparent 0) 0 0 / 88px 100% repeat-x; z-index: 2;
}

/* ---------- header / nav ---------- */
.lp-header {
  position: fixed; inset: 0 0 auto; z-index: 50; padding: 12px 0;
  transition: transform .35s ease, padding .25s ease;
}
.lp-header.is-scrolled { padding: 8px 0; }
.lp-header.is-hidden { transform: translateY(-110%); }
.lp-nav { gap: 10px; }
.lp-nav__links { margin-left: 14px; }
.lp-lang {
  display: inline-flex; padding: 3px; gap: 2px; border-radius: 11px;
  background: #e9eefb; box-shadow: inset 0 2px 0 rgba(27,33,65,.07);
}
.lp-lang a {
  padding: 6px 9px; border-radius: 8px; font: 900 .78rem/1 var(--bf-font-body);
  letter-spacing: .06em; color: var(--bf-muted); text-decoration: none;
}
.lp-lang a.is-active { color: var(--bf-ink); background: #fff; box-shadow: 0 2px 0 rgba(27,33,65,.14); }
.lp-hello { font-size: .92rem; color: var(--bf-ink-2); white-space: nowrap; }
.lp-burger {
  display: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--bf-ink); box-shadow: inset 0 -3px 0 rgba(0,0,0,.3);
}
.lp-burger span, .lp-burger span::before, .lp-burger span::after {
  display: block; width: 18px; height: 3px; margin: auto; border-radius: 2px; background: #fff; position: relative;
  transition: transform .2s;
}
.lp-burger span::before, .lp-burger span::after { content: ""; position: absolute; left: 0; }
.lp-burger span::before { top: -6px; } .lp-burger span::after { top: 6px; }
.lp-burger[aria-expanded="true"] span { background: transparent; }
.lp-burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.lp-burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1060px) {
  .lp-nav { position: relative; }
  .lp-burger { display: grid; place-items: center; }
  .lp-nav__links {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; margin: 0;
    flex-direction: column; padding: 10px; gap: 2px;
    background: #fff; border-radius: 18px; box-shadow: var(--bf-shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .2s ease;
  }
  .lp-nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .lp-nav__links .bf-nav__link { display: block; padding: 12px 14px; font-size: 1.05rem; }
  .lp-hello { display: none; }
}
.lp-menu-lang { display: none; }
@media (max-width: 520px) {
  .lp-hide-xs, .bf-nav__actions > .lp-lang { display: none; }
  .lp-menu-lang { display: block; padding: 8px 10px 4px; border-top: 2px solid #eef1fa; margin-top: 6px; }
  .lp-menu-lang + .lp-menu-lang { border-top: 0; margin-top: 0; }
  .lp-menu-lang .bf-nav__link { padding: 6px 4px; }
  .lp-nav { min-height: 56px; padding: 7px 8px 7px 12px; gap: 6px; }
  .lp-nav .bf-logo { font-size: 1.2rem; }
  .bf-nav__actions { gap: 6px; }
  .lp-lang a { padding: 6px 6px; }
}

/* ---------- HERO ---------- */
.lp-hero { position: relative; height: 340vh; }
.lp-hero__pin {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  isolation: isolate;
}
.reduced-motion .lp-hero, .no-js .lp-hero { height: auto; }
.reduced-motion .lp-hero__pin, .no-js .lp-hero__pin { position: relative; min-height: 680px; }

.lp-sky {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 70% at 75% 110%, #fff3cf 0%, rgba(255,243,207,0) 60%),
    linear-gradient(180deg, #5fb4ff 0%, #8fd0ff 38%, #c9ecff 70%, #fff6dc 100%);
}
.lp-sky__sun {
  position: absolute; right: 12%; top: 14%; width: 110px; height: 110px; border-radius: 26px;
  background: #fff3b0; transform: rotate(12deg);
  box-shadow: 0 0 0 18px rgba(255,243,176,.35), 0 0 120px 40px rgba(255,236,160,.7);
}
.lp-cloud {
  position: absolute; left: var(--x); top: var(--y); width: 180px; height: 46px;
  transform: translate3d(0, var(--py, 0px), 0) scale(var(--s));
  transform-origin: left top;
  background: #fff; border-radius: 14px; opacity: .92;
  box-shadow: 40px -26px 0 -2px #fff, 92px -14px 0 4px #fff, inset 0 -8px 0 rgba(124,170,220,.25);
}
.lp-stage { position: absolute; inset: 0; z-index: -1; }
.lp-stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; outline: none; }
.lp-stage__fallback {
  position: absolute; left: 50%; bottom: 4%; width: min(1100px, 130%); transform: translateX(-50%);
  border-radius: 24px; opacity: .95;
  -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent);
}
.has-webgl .lp-stage__fallback { display: none; }

.lp-hero__copy { position: relative; height: 100%; display: grid; align-items: center; pointer-events: none; }
.lp-beat { grid-area: 1 / 1; pointer-events: auto; transition: opacity .5s ease, transform .6s cubic-bezier(.2,.9,.25,1.2), visibility 0s linear .6s; }
.js:not(.reduced-motion) .lp-beat { opacity: 0; visibility: hidden; transform: translate3d(-30px, 20px, 0) scale(.96); }
.js:not(.reduced-motion) .lp-beat.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.reduced-motion .lp-beat--story, .no-js .lp-beat--story { display: none; }

.lp-beat--intro { max-width: 560px; padding-top: 70px; }
.lp-hero__title {
  margin: 0 0 18px; font-size: clamp(2.6rem, 6.4vw, 5.2rem); line-height: .96; color: #fff;
  text-shadow: 0 4px 0 var(--bf-ink), 3px 0 0 var(--bf-ink), -3px 0 0 var(--bf-ink), 0 -3px 0 var(--bf-ink),
               3px 4px 0 var(--bf-ink), -3px 4px 0 var(--bf-ink), 0 12px 24px rgba(27,33,65,.35);
}
.lp-hl { color: var(--bf-yellow); display: inline-block; }
.lp-hero__lead {
  margin: 0 0 26px; max-width: 46ch; font-size: clamp(1.02rem, 1.4vw, 1.18rem); font-weight: 700; color: var(--bf-ink);
  background: rgba(255,255,255,.78); padding: 14px 18px; border-radius: 16px;
  box-shadow: 0 5px 0 rgba(27,33,65,.1);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.lp-hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.lp-hero__note {
  display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0; padding: 6px 12px 6px 8px;
  font-size: .88rem; font-weight: 800; color: var(--bf-ink-2);
  background: rgba(255,255,255,.82); border-radius: 10px; box-shadow: 0 3px 0 rgba(27,33,65,.08);
}
.lp-hero__note svg { width: 18px; height: 18px; color: var(--bf-orange-d); flex: none; }
.lp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.lp-chips li {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px;
  font-size: .85rem; font-weight: 800; background: var(--bf-ink); color: #fff;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.35);
}
.lp-chips svg { width: 16px; height: 16px; color: var(--bf-yellow); }

.lp-beat--story { align-self: center; max-width: 520px; }
.lp-beat__tag {
  display: inline-block; padding: 6px 12px; margin-bottom: 14px; border-radius: 9px;
  font: 400 1rem/1 var(--bf-font-display); letter-spacing: .06em; text-transform: uppercase;
  background: var(--bf-ink); color: var(--bf-yellow); box-shadow: 0 4px 0 rgba(0,0,0,.18);
  transform: rotate(-3deg);
}
.lp-beat__title {
  margin: 0 0 16px; font: 400 clamp(2.2rem, 5vw, 4rem)/1 var(--bf-font-display); color: #fff; text-transform: uppercase;
  text-shadow: 0 4px 0 var(--bf-ink), 3px 0 0 var(--bf-ink), -3px 0 0 var(--bf-ink), 0 -3px 0 var(--bf-ink),
               3px 4px 0 var(--bf-ink), -3px 4px 0 var(--bf-ink), 0 14px 26px rgba(27,33,65,.35);
}
.lp-beat__text {
  display: inline-block; margin: 0; padding: 12px 16px; border-radius: 14px; max-width: 40ch;
  font-weight: 800; font-size: 1.08rem; background: #fff; box-shadow: 0 5px 0 rgba(27,33,65,.14);
}

.lp-pips {
  position: absolute; right: clamp(14px, 3vw, 36px); top: 50%; transform: translateY(-50%);
  display: grid; gap: 10px; margin: 0; padding: 0; list-style: none;
}
.lp-pips li {
  width: 14px; height: 14px; border-radius: 4px; background: rgba(255,255,255,.6);
  box-shadow: 0 3px 0 rgba(27,33,65,.2); transition: background .3s, transform .3s;
}
.lp-pips li.is-on { background: var(--bf-yellow); transform: scale(1.25) rotate(45deg); }
.reduced-motion .lp-pips, .no-js .lp-pips { display: none; }

.lp-scrollhint {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 6px; text-decoration: none;
  font: 900 .75rem/1 var(--bf-font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--bf-ink);
  transition: opacity .3s;
}
.lp-scrollhint i {
  width: 26px; height: 40px; border-radius: 10px; border: 3px solid var(--bf-ink); position: relative;
}
.lp-scrollhint i::after {
  content: ""; position: absolute; left: 50%; top: 6px; width: 6px; height: 8px; margin-left: -3px;
  border-radius: 2px; background: var(--bf-ink); animation: lp-wheel 1.6s ease-in-out infinite;
}
@keyframes lp-wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
.lp-scrolled .lp-scrollhint { opacity: 0; pointer-events: none; }

@media (max-width: 760px) {
  .lp-hero__copy { align-items: start; }
  .lp-beat--intro { padding-top: 88px; max-width: none; }
  .lp-hero__title { font-size: clamp(2.3rem, 11vw, 3.2rem); margin-bottom: 12px; }
  .lp-hero__lead { font-size: .98rem; padding: 10px 14px; margin-bottom: 16px; }
  .lp-hero__ctas .bf-btn--lg { min-height: 50px; font-size: 1.1rem; padding: .7em 1.2em; }
  .lp-hero__note { margin-top: 12px; font-size: .82rem; }
  .lp-chips { display: none; }
  .lp-beat--story { align-self: end; padding-bottom: 96px; }
  .lp-beat__title { font-size: clamp(2rem, 10vw, 2.8rem); }
  .lp-beat__text { font-size: 1rem; }
  .lp-pips { top: auto; bottom: 30px; right: 16px; transform: none; grid-auto-flow: column; }
  .lp-scrollhint { display: none; }
  .no-js .lp-hero__pin, .reduced-motion .lp-hero__pin { min-height: 760px; }
}
@media (max-height: 640px) and (min-width: 761px) {
  .lp-chips, .lp-hero__note { display: none; }
  .lp-hero__title { font-size: clamp(2.2rem, 5vw, 3.6rem); }
}

/* ---------- reveal on scroll ---------- */
.js:not(.reduced-motion) [data-reveal] {
  opacity: 0; transform: perspective(900px) translate3d(0, 46px, 0) rotateX(16deg);
  transition: opacity .7s ease, transform .9s cubic-bezier(.2,.85,.25,1.15);
  transition-delay: var(--d, 0ms);
}
.js:not(.reduced-motion) [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- tilt cards ---------- */
.lp-tilt { position: relative; transform-style: preserve-3d; will-change: transform; }
.js:not(.reduced-motion) .lp-tilt.is-in {
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px));
  transition: transform .25s ease-out, opacity .7s ease;
  transition-delay: 0s;
}
.lp-tilt::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.55), transparent 45%);
  opacity: var(--glare, 0); transition: opacity .3s; mix-blend-mode: soft-light;
}

/* ---------- floating parallax blocks ---------- */
.lp-float {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); z-index: 0;
  color: var(--c); pointer-events: none;
  transform: translate3d(0, var(--py, 0px), 0) rotate(var(--pr, 0deg));
  filter: drop-shadow(0 10px 0 rgba(27,33,65,.12));
}
.lp-float svg { width: 100%; height: 100%; }
@media (max-width: 760px) { .lp-float { opacity: .55; --s: 38px !important; } }

/* ---------- HOW IT WORKS ---------- */
.lp-how {
  background:
    radial-gradient(circle at 1px 1px, rgba(27,33,65,.08) 1.5px, transparent 0) 0 0 / 26px 26px,
    linear-gradient(180deg, #fff6dc 0%, var(--bf-paper) 26%);
}
.lp-how__cta { display: flex; justify-content: center; margin: clamp(26px, 4vw, 44px) 0 0; }
.lp-steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.6vw, 34px); }
.lp-steps__path {
  position: absolute; left: 6%; right: 6%; top: 18px; width: 88%; height: 60px; z-index: 0; overflow: visible;
}
.lp-steps__path path {
  fill: none; stroke: var(--bf-ink); stroke-width: 4; stroke-linecap: round; stroke-dasharray: .012 .012;
  vector-effect: non-scaling-stroke; opacity: .25;
}
.lp-step { position: relative; z-index: 1; padding-top: 34px; margin-top: 46px; }
.lp-step .bf-card__title { font-size: 1.6rem; }
.lp-step__tag {
  display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 12px;
  padding: 5px 10px; border-radius: 9px; font-size: .8rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase;
  background: #eef3ff; color: var(--bf-blue-d);
}
.lp-step__tag svg { width: 16px; height: 16px; }
.lp-step__progress { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.lp-step__progress .bf-progress { flex: 1; }
.lp-timer {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 9px;
  font: 400 .95rem/1 var(--bf-font-display); background: var(--bf-ink); color: var(--bf-yellow);
}
.lp-timer svg { width: 15px; height: 15px; }

/* 3D CSS cube with the step number */
.lp-cube3d {
  --z: 32px; --c: var(--bf-blue); --cd: var(--bf-blue-d);
  position: absolute; top: -48px; left: 26px; width: 64px; height: 64px;
  transform-style: preserve-3d;
  transform: rotateX(-24deg) rotateY(calc(-32deg + var(--spin, 0deg)));
}
.lp-cube3d i {
  position: absolute; inset: 0; display: grid; place-items: center; border-radius: 12px;
  font: 400 2.2rem/1 var(--bf-font-display); font-style: normal; color: #fff;
  background: var(--c); box-shadow: inset 0 0 0 3px rgba(255,255,255,.18), inset 0 -6px 0 rgba(0,0,0,.14);
  backface-visibility: hidden; text-shadow: 0 3px 0 rgba(0,0,0,.2);
}
.lp-cube3d .f1 { transform: translateZ(var(--z)); }
.lp-cube3d .f2 { transform: rotateY(180deg) translateZ(var(--z)); filter: brightness(.8); }
.lp-cube3d .f3 { transform: rotateY(90deg) translateZ(var(--z)); filter: brightness(.82); }
.lp-cube3d .f4 { transform: rotateY(-90deg) translateZ(var(--z)); filter: brightness(.9); }
.lp-cube3d .f5 { transform: rotateX(90deg) translateZ(var(--z)); filter: brightness(1.15); }
.lp-cube3d .f6 { transform: rotateX(-90deg) translateZ(var(--z)); filter: brightness(.6); }
.lp-cube3d--orange { --c: var(--bf-orange); }
.lp-cube3d--green { --c: var(--bf-green); }

@media (max-width: 860px) {
  .lp-steps { grid-template-columns: 1fr; gap: 30px; max-width: 560px; margin: 0 auto; }
  .lp-steps__path { display: none; }
}

/* ---------- SHOWCASE ---------- */
.lp-showcase {
  --edge: #161b3a;
  color: #fff; background: #161b3a; padding-bottom: 0;
  background-image:
    radial-gradient(60% 40% at 50% 0%, rgba(47,123,255,.35), transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1.5px, transparent 0);
  background-size: auto, 26px 26px;
}
.lp-showcase .lp-kicker { background: var(--bf-yellow); }
.lp-showcase .lp-kicker svg { color: var(--bf-ink); }
.lp-showcase .lp-lead, .lp-sets__head p { color: #c3c9ea; }
.lp-phones { display: flex; justify-content: center; align-items: center; gap: clamp(20px, 4vw, 60px); perspective: 1400px; }
.lp-swap { width: min(320px, 100%); color: var(--bf-ink); text-align: left; }
.lp-swap__langs { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.lp-swap__langs b {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; font: 400 1.5rem/1 var(--bf-font-display);
  color: #fff; background: var(--bf-blue); box-shadow: var(--bf-bevel), 0 5px 0 var(--bf-blue-d);
}
.lp-swap__langs b + i + b { background: var(--bf-red); box-shadow: var(--bf-bevel), 0 5px 0 var(--bf-red-d); }
.lp-swap__langs i { flex: 1; height: 6px; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--bf-ink) 0 10px, transparent 10px 18px); opacity: .3; animation: lp-dash 1s linear infinite; }
@keyframes lp-dash { to { background-position: 18px 0; } }
.lp-swap ul { display: grid; gap: 10px; margin: 6px 0 0; padding: 0; list-style: none; }
.lp-swap li { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; color: var(--bf-ink-2); }
.lp-swap li svg { flex: none; width: 24px; height: 24px; padding: 3px; border-radius: 7px; color: #fff; background: var(--bf-green); }
@media (max-width: 900px) {
  .lp-phones { flex-wrap: wrap; }
  .lp-swap { order: 3; width: 100%; max-width: 520px; }
}
.lp-phone { margin: 0; width: min(300px, 42vw); text-align: center; }
.lp-phone__screen {
  position: relative; aspect-ratio: 9 / 16; border-radius: 34px; overflow: hidden;
  background: #000; border: 10px solid #262c52;
  box-shadow: 0 0 0 3px #3a4275, 0 14px 0 #0d1130, 0 40px 70px -20px rgba(0,0,0,.7);
  transform: rotateY(var(--tilt, 0deg)) translateY(var(--lift, 0px));
  transition: transform .2s linear;
}
.lp-phone--it .lp-phone__screen { --tilt-base: 9deg; }
.lp-phone--en .lp-phone__screen { --tilt-base: -9deg; }
.lp-phone__video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.lp-phone__play {
  position: absolute; left: 50%; top: 50%; width: 86px; height: 86px; margin: -43px 0 0 -43px;
  display: grid; place-items: center; border: 0; border-radius: 24px; cursor: pointer;
  background: var(--bf-yellow); color: var(--bf-ink);
  box-shadow: var(--bf-bevel), 0 6px 0 var(--bf-yellow-d), 0 16px 30px rgba(0,0,0,.45);
  transition: transform .15s ease;
}
.lp-phone__play:hover { transform: scale(1.07) rotate(-4deg); }
.lp-phone__play svg { width: 40px; height: 40px; margin-left: 4px; }
.lp-phone.is-playing .lp-phone__play { opacity: 0; pointer-events: none; }
.lp-phone figcaption { margin-top: 24px; font-weight: 800; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.lp-phone figcaption small { flex-basis: 100%; font-weight: 600; color: #98a0cf; }
.lp-langtag {
  padding: 4px 8px; border-radius: 7px; font: 400 .9rem/1 var(--bf-font-display);
  background: var(--bf-blue); box-shadow: inset 0 -3px 0 var(--bf-blue-d);
}
.lp-phone--en .lp-langtag { background: var(--bf-red); box-shadow: inset 0 -3px 0 var(--bf-red-d); }

.lp-sets { position: relative; margin-top: clamp(70px, 9vw, 120px); }
.lp-sets__pin { padding-bottom: clamp(60px, 8vw, 110px); }
.lp-sets__head { margin-bottom: 10px; }
.lp-sets__viewport {
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding: 30px 0 34px; perspective: 1200px;
}
.lp-sets__viewport::-webkit-scrollbar { display: none; }
.lp-sets__track {
  display: flex; gap: 22px; margin: 0; padding: 0 max(16px, calc((100vw - 1180px) / 2)); list-style: none;
  width: max-content; transform-style: preserve-3d;
}
.lp-set { flex: none; width: clamp(150px, min(18vw, (100vh - 430px) * .5625), 220px); scroll-snap-align: center; transform-style: preserve-3d; }
.lp-set figure { margin: 0; }
.lp-set img {
  width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 20px; background: #222851;
  border: 4px solid #fff; box-shadow: 0 10px 0 #0d1130, 0 26px 40px -14px rgba(0,0,0,.7);
}
.lp-set figcaption {
  margin-top: 16px; text-align: center; font: 400 1.05rem/1.1 var(--bf-font-display); letter-spacing: .02em;
}
/* pinned horizontal scroll (desktop, motion allowed; enabled by JS) */
.lp-sets.is-pinned .lp-sets__pin {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 84px 0 0;
  overflow: hidden;
}
.lp-sets.is-pinned .lp-sets__viewport { overflow: visible; scroll-snap-type: none; }
.lp-sets.is-pinned .lp-sets__track { will-change: transform; transform: translate3d(var(--sx, 0px), 0, 0); }
.lp-sets.is-pinned .lp-set { transform: rotateY(var(--r, 0deg)) translateZ(var(--z, 0px)) scale(var(--sc, 1)); }

/* ---------- FEATURES ---------- */
.lp-features { --edge: #eaf4ff; background: linear-gradient(180deg, #eaf4ff 0%, var(--bf-paper) 40%); overflow-x: clip; }
.lp-bento { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.lp-feat { grid-column: span 4; display: flex; flex-direction: column; overflow: hidden; }
.lp-feat--sets, .lp-feat--cast { grid-column: span 6; }
.lp-feat--small { grid-column: span 3; }
.lp-feat .bf-card__title { font-size: 1.45rem; }
.lp-feat .bf-card__body { margin: 0; font-size: 1rem; }
.lp-feat__icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px; border-radius: 15px;
  color: var(--fg, #fff); background: var(--c); box-shadow: var(--bf-bevel), 0 5px 0 rgba(27,33,65,.18);
  transform: rotate(-4deg);
}
.lp-feat__icon svg { width: 28px; height: 28px; }
.lp-stat { margin: 0 0 2px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.lp-count { font: 400 3.4rem/1 var(--bf-font-display); color: var(--bf-ink); font-variant-numeric: tabular-nums; }
.lp-stat small { font-weight: 900; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--bf-muted); }

.lp-wave { display: flex; align-items: center; gap: 4px; height: 54px; margin-top: auto; padding-top: 18px; }
.lp-wave i {
  flex: 1; height: 100%; border-radius: 4px; background: var(--bf-blue); transform-origin: center;
  transform: scaleY(calc(.2 + .8 * var(--h, .5)));
  animation: lp-wave 1.1s ease-in-out infinite alternate; animation-delay: calc(var(--k) * -97ms);
}
.lp-wave i:nth-child(3n) { background: var(--bf-sky-d); }
@keyframes lp-wave { from { transform: scaleY(.18); } to { transform: scaleY(1); } }
.lp-langs { display: flex; gap: 8px; margin-top: 12px; }
.lp-langs b {
  padding: 5px 10px; border-radius: 8px; font: 400 1rem/1 var(--bf-font-display); color: #fff;
  background: var(--bf-blue); box-shadow: inset 0 -3px 0 var(--bf-blue-d);
}
.lp-langs b + b { background: var(--bf-red); box-shadow: inset 0 -3px 0 var(--bf-red-d); }

.lp-capdemo {
  margin-top: auto; padding: 26px 16px; border-radius: 16px; text-align: center;
  background: linear-gradient(160deg, #3a2a6d, #1b2141 70%), #1b2141; position: relative; overflow: hidden;
  min-height: 132px; display: grid; place-items: center;
}
.lp-capdemo::before {
  content: ""; position: absolute; inset: auto -10% -40% -10%; height: 80%;
  background: radial-gradient(closest-side, rgba(255,203,46,.35), transparent);
}
.lp-capdemo p { position: relative; margin: 0; font: 400 1.45rem/1.25 var(--bf-font-display); text-transform: uppercase; color: #fff; }
.lp-capdemo span {
  display: inline-block; text-shadow: 0 3px 0 #000, 2px 0 0 #000, -2px 0 0 #000, 0 -2px 0 #000;
  animation: lp-word calc(var(--n) * 420ms + 900ms) steps(1) infinite;
  animation-delay: calc(var(--i) * 420ms);
}
@keyframes lp-word { 0% { color: var(--bf-yellow); transform: scale(1.14) translateY(-2px); } 8%, 100% { color: #fff; transform: none; } }
.lp-feat--captions { margin-top: 0; }
.lp-feat--captions .lp-capdemo { margin-top: 18px; }

.lp-eq { display: flex; align-items: flex-end; gap: 6px; height: 60px; margin-top: auto; padding-top: 18px; }
.lp-eq i {
  flex: 1; height: 100%; border-radius: 5px 5px 3px 3px; transform-origin: bottom;
  background: linear-gradient(var(--bf-yellow), var(--bf-orange)); box-shadow: inset 0 -3px 0 rgba(0,0,0,.12);
  animation: lp-eq .9s ease-in-out infinite alternate; animation-delay: calc(var(--k) * -137ms);
}
@keyframes lp-eq { from { transform: scaleY(.2); } to { transform: scaleY(1); } }

.lp-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 20px; }
.lp-mosaic img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; border: 3px solid #fff;
  box-shadow: 0 5px 0 rgba(27,33,65,.18);
  transition: transform .3s ease;
}
.lp-mosaic img:nth-child(odd) { transform: rotate(-3deg); }
.lp-mosaic img:nth-child(even) { transform: rotate(3deg) translateY(8px); }
.lp-feat--sets:hover .lp-mosaic img { transform: none; }
.lp-feat__lineup {
  width: calc(100% + 40px); max-width: none; margin: 14px -20px -28px; aspect-ratio: 4 / 1; object-fit: cover;
  -webkit-mask-image: linear-gradient(transparent, #000 16%); mask-image: linear-gradient(transparent, #000 16%);
}
.lp-frames { display: flex; align-items: flex-end; gap: 10px; height: 64px; margin-bottom: 18px; }
.lp-frames span {
  display: grid; place-items: center; border-radius: 9px; font: 400 .9rem/1 var(--bf-font-display); color: #fff;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.18);
}
.lp-frames .v { width: 36px; height: 64px; background: var(--bf-green); }
.lp-frames .h { width: 86px; height: 48px; background: var(--bf-blue); }

@media (max-width: 1000px) {
  .lp-bento { grid-template-columns: repeat(2, 1fr); }
  .lp-feat, .lp-feat--small { grid-column: span 1; }
  .lp-feat--sets, .lp-feat--cast { grid-column: span 2; }
}
@media (max-width: 620px) {
  .lp-bento { grid-template-columns: 1fr; }
  .lp-feat, .lp-feat--small, .lp-feat--sets, .lp-feat--cast { grid-column: span 1; }
  .lp-count { font-size: 2.8rem; }
}

/* ---------- INTEGRATION ---------- */
.lp-integration {
  --edge: #2f7bff;
  background: linear-gradient(160deg, #2f7bff 0%, #4d8dff 45%, #7a6bff 100%); color: #fff;
}
.lp-integration .lp-lead { color: #e7edff; }
.lp-integration .lp-h2 { text-shadow: 0 4px 0 rgba(13,17,48,.35); }
.lp-integration__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.lp-works { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: -30px 0 28px; font-weight: 800; }
.lp-pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 12px;
  font: 400 1.1rem/1 var(--bf-font-display); color: var(--bf-ink); background: #fff;
  box-shadow: inset 0 -4px 0 rgba(27,33,65,.12), 0 5px 0 rgba(13,17,48,.25);
}
.lp-pill svg { width: 20px; height: 20px; color: var(--bf-blue); }
.lp-points { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.lp-points li {
  display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; border-radius: 18px;
  background: rgba(255,255,255,.12); box-shadow: inset 0 -4px 0 rgba(13,17,48,.16), inset 0 2px 0 rgba(255,255,255,.15);
}
.lp-points h3 { margin: 0 0 2px; font-size: 1.3rem; }
.lp-points p { margin: 0; color: #e7edff; font-size: .98rem; }
.lp-points__icon {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px;
  background: var(--bf-yellow); color: var(--bf-ink); box-shadow: var(--bf-bevel), 0 4px 0 var(--bf-yellow-d);
}
.lp-points__icon svg { width: 24px; height: 24px; }

.lp-chat { padding: 0; overflow: hidden; color: var(--bf-ink); box-shadow: 0 14px 0 rgba(13,17,48,.3), 0 50px 80px -30px rgba(13,17,48,.6); }
.lp-chat__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #eef2fc; border-bottom: 2px solid #e1e7f6; }
.lp-chat__bar i { width: 12px; height: 12px; border-radius: 4px; background: var(--bf-red); }
.lp-chat__bar i:nth-child(2) { background: var(--bf-yellow); }
.lp-chat__bar i:nth-child(3) { background: var(--bf-green); }
.lp-chat__bar span { margin-left: 8px; font-weight: 900; font-size: .85rem; color: var(--bf-muted); }
.lp-chat__body { display: grid; gap: 12px; padding: 18px; min-height: 470px; align-content: start; }
.lp-msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: .97rem; line-height: 1.45; }
.lp-msg b { display: block; font: 400 .8rem/1 var(--bf-font-display); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; opacity: .7; }
.lp-msg p { margin: 0; }
.lp-msg--you { justify-self: end; background: var(--bf-ink); color: #fff; border-bottom-right-radius: 4px; }
.lp-msg--ai { justify-self: start; background: #f0f3fb; border-bottom-left-radius: 4px; }
.lp-msg--tool { justify-self: stretch; max-width: none; background: #fff; border: 2px dashed #cfd8f0; }
.lp-msg__tool { display: flex; align-items: center; gap: 8px; margin: 0 0 10px !important; font-weight: 900; font-size: .9rem; }
.lp-msg__tool svg { width: 22px; height: 22px; }
.lp-msg__tool .bf-badge { margin-left: auto; }
.lp-dl {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 12px; border-radius: 11px;
  font: 400 1rem/1 var(--bf-font-display); color: #fff; background: var(--bf-green); box-shadow: inset 0 -4px 0 var(--bf-green-d);
}
.lp-dl > svg { width: 18px; height: 18px; }
.lp-dl em { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 3px 7px; border-radius: 7px; font-style: normal; background: rgba(0,0,0,.18); }
.lp-dl em svg { width: 14px; height: 14px; }
/* sequenced chat animation */
.js:not(.reduced-motion) [data-chat] .lp-msg { opacity: 0; transform: translateY(14px) scale(.97); transition: opacity .4s ease, transform .5s cubic-bezier(.2,.9,.3,1.3); }
.js:not(.reduced-motion) [data-chat] .lp-msg.is-shown { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .lp-integration__grid { grid-template-columns: 1fr; }
  .lp-chat__body { min-height: 0; }
}

/* ---------- FAQ ---------- */
.lp-faq { --edge: var(--bf-paper); background: var(--bf-paper); }
.lp-faq__wrap { max-width: 860px; }
.lp-faq__list { display: grid; gap: 14px; }
.lp-qa {
  background: #fff; border-radius: 18px; border: 2px solid rgba(27,33,65,.06);
  box-shadow: 0 5px 0 rgba(27,33,65,.1); transition: box-shadow .2s;
}
.lp-qa[open] { box-shadow: 0 5px 0 var(--bf-blue), 0 18px 30px -18px rgba(27,33,65,.4); }
.lp-qa summary {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none;
  font: 400 1.2rem/1.25 var(--bf-font-display);
}
.lp-qa summary::-webkit-details-marker { display: none; }
.lp-qa summary svg {
  flex: none; margin-left: auto; width: 34px; height: 34px; padding: 7px; border-radius: 10px;
  color: #fff; background: var(--bf-blue); box-shadow: inset 0 -3px 0 var(--bf-blue-d); transition: transform .25s ease, background .2s;
}
.lp-qa[open] summary svg { transform: rotate(135deg); background: var(--bf-orange); box-shadow: inset 0 -3px 0 var(--bf-orange-d); }
.lp-qa p { margin: 0; padding: 0 20px 20px; color: var(--bf-ink-2); }

/* ---------- FINAL CTA ---------- */
.lp-cta {
  --edge: #5fb4ff;
  position: relative; isolation: isolate; overflow-x: clip; text-align: center;
  min-height: 92vh; display: grid; align-content: start; padding: clamp(80px, 10vw, 120px) 0 0;
  background: linear-gradient(180deg, #5fb4ff 0%, #9bd6ff 50%, #e8f6ff 100%);
}
.lp-cta .lp-stage { z-index: -1; }
.lp-cta__blocks { position: absolute; inset: 0; z-index: -2; }
.lp-cta__inner { position: relative; }
.lp-cta .lp-h2 {
  color: #fff; font-size: clamp(2.3rem, 6vw, 4.6rem);
  text-shadow: 0 5px 0 var(--bf-ink), 3px 0 0 var(--bf-ink), -3px 0 0 var(--bf-ink), 0 -3px 0 var(--bf-ink), 3px 5px 0 var(--bf-ink), -3px 5px 0 var(--bf-ink);
}
.lp-cta .lp-lead { margin: 0 auto 28px; color: var(--bf-ink); font-weight: 700; }
.lp-cta__btns { justify-content: center; }
.lp-cta::after { /* ground under the 3D crowd when WebGL is missing */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; z-index: -3;
  background: linear-gradient(#5cc86a, #3fa552);
}
.has-webgl .lp-cta::after { display: none; }

/* ---------- FOOTER ---------- */
.lp-footer { --edge: var(--bf-ink); position: relative; background: var(--bf-ink); color: #c3c9ea; padding: 60px 0 30px; }
.lp-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.lp-footer__logo { color: #fff; }
.lp-footer__logo b { color: var(--bf-yellow); }
.lp-footer h3 { margin: 0 0 10px; color: #fff; font-size: 1.1rem; }
.lp-footer nav { display: grid; gap: 6px; align-content: start; }
.lp-footer nav a { color: #c3c9ea; text-decoration: none; font-weight: 700; }
.lp-footer nav a:hover { color: #fff; }
.lp-lang--footer { margin-top: 8px; width: max-content; background: rgba(255,255,255,.08); }
.lp-lang--footer a { color: #c3c9ea !important; }
.lp-lang--footer a.is-active { background: #fff; color: var(--bf-ink) !important; }
.lp-footer__fine { margin-top: 40px; padding-top: 20px; border-top: 2px solid rgba(255,255,255,.08); font-size: .85rem; color: #8b92c0; }
.lp-footer__fine p { margin: 0 0 6px; }
@media (max-width: 760px) { .lp-footer__grid { grid-template-columns: 1fr 1fr; } .lp-footer__grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- reduced motion: kill decorative animation ---------- */
@media (prefers-reduced-motion: reduce) {
  .lp-wave i, .lp-eq i, .lp-capdemo span, .lp-scrollhint i::after { animation: none !important; }
  .lp-capdemo span:nth-child(2) { color: var(--bf-yellow); }
  .lp-wave i { transform: scaleY(.55); } .lp-wave i:nth-child(3n) { transform: scaleY(.9); } .lp-wave i:nth-child(4n+1) { transform: scaleY(.3); }
  .lp-eq i { transform: scaleY(calc(.3 + .07 * var(--k))); }
}
