/*
Theme Name: Besquare
Theme URI: https://besquare.it
Author: Besquare S.r.l.
Author URI: https://besquare.it
Description: Tema WordPress premium per Besquare — digital company B2B. Design system modulare, conversion-oriented, con supporto ACF Flexible Content.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: Proprietary
License URI: https://besquare.it
Text Domain: besquare
*/

/* ============================================
   BESQUARE PREMIUM DESIGN SYSTEM
   Color palette derived from brand logo:
   Red #D91A32 + Warm Gray #7C6669
   ============================================ */

/* === DESIGN TOKENS === */
:root {
  /* ─── Primary (Brand Red from logo) ─── */
  --bsq-primary: #1C1520;
  --bsq-primary-light: #2A2028;
  --bsq-primary-dark: #110D15;

  /* ─── Accent (Brand Red) ─── */
  --bsq-accent: #D91A32;
  --bsq-accent-dark: #B31429;
  --bsq-accent-light: #F06070;
  --bsq-accent-hover: #C01228;
  --bsq-accent-glow: #FDE8EC;

  /* ─── Secondary (Warm Gray from logo) ─── */
  --bsq-secondary: #7C6669;
  --bsq-secondary-light: #A69697;

  /* ─── Surfaces ─── */
  --bsq-surface-white: #FFFFFF;
  --bsq-surface-light: #F8F6F6;
  --bsq-surface-medium: #2A2028;
  --bsq-surface-dark: #1C1520;

  /* ─── Text ─── */
  --bsq-text-primary: #1C1520;
  --bsq-text-secondary: #5C4D50;
  --bsq-text-muted: #A69697;
  --bsq-text-light: #D4CBCC;
  --bsq-text-white: #FAF8F8;

  /* ─── Semantic ─── */
  --bsq-success: #059669;
  --bsq-warning: #D97706;
  --bsq-error: #DC2626;

  /* ─── Borders ─── */
  --bsq-border: #E5DFDF;

  /* ─── Gradients ─── */
  --bsq-gradient-accent: linear-gradient(135deg, #D91A32 0%, #B31429 100%);
  --bsq-gradient-hero: linear-gradient(170deg, #F0ECEC 0%, #F8F6F6 50%, #F0ECEC 100%);
  --bsq-gradient-card: linear-gradient(135deg, rgba(217, 26, 50, 0.06) 0%, rgba(28, 21, 32, 0.02) 100%);

  /* ─── Shadows ─── */
  --bsq-shadow-sm: 0 1px 3px rgba(28, 21, 32, 0.08);
  --bsq-shadow-md: 0 4px 6px rgba(28, 21, 32, 0.06), 0 2px 4px rgba(28, 21, 32, 0.04);
  --bsq-shadow-lg: 0 10px 15px rgba(28, 21, 32, 0.08), 0 4px 6px rgba(28, 21, 32, 0.04);
  --bsq-shadow-xl: 0 20px 25px rgba(28, 21, 32, 0.1), 0 8px 10px rgba(28, 21, 32, 0.04);
  --bsq-shadow-soft: 0 2px 8px rgba(28, 21, 32, 0.06);
  --bsq-shadow-glow: 0 0 0 1px rgba(217, 26, 50, 0.15), 0 8px 25px rgba(217, 26, 50, 0.1);

  /* ─── Radius ─── */
  --bsq-radius-sm: 6px;
  --bsq-radius-md: 8px;
  --bsq-radius-lg: 12px;
  --bsq-radius-xl: 16px;

  /* ─── Spacing ─── */
  --bsq-space-xs: 0.5rem;
  --bsq-space-sm: 0.75rem;
  --bsq-space-md: 1rem;
  --bsq-space-lg: 1.5rem;
  --bsq-space-xl: 2rem;
  --bsq-space-2xl: 3rem;
  --bsq-space-3xl: 4rem;
  --bsq-space-4xl: 6rem;

  /* ─── Typography ─── */
  --bsq-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --bsq-font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* ─── Layout ─── */
  --bsq-container: 1280px;
}

/* === GeneratePress Variable Overrides === */
.bsq-section--dark,
.bsq-hero {
  --contrast: var(--bsq-text-primary) !important;
  --contrast-2: var(--bsq-text-secondary) !important;
  --contrast-3: var(--bsq-text-muted) !important;
  --base: var(--bsq-surface-light) !important;
  --base-2: var(--bsq-surface-white) !important;
  --base-3: var(--bsq-surface-light) !important;
  --accent: var(--bsq-accent) !important;
}
[data-theme="dark"] .bsq-section--dark,
[data-theme="dark"] .bsq-hero {
  --contrast: #ffffff !important;
  --contrast-2: #94A3B8 !important;
  --contrast-3: #64748B !important;
  --base: var(--bsq-surface-dark) !important;
  --base-2: var(--bsq-surface-medium) !important;
  --base-3: var(--bsq-primary) !important;
  --accent: var(--bsq-accent-light) !important;
}

.bsq-section--accent,
.bsq-cta-banner {
  --contrast: #ffffff !important;
  --contrast-2: rgba(255,255,255,0.85) !important;
  --accent: #ffffff !important;
}

/* === GLOBAL RESETS === */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--bsq-font-body);
  color: var(--bsq-text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  background-color: var(--bsq-surface-white) !important;
  padding-top: 80px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--bsq-font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* === STICKY HEADER === */
.site-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bsq-header-bg, rgba(28, 21, 32, 0.85)) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 !important;
  --contrast: #E2E8F0 !important;
  --base-3: transparent !important;
}

.site-header .inside-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  max-width: var(--bsq-container);
  margin: 0 auto;
  padding: 0 var(--bsq-space-lg) !important;
  height: 80px;
}

.site-header.scrolled {
  --bsq-header-bg: rgba(28, 21, 32, 0.98);
  background: var(--bsq-header-bg) !important;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.site-header .main-title a,
.site-header .main-title a:hover,
.site-header .site-branding a {
  color: #ffffff !important;
}

/* === NAVIGATION (inside header via nav-float-right) === */
.main-navigation,
#site-navigation,
.site-header .main-navigation {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
}

.main-navigation .inside-navigation,
.main-navigation .grid-container,
.main-navigation .navigation-branding {
  background: transparent !important;
  background-color: transparent !important;
  padding: 0 !important;
}

.main-navigation .main-nav > ul,
.main-navigation .sf-menu {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

.main-navigation .main-nav > ul > li {
  float: none !important;
  position: relative;
  list-style: none;
}
.main-navigation .main-nav > ul > li::before,
.main-navigation .main-nav > ul > li::marker,
.main-navigation ul li::before,
.main-navigation ul li::marker {
  content: none !important;
  display: none !important;
}

.main-navigation .main-nav > ul > li > a {
  color: var(--bsq-text-light) !important;
  font-family: var(--bsq-font-display) !important;
  font-weight: 500 !important;
  font-size: 0.9rem !important;
  letter-spacing: 0.01em;
  padding: 0.5rem 0.75rem !important;
  white-space: nowrap !important;
  transition: color 0.2s ease;
  background: transparent !important;
}

.main-navigation .main-nav > ul > li > a:hover,
.main-navigation .main-nav > ul > li.current-menu-item > a {
  color: var(--bsq-accent-light) !important;
}

/* Hide GP menu item descriptions */
.main-navigation .navigation-description,
.main-navigation .main-nav-item-description,
.main-navigation .menu-item-description {
  display: none !important;
}

/* Sub-menus */
.main-navigation ul ul,
.main-navigation .sub-menu {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  background: rgba(28, 21, 32, 0.98) !important;
  border-radius: var(--bsq-radius-md);
  padding: 0.5rem 0 !important;
  min-width: 220px;
  box-shadow: var(--bsq-shadow-xl);
  border: 1px solid rgba(255,255,255,0.08);
  display: none !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 100;
  width: auto !important;
}

.main-navigation .main-nav > ul > li:hover > ul,
.main-navigation .main-nav > ul > li.sfHover > ul {
  display: block !important;
}

.main-navigation ul ul li {
  float: none !important;
  width: 100%;
}

.main-navigation ul ul a {
  color: var(--bsq-text-light) !important;
  padding: 0.5rem 1.25rem !important;
  font-size: 0.85rem !important;
  white-space: nowrap !important;
  background: transparent !important;
  display: block !important;
}

.main-navigation ul ul a:hover {
  color: var(--bsq-accent-light) !important;
  background: rgba(255,255,255,0.05) !important;
}

/* Hide GP mobile toggle on desktop */
.menu-toggle,
.main-navigation .menu-toggle {
  display: none !important;
}

/* === MOBILE NAVIGATION === */
@media (max-width: 768px) {
  .main-navigation .main-nav {
    display: none !important;
  }

  .menu-toggle,
  .main-navigation .menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    border-radius: var(--bsq-radius-sm);
    color: var(--bsq-text-light) !important;
    cursor: pointer;
    padding: 0 !important;
    margin-left: auto;
  }

  .menu-toggle .gp-icon,
  .menu-toggle svg {
    color: var(--bsq-text-light) !important;
    fill: var(--bsq-text-light) !important;
  }

  .menu-toggle .mobile-menu {
    display: none;
  }

  .main-navigation.toggled .main-nav {
    display: block !important;
    position: fixed !important;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bsq-primary) !important;
    padding: var(--bsq-space-xl) var(--bsq-space-lg);
    overflow-y: auto;
    z-index: 999;
  }

  .main-navigation.toggled .main-nav > ul {
    flex-direction: column !important;
    flex-wrap: wrap !important;
    align-items: center;
    gap: 0;
  }

  .main-navigation.toggled .main-nav > ul > li {
    width: 100%;
    text-align: center;
    float: none !important;
  }

  .main-navigation.toggled .main-nav > ul > li > a {
    font-size: 1.15rem !important;
    padding: 0.75rem var(--bsq-space-md) !important;
    color: var(--bsq-text-white) !important;
  }

  .main-navigation.toggled ul ul,
  .main-navigation.toggled .sub-menu {
    position: static !important;
    display: block !important;
    background: rgba(255,255,255,0.03) !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
  }

  .main-navigation.toggled ul ul a {
    padding: 0.5rem var(--bsq-space-lg) !important;
    font-size: 1rem !important;
    text-align: center;
  }
}

/* === BUTTONS === */
.bsq-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--bsq-font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--bsq-radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  line-height: 1.2;
}

.bsq-btn--primary {
  background: var(--bsq-accent);
  color: #fff;
  box-shadow: 0 4px 15px rgba(217, 26, 50, 0.25);
}

.bsq-btn--primary:hover {
  background: var(--bsq-accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(217, 26, 50, 0.35);
  color: #fff;
}

.bsq-btn--secondary {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.25);
}

.bsq-btn--secondary:hover {
  border-color: var(--bsq-accent-light);
  color: var(--bsq-accent-light);
  background: rgba(217, 26, 50, 0.08);
}

.bsq-mobile-cta .bsq-btn--secondary,
.bsq-section--white .bsq-btn--secondary,
.bsq-section--light .bsq-btn--secondary {
  color: var(--bsq-text-primary);
  border-color: var(--bsq-border);
}
.bsq-mobile-cta .bsq-btn--secondary:hover,
.bsq-section--white .bsq-btn--secondary:hover,
.bsq-section--light .bsq-btn--secondary:hover {
  border-color: var(--bsq-accent);
  color: var(--bsq-accent);
}

.bsq-btn--dark {
  background: var(--bsq-primary);
  color: #fff;
}

.bsq-btn--dark:hover {
  background: var(--bsq-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--bsq-shadow-lg);
}

.bsq-btn--white {
  background: var(--bsq-surface-white);
  color: var(--bsq-primary);
  font-weight: 700;
}

.bsq-btn--white:hover {
  transform: translateY(-2px);
  box-shadow: var(--bsq-shadow-xl);
}

/* === SECTION SYSTEM === */
.bsq-section {
  padding: var(--bsq-space-4xl) 0;
  position: relative;
}

.bsq-section--dark {
  background: var(--bsq-gradient-hero);
  color: var(--bsq-text-primary);
}

.bsq-section--light {
  background: var(--bsq-surface-light);
}

.bsq-section--white {
  background: var(--bsq-surface-white);
}

.bsq-section--accent {
  background: var(--bsq-gradient-accent);
  color: #fff;
}

.bsq-container {
  max-width: var(--bsq-container);
  margin: 0 auto;
  padding: 0 var(--bsq-space-lg);
}

/* === HERO SECTION === */
.bsq-hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: var(--bsq-gradient-hero);
  position: relative;
  overflow: hidden;
  padding: var(--bsq-space-4xl) 0;
}

/* === HERO SLIDER === */
.bsq-hero--slider {
  padding: 0;
}
.bsq-hero--slider > .bsq-hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: var(--bsq-space-4xl) 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
  z-index: 1;
}
.bsq-hero--slider > .bsq-hero-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  z-index: 2;
  width: 100%;
}
.bsq-hero-slide__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.bsq-hero-slide__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(248,246,246,0.9) 0%, rgba(248,246,246,0.65) 100%);
}
.bsq-hero-slide .bsq-container {
  position: relative;
  z-index: 1;
}
.bsq-hero-slide .bsq-hero__visual img {
  max-width: 100%;
  height: auto;
  border-radius: var(--bsq-radius-xl);
  box-shadow: var(--bsq-shadow-glow);
}

.bsq-hero-nav {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 10;
}
.bsq-hero-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(28,21,32,0.25);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  position: relative;
}
.bsq-hero-dot::before {
  content: '';
  position: absolute;
  inset: -15px;
}
.bsq-hero-dot:hover {
  border-color: rgba(28,21,32,0.6);
}
.bsq-hero-dot.active {
  background: var(--bsq-accent);
  border-color: var(--bsq-accent);
  transform: scale(1.2);
}
.bsq-hero-arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 1.5rem;
  z-index: 10;
  pointer-events: none;
}
.bsq-hero-arrow {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--bsq-border);
  background: rgba(255,255,255,0.85);
  color: var(--bsq-text-primary);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
  padding: 0;
}
.bsq-hero-arrow:hover {
  background: rgba(217,26,50,0.1);
  border-color: rgba(217,26,50,0.3);
}
.bsq-hero-nav[data-count="1"],
.bsq-hero-arrows[data-count="1"] { display: none; }


.bsq-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--bsq-space-3xl);
  align-items: center;
  position: relative;
  z-index: 2;
}

.bsq-hero__content { max-width: 600px; }

.bsq-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(217, 26, 50, 0.08);
  border: 1px solid rgba(217, 26, 50, 0.18);
  border-radius: 100px;
  color: var(--bsq-accent);
  font-family: var(--bsq-font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  margin-bottom: var(--bsq-space-lg);
}

.bsq-hero__badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--bsq-accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

.bsq-hero__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--bsq-text-primary);
  line-height: 1.08;
  margin-bottom: var(--bsq-space-md);
}

.bsq-hero__title span {
  background: var(--bsq-gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bsq-hero__subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--bsq-text-secondary);
  margin-bottom: var(--bsq-space-xl);
  max-width: 520px;
}

.bsq-hero__actions {
  display: flex;
  gap: var(--bsq-space-sm);
  flex-wrap: wrap;
}

.bsq-hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bsq-hero__mockup {
  width: 100%;
  max-width: 560px;
  border-radius: var(--bsq-radius-xl);
  background: var(--bsq-surface-white);
  border: 1px solid var(--bsq-border);
  padding: 2rem;
  box-shadow: var(--bsq-shadow-lg);
}

/* Dashboard mockup styles */
.bsq-dashboard {
  background: var(--bsq-surface-light);
  border-radius: var(--bsq-radius-lg);
  border: 1px solid var(--bsq-border);
  overflow: hidden;
}

.bsq-dashboard__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--bsq-border);
  color: var(--bsq-text-secondary);
  font-size: 0.85rem;
}

.bsq-dashboard__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.bsq-dashboard__body {
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.bsq-kpi-card {
  background: var(--bsq-surface-white);
  border: 1px solid var(--bsq-border);
  border-radius: var(--bsq-radius-sm);
  padding: 1rem;
}

.bsq-kpi-card__label {
  font-size: 0.75rem;
  color: var(--bsq-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.bsq-kpi-card__value {
  font-family: var(--bsq-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bsq-text-primary);
}

.bsq-kpi-card__trend {
  font-size: 0.8rem;
  color: var(--bsq-success);
  margin-top: 0.25rem;
}

/* === SECTION HEADERS === */
.bsq-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--bsq-space-3xl);
}

.bsq-section-header__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--bsq-font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--bsq-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--bsq-space-sm);
}

.bsq-section--dark .bsq-section-header__tag {
  color: var(--bsq-accent);
}
[data-theme="dark"] .bsq-section--dark .bsq-section-header__tag {
  color: var(--bsq-accent-light);
}

.bsq-section-header__title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  color: var(--bsq-text-primary);
  margin-bottom: var(--bsq-space-md);
}

.bsq-section--dark .bsq-section-header__title {
  color: var(--bsq-text-primary);
}
[data-theme="dark"] .bsq-section--dark .bsq-section-header__title {
  color: #fff;
}

.bsq-section-header__desc {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--bsq-text-secondary);
}

.bsq-section--dark .bsq-section-header__desc {
  color: var(--bsq-text-secondary);
}
[data-theme="dark"] .bsq-section--dark .bsq-section-header__desc {
  color: var(--bsq-text-muted);
}

/* === CARDS === */
.bsq-card {
  background: var(--bsq-surface-white);
  border: 1px solid var(--bsq-border);
  border-radius: var(--bsq-radius-lg);
  padding: var(--bsq-space-xl);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.bsq-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--bsq-shadow-xl);
  border-color: var(--bsq-accent);
}

.bsq-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--bsq-gradient-accent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.bsq-card:hover::before { opacity: 1; }

.bsq-card--dark {
  background: var(--bsq-surface-medium);
  border-color: rgba(255,255,255,0.06);
}

.bsq-card--dark:hover {
  border-color: var(--bsq-accent);
  box-shadow: var(--bsq-shadow-glow);
}

.bsq-card--glass {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}

.bsq-card--glass:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(217, 26, 50, 0.3);
}

.bsq-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--bsq-radius-md);
  background: var(--bsq-accent-glow);
  margin-bottom: var(--bsq-space-md);
  font-size: 1.5rem;
}

.bsq-card--dark .bsq-card__icon {
  background: rgba(217, 26, 50, 0.12);
}

.bsq-card--center { text-align: center; }

.bsq-card__title {
  font-family: var(--bsq-font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.bsq-card--dark .bsq-card__title { color: #fff; }

.bsq-card__text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--bsq-text-secondary);
}

.bsq-card--dark .bsq-card__text { color: var(--bsq-text-muted); }

.bsq-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--bsq-space-md);
  font-family: var(--bsq-font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--bsq-accent);
  text-decoration: none;
  transition: gap 0.3s ease;
}

.bsq-card__link:hover { gap: 0.75rem; color: var(--bsq-accent-hover); }

.bsq-card--dark .bsq-card__link { color: var(--bsq-accent-light); }

/* === GRID LAYOUTS === */
.bsq-grid { display: grid; gap: var(--bsq-space-lg); }
.bsq-grid--2 { grid-template-columns: repeat(2, 1fr); }
.bsq-grid--3 { grid-template-columns: repeat(3, 1fr); }
.bsq-grid--4 { grid-template-columns: repeat(4, 1fr); }
.bsq-grid--5 { grid-template-columns: repeat(5, 1fr); }
.bsq-grid--2-1 { grid-template-columns: 2fr 1fr; }
.bsq-grid--1-2 { grid-template-columns: 1fr 2fr; }

/* === PROCESS STEPS === */
.bsq-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--bsq-space-lg);
  position: relative;
}
@media (min-width: 900px) {
  .bsq-steps {
    grid-template-columns: repeat(5, 1fr);
  }
}

.bsq-step {
  text-align: center;
  position: relative;
  padding: var(--bsq-space-lg);
}

.bsq-step__number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--bsq-space-md);
  background: var(--bsq-gradient-accent);
  color: #fff;
  font-family: var(--bsq-font-display);
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: 50%;
}

.bsq-step__title {
  font-family: var(--bsq-font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.bsq-step__text {
  font-size: 0.9rem;
  color: var(--bsq-text-secondary);
  line-height: 1.6;
}

.bsq-section--dark .bsq-step__title { color: var(--bsq-text-primary); }
.bsq-section--dark .bsq-step__text { color: var(--bsq-text-secondary); }

.bsq-section--dark .bsq-card__title { color: var(--bsq-text-primary); }
.bsq-section--dark .bsq-card__text { color: var(--bsq-text-secondary); }

[data-theme="dark"] .bsq-section--dark .bsq-step__title { color: #fff; }
[data-theme="dark"] .bsq-section--dark .bsq-step__text { color: var(--bsq-text-muted); }
[data-theme="dark"] .bsq-section--dark .bsq-card__title { color: #fff; }
[data-theme="dark"] .bsq-section--dark .bsq-card__text { color: var(--bsq-text-muted); }

/* === STATS STRIP === */
.bsq-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--bsq-space-lg);
  padding: var(--bsq-space-xl) 0;
}

.bsq-stats--2cols { grid-template-columns: 1fr 1fr; padding: 0; }

.bsq-stat { text-align: center; }

.bsq-stat__value {
  font-family: var(--bsq-font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  background: var(--bsq-gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.bsq-stat__label {
  font-size: 0.9rem;
  color: var(--bsq-text-muted);
}

/* === CTA BANNER === */
.bsq-cta-banner {
  background: var(--bsq-accent);
  border-radius: var(--bsq-radius-xl);
  padding: var(--bsq-space-3xl) var(--bsq-space-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.bsq-cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.1), transparent);
  pointer-events: none;
}

.bsq-cta-banner__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: #fff;
  margin-bottom: var(--bsq-space-md);
  position: relative;
  z-index: 2;
}

.bsq-cta-banner__text {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--bsq-space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
}

.bsq-cta-banner__actions {
  display: flex;
  justify-content: center;
  gap: var(--bsq-space-sm);
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

/* === PAIN POINTS GRID === */
.bsq-pain {
  display: flex;
  align-items: flex-start;
  gap: var(--bsq-space-md);
  padding: var(--bsq-space-lg);
  background: var(--bsq-surface-white);
  border: 1px solid var(--bsq-border);
  border-radius: var(--bsq-radius-md);
  transition: all 0.3s ease;
}

.bsq-pain:hover {
  background: var(--bsq-surface-light);
  border-color: rgba(217, 151, 11, 0.3);
}

.bsq-pain__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(217, 151, 11, 0.12);
  border-radius: var(--bsq-radius-sm);
}

.bsq-pain__title {
  font-family: var(--bsq-font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--bsq-text-primary);
  margin-bottom: 0.25rem;
}

.bsq-pain__text {
  font-size: 0.9rem;
  color: var(--bsq-text-secondary);
  line-height: 1.5;
}

/* === ECOSYSTEM CARDS === */
.bsq-eco-card {
  background: var(--bsq-surface-white);
  border: 1px solid var(--bsq-border);
  border-radius: var(--bsq-radius-lg);
  padding: var(--bsq-space-xl);
  text-align: center;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.bsq-eco-card--featured {
  border-color: var(--bsq-accent);
  box-shadow: var(--bsq-shadow-glow);
  transform: scale(1.03);
}

.bsq-eco-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--bsq-shadow-xl);
}

.bsq-eco-card--featured:hover {
  transform: translateY(-8px) scale(1.03);
}

.bsq-eco-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bsq-gradient-accent);
  color: #fff;
  font-family: var(--bsq-font-display);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 100px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.bsq-eco-card__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--bsq-space-md);
  border-radius: var(--bsq-radius-lg);
  font-size: 1.75rem;
}

.bsq-eco-card__title {
  font-family: var(--bsq-font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.bsq-eco-card__text {
  font-size: 0.9rem;
  color: var(--bsq-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--bsq-space-md);
}

/* === INDUSTRY CARDS === */
.bsq-industry {
  position: relative;
  padding: var(--bsq-space-xl);
  background: var(--bsq-surface-dark);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--bsq-radius-lg);
  overflow: hidden;
  transition: all 0.35s ease;
}

.bsq-industry:hover {
  border-color: var(--bsq-accent);
  transform: translateY(-4px);
}

.bsq-industry__icon {
  font-size: 2rem;
  margin-bottom: var(--bsq-space-md);
}

.bsq-industry__title {
  font-family: var(--bsq-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.bsq-industry__text {
  font-size: 0.9rem;
  color: var(--bsq-text-muted);
  line-height: 1.6;
}

/* === METHOD TIMELINE === */
.bsq-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  position: relative;
}

.bsq-timeline::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: var(--bsq-border);
}

.bsq-timeline-item {
  text-align: center;
  position: relative;
  padding: 0 var(--bsq-space-sm);
}

.bsq-timeline-item__dot {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--bsq-space-md);
  background: var(--bsq-gradient-accent);
  color: #fff;
  font-family: var(--bsq-font-display);
  font-weight: 800;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 6px var(--bsq-surface-light);
}

.bsq-timeline-item__title {
  font-family: var(--bsq-font-display);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.bsq-timeline-item__text {
  font-size: 0.8rem;
  color: var(--bsq-text-secondary);
  line-height: 1.5;
}

/* === TRUST SECTION === */
.bsq-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--bsq-space-lg);
}

.bsq-trust-item {
  text-align: center;
  padding: var(--bsq-space-lg);
}

.bsq-trust-item__icon {
  font-size: 2rem;
  margin-bottom: var(--bsq-space-sm);
}

.bsq-trust-item__title {
  font-family: var(--bsq-font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.bsq-trust-item__text {
  font-size: 0.9rem;
  color: var(--bsq-text-secondary);
  line-height: 1.6;
}

/* === USE CASE TABS === */
.bsq-usecase {
  display: flex;
  gap: var(--bsq-space-md);
  padding: var(--bsq-space-lg);
  background: var(--bsq-surface-white);
  border: 1px solid var(--bsq-border);
  border-radius: var(--bsq-radius-md);
  align-items: flex-start;
  transition: all 0.3s ease;
}

.bsq-usecase:hover {
  border-color: var(--bsq-accent);
  box-shadow: var(--bsq-shadow-md);
}

.bsq-usecase__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bsq-accent-glow);
  border-radius: var(--bsq-radius-sm);
  font-size: 1.25rem;
}

.bsq-usecase__title {
  font-family: var(--bsq-font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.bsq-usecase__text {
  font-size: 0.9rem;
  color: var(--bsq-text-secondary);
  line-height: 1.5;
}

/* === FOOTER === */
.site-footer {
  background: var(--bsq-primary) !important;
  color: var(--bsq-text-light) !important;
  padding-top: var(--bsq-space-3xl) !important;
}

.bsq-footer {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--bsq-space-2xl);
  padding-bottom: var(--bsq-space-2xl);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.bsq-footer__brand-desc {
  font-size: 0.9rem;
  color: var(--bsq-text-muted);
  line-height: 1.6;
  margin-top: var(--bsq-space-md);
}

.bsq-footer__heading {
  font-family: var(--bsq-font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--bsq-space-md);
}

.bsq-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bsq-footer__links li { margin-bottom: 0.5rem; }

.bsq-footer__links a {
  color: var(--bsq-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.bsq-footer__links a:hover { color: var(--bsq-accent-light); }

.bsq-footer__logo {
  display: inline-block;
  margin-bottom: 0.5rem;
}
.bsq-footer-logo {
  display: block;
  height: 48px;
  width: auto;
}

.bsq-footer__contact-line {
  margin-top: 0.75rem;
}
.bsq-footer__contact-line:first-of-type {
  margin-top: 1.5rem;
}
.bsq-footer__contact-line a {
  color: var(--bsq-accent-light);
  text-decoration: none;
  font-size: 0.9rem;
}
.bsq-footer__contact-line a:hover { color: #fff; }
.bsq-footer__address {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  line-height: 1.5;
}

.bsq-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--bsq-space-lg) 0;
  font-size: 0.85rem;
  color: var(--bsq-text-muted);
}

.bsq-footer__legal {
  display: flex;
  gap: 1.5rem;
}

.bsq-footer__legal a {
  color: var(--bsq-text-muted);
  text-decoration: none;
  font-size: 0.85rem;
}

.bsq-footer__legal a:hover { color: var(--bsq-accent-light); }

/* === SCROLL ANIMATIONS === */
.bsq-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.bsq-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.bsq-reveal--delay-1 { transition-delay: 0.1s; }
.bsq-reveal--delay-2 { transition-delay: 0.2s; }
.bsq-reveal--delay-3 { transition-delay: 0.3s; }
.bsq-reveal--delay-4 { transition-delay: 0.4s; }

/* Reveal variants */
.bsq-reveal--scale {
  opacity: 0;
  transform: scale(0.92);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.bsq-reveal--scale.visible {
  opacity: 1;
  transform: scale(1);
}
.bsq-reveal--slide-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.bsq-reveal--slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.bsq-reveal--slide-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.bsq-reveal--slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* === IMPACT EFFECTS === */

/* 1. Hero staggered entrance */
@keyframes bsq-hero-enter {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}
.bsq-hero__badge {
  animation: bsq-hero-enter 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}
.bsq-hero__title {
  animation: bsq-hero-enter 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}
.bsq-hero__subtitle {
  animation: bsq-hero-enter 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}
.bsq-hero__actions {
  animation: bsq-hero-enter 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.75s both;
}

/* 2. Dashboard mockup floating effect */
@keyframes bsq-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.bsq-hero__mockup {
  animation: bsq-float 5s ease-in-out infinite;
}

/* 3. Stat number glow pulse on appear */
@keyframes bsq-stat-glow {
  0% { opacity: 0; transform: scale(0.8); text-shadow: none; }
  60% { opacity: 1; transform: scale(1.05); text-shadow: 0 0 20px rgba(217, 26, 50, 0.5); }
  100% { opacity: 1; transform: scale(1); text-shadow: 0 0 8px rgba(217, 26, 50, 0.2); }
}
.bsq-stat.visible .bsq-stat__value {
  animation: bsq-stat-glow 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* 4. CTA button shimmer replaced by Automan border runner in PREMIUM EFFECTS section */

/* 5. Gradient text on key headings */
.bsq-section--white .bsq-section-header__title,
.bsq-section--light .bsq-section-header__title {
  background: linear-gradient(135deg, var(--bsq-primary) 0%, var(--bsq-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.bsq-section--dark .bsq-section-header__title,
.bsq-hero__title {
  background: linear-gradient(135deg, var(--bsq-text-primary) 30%, var(--bsq-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-theme="dark"] .bsq-section--dark .bsq-section-header__title,
[data-theme="dark"] .bsq-hero__title {
  background: linear-gradient(135deg, #FFFFFF 30%, var(--bsq-accent-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 6. Trust strip marquee */
@keyframes bsq-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.bsq-trust-strip {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
}
.bsq-trust-strip__inner {
  display: flex;
  gap: var(--bsq-space-xl);
  animation: bsq-marquee 20s linear infinite;
  width: max-content;
}

/* 7. Section header tag slide-in */
@keyframes bsq-tag-enter {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}
.bsq-section-header__tag {
  display: inline-block;
}
.visible .bsq-section-header__tag,
.bsq-reveal.visible .bsq-section-header__tag {
  animation: bsq-tag-enter 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* 8. Step number scale-in (smooth, no bounce) */
@keyframes bsq-bounce-in {
  0% { opacity: 0; transform: scale(0.5); }
  100% { opacity: 1; transform: scale(1); }
}
.bsq-step.visible .bsq-step__number,
.bsq-timeline-item.visible .bsq-timeline-item__dot {
  animation: bsq-bounce-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* 9. Icon pulse on card hover */
.bsq-pain:hover .bsq-pain__icon .bsq-icon,
.bsq-mini-card:hover .bsq-mini-card__icon .bsq-icon,
.bsq-trust-item:hover .bsq-trust-item__icon .bsq-icon {
  animation: bsq-bounce-in 0.4s ease both;
}

/* 10. Hero visual entrance from right */
@keyframes bsq-slide-in-right {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}
.bsq-hero__visual {
  animation: bsq-slide-in-right 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .bsq-hero__grid { grid-template-columns: 1fr; }
  .bsq-hero__visual { display: none; }
  .bsq-hero-arrows { display: none; }
  .bsq-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .bsq-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .bsq-grid--5 { grid-template-columns: repeat(2, 1fr); }
  .bsq-footer { grid-template-columns: 1fr 1fr; }
  .bsq-trust-grid { grid-template-columns: repeat(2, 1fr); }
  .bsq-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .bsq-section { padding: var(--bsq-space-2xl) 0; }
  .bsq-container { padding: 0 var(--bsq-space-sm); }
  .bsq-grid--2, .bsq-grid--3, .bsq-grid--4, .bsq-grid--5 { grid-template-columns: 1fr; }
  .bsq-grid--2-1, .bsq-grid--1-2 { grid-template-columns: 1fr; }
  .bsq-hero { min-height: 70vh; padding: var(--bsq-space-2xl) 0; }
  .bsq-hero__title { font-size: 2.25rem; }
  .bsq-hero__actions { flex-direction: column; }
  .bsq-hero__actions .bsq-btn { width: 100%; justify-content: center; }
  .bsq-footer { grid-template-columns: 1fr; }
  .bsq-footer__bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .bsq-trust-grid { grid-template-columns: 1fr; }
  .bsq-stats { grid-template-columns: 1fr 1fr; }
  .bsq-timeline { grid-template-columns: 1fr; gap: var(--bsq-space-lg); }
  .bsq-timeline::before { display: none; }
  .bsq-cta-banner { padding: var(--bsq-space-2xl) var(--bsq-space-lg); }
  .bsq-cta-banner__actions { flex-direction: column; }
  .bsq-cta-banner__actions .bsq-btn { width: 100%; justify-content: center; }
}

/* === UTILITY CLASSES === */
.bsq-section--compact { padding: var(--bsq-space-2xl) 0; }
.bsq-section--hero-page { padding: var(--bsq-space-3xl) 0; }
.bsq-section__actions { text-align: center; margin-top: var(--bsq-space-2xl); }
.bsq-section__actions .bsq-btn + .bsq-btn { margin-left: var(--bsq-space-md); }
.bsq-section-header__title--left { text-align: left; }
.bsq-section-header__title--hero { font-size: clamp(2.5rem, 4vw, 3.5rem); }
.bsq-grid--align-center { align-items: center; }
.bsq-grid--gap-sm { gap: var(--bsq-space-sm); }
.bsq-grid--mt { margin-top: var(--bsq-space-2xl); }

.bsq-card--accent {
  border: 2px solid var(--bsq-accent);
  box-shadow: var(--bsq-shadow-glow);
}

.bsq-card--inner {
  background: var(--bsq-surface-light);
  padding: 1.25rem;
  border-radius: var(--bsq-radius-md);
}

.bsq-card__title--lg { font-size: 2rem; }

@media (max-width: 768px) {
  .bsq-section__actions .bsq-btn { display: block; width: 100%; text-align: center; }
  .bsq-section__actions .bsq-btn + .bsq-btn { margin-left: 0; margin-top: var(--bsq-space-sm); }
}

/* Alignment utilities */
.bsq-text-center { text-align: center; }
.bsq-text-left { text-align: left; }

/* Gap utilities */
.bsq-gap-3xl { gap: var(--bsq-space-3xl); }

/* Display block for tags */
.bsq-section-header__tag--block { display: block; margin-bottom: var(--bsq-space-sm); }

/* Stats on light bg */
.bsq-stat--light {
  background: var(--bsq-surface-light);
  padding: var(--bsq-space-xl);
  border-radius: var(--bsq-radius-lg);
}

.bsq-stat--light .bsq-stat__value {
  font-size: 2.5rem;
}

.bsq-stat--light .bsq-stat__label {
  color: var(--bsq-text-secondary);
}

/* Full-width button utility */
.bsq-btn--full { width: 100%; justify-content: center; }

/* Section with custom hero padding for internal pages */
.bsq-section--page-hero { padding: var(--bsq-space-3xl) 0; }

/* Mission text style */
.bsq-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--bsq-text-secondary);
}

.bsq-lead + .bsq-lead { margin-top: var(--bsq-space-lg); }

/* Contact option card */
.bsq-card--contact {
  text-align: center;
  border-color: var(--bsq-accent);
  box-shadow: var(--bsq-shadow-glow);
}

.bsq-card__actions { margin-top: var(--bsq-space-md); }

.bsq-grid--contact-cards { margin-bottom: var(--bsq-space-3xl); }

/* Form styles */
.bsq-form {
  background: var(--bsq-surface-light);
  border-radius: var(--bsq-radius-lg);
  padding: var(--bsq-space-2xl);
  border: 1px solid var(--bsq-border);
}

.bsq-form-group { margin-bottom: var(--bsq-space-lg); }

.bsq-form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--bsq-text-primary);
  margin-bottom: 0.375rem;
}

.bsq-form-field {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--bsq-font-body);
  font-size: 1rem;
  color: var(--bsq-text-primary);
  background: var(--bsq-surface-white);
  border: 1px solid var(--bsq-border);
  border-radius: var(--bsq-radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bsq-form-field:focus {
  outline: none;
  border-color: var(--bsq-accent);
  box-shadow: 0 0 0 3px rgba(217, 26, 50, 0.12);
}

.bsq-form-field--error {
  border-color: var(--bsq-error);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.bsq-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--bsq-space-md);
}

@media (max-width: 768px) {
  .bsq-form-row { grid-template-columns: 1fr; }
}

.bsq-form-field--textarea {
  resize: vertical;
  min-height: 100px;
}

.bsq-form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--bsq-text-secondary);
}

.bsq-form-checkbox input[type="checkbox"] {
  margin-top: 0.2rem;
  accent-color: var(--bsq-accent);
}

.bsq-form-error {
  font-size: 0.75rem;
  color: var(--bsq-error);
  margin-top: 0.25rem;
}

.bsq-form-wrapper { max-width: 720px; margin: 0 auto; }

.bsq-section-header--form { margin-bottom: var(--bsq-space-xl); }

.bsq-form-noscript {
  text-align: center;
  color: var(--bsq-text-secondary);
  margin-top: var(--bsq-space-lg);
}

/* Form alert banners */
.bsq-form-alert {
  display: flex;
  align-items: flex-start;
  gap: var(--bsq-space-md);
  padding: var(--bsq-space-md) var(--bsq-space-lg);
  border-radius: var(--bsq-radius-lg);
  margin-bottom: var(--bsq-space-xl);
  font-size: 0.9rem;
  line-height: 1.5;
}

.bsq-form-alert .bsq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
}

.bsq-form-alert--success {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #065f46;
}

.bsq-form-alert--success .bsq-icon {
  color: #10b981;
}

.bsq-form-alert--error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #991b1b;
}

.bsq-form-alert--error .bsq-icon {
  color: #ef4444;
}

.bsq-form-alert--error a {
  color: inherit;
  font-weight: 600;
}

[data-theme="dark"] .bsq-form-alert--success {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #a7f3d0;
}

[data-theme="dark"] .bsq-form-alert--error {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.bsq-form-noscript a { color: var(--bsq-accent); }

/* Contact info strip */
.bsq-contact-info {
  margin-top: var(--bsq-space-3xl);
}

.bsq-contact-info__item {
  text-align: center;
  padding: var(--bsq-space-lg);
}

.bsq-contact-info__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--bsq-space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--bsq-radius-md);
  background: var(--bsq-accent-glow);
}

.bsq-contact-info__icon .bsq-icon {
  width: 24px;
  height: 24px;
}

.bsq-contact-info__label {
  font-family: var(--bsq-font-display);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.bsq-contact-info__value {
  color: var(--bsq-accent);
  text-decoration: none;
}

.bsq-contact-info__value:hover { text-decoration: underline; }

.bsq-contact-info__value--muted {
  color: var(--bsq-text-secondary);
  text-decoration: none;
}

/* Trust logo strip — static fallback (overridden by marquee in .bsq-trust-strip__inner) */

.bsq-trust-strip__logo {
  font-family: var(--bsq-font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--bsq-text-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Use case cards for homepage */
.bsq-usecase-card {
  background: var(--bsq-surface-white);
  border: 1px solid var(--bsq-border);
  border-radius: var(--bsq-radius-lg);
  padding: var(--bsq-space-xl);
  transition: all 0.35s ease;
}

.bsq-usecase-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--bsq-shadow-lg);
  border-color: var(--bsq-accent);
}

.bsq-usecase-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bsq-accent-glow);
  border-radius: var(--bsq-radius-md);
  margin-bottom: var(--bsq-space-md);
}

.bsq-usecase-card__title {
  font-family: var(--bsq-font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.bsq-usecase-card__text {
  font-size: 0.9rem;
  color: var(--bsq-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--bsq-space-sm);
}

.bsq-usecase-card__meta {
  font-size: 0.8rem;
  color: var(--bsq-text-muted);
  font-weight: 500;
}

/* Robot & Automation highlight section */
.bsq-highlight-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--bsq-space-3xl);
  align-items: center;
}

@media (max-width: 768px) {
  .bsq-highlight-split { grid-template-columns: 1fr; }
}

.bsq-mini-card {
  background: var(--bsq-surface-white);
  border: 1px solid var(--bsq-border);
  border-radius: var(--bsq-radius-md);
  padding: var(--bsq-space-lg);
  transition: all 0.3s ease;
}

.bsq-mini-card:hover {
  background: var(--bsq-surface-light);
  border-color: rgba(217, 26, 50, 0.2);
}

.bsq-mini-card__icon {
  font-size: 1.5rem;
  margin-bottom: var(--bsq-space-xs);
}

.bsq-mini-card__title {
  font-family: var(--bsq-font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--bsq-text-primary);
  margin-bottom: 0.25rem;
}

.bsq-mini-card__text {
  font-size: 0.85rem;
  color: var(--bsq-text-secondary);
  line-height: 1.5;
}

/* === PAGE SPECIFIC: Be2Force === */
.bsq-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--bsq-space-3xl);
  align-items: center;
  margin-bottom: var(--bsq-space-3xl);
}

.bsq-feature-row:nth-child(even) { direction: rtl; }
.bsq-feature-row:nth-child(even) > * { direction: ltr; }

.bsq-feature-row__visual {
  background: var(--bsq-surface-light);
  border-radius: var(--bsq-radius-xl);
  padding: var(--bsq-space-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

@media (max-width: 768px) {
  .bsq-feature-row { grid-template-columns: 1fr; }
  .bsq-feature-row:nth-child(even) { direction: ltr; }
}

/* === COMPARISON TABLE === */
.bsq-comparison {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--bsq-radius-lg);
  overflow: hidden;
  background: var(--bsq-surface-white);
  box-shadow: var(--bsq-shadow-md);
}

.bsq-comparison th {
  background: var(--bsq-primary);
  color: #fff;
  font-family: var(--bsq-font-display);
  font-weight: 600;
  padding: 1rem 1.5rem;
  text-align: left;
}

.bsq-comparison td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--bsq-border);
  font-size: 0.95rem;
}

.bsq-comparison tr:hover td { background: var(--bsq-surface-light); }

/* === SMOOTH SCROLL === */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* === SELECTION === */
::selection {
  background: rgba(217, 26, 50, 0.15);
  color: var(--bsq-text-primary);
}

/* === STICKY MOBILE CTA === */
.bsq-mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--bsq-surface-white);
  border-top: 1px solid var(--bsq-border);
  padding: 8px 16px;
  display: none;
  gap: 8px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}

.bsq-mobile-cta .bsq-btn { flex: 1; justify-content: center; font-size: 0.875rem; }

@media (max-width: 768px) {
  .bsq-mobile-cta.visible { display: flex; }
  body.has-mobile-cta { padding-bottom: 72px; }
}

/* === SVG ICON SYSTEM === */
.bsq-icon {
  width: 24px;
  height: 24px;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.bsq-card__icon .bsq-icon,
.bsq-eco-card__icon .bsq-icon {
  width: 28px;
  height: 28px;
}

.bsq-inline-icon {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-right: 0.35em;
}

.bsq-check-icon {
  display: inline-flex;
  align-items: center;
  color: var(--bsq-success);
  margin-right: 0.35em;
}

.bsq-check-icon .bsq-icon {
  width: 1em;
  height: 1em;
}

.bsq-inline-icon .bsq-icon {
  width: 1em;
  height: 1em;
}

.bsq-pain__icon .bsq-icon {
  width: 22px;
  height: 22px;
}

/* === ECOSYSTEM ICON COLORS === */
.bsq-eco-icon--force { background: var(--bsq-accent-glow); color: var(--bsq-accent); }
.bsq-eco-icon--web { background: rgba(6, 182, 212, 0.1); color: #06B6D4; }
.bsq-eco-icon--sign { background: rgba(16, 185, 129, 0.1); color: #10B981; }
.bsq-eco-icon--social { background: rgba(139, 92, 246, 0.1); color: #8B5CF6; }
.bsq-eco-icon--robot { background: rgba(245, 158, 11, 0.1); color: #F59E0B; }
.bsq-eco-icon--ai { background: rgba(59, 130, 246, 0.1); color: #3B82F6; }
.bsq-eco-icon--mes { background: rgba(100, 116, 139, 0.1); color: #64748B; }

/* === SERVICE LOGO COMPONENT === */
.bsq-service-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: var(--bsq-space-md);
}
.bsq-service-logo svg {
  width: 100%;
  height: auto;
}
.bsq-service-logo__light { display: block; }
.bsq-service-logo__dark { display: none; }

.bsq-section--dark .bsq-service-logo__light { display: none; }
.bsq-section--dark .bsq-service-logo__dark { display: block; }

[data-theme="dark"] .bsq-service-logo__light { display: none; }
[data-theme="dark"] .bsq-service-logo__dark { display: block; }

.bsq-eco-card .bsq-service-logo {
  max-width: 200px;
  margin: 0 auto var(--bsq-space-md);
}
.bsq-eco-card--featured .bsq-service-logo {
  max-width: 280px;
}

.bsq-service-logo--hero {
  max-width: 300px;
  margin-bottom: var(--bsq-space-lg);
}
.bsq-section--hero-page .bsq-service-logo--hero {
  margin-left: 0;
}

.bsq-hero .bsq-service-logo--hero {
  max-width: 260px;
  margin-bottom: var(--bsq-space-md);
}

@media (max-width: 768px) {
  .bsq-eco-card .bsq-service-logo { max-width: 160px; }
  .bsq-eco-card--featured .bsq-service-logo { max-width: 220px; }
  .bsq-service-logo--hero { max-width: 240px; }
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bsq-surface-light); }
::-webkit-scrollbar-thumb { background: var(--bsq-text-muted); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--bsq-text-secondary); }

/* === BREADCRUMBS === */
.bsq-breadcrumb {
  background: var(--bsq-surface-light);
  padding: 0.6rem 0;
  border: none;
  font-size: 0.8rem;
  color: var(--bsq-text-muted);
}
.bsq-breadcrumb .bsq-container {
  display: flex;
  align-items: center;
  gap: 0;
}
.bsq-breadcrumb a {
  color: var(--bsq-text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.bsq-breadcrumb a:hover {
  color: var(--bsq-accent);
}
.bsq-breadcrumb__sep {
  margin: 0 0.4rem;
  opacity: 0.4;
}
.bsq-breadcrumb__current {
  color: var(--bsq-text-primary);
}

.bsq-breadcrumb__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bsq-breadcrumb__item:not(:last-child)::after {
  content: '/';
  margin-left: 0.5rem;
  color: var(--bsq-text-muted);
}

.bsq-breadcrumb__link {
  color: var(--bsq-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.bsq-breadcrumb__link:hover {
  color: var(--bsq-accent);
}

/* === MEGA MENU === */
.bsq-nav {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bsq-nav__item {
  position: relative;
  list-style: none;
}
.bsq-nav__item::before,
.bsq-nav__item::marker {
  content: none;
  display: none;
}

.bsq-nav__link {
  color: var(--bsq-text-light);
  font-family: var(--bsq-font-display);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  padding: 0.5rem 0.85rem;
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.bsq-nav__link:hover,
.bsq-nav__item--active .bsq-nav__link {
  color: #fff;
}

.bsq-nav__chevron {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
  opacity: 0.5;
}

.bsq-nav__item:hover .bsq-nav__chevron {
  transform: rotate(180deg);
  opacity: 0.8;
}

/* Mega menu dropdown — clean and minimal */
.bsq-mega {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 280px;
  background: var(--bsq-surface-white);
  border: 1px solid var(--bsq-border);
  border-radius: var(--bsq-radius-lg);
  box-shadow: var(--bsq-shadow-xl);
  padding: var(--bsq-space-sm) 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1001;
  pointer-events: none;
}

.bsq-nav__item:hover .bsq-mega,
.bsq-mega--open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.bsq-mega__grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Featured item — subtle highlight, no heavy card */
.bsq-mega__featured {
  padding: var(--bsq-space-sm) var(--bsq-space-lg);
  border-bottom: 1px solid var(--bsq-border);
  margin-bottom: var(--bsq-space-xs);
}
.bsq-mega__featured-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bsq-accent);
  margin-bottom: 0.25rem;
  background: none;
  padding: 0;
}
.bsq-mega__featured-title {
  font-family: var(--bsq-font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--bsq-text-primary);
  margin-bottom: 0.15rem;
}
.bsq-mega__featured-desc {
  font-size: 0.8rem;
  color: var(--bsq-text-muted);
  line-height: 1.45;
  margin-bottom: 0.4rem;
}
.bsq-mega__featured-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bsq-accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  transition: gap 0.2s ease;
}
.bsq-mega__featured-link:hover {
  color: var(--bsq-accent-dark);
  gap: 0.4rem;
}

/* Menu items — clean list, no boxes, no bullets */
.bsq-mega__item {
  display: flex;
  align-items: center;
  gap: var(--bsq-space-sm);
  padding: 0.55rem var(--bsq-space-lg);
  text-decoration: none;
  transition: background 0.15s ease;
  list-style: none;
}
.bsq-mega__item::before,
.bsq-mega__item::marker {
  content: none;
  display: none;
}

.bsq-mega__item:hover {
  background: var(--bsq-surface-light);
}

.bsq-mega__item-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--bsq-accent);
}
.bsq-mega__item-icon .bsq-icon {
  width: 18px;
  height: 18px;
  stroke: var(--bsq-accent);
}

.bsq-mega__item-title {
  font-family: var(--bsq-font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--bsq-text-primary);
  line-height: 1.3;
}
.bsq-mega__item-desc {
  display: none;
}

/* Mega menu responsive — hide on mobile */
@media (max-width: 1024px) {
  .bsq-mega { display: none; }
  .bsq-nav { display: none; }
}

/* === HEADER: Desktop nav + mobile === */
.site-header .main-navigation {
  display: flex;
  align-items: center;
  gap: var(--bsq-space-sm);
}
.site-branding a { text-decoration: none; display: inline-flex; align-items: center; }
.bsq-header-logo { display: block; height: 40px; width: auto; }
.bsq-header-cta { margin-left: var(--bsq-space-sm); white-space: nowrap; text-decoration: none; }

/* Language Switcher */
.bsq-lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: var(--bsq-space-sm);
}
.bsq-lang-switcher__link {
  color: var(--bsq-text-muted);
  font-family: var(--bsq-font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.2rem 0.35rem;
  border-radius: var(--bsq-radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
}
.bsq-lang-switcher__link:hover {
  color: var(--bsq-text-white);
}
.bsq-lang-switcher__link--active {
  color: var(--bsq-accent);
  font-weight: 700;
  pointer-events: none;
}
.bsq-lang-switcher__sep {
  color: rgba(255,255,255,0.2);
  font-size: 0.75rem;
}
.bsq-lang-switcher--mobile {
  justify-content: center;
  margin-left: 0;
  margin-top: var(--bsq-space-md);
}
.bsq-lang-switcher--mobile .bsq-lang-switcher__link {
  font-size: 1rem;
  padding: 0.4rem 0.6rem;
}

.bsq-mobile-toggle { display: none; }

.bsq-mobile-overlay {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bsq-primary);
  z-index: 999;
  padding: var(--bsq-space-xl) var(--bsq-space-lg);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.bsq-mobile-overlay.active { opacity: 1; visibility: visible; }

.bsq-mobile-overlay__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--bsq-space-lg);
  padding-top: var(--bsq-space-2xl);
}
.bsq-mobile-overlay__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}
.bsq-mobile-overlay__menu li {
  margin-bottom: var(--bsq-space-sm);
  list-style: none;
}
.bsq-mobile-overlay__menu li::before,
.bsq-mobile-overlay__menu li::marker {
  content: none;
  display: none;
}
.bsq-mobile-overlay__menu a {
  color: var(--bsq-text-white);
  font-size: 1.15rem;
  padding: 0.75rem;
  display: block;
  text-decoration: none;
}
.bsq-mobile-overlay__menu a:hover { color: var(--bsq-accent-light); }
.bsq-mobile-overlay__cta { width: 100%; max-width: 280px; justify-content: center; }

@media (max-width: 1024px) {
  .bsq-header-cta { display: none; }
  .bsq-lang-switcher:not(.bsq-lang-switcher--mobile) { display: none; }
  .bsq-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--bsq-radius-sm);
    color: var(--bsq-text-light);
    cursor: pointer;
    padding: 0;
    margin-left: auto;
  }
  .bsq-mobile-toggle .bsq-icon { width: 24px; height: 24px; }
}

/* ============================================
   UI/UX PRO MAX ENHANCEMENTS
   Based on design-system audit recommendations
   ============================================ */

/* --- 1. CURSOR: POINTER on all interactive elements --- */
a.bsq-card,
a.bsq-eco-card,
a.bsq-industry,
a.bsq-usecase,
a.bsq-usecase-card,
.bsq-card__link,
.bsq-mega__item,
.bsq-mega__featured-link,
.bsq-breadcrumb__link,
.bsq-contact-info__value,
.bsq-footer__links a,
.bsq-footer__legal a,
.bsq-footer__email a,
.bsq-nav__link,
.bsq-mobile-overlay__menu a,
.bsq-lang-switcher__link,
.bsq-comparison tr {
  cursor: pointer;
}

/* --- 2. FOCUS-VISIBLE states for keyboard navigation --- */
.bsq-btn:focus-visible {
  outline: 2px solid var(--bsq-accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(217, 26, 50, 0.2);
}

.bsq-btn--white:focus-visible {
  outline-color: var(--bsq-primary);
  box-shadow: 0 0 0 4px rgba(28, 21, 32, 0.2);
}

.bsq-nav__link:focus-visible {
  outline: 2px solid var(--bsq-accent-light);
  outline-offset: 2px;
  border-radius: var(--bsq-radius-sm);
}

.bsq-card:focus-visible,
.bsq-eco-card:focus-visible,
.bsq-usecase-card:focus-visible,
.bsq-industry:focus-visible,
.bsq-mini-card:focus-visible {
  outline: 2px solid var(--bsq-accent);
  outline-offset: 2px;
}

.bsq-card__link:focus-visible,
.bsq-mega__item:focus-visible,
.bsq-mega__featured-link:focus-visible,
.bsq-breadcrumb__link:focus-visible {
  outline: 2px solid var(--bsq-accent);
  outline-offset: 2px;
  border-radius: var(--bsq-radius-sm);
}

.bsq-footer__links a:focus-visible,
.bsq-footer__legal a:focus-visible,
.bsq-footer__email a:focus-visible {
  outline: 2px solid var(--bsq-accent-light);
  outline-offset: 2px;
  border-radius: 2px;
}

.bsq-mobile-toggle:focus-visible {
  outline: 2px solid var(--bsq-accent-light);
  outline-offset: 2px;
}

.bsq-mobile-overlay__menu a:focus-visible {
  outline: 2px solid var(--bsq-accent-light);
  outline-offset: 2px;
  border-radius: var(--bsq-radius-sm);
}

.bsq-lang-switcher__link:focus-visible {
  outline: 2px solid var(--bsq-accent-light);
  outline-offset: 2px;
  border-radius: var(--bsq-radius-sm);
}

.bsq-form-field:focus-visible {
  outline: none;
  border-color: var(--bsq-accent);
  box-shadow: 0 0 0 3px rgba(217, 26, 50, 0.15);
}

.bsq-form-checkbox input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--bsq-accent);
  outline-offset: 2px;
}

/* --- 3. PREFERS-REDUCED-MOTION accessibility --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .bsq-reveal,
  .bsq-reveal--scale,
  .bsq-reveal--slide-left,
  .bsq-reveal--slide-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .bsq-hero__badge::before,
  .bsq-hero__badge,
  .bsq-hero__title,
  .bsq-hero__subtitle,
  .bsq-hero__actions,
  .bsq-hero__visual,
  .bsq-hero__mockup,
  .bsq-btn--primary::after {
    animation: none !important;
    opacity: 1 !important;
  }
}

/* --- 4. BUTTON active states (tactile feedback) --- */
.bsq-btn:active {
  transform: translateY(1px);
  transition-duration: 50ms;
}

.bsq-btn--primary:active {
  box-shadow: 0 2px 8px rgba(217, 26, 50, 0.3);
}

.bsq-btn--secondary:active {
  background: rgba(217, 26, 50, 0.12);
}

.bsq-btn--dark:active {
  box-shadow: var(--bsq-shadow-sm);
}

.bsq-btn--white:active {
  box-shadow: var(--bsq-shadow-md);
}

/* --- 5. ENHANCED HOVER feedback on interactive cards --- */
.bsq-pain:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(217, 151, 11, 0.1);
}

.bsq-usecase:hover {
  transform: translateY(-3px);
}

.bsq-trust-item {
  transition: all 0.2s ease;
  border-radius: var(--bsq-radius-md);
}

.bsq-trust-item:hover {
  background: var(--bsq-surface-light);
  transform: translateY(-2px);
}

.bsq-mini-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(217, 26, 50, 0.08);
}

.bsq-mega__item {
  transition: background 0.2s ease, transform 0.2s ease;
}

.bsq-mega__item:hover {
  transform: translateX(4px);
}

/* Card link arrow animation on card hover */
.bsq-card:hover .bsq-card__link {
  gap: 0.75rem;
  color: var(--bsq-accent-hover);
}

/* --- 6. STANDARDIZED TRANSITION TIMING (200ms ease) --- */
.bsq-pain,
.bsq-usecase,
.bsq-mini-card,
.bsq-mega__featured-link,
.bsq-breadcrumb__link,
.bsq-card__link,
.bsq-contact-info__value,
.bsq-nav__link {
  transition: all 0.2s ease;
}

/* --- 7. SKIP LINK for screen readers --- */
.bsq-skip-link {
  position: absolute;
  top: -100px;
  left: var(--bsq-space-md);
  z-index: 10000;
  background: var(--bsq-accent);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--bsq-radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: top 0.2s ease;
}

.bsq-skip-link:focus {
  top: var(--bsq-space-md);
}

/* --- 8. IMPROVED SCROLLBAR for dark sections --- */
.bsq-section--dark ::-webkit-scrollbar-track { background: var(--bsq-surface-medium); }
.bsq-section--dark ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); }
.bsq-section--dark ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.3); }

/* --- 9. LINK UNDERLINE animation for text links --- */
.bsq-card__link,
.bsq-mega__featured-link {
  position: relative;
}

.bsq-card__link::after,
.bsq-mega__featured-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.2s ease;
}

.bsq-card__link:hover::after,
.bsq-mega__featured-link:hover::after {
  width: 100%;
}

/* --- 10. SMOOTH IMAGE LOADING placeholder --- */
.bsq-hero__mockup img,
.bsq-feature-row__visual img {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.bsq-hero__mockup img.loaded,
.bsq-feature-row__visual img.loaded {
  opacity: 1;
}

/* ============================================
   DARK MODE — Comprehensive overrides
   ============================================ */
[data-theme="dark"] {
  --bsq-surface-white: #1C1520;
  --bsq-surface-light: #221A26;
  --bsq-surface-medium: #2A2028;
  --bsq-surface-dark: #110D15;

  --bsq-text-primary: #FAF8F8;
  --bsq-text-secondary: #C8BCBE;
  --bsq-text-muted: #9A8A8C;
  --bsq-text-light: #C8BCBE;

  --bsq-border: rgba(255,255,255,0.1);

  --bsq-accent-glow: rgba(217, 26, 50, 0.15);

  --bsq-shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --bsq-shadow-md: 0 4px 6px rgba(0,0,0,0.35);
  --bsq-shadow-lg: 0 10px 15px rgba(0,0,0,0.4);
  --bsq-shadow-xl: 0 20px 25px rgba(0,0,0,0.4);

  --bsq-gradient-hero: linear-gradient(170deg, #1C1520 0%, #2A2028 50%, #1C1520 100%);
  --bsq-gradient-card: linear-gradient(135deg, rgba(217, 26, 50, 0.08) 0%, rgba(255,255,255,0.02) 100%);
}

/* Dark mode: Hero + section--dark restore dark styling */
[data-theme="dark"] .bsq-section--dark {
  color: var(--bsq-text-white, #FAF8F8);
}
[data-theme="dark"] .bsq-hero__badge {
  background: rgba(217, 26, 50, 0.12);
  border-color: rgba(217, 26, 50, 0.25);
  color: var(--bsq-accent-light);
}
[data-theme="dark"] .bsq-hero__badge::before {
  background: var(--bsq-accent-light);
}
[data-theme="dark"] .bsq-hero__subtitle {
  color: var(--bsq-text-muted);
}
[data-theme="dark"] .bsq-hero__mockup {
  background: var(--bsq-gradient-card);
  border-color: rgba(255,255,255,0.08);
  box-shadow: var(--bsq-shadow-glow);
}
[data-theme="dark"] .bsq-dashboard {
  background: var(--bsq-surface-dark);
  border-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .bsq-dashboard__header {
  border-bottom-color: rgba(255,255,255,0.06);
  color: var(--bsq-text-muted);
}
[data-theme="dark"] .bsq-kpi-card {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .bsq-kpi-card__value {
  color: #fff;
}
[data-theme="dark"] .bsq-hero-slide__bg::after {
  background: linear-gradient(135deg, rgba(28,21,32,0.85) 0%, rgba(28,21,32,0.55) 100%);
}
[data-theme="dark"] .bsq-hero-dot {
  border-color: rgba(255,255,255,0.4);
}
[data-theme="dark"] .bsq-hero-dot:hover {
  border-color: rgba(255,255,255,0.8);
}
[data-theme="dark"] .bsq-hero-arrow {
  border-color: rgba(255,255,255,0.15);
  background: rgba(28,21,32,0.5);
  color: #fff;
}
[data-theme="dark"] .bsq-hero-arrow:hover {
  background: rgba(217,26,50,0.3);
  border-color: rgba(217,26,50,0.5);
}

[data-theme="dark"] body {
  background-color: var(--bsq-surface-white) !important;
  color: var(--bsq-text-primary);
}

/* Sections */
[data-theme="dark"] .bsq-section--white {
  background-color: var(--bsq-surface-white);
  color: var(--bsq-text-primary);
}
[data-theme="dark"] .bsq-section--light {
  background-color: var(--bsq-surface-light);
  color: var(--bsq-text-primary);
}

/* Typography — all headings and text */
[data-theme="dark"] .bsq-card__title,
[data-theme="dark"] .bsq-section-header__title,
[data-theme="dark"] h1, [data-theme="dark"] h2,
[data-theme="dark"] h3, [data-theme="dark"] h4 {
  color: var(--bsq-text-primary);
}
[data-theme="dark"] .bsq-card__text,
[data-theme="dark"] .bsq-section-header__desc,
[data-theme="dark"] .bsq-lead,
[data-theme="dark"] p {
  color: var(--bsq-text-secondary);
}

/* Gradient headings in dark mode: white-to-accent for all sections */
[data-theme="dark"] .bsq-section--white .bsq-section-header__title,
[data-theme="dark"] .bsq-section--light .bsq-section-header__title {
  background: linear-gradient(135deg, #FAF8F8 0%, var(--bsq-accent-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Cards */
[data-theme="dark"] .bsq-card {
  background: var(--bsq-surface-medium);
  border-color: var(--bsq-border);
}

/* Icons — fix contrast: ensure stroke is readable on dark backgrounds */
[data-theme="dark"] .bsq-card__icon {
  background: rgba(217, 26, 50, 0.15);
}
[data-theme="dark"] .bsq-card__icon .bsq-icon {
  stroke: var(--bsq-accent-light);
}
[data-theme="dark"] .bsq-eco-card__icon {
  background: rgba(217, 26, 50, 0.15);
}
[data-theme="dark"] .bsq-eco-card__icon .bsq-icon {
  stroke: var(--bsq-accent-light);
}
[data-theme="dark"] .bsq-pain__icon {
  background: rgba(217, 151, 11, 0.2);
}
[data-theme="dark"] .bsq-pain__icon .bsq-icon {
  stroke: #F59E0B;
}
[data-theme="dark"] .bsq-mini-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .bsq-mini-card__title {
  color: #FAF8F8;
}
[data-theme="dark"] .bsq-pain__title {
  color: #FAF8F8;
}
[data-theme="dark"] .bsq-mini-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(217, 26, 50, 0.3);
}
[data-theme="dark"] .bsq-mini-card__icon {
  background: rgba(217, 26, 50, 0.15);
}
[data-theme="dark"] .bsq-mini-card__icon .bsq-icon {
  stroke: var(--bsq-accent-light);
}
[data-theme="dark"] .bsq-check-icon .bsq-icon {
  stroke: #34D399;
}
[data-theme="dark"] .bsq-contact-info__icon .bsq-icon {
  stroke: var(--bsq-accent-light);
}
[data-theme="dark"] .bsq-step__icon .bsq-icon {
  stroke: var(--bsq-accent-light);
}

/* Component backgrounds */
[data-theme="dark"] .bsq-pain__text { color: var(--bsq-text-muted); }
[data-theme="dark"] .bsq-pain {
  background: var(--bsq-surface-medium);
  border-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .bsq-usecase-card {
  background: var(--bsq-surface-medium);
  border-color: var(--bsq-border);
}
[data-theme="dark"] .bsq-step {
  background: var(--bsq-surface-medium);
}
[data-theme="dark"] .bsq-eco-card {
  background: var(--bsq-surface-medium);
  border-color: var(--bsq-border);
}
[data-theme="dark"] .bsq-trust-item {
  background: var(--bsq-surface-medium);
}
[data-theme="dark"] .bsq-timeline-item__text {
  color: var(--bsq-text-secondary);
}
[data-theme="dark"] .bsq-comparison {
  background: var(--bsq-surface-medium);
}
[data-theme="dark"] .bsq-comparison th {
  background: var(--bsq-surface-dark);
}
[data-theme="dark"] .bsq-comparison td {
  border-color: var(--bsq-border);
}
[data-theme="dark"] .bsq-usecase {
  background: var(--bsq-surface-medium);
  border-color: var(--bsq-border);
}

/* Stats */
[data-theme="dark"] .bsq-stat--light {
  background: var(--bsq-surface-medium);
}
[data-theme="dark"] .bsq-stat--light .bsq-stat__value {
  color: var(--bsq-accent-light);
}
[data-theme="dark"] .bsq-stat--light .bsq-stat__label {
  color: var(--bsq-text-secondary);
}

/* Breadcrumb dark */
[data-theme="dark"] .bsq-breadcrumb {
  background: var(--bsq-surface-dark);
  color: rgba(255,255,255,0.45);
}
[data-theme="dark"] .bsq-breadcrumb a,
[data-theme="dark"] .bsq-breadcrumb__link {
  color: rgba(255,255,255,0.55);
}
[data-theme="dark"] .bsq-breadcrumb a:hover,
[data-theme="dark"] .bsq-breadcrumb__link:hover {
  color: var(--bsq-accent-light);
}
[data-theme="dark"] .bsq-breadcrumb__current {
  color: rgba(255,255,255,0.8);
}
[data-theme="dark"] .bsq-breadcrumb__item:not(:last-child)::after {
  color: rgba(255,255,255,0.3);
}

/* Footer */
[data-theme="dark"] .site-footer {
  background-color: var(--bsq-surface-dark);
}

/* Forms */
[data-theme="dark"] .bsq-form-field {
  background: var(--bsq-surface-medium);
  border-color: var(--bsq-border);
  color: var(--bsq-text-primary);
}
[data-theme="dark"] .bsq-contact-info__label {
  color: var(--bsq-text-muted);
}

/* Buttons in dark mode */
[data-theme="dark"] .bsq-btn--white {
  background: var(--bsq-surface-medium);
  color: var(--bsq-text-primary);
  border: 1px solid var(--bsq-border);
}
[data-theme="dark"] .bsq-btn--dark {
  background: var(--bsq-surface-light);
  color: var(--bsq-text-primary);
}
[data-theme="dark"] .bsq-mobile-cta .bsq-btn--secondary,
[data-theme="dark"] .bsq-section--white .bsq-btn--secondary,
[data-theme="dark"] .bsq-section--light .bsq-btn--secondary {
  color: var(--bsq-text-primary);
  border-color: var(--bsq-border);
}

/* Mega menu in dark mode */
[data-theme="dark"] .bsq-mega {
  background: var(--bsq-surface-medium);
  border-color: var(--bsq-border);
}
[data-theme="dark"] .bsq-mega__featured {
  background: rgba(217, 26, 50, 0.1);
  border-color: rgba(217, 26, 50, 0.2);
}
[data-theme="dark"] .bsq-mega__item:hover {
  background: rgba(255,255,255,0.05);
}
[data-theme="dark"] .bsq-mega__item-title {
  color: var(--bsq-text-primary);
}
[data-theme="dark"] .bsq-mega__item-desc {
  color: var(--bsq-text-muted);
}
[data-theme="dark"] .bsq-mega__featured-title {
  color: var(--bsq-text-primary);
}
[data-theme="dark"] .bsq-mega__featured-desc {
  color: var(--bsq-text-secondary);
}

/* Mobile CTA bar */
[data-theme="dark"] .bsq-mobile-cta {
  background: var(--bsq-surface-dark);
  border-color: var(--bsq-border);
}

/* Glass cards in dark mode */
[data-theme="dark"] .bsq-card--glass {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}

/* Theme toggle button */
.bsq-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s, border-color 0.2s;
  padding: 0;
  margin-left: 0.5rem;
  flex-shrink: 0;
}
.bsq-theme-toggle:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
}
.bsq-theme-toggle svg { width: 18px; height: 18px; }
.bsq-theme-toggle__sun { display: none; }
.bsq-theme-toggle__moon { display: block; }
[data-theme="dark"] .bsq-theme-toggle__sun { display: block; }
[data-theme="dark"] .bsq-theme-toggle__moon { display: none; }

/* ============================================
   ACCESSIBILITY WIDGET
   ============================================ */
.bsq-a11y-fab {
  position: fixed;
  bottom: 70px;
  left: 20px;
  z-index: 9998;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1565C0;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.bsq-a11y-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.bsq-a11y-fab svg { width: 26px; height: 26px; fill: #fff; }

.bsq-a11y-panel {
  position: fixed;
  bottom: 130px;
  left: 20px;
  z-index: 9999;
  background: var(--bsq-surface-white);
  border-radius: var(--bsq-radius-lg);
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  padding: 1.25rem;
  width: 240px;
  display: none;
  animation: bsq-a11y-in 0.2s ease;
}
.bsq-a11y-panel.active { display: block; }

@keyframes bsq-a11y-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

[data-theme="dark"] .bsq-a11y-panel {
  background: var(--bsq-surface-medium);
  color: var(--bsq-text-primary);
}

.bsq-a11y-panel__title {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: inherit;
}

.bsq-a11y-panel__btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: none;
  border: 1px solid var(--bsq-border);
  border-radius: var(--bsq-radius-sm);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  color: inherit;
  transition: background 0.15s;
  margin-bottom: 0.5rem;
  font-family: var(--bsq-font-body);
}
.bsq-a11y-panel__btn:last-child { margin-bottom: 0; }
.bsq-a11y-panel__btn:hover { background: rgba(0,0,0,0.05); }
[data-theme="dark"] .bsq-a11y-panel__btn:hover { background: rgba(255,255,255,0.05); }
.bsq-a11y-panel__btn.active { background: #1565C0; color: #fff; border-color: #1565C0; }
.bsq-a11y-panel__btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* High contrast mode */
html.bsq-high-contrast * {
  border-color: #000 !important;
}
html.bsq-high-contrast [data-theme="dark"] * {
  border-color: #fff !important;
}

/* ============================================
   PREMIUM EFFECTS — Linear/Raycast/Stripe inspired
   ============================================ */

/* --- 2. Card Border Glow (Linear style) --- */
.bsq-card,
.bsq-eco-card,
.bsq-pain {
  --glow-x: 50%;
  --glow-y: 50%;
  --glow-opacity: 0;
  position: relative;
}

.bsq-card::after,
.bsq-eco-card::after,
.bsq-pain::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(
    400px circle at var(--glow-x) var(--glow-y),
    rgba(217, 26, 50, 0.35),
    transparent 40%
  );
  opacity: var(--glow-opacity);
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  padding: 1px;
}

/* --- 3. Automan / Raycast Border Runner CTA --- */
@property --btn-border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes bsq-border-run {
  to { --btn-border-angle: 360deg; }
}

.bsq-btn--primary {
  position: relative;
  overflow: visible;
  z-index: 1;
  border: none;
}
.bsq-btn--primary::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from var(--btn-border-angle),
    transparent 0%,
    transparent 25%,
    rgba(255,255,255,0.9) 30%,
    #fff 33%,
    rgba(255,255,255,0.9) 36%,
    transparent 41%,
    transparent 100%
  );
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
}
.bsq-btn--primary:hover::before {
  opacity: 1;
  animation: bsq-border-run 2.5s linear infinite;
}

/* Glow trail behind the runner */
.bsq-btn--primary::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: calc(var(--bsq-radius-md) + 4px);
  padding: 6px;
  background: conic-gradient(
    from var(--btn-border-angle),
    transparent 0%,
    transparent 20%,
    rgba(217,26,50,0.4) 28%,
    rgba(255,255,255,0.3) 33%,
    rgba(217,26,50,0.4) 38%,
    transparent 46%,
    transparent 100%
  );
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -2;
}
.bsq-btn--primary:hover::after {
  opacity: 1;
  animation: bsq-border-run 2.5s linear infinite;
}

.bsq-btn--secondary {
  position: relative;
  overflow: visible;
  z-index: 1;
}
.bsq-btn--secondary::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from var(--btn-border-angle),
    transparent 0%,
    transparent 25%,
    rgba(217,26,50,0.8) 30%,
    var(--bsq-accent) 33%,
    rgba(217,26,50,0.8) 36%,
    transparent 41%,
    transparent 100%
  );
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
}
.bsq-btn--secondary:hover::before {
  opacity: 1;
  animation: bsq-border-run 2.5s linear infinite;
}


/* ============================================
   COMPLIANZ COOKIE — Override styles
   ============================================ */
#cmplz-manage-consent {
  position: fixed !important;
  bottom: 20px !important;
  left: 20px !important;
  right: auto !important;
  z-index: 9990 !important;
}

#cmplz-manage-consent .cmplz-manage-consent,
#cmplz-manage-consent .cmplz-manage-consent.manage-consent-1 {
  position: fixed !important;
  bottom: 20px !important;
  left: 20px !important;
  right: auto !important;
  background: var(--bsq-accent) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 0.5rem 1rem !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  font-family: var(--bsq-font-body) !important;
  cursor: pointer !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2) !important;
  line-height: 1.4 !important;
  min-width: auto !important;
  height: auto !important;
  width: auto !important;
  animation: none !important;
  transform: none !important;
  opacity: 1 !important;
}

#cmplz-manage-consent .cmplz-manage-consent:hover,
#cmplz-manage-consent .cmplz-manage-consent.manage-consent-1:hover {
  background: var(--bsq-accent-hover) !important;
  transform: scale(1.03) !important;
  animation: none !important;
}

.cmplz-cookiebanner .cmplz-documents,
.cmplz-cookiebanner .cmplz-links.cmplz-information {
  display: none !important;
}
.cmplz-cookiebanner .cmplz-logo:empty {
  display: none !important;
}

/* ============================================
   SCROLL-TO-TOP BUTTON
   ============================================ */
.bsq-scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9998;
  width: 44px;
  height: 44px;
  border-radius: var(--bsq-radius-sm);
  background: var(--bsq-surface-white);
  border: 1px solid var(--bsq-border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: opacity 0.3s, transform 0.3s, background 0.2s, box-shadow 0.2s;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}
.bsq-scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.bsq-scroll-top:hover {
  background: var(--bsq-accent);
  border-color: var(--bsq-accent);
  box-shadow: 0 4px 16px rgba(204,34,41,0.3);
}
.bsq-scroll-top svg {
  width: 20px;
  height: 20px;
  stroke: var(--bsq-text-secondary);
  transition: stroke 0.2s;
}
.bsq-scroll-top:hover svg {
  stroke: #fff;
}
[data-theme="dark"] .bsq-scroll-top {
  background: var(--bsq-surface-medium);
  border-color: var(--bsq-border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
[data-theme="dark"] .bsq-scroll-top svg {
  stroke: var(--bsq-text-muted);
}
[data-theme="dark"] .bsq-scroll-top:hover {
  background: var(--bsq-accent);
  border-color: var(--bsq-accent);
}
[data-theme="dark"] .bsq-scroll-top:hover svg {
  stroke: #fff;
}

/* ============================================
   PORTFOLIO / PROGETTI SPECIALI — Gallery Cards
   Inspired by OpenKnowledge projects layout
   ============================================ */

.bsq-portfolio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 380px;
  border-radius: var(--bsq-radius-xl);
  overflow: hidden;
  background: var(--bsq-surface-medium);
  background-size: cover;
  background-position: center;
  text-decoration: none;
  color: #fff;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.bsq-portfolio-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--bsq-shadow-xl), 0 0 0 2px rgba(217, 26, 50, 0.3);
}

.bsq-portfolio-card--has-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(28, 21, 32, 0.92) 0%,
    rgba(28, 21, 32, 0.6) 40%,
    rgba(28, 21, 32, 0.15) 100%
  );
  z-index: 1;
  transition: background 0.4s ease;
}

.bsq-portfolio-card:hover::before {
  background: linear-gradient(
    to top,
    rgba(28, 21, 32, 0.95) 0%,
    rgba(28, 21, 32, 0.7) 50%,
    rgba(28, 21, 32, 0.3) 100%
  );
}

.bsq-portfolio-card__overlay {
  position: relative;
  z-index: 2;
  padding: var(--bsq-space-xl);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bsq-portfolio-card__client {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bsq-accent-light);
}

.bsq-portfolio-card__title {
  font-family: var(--bsq-font-display);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
  color: #fff;
}

.bsq-portfolio-card__desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--bsq-text-light);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.bsq-portfolio-card:hover .bsq-portfolio-card__desc {
  opacity: 1;
  transform: translateY(0);
}

.bsq-portfolio-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bsq-space-md);
  margin-top: var(--bsq-space-xs);
}

.bsq-portfolio-card__sector {
  font-size: 0.78rem;
  color: var(--bsq-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bsq-portfolio-card__cta {
  font-family: var(--bsq-font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--bsq-accent-light);
  white-space: nowrap;
  transition: color 0.3s ease;
}

.bsq-portfolio-card:hover .bsq-portfolio-card__cta {
  color: #fff;
}

/* Featured card spans 2 columns */
.bsq-portfolio-card--featured {
  grid-column: span 2;
  min-height: 480px;
}

.bsq-portfolio-card--featured .bsq-portfolio-card__title {
  font-size: 2rem;
}

/* Showcase variant for Progetti Speciali: slightly taller cards */
.bsq-portfolio-card--showcase {
  min-height: 420px;
}

/* Portfolio filters */
.bsq-portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.bsq-filter-btn {
  font-family: var(--bsq-font-display);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--bsq-border);
  border-radius: 100px;
  background: transparent;
  color: var(--bsq-text-secondary);
  cursor: pointer;
  transition: all 0.25s ease;
}

.bsq-filter-btn:hover {
  border-color: var(--bsq-accent);
  color: var(--bsq-accent);
}

.bsq-filter-btn--active {
  background: var(--bsq-accent);
  border-color: var(--bsq-accent);
  color: #fff;
}

/* Single Portfolio — Hero image */
.bsq-portfolio-hero-img {
  border-radius: var(--bsq-radius-xl);
  overflow: hidden;
}

.bsq-portfolio-hero-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* Single Portfolio — Sidebar */
.bsq-portfolio-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--bsq-space-lg);
  padding: var(--bsq-space-xl);
  background: var(--bsq-surface-light);
  border-radius: var(--bsq-radius-lg);
  position: sticky;
  top: 100px;
}

.bsq-portfolio-sidebar__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bsq-text-muted);
  margin-bottom: 0.25rem;
}

.bsq-portfolio-sidebar__value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--bsq-text-primary);
}

/* Single Portfolio — Content area */
.bsq-portfolio-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--bsq-text-secondary);
}

.bsq-portfolio-content h2,
.bsq-portfolio-content h3 {
  color: var(--bsq-text-primary);
  margin-top: var(--bsq-space-2xl);
  margin-bottom: var(--bsq-space-md);
}

.bsq-portfolio-content p {
  margin-bottom: var(--bsq-space-lg);
}

.bsq-portfolio-content img {
  border-radius: var(--bsq-radius-md);
  max-width: 100%;
  height: auto;
}

/* Single Portfolio — Gallery grid */
.bsq-portfolio-gallery__item {
  display: block;
  border-radius: var(--bsq-radius-lg);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.bsq-portfolio-gallery__item:hover {
  transform: scale(1.03);
  box-shadow: var(--bsq-shadow-lg);
}

.bsq-portfolio-gallery__item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* Dark mode adjustments */
[data-theme="dark"] .bsq-portfolio-sidebar {
  background: var(--bsq-surface-medium);
}

[data-theme="dark"] .bsq-portfolio-sidebar__value {
  color: #fff;
}

[data-theme="dark"] .bsq-portfolio-content {
  color: var(--bsq-text-light);
}

[data-theme="dark"] .bsq-portfolio-content h2,
[data-theme="dark"] .bsq-portfolio-content h3 {
  color: #fff;
}

[data-theme="dark"] .bsq-filter-btn {
  border-color: rgba(255,255,255,0.12);
  color: var(--bsq-text-muted);
}

[data-theme="dark"] .bsq-filter-btn:hover {
  border-color: var(--bsq-accent);
  color: var(--bsq-accent-light);
}

/* Responsive: Portfolio cards */
@media (max-width: 1024px) {
  .bsq-portfolio-card--featured {
    grid-column: span 1;
  }
  .bsq-portfolio-card--featured .bsq-portfolio-card__title {
    font-size: 1.5rem;
  }
  .bsq-portfolio-grid--showcase.bsq-grid--2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .bsq-portfolio-card {
    min-height: 280px;
  }
  .bsq-portfolio-card--showcase {
    min-height: 300px;
  }
  .bsq-portfolio-card__desc {
    opacity: 1;
    transform: translateY(0);
  }
  .bsq-portfolio-gallery__item img {
    height: 180px;
  }
  .bsq-portfolio-sidebar {
    position: static;
  }
}

@media (max-width: 480px) {
  .bsq-portfolio-card {
    min-height: 240px;
  }
  .bsq-portfolio-card__title {
    font-size: 1.15rem;
  }
  .bsq-portfolio-gallery__item img {
    height: 150px;
  }
}

/* ========================================
   CONTACT MAP (Leaflet / OpenStreetMap)
   ======================================== */
.bsq-map-section {
  position: relative;
  overflow: hidden;
  border-radius: var(--bsq-radius-xl);
  margin-top: var(--bsq-space-3xl);
  box-shadow: var(--bsq-shadow-soft);
  border: 1px solid var(--bsq-border);
}

.bsq-map-container {
  width: 100%;
  height: 420px;
  z-index: 0;
}

.bsq-map-overlay {
  position: absolute;
  bottom: var(--bsq-space-lg);
  left: var(--bsq-space-lg);
  z-index: 400;
  background: var(--bsq-surface-white);
  border: 1px solid var(--bsq-border);
  border-radius: var(--bsq-radius-lg);
  padding: var(--bsq-space-md) var(--bsq-space-lg);
  box-shadow: var(--bsq-shadow-soft);
  max-width: 320px;
}

.bsq-map-overlay__title {
  font-family: var(--bsq-font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--bsq-text-primary);
  margin-bottom: 0.25rem;
}

.bsq-map-overlay__address {
  font-size: 0.875rem;
  color: var(--bsq-text-secondary);
  line-height: 1.5;
}

.bsq-map-overlay__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bsq-accent);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.bsq-map-overlay__link:hover {
  gap: 0.6rem;
}

.bsq-map-container .leaflet-control-zoom a {
  background: var(--bsq-surface-white);
  color: var(--bsq-text-primary);
  border-color: var(--bsq-border);
}

.bsq-map-container .leaflet-control-zoom a:hover {
  background: var(--bsq-surface-light);
}

.bsq-map-container .leaflet-control-attribution {
  background: rgba(248,246,246,0.8);
  font-size: 0.65rem;
  color: var(--bsq-text-muted);
}

.bsq-map-container .leaflet-control-attribution a {
  color: var(--bsq-text-secondary);
}

/* Custom marker pulse */
.bsq-map-marker {
  position: relative;
  width: 24px;
  height: 24px;
}

.bsq-map-marker__dot {
  width: 14px;
  height: 14px;
  background: var(--bsq-accent);
  border: 3px solid #fff;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(217,26,50,0.4);
}

.bsq-map-marker__ring {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(217,26,50,0.3);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: bsq-marker-pulse 2s ease-out infinite;
}

@keyframes bsq-marker-pulse {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; }
}

/* Dark mode overrides */
[data-theme="dark"] .bsq-map-overlay {
  background: rgba(28,21,32,0.9);
  border-color: rgba(255,255,255,0.08);
}

[data-theme="dark"] .bsq-map-container .leaflet-control-zoom a {
  background: rgba(28,21,32,0.9);
  color: #fff;
  border-color: rgba(255,255,255,0.1);
}

[data-theme="dark"] .bsq-map-container .leaflet-control-zoom a:hover {
  background: rgba(50,40,55,0.9);
}

[data-theme="dark"] .bsq-map-container .leaflet-control-attribution {
  background: rgba(28,21,32,0.8);
}

[data-theme="dark"] .bsq-map-container .leaflet-control-attribution a {
  color: rgba(255,255,255,0.5);
}

[data-theme="dark"] .bsq-map-marker__dot {
  border-color: #1c1520;
}

@media (max-width: 768px) {
  .bsq-map-container { height: 320px; }
  .bsq-map-overlay {
    position: relative;
    bottom: auto;
    left: auto;
    max-width: 100%;
    border-radius: 0 0 var(--bsq-radius-xl) var(--bsq-radius-xl);
    border-top: 1px solid var(--bsq-border);
  }
}

/* ============================================
   FORCED COLORS / HIGH CONTRAST — gradient text fallback
   ============================================ */
@media (forced-colors: active) {
  .bsq-hero__title span,
  .bsq-hero__title,
  .bsq-section--white .bsq-section-header__title,
  .bsq-section--light .bsq-section-header__title,
  .bsq-section--dark .bsq-section-header__title,
  .bsq-stat__value {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    color: CanvasText !important;
  }
  .bsq-stat__value { color: LinkText !important; }
}
