/* ============================================================================
   OneCloud BBS - Theme 2026
   A self-contained design system for the marketing site.
   Loaded AFTER bootstrap.min.css. Does not depend on css/index.css, so the
   legacy pages that still use index.css are unaffected.

   Structure:
     1. Design tokens          6. Cards / bento
     2. Base + typography      7. Marquee + logos
     3. Motion primitives      8. Pricing + FAQ + CTA
     4. Navigation             9. Footer + floating UI
     5. Hero                  10. Responsive + reduced motion
   ========================================================================= */

/* ---------------------------------------------------------------- 1. TOKENS */
:root {
    /* Brand - kept from the original navy identity */
    --navy-900: #001c3a;
    --navy-800: #003366;
    --navy-700: #04478c;
    --navy-600: #0858a8;
    --navy-500: #1478c8;
    --sky-400: #5dc7ff;
    --sky-300: #7fd8ff;
    --lime: #b6ff00;
    --lime-deep: #94d400;

    /* Neutrals */
    --ink: #0d1b2a;
    --ink-soft: #46586b;
    --ink-faint: #7b8b9c;
    --line: #e3eaf2;
    --surface: #ffffff;
    --surface-alt: #f5f9fd;
    --surface-tint: #eef5fc;

    /* Effects */
    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 26px;
    --radius-xl: 34px;
    --shadow-sm: 0 2px 8px rgba(13, 27, 42, .06);
    --shadow: 0 14px 40px rgba(13, 27, 42, .09);
    --shadow-lg: 0 30px 80px rgba(3, 32, 63, .18);

    /* Rhythm */
    --section-y: clamp(64px, 8vw, 128px);
    --shell: 1200px;

    /* Type + easing */
    --font: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    --ease-out: cubic-bezier(.22, 1, .36, 1);
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* ------------------------------------------------------ 2. BASE + TYPOGRAPHY */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 { font-weight: 800; letter-spacing: -.02em; color: var(--ink); }

/* Images are wrapped in <picture> to offer a WebP source. `display: contents`
   makes the wrapper generate no box, so the <img> stays the direct layout child
   of whatever flex/grid container it was in and every existing rule still
   applies unchanged. <picture> carries no accessibility semantics, so unlike a
   landmark element there is nothing to lose here. */
picture { display: contents; }

.bbs-shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: clamp(18px, 4vw, 32px); }

.bbs-section { padding-block: var(--section-y); position: relative; }
.bbs-section--tint { background: var(--surface-alt); }
.bbs-section--tint-deep { background: linear-gradient(180deg, var(--surface-tint) 0%, var(--surface) 100%); }

/* Eyebrow + section heading pattern, reused by every band */
.bbs-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--navy-600);
    background: linear-gradient(135deg, rgba(20,120,200,.12), rgba(93,199,255,.14));
    border: 1px solid rgba(20,120,200,.22);
    padding: 7px 16px; border-radius: 999px; margin-bottom: 18px;
}
.bbs-eyebrow::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: var(--navy-500); box-shadow: 0 0 0 4px rgba(20,120,200,.18);
}
.bbs-eyebrow--light { color: #dff1ff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.26); }
.bbs-eyebrow--light::before { background: var(--lime); box-shadow: 0 0 0 4px rgba(182,255,0,.2); }

.bbs-h2 { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.12; margin-bottom: 14px; }
.bbs-h3 { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.3; margin-bottom: 10px; }
.bbs-lede { font-size: clamp(16px, 1.35vw, 19px); line-height: 1.65; color: var(--ink-soft); max-width: 62ch; }
.bbs-head-center { text-align: center; }
.bbs-head-center .bbs-lede { margin-inline: auto; }
.bbs-head { margin-bottom: clamp(34px, 4vw, 56px); }

/* Gradient word treatment for headline accents */
.bbs-grad {
    background: linear-gradient(100deg, var(--navy-500), var(--sky-400) 55%, var(--navy-600));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.bbs-grad--on-dark {
    background: linear-gradient(100deg, var(--sky-300), #ffffff 50%, var(--lime));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* Buttons ------------------------------------------------------------------ */
.bbs-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-size: 16px; font-weight: 700; text-decoration: none; white-space: nowrap;
    padding: 15px 28px; border-radius: 999px; border: 0; cursor: pointer;
    transition: transform .35s var(--ease-spring), box-shadow .35s var(--ease-out), background .3s, color .3s;
    will-change: transform;
}
.bbs-btn svg { transition: transform .35s var(--ease-out); flex: none; }
.bbs-btn:hover svg { transform: translateX(4px); }

.bbs-btn--primary {
    background: linear-gradient(135deg, var(--lime), var(--lime-deep));
    color: #10240a; box-shadow: 0 10px 30px rgba(148, 212, 0, .38);
}
.bbs-btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(148, 212, 0, .5); color: #10240a; }

.bbs-btn--solid {
    background: linear-gradient(135deg, var(--navy-600), var(--navy-500));
    color: #fff; box-shadow: 0 10px 30px rgba(8, 88, 168, .32);
}
.bbs-btn--solid:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(8, 88, 168, .45); color: #fff; }

.bbs-btn--ghost {
    background: rgba(255, 255, 255, .08); color: #fff;
    border: 1px solid rgba(255, 255, 255, .32); backdrop-filter: blur(10px);
}
.bbs-btn--ghost:hover { background: rgba(255, 255, 255, .18); transform: translateY(-3px); color: #fff; }

.bbs-btn--outline { background: transparent; color: var(--navy-600); border: 1.5px solid rgba(8, 88, 168, .35); }
.bbs-btn--outline:hover { background: rgba(8, 88, 168, .07); transform: translateY(-3px); color: var(--navy-700); }

.bbs-btn--sm { padding: 11px 20px; font-size: 15px; }

/* Shine sweep on primary CTAs */
.bbs-btn--shine { overflow: hidden; }
.bbs-btn--shine::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.6), transparent);
    transform: skewX(-20deg); transition: left .7s var(--ease-out);
}
.bbs-btn--shine:hover::after { left: 115%; }

/* Skip link for keyboard + screen-reader users */
.bbs-skip {
    position: absolute; left: -9999px; top: 0; z-index: 2000;
    background: var(--navy-800); color: #fff; padding: 12px 20px; border-radius: 0 0 12px 0; font-weight: 700;
}
.bbs-skip:focus { left: 0; }

/* ----------------------------------------------------- 3. MOTION PRIMITIVES */
/* Elements opt in with data-reveal; bbs-motion.js adds .is-in when scrolled to.
   The hidden start state is scoped to .bbs-js, which an inline <head> script
   sets. Without JS (or if the script fails) the rule never applies and every
   section renders plainly visible - content must never depend on JS to be
   readable, for humans or for crawlers. */
.bbs-js [data-reveal] {
    opacity: 0;
    transform: translate3d(var(--rx, 0), var(--ry, 28px), 0) scale(var(--rs, 1));
    transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
    transition-delay: var(--rd, 0ms);
}
.bbs-js [data-reveal="left"]  { --rx: -42px; --ry: 0; }
.bbs-js [data-reveal="right"] { --rx: 42px;  --ry: 0; }
.bbs-js [data-reveal="zoom"]  { --ry: 14px; --rs: .93; }
.bbs-js [data-reveal].is-in { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }

/* Scroll progress bar pinned to the very top */
.bbs-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 1060;
    transform-origin: 0 50%; transform: scaleX(0);
    background: linear-gradient(90deg, var(--sky-400), var(--lime));
}

@keyframes bbs-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@keyframes bbs-drift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    33%      { transform: translate3d(4%, -6%, 0) scale(1.08); }
    66%      { transform: translate3d(-5%, 4%, 0) scale(.95); }
}
@keyframes bbs-pulse-ring { 0% { transform: scale(.85); opacity: .5; } 100% { transform: scale(1.65); opacity: 0; } }
@keyframes bbs-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes bbs-scan { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

/* -------------------------------------------------------------- 4. NAVIGATION */
.bbs-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1050;
    padding: 14px 0;
    background: linear-gradient(100deg, rgba(0, 28, 58, .55), rgba(8, 88, 168, .42));
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    transition: background .4s var(--ease-out), padding .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.bbs-nav.is-stuck {
    padding: 8px 0;
    background: rgba(0, 24, 50, .9);
    box-shadow: 0 10px 40px rgba(0, 20, 45, .35);
}
.bbs-nav .bbs-shell { display: flex; align-items: center; gap: 18px; }

.bbs-nav__brand { display: inline-flex; align-items: center; margin-right: auto; }
.bbs-nav__brand img { height: 42px; width: auto; transition: transform .4s var(--ease-spring); }
.bbs-nav__brand:hover img { transform: scale(1.05); }

/* Plain flex item. Deliberately NOT display:contents - that can drop the <nav>
   landmark from the accessibility tree, and the mobile panel positions against
   .bbs-nav (the nearest positioned ancestor) either way. */
.bbs-nav__nav { display: flex; align-items: center; }
.bbs-nav__links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.bbs-nav__link {
    position: relative; display: block; padding: 10px 14px; border-radius: 10px;
    color: rgba(255, 255, 255, .88); font-size: 15px; font-weight: 600; text-decoration: none;
    transition: color .25s, background .25s;
}
.bbs-nav__link:hover, .bbs-nav__link:focus-visible { color: #fff; background: rgba(255, 255, 255, .1); }
/* Underline that grows from the centre */
.bbs-nav__link::after {
    content: ""; position: absolute; left: 50%; bottom: 4px; height: 2px; width: 0;
    background: var(--lime); border-radius: 2px;
    transform: translateX(-50%); transition: width .3s var(--ease-out);
}
.bbs-nav__link:hover::after { width: 42%; }

/* Products flyout */
.bbs-nav__group { position: relative; --flyout-gap: 12px; }
.bbs-nav__caret { transition: transform .3s var(--ease-out); }
.bbs-nav__group:hover .bbs-nav__caret, .bbs-nav__group:focus-within .bbs-nav__caret { transform: rotate(180deg); }

.bbs-flyout {
    position: absolute; top: calc(100% + var(--flyout-gap)); left: 50%; transform: translate(-50%, 10px);
    width: min(560px, 88vw); padding: 14px; border-radius: var(--radius);
    background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .28s var(--ease-out), transform .28s var(--ease-out), visibility .28s;
    /* Grace period: a fast diagonal move towards the menu briefly leaves the
       group, and without this the panel would snap shut mid-gesture. */
    transition-delay: .18s;
}
/* Transparent bridge across the gap between the trigger and the panel.
   It hangs off the trigger itself, so it is exactly the trigger's width and
   cannot overlap - or steal clicks from - the adjacent nav links. Keeping the
   pointer over this strip keeps the group in :hover the whole way down;
   without it the pointer crosses bare nav background, :hover drops, and the
   menu closes before any item can be clicked.
   It stays hit-testable at all times: the strip covers dead navbar padding
   directly under the trigger, so it intercepts nothing, and gating it behind
   :hover would make it inert at exactly the moment it is needed. */
.bbs-nav__group::after {
    content: "";
    position: absolute; left: 0; right: 0;
    top: 100%; height: var(--flyout-gap);
}
.bbs-nav__group:hover .bbs-flyout, .bbs-nav__group:focus-within .bbs-flyout {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0);
    transition-delay: 0s;
}
.bbs-flyout__item {
    display: flex; gap: 12px; padding: 12px; border-radius: 12px; text-decoration: none;
    transition: background .25s, transform .25s var(--ease-out);
}
.bbs-flyout__item:hover { background: var(--surface-tint); transform: translateX(3px); }
.bbs-flyout__ico {
    flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--navy-600), var(--navy-500)); color: #fff;
}
.bbs-flyout__t { display: block; font-weight: 700; font-size: 15px; color: var(--ink); }
.bbs-flyout__d { display: block; font-size: 12.5px; color: var(--ink-faint); line-height: 1.45; }

/* Mobile toggle */
.bbs-nav__burger {
    display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.25);
    background: rgba(255, 255, 255, .1); cursor: pointer; padding: 0;
}
.bbs-nav__burger span {
    display: block; width: 20px; height: 2px; margin: 4px auto; border-radius: 2px; background: #fff;
    transition: transform .35s var(--ease-out), opacity .25s;
}
.bbs-nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.bbs-nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.bbs-nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* -------------------------------------------------------------------- 5. HERO */
.bbs-hero {
    position: relative; overflow: hidden; isolation: isolate;
    padding-top: clamp(104px, 11vw, 140px); padding-bottom: clamp(60px, 7vw, 96px);
    background:
        radial-gradient(1100px 620px at 78% 8%, rgba(20, 120, 200, .55), transparent 62%),
        radial-gradient(900px 560px at 12% 92%, rgba(93, 199, 255, .22), transparent 60%),
        linear-gradient(150deg, var(--navy-900) 0%, var(--navy-800) 45%, var(--navy-700) 100%);
    color: #fff;
}
/* Fine engineering grid, fading out downward */
.bbs-hero__grid {
    position: absolute; inset: 0; z-index: -2; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(circle at 50% 22%, #000 10%, transparent 72%);
    mask-image: radial-gradient(circle at 50% 22%, #000 10%, transparent 72%);
}
/* Slow-drifting aurora blobs */
.bbs-hero__aurora {
    position: absolute; z-index: -1; border-radius: 50%; filter: blur(90px); opacity: .5; pointer-events: none;
    animation: bbs-drift 22s ease-in-out infinite;
}
.bbs-hero__aurora--a { width: 460px; height: 460px; top: -120px; right: -80px; background: #1e8fe0; }
.bbs-hero__aurora--b { width: 380px; height: 380px; bottom: -140px; left: -100px; background: #6de0b8; animation-duration: 28s; animation-direction: reverse; }
.bbs-hero__aurora--c { width: 300px; height: 300px; top: 38%; left: 42%; background: #b6ff00; opacity: .16; animation-duration: 34s; }

.bbs-hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 64px); align-items: center; }

/* Above-the-fold entrance: TRANSFORM ONLY, never opacity.
   Chrome does not count an opacity:0 element towards Largest Contentful Paint,
   so fading the hero headline or product shot in would delay LCP by roughly a
   second and cost us on Core Web Vitals. Sliding at full opacity gives the same
   sense of motion while the element is painted - and measured - immediately. */
@keyframes bbs-rise { from { transform: translate3d(0, 26px, 0); } to { transform: none; } }
@keyframes bbs-rise-stage { from { transform: translate3d(0, 34px, 0) scale(.975); } to { transform: none; } }

.bbs-hero h1 { animation: bbs-rise .9s var(--ease-out) both; }
.bbs-hero__stage { animation: bbs-rise-stage 1.05s var(--ease-out) both; }

/* Sized so the primary CTA stays above the fold on a ~900px-tall laptop. */
.bbs-hero h1 {
    font-size: clamp(32px, 4.2vw, 52px); line-height: 1.08; color: #fff; margin-bottom: 18px;
    letter-spacing: -.03em; text-wrap: balance;
}
.bbs-hero__lede { font-size: clamp(15.5px, 1.3vw, 18px); line-height: 1.6; color: rgba(226, 240, 255, .84); max-width: 52ch; margin-bottom: 26px; }

.bbs-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }

.bbs-hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: rgba(214, 233, 252, .8); }
.bbs-hero__trust span { display: inline-flex; align-items: center; gap: 7px; }
.bbs-hero__trust svg { color: var(--lime); flex: none; }

/* Product shot with glow, glass frame and a scanning highlight */
.bbs-hero__stage { position: relative; display: grid; place-items: center; }
.bbs-hero__glow {
    position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(circle, rgba(93, 199, 255, .5), transparent 66%); filter: blur(46px);
}
/* __float owns the idle bob; __frame owns the pointer tilt written inline by
   bbs-motion.js. They are deliberately separate elements - a CSS animation
   wins over an inline transform, so one element cannot do both. */
.bbs-hero__float { width: 100%; animation: bbs-float 7s ease-in-out infinite; }

.bbs-hero__frame {
    position: relative; width: 100%; border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .2);
    background: linear-gradient(150deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03));
    box-shadow: 0 40px 90px rgba(0, 16, 38, .55);
    backdrop-filter: blur(6px);
    transform-style: preserve-3d;
}
.bbs-hero__frame img { display: block; width: 100%; height: auto; }
.bbs-hero__frame::after {
    content: ""; position: absolute; left: 0; right: 0; height: 40%;
    background: linear-gradient(180deg, transparent, rgba(93, 199, 255, .16), transparent);
    animation: bbs-scan 6s ease-in-out infinite; pointer-events: none;
}

/* Small floating stat chips around the product shot */
.bbs-chip {
    position: absolute; display: flex; align-items: center; gap: 10px;
    padding: 11px 16px; border-radius: 14px; font-size: 13px; font-weight: 700; color: var(--ink);
    background: rgba(255, 255, 255, .95); box-shadow: 0 16px 40px rgba(0, 16, 38, .3);
    animation: bbs-float 6s ease-in-out infinite;
}
.bbs-chip small { display: block; font-size: 11px; font-weight: 600; color: var(--ink-faint); }
.bbs-chip__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime-deep); flex: none; position: relative; }
.bbs-chip__dot::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--lime-deep);
    animation: bbs-pulse-ring 2s ease-out infinite;
}
.bbs-chip--tl { top: 6%; left: -6%; animation-delay: -1.5s; }
.bbs-chip--br { bottom: 8%; right: -5%; animation-delay: -3.5s; }

/* Hero stat strip */
.bbs-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
    margin-top: clamp(46px, 6vw, 70px); padding: 26px clamp(16px, 3vw, 34px);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(10px);
}
.bbs-stat { text-align: center; padding: 6px 8px; }
.bbs-stat__n { display: block; font-size: clamp(24px, 3vw, 38px); font-weight: 900; line-height: 1.1; color: #fff; letter-spacing: -.02em; }
.bbs-stat__n .u { color: var(--lime); }
.bbs-stat__l { display: block; margin-top: 6px; font-size: 13px; color: rgba(206, 228, 250, .75); }

/* ------------------------------------------------------------ 6. CARDS/BENTO */
.bbs-grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.bbs-grid--2 { grid-template-columns: repeat(2, 1fr); }
.bbs-grid--3 { grid-template-columns: repeat(3, 1fr); }
.bbs-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Base card: lifts, brightens and grows a gradient hairline on hover */
.bbs-card {
    position: relative; padding: clamp(22px, 2.4vw, 30px); border-radius: var(--radius-lg);
    background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .45s;
    overflow: hidden; height: 100%;
}
.bbs-card::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
    background: linear-gradient(135deg, var(--sky-400), var(--navy-600), var(--lime));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity .45s var(--ease-out); pointer-events: none;
}
.bbs-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.bbs-card:hover::before { opacity: 1; }
/* Cursor-tracked spotlight, coordinates set by bbs-motion.js */
.bbs-card::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(20, 120, 200, .1), transparent 62%);
    opacity: 0; transition: opacity .4s;
}
.bbs-card:hover::after { opacity: 1; }

.bbs-card__ico {
    width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 18px;
    background: linear-gradient(135deg, rgba(20, 120, 200, .12), rgba(93, 199, 255, .2));
    color: var(--navy-600); transition: transform .45s var(--ease-spring), background .45s;
}
.bbs-card:hover .bbs-card__ico {
    transform: translateY(-3px) rotate(-6deg) scale(1.06);
    background: linear-gradient(135deg, var(--navy-600), var(--navy-500)); color: #fff;
}
.bbs-card h3 { font-size: 19px; margin-bottom: 9px; }
.bbs-card p { font-size: 15px; line-height: 1.65; color: var(--ink-soft); margin: 0; }

.bbs-card__link {
    display: inline-flex; align-items: center; gap: 7px; margin-top: 16px;
    font-size: 14.5px; font-weight: 700; color: var(--navy-600); text-decoration: none;
}
.bbs-card__link svg { transition: transform .3s var(--ease-out); }
.bbs-card__link:hover svg { transform: translateX(4px); }

/* Module cards (POS / Accounting / HR / E-Commerce) - dark, image-led */
.bbs-module {
    position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 30px;
    color: #fff; min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end;
    background: linear-gradient(155deg, var(--navy-800), var(--navy-600));
    box-shadow: var(--shadow); text-decoration: none;
    transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.bbs-module::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(500px circle at 80% 0%, rgba(93, 199, 255, .38), transparent 60%);
    transition: opacity .5s; opacity: .8;
}
.bbs-module:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.bbs-module:hover::before { opacity: 1; }
.bbs-module__body { position: relative; z-index: 1; }
.bbs-module__tag {
    display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--lime); margin-bottom: 10px;
}
.bbs-module h3 { color: #fff; font-size: 22px; margin-bottom: 10px; }
.bbs-module p { color: rgba(219, 236, 252, .84); font-size: 14.5px; line-height: 1.6; margin-bottom: 16px; }
.bbs-module ul { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.bbs-module li {
    font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 999px;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); color: #eaf5ff;
}
.bbs-module__go {
    display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; color: var(--lime);
}
.bbs-module__go svg { transition: transform .35s var(--ease-out); }
.bbs-module:hover .bbs-module__go svg { transform: translateX(5px); }

/* Industry pills */
.bbs-industries { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.bbs-industry {
    display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px;
    background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none;
    transition: transform .35s var(--ease-spring), box-shadow .35s, border-color .35s, color .35s;
}
.bbs-industry img { width: 26px; height: 26px; object-fit: contain; transition: transform .35s var(--ease-spring); }
.bbs-industry:hover {
    transform: translateY(-5px) scale(1.03); box-shadow: var(--shadow);
    border-color: rgba(20, 120, 200, .4); color: var(--navy-700);
}
.bbs-industry:hover img { transform: rotate(-8deg) scale(1.12); }

/* Split feature rows (image + copy) */
.bbs-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 68px); align-items: center; }
.bbs-split--flip .bbs-split__media { order: 2; }
.bbs-split__media { position: relative; }
.bbs-split__media img {
    width: 100%; height: auto; border-radius: var(--radius-lg); display: block;
    transition: transform .6s var(--ease-out);
}
.bbs-split__media:hover img { transform: scale(1.02); }
.bbs-split__media::before {
    content: ""; position: absolute; inset: 8% 6%; border-radius: 50%; z-index: -1;
    background: radial-gradient(circle, rgba(20, 120, 200, .26), transparent 68%); filter: blur(40px);
}

/* Checklist */
.bbs-checks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 13px; }
.bbs-checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; line-height: 1.55; color: var(--ink-soft); }
.bbs-checks b { color: var(--ink); font-weight: 700; }
.bbs-checks svg { flex: none; margin-top: 3px; color: var(--navy-500); }
.bbs-checks--light li { color: rgba(219, 236, 252, .86); }
.bbs-checks--light b { color: #fff; }
.bbs-checks--light svg { color: var(--lime); }

/* Feature chip grid (POS capability list) */
.bbs-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
.bbs-chips div {
    display: flex; align-items: center; gap: 9px; padding: 12px 14px; border-radius: 13px;
    background: #fff; border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink);
    transition: transform .3s var(--ease-spring), border-color .3s, box-shadow .3s;
}
.bbs-chips div:hover { transform: translateY(-4px); border-color: rgba(20, 120, 200, .38); box-shadow: var(--shadow-sm); }
.bbs-chips svg { color: var(--navy-500); flex: none; }

/* Spec table - AI answer engines lift structured comparisons like this well,
   so it is real semantic <table> markup rather than a grid of divs. */
.bbs-visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.bbs-table-wrap {
    overflow-x: auto; border-radius: var(--radius-lg);
    border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: #fff;
}
.bbs-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; }
.bbs-table thead th {
    text-align: left; padding: 16px 20px; font-size: 12.5px; font-weight: 800;
    letter-spacing: .1em; text-transform: uppercase; color: #fff;
    background: linear-gradient(100deg, var(--navy-800), var(--navy-600));
}
.bbs-table tbody th, .bbs-table td {
    padding: 16px 20px; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.6;
}
.bbs-table tbody th { text-align: left; font-weight: 700; color: var(--ink); white-space: nowrap; }
.bbs-table tbody th a { color: var(--navy-600); text-decoration: none; }
.bbs-table tbody th a:hover { text-decoration: underline; }
.bbs-table td { color: var(--ink-soft); }
.bbs-table tbody tr { transition: background .25s; }
.bbs-table tbody tr:hover { background: var(--surface-tint); }

/* E-Invoice band - dark section between two light ones */
.bbs-einvoice {
    position: relative; overflow: hidden; padding-block: var(--section-y);
    background:
        radial-gradient(900px 520px at 85% 12%, rgba(93, 199, 255, .34), transparent 58%),
        linear-gradient(135deg, #03203f 0%, #0a4a8f 58%, #1478c8 100%);
}
.bbs-einvoice::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, .085) 1px, transparent 1px);
    background-size: 18px 18px;
}
.bbs-einvoice > .bbs-shell { position: relative; }
.bbs-einvoice .bbs-split__media::before { background: radial-gradient(circle, rgba(93, 199, 255, .35), transparent 68%); }

/* ------------------------------------------------------------ 7. LOGO MARQUEE */
.bbs-marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.bbs-marquee__track { display: flex; width: max-content; gap: 56px; align-items: center; animation: bbs-marquee 42s linear infinite; }
.bbs-marquee:hover .bbs-marquee__track { animation-play-state: paused; }
.bbs-marquee img {
    height: 46px; width: auto; max-width: 150px; object-fit: contain;
    filter: grayscale(1); opacity: .58; transition: filter .4s, opacity .4s, transform .4s var(--ease-spring);
}
.bbs-marquee img:hover { filter: grayscale(0); opacity: 1; transform: scale(1.12); }

/* --------------------------------------------------- 8. PRICING / FAQ / CTA */
.bbs-price { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.bbs-price__card {
    display: flex; flex-direction: column; padding: 28px 24px; border-radius: var(--radius-lg);
    background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    transition: transform .45s var(--ease-out), box-shadow .45s, border-color .45s;
}
.bbs-price__card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: rgba(20, 120, 200, .3); }
.bbs-price__card--hot {
    background: linear-gradient(160deg, var(--navy-800), var(--navy-600)); border-color: transparent; color: #fff;
    box-shadow: var(--shadow-lg); position: relative;
}
.bbs-price__card--hot h3, .bbs-price__card--hot .bbs-price__amt { color: #fff; }
.bbs-price__card--hot .bbs-price__note, .bbs-price__card--hot .bbs-checks li { color: rgba(214, 234, 252, .84); }
.bbs-price__card--hot .bbs-checks svg { color: var(--lime); }
.bbs-price__badge {
    position: absolute; top: 16px; right: 16px; font-size: 11px; font-weight: 800; letter-spacing: .08em;
    text-transform: uppercase; padding: 5px 11px; border-radius: 999px; color: #10240a;
    background: linear-gradient(135deg, var(--lime), var(--lime-deep));
}
.bbs-price__card h3 { font-size: 17px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px; }
.bbs-price__amt { font-size: 38px; font-weight: 900; letter-spacing: -.03em; line-height: 1; }
.bbs-price__amt .cur { font-size: 18px; font-weight: 700; vertical-align: super; margin-right: 2px; }
.bbs-price__amt .per { font-size: 14px; font-weight: 600; color: var(--ink-faint); letter-spacing: 0; }
.bbs-price__was { font-size: 15px; color: var(--ink-faint); text-decoration: line-through; margin-left: 8px; font-weight: 600; }
.bbs-price__note { font-size: 13.5px; color: var(--ink-soft); margin: 10px 0 0; }
.bbs-price__card .bbs-checks { margin-top: 18px; flex: 1; }
.bbs-price__card .bbs-btn { margin-top: 22px; width: 100%; }

/* FAQ - native details/summary, no JS needed */
.bbs-faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.bbs-faq details {
    border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden;
    transition: border-color .3s, box-shadow .3s;
}
.bbs-faq details[open] { border-color: rgba(20, 120, 200, .35); box-shadow: var(--shadow-sm); }
.bbs-faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer;
    padding: 20px 24px; font-size: 16.5px; font-weight: 700; color: var(--ink); list-style: none;
}
.bbs-faq summary::-webkit-details-marker { display: none; }
/* The question is a real <h3> so it lands in the document outline, but it must
   not look or space like a standalone heading inside the summary row. */
.bbs-faq__q { margin: 0; font-size: inherit; font-weight: inherit; letter-spacing: -.01em; }
.bbs-faq summary::after {
    content: ""; flex: none; width: 11px; height: 11px; border-right: 2.5px solid var(--navy-500);
    border-bottom: 2.5px solid var(--navy-500); transform: rotate(45deg) translateY(-3px);
    transition: transform .35s var(--ease-out);
}
.bbs-faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.bbs-faq__a { padding: 0 24px 22px; font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); margin: 0; }
.bbs-faq details[open] .bbs-faq__a { animation: bbs-faq-in .4s var(--ease-out); }
@keyframes bbs-faq-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Closing CTA band */
.bbs-cta {
    position: relative; overflow: hidden; text-align: center; color: #fff;
    padding-block: clamp(60px, 8vw, 110px);
    background:
        radial-gradient(700px 400px at 20% 20%, rgba(93, 199, 255, .35), transparent 60%),
        linear-gradient(135deg, var(--navy-900), var(--navy-700) 60%, var(--navy-500));
}
.bbs-cta::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px);
    background-size: 20px 20px; pointer-events: none;
}
.bbs-cta__inner { position: relative; }
.bbs-cta h2 { color: #fff; font-size: clamp(28px, 4vw, 46px); margin-bottom: 16px; }
.bbs-cta p { color: rgba(219, 238, 255, .86); font-size: clamp(16px, 1.4vw, 19px); max-width: 60ch; margin: 0 auto 30px; }
.bbs-cta__btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* --------------------------------------------------- 9. FOOTER + FLOATING UI */
.bbs-footer { background: var(--navy-900); color: rgba(211, 229, 246, .78); padding-block: clamp(50px, 6vw, 76px) 28px; }
.bbs-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: clamp(26px, 4vw, 52px); }
.bbs-footer h4,
/* Footer column headings are <h2> so the document outline never jumps
   h2 -> h4. They are styled small on purpose - heading LEVEL is about
   structure, not size. */
.bbs-footer__h { color: #fff; font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 18px; }
.bbs-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.bbs-footer a { color: rgba(211, 229, 246, .78); text-decoration: none; font-size: 14.5px; transition: color .25s, transform .25s; display: inline-block; }
.bbs-footer a:hover { color: var(--lime); transform: translateX(3px); }
.bbs-footer__logo { height: 48px; width: auto; margin-bottom: 18px; }
.bbs-footer__about { font-size: 14.5px; line-height: 1.7; max-width: 40ch; }
.bbs-footer__addr { font-style: normal; font-size: 14.5px; line-height: 1.75; }
.bbs-footer__social { display: flex; gap: 10px; margin-top: 18px; }
.bbs-footer__social a {
    width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #fff;
    transition: background .3s, transform .3s var(--ease-spring);
}
.bbs-footer__social a:hover { background: var(--navy-500); transform: translateY(-4px); }
.bbs-footer__bar {
    margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1);
    display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13.5px;
}

/* Floating WhatsApp button + back-to-top */
.bbs-wa {
    position: fixed; right: 20px; bottom: 20px; z-index: 1040;
    display: inline-flex; align-items: center; gap: 9px; padding: 13px 20px; border-radius: 999px;
    background: #25d366; color: #fff; font-weight: 700; font-size: 15px; text-decoration: none;
    box-shadow: 0 12px 30px rgba(37, 211, 102, .42);
    transition: transform .35s var(--ease-spring), box-shadow .35s;
}
.bbs-wa:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 18px 40px rgba(37, 211, 102, .55); color: #fff; }
.bbs-wa::before {
    content: ""; position: absolute; inset: 0; border-radius: 999px; border: 2px solid rgba(37, 211, 102, .55);
    animation: bbs-pulse-ring 2.6s ease-out infinite;
}

.bbs-top {
    position: fixed; right: 22px; bottom: 88px; z-index: 1040;
    width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
    color: var(--navy-600); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity .35s, visibility .35s, transform .35s var(--ease-out), background .3s, color .3s;
}
.bbs-top.is-on { opacity: 1; visibility: visible; transform: none; }
.bbs-top:hover { background: var(--navy-600); color: #fff; }

/* --------------------------------------------- 10. RESPONSIVE + REDUCED MOTION */
@media (max-width: 991px) {
    .bbs-hero__inner { grid-template-columns: 1fr; }
    .bbs-hero__stage { order: -1; max-width: 520px; margin-inline: auto; }
    .bbs-stats { grid-template-columns: repeat(2, 1fr); }
    .bbs-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .bbs-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .bbs-split, .bbs-price { grid-template-columns: 1fr; }
    .bbs-split--flip .bbs-split__media { order: 0; }
    .bbs-chips { grid-template-columns: repeat(2, 1fr); }
    .bbs-footer__grid { grid-template-columns: 1fr 1fr; }

    /* Mobile nav: slide-down panel */
    .bbs-nav__burger { display: block; }
    .bbs-nav__links {
        position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
        padding: 14px; background: rgba(0, 24, 50, .97); backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(255, 255, 255, .1);
        max-height: 0; overflow: hidden; opacity: 0; visibility: hidden;
        transition: max-height .45s var(--ease-out), opacity .3s, visibility .3s;
    }
    .bbs-nav__links.is-open { max-height: 80vh; overflow-y: auto; opacity: 1; visibility: visible; }
    .bbs-nav__link { padding: 13px 16px; }
    .bbs-nav__link::after { display: none; }
    .bbs-flyout {
        position: static; transform: none; width: 100%; grid-template-columns: 1fr; opacity: 1;
        visibility: visible; pointer-events: auto; box-shadow: none; background: rgba(255, 255, 255, .05);
        border-color: rgba(255, 255, 255, .12); padding: 6px; margin-bottom: 6px;
        max-height: 0; overflow: hidden; transition: max-height .4s var(--ease-out), padding .3s;
        transition-delay: 0s;
    }
    /* No hover gap to bridge in the mobile accordion - and a stray absolute
       strip here would sit over the panel and swallow taps. */
    .bbs-nav__group::after { display: none; }
    .bbs-nav__group.is-open .bbs-flyout { max-height: 520px; padding: 10px; }
    .bbs-flyout__t { color: #fff; }
    .bbs-flyout__d { color: rgba(206, 228, 250, .7); }
    .bbs-flyout__item:hover { background: rgba(255, 255, 255, .08); }
    .bbs-nav__cta { display: none; }
}

@media (max-width: 640px) {
    .bbs-grid--4, .bbs-grid--3, .bbs-grid--2 { grid-template-columns: 1fr; }
    .bbs-chips { grid-template-columns: 1fr; }
    .bbs-stats { grid-template-columns: repeat(2, 1fr); gap: 4px; padding: 18px 12px; }
    .bbs-footer__grid { grid-template-columns: 1fr; }
    .bbs-chip--tl { left: -2%; top: 2%; }
    .bbs-chip--br { right: -2%; bottom: 4%; }
    .bbs-hero__cta .bbs-btn { width: 100%; }
    .bbs-wa span { display: none; }
    .bbs-wa { padding: 15px; }
}

/* Honour the OS "reduce motion" setting: keep the layout, drop the movement. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important; animation-iteration-count: 1 !important;
        transition-duration: .001ms !important; scroll-behavior: auto !important;
    }
    .bbs-js [data-reveal] { opacity: 1; transform: none; }
}
