/* ==========================================================================
   BEXO V2 — Master Stylesheet
   Typography, Tokens, Resets, Animations, Navigation, Footer, Components
   ========================================================================== */

@font-face {
  font-family: 'Chillax';
  src: url('../fonts/Chillax-Semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

body {
  margin: 0;
  background: oklch(16% 0.03 258);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

a {
  color: oklch(48% 0.19 264);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: oklch(58% 0.19 264);
}

input, textarea, select, button {
  font-family: inherit;
}

::selection {
  background: oklch(58% 0.19 264 / 0.22);
}

/* --------------------------------------------------------------------------
   Keyframe Animations
   -------------------------------------------------------------------------- */
@keyframes bx-logo-pulse {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(1.18); opacity: 0.85; }
}

@keyframes bx-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes bx-pulse {
  0%, 100% { box-shadow: 0 0 0 0 oklch(58% 0.19 264 / 0.45); }
  50% { box-shadow: 0 0 0 13px oklch(58% 0.19 264 / 0); }
}

@keyframes bx-tip {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

@keyframes bx-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes nav-menu-in {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: none; }
}

@keyframes bx-flow {
  to { stroke-dashoffset: -12; }
}

@keyframes bx-tap {
  0% { left: 2%; opacity: 0; }
  12% { opacity: 1; }
  46% { left: 92%; opacity: 1; }
  58% { opacity: 1; }
  92% { left: 6%; opacity: 1; }
  100% { left: 2%; opacity: 0; }
}

@keyframes bx-ring {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

@keyframes px-glow {
  0%, 100% { box-shadow: 0 0 0 0 oklch(58% 0.19 264 / 0.4); }
  50% { box-shadow: 0 0 0 7px oklch(58% 0.19 264 / 0); }
}

/* --------------------------------------------------------------------------
   Badges
   -------------------------------------------------------------------------- */
.bx-badge-eyebrow {
  background: rgba(47, 107, 255, 0.12);
  border: 1px solid rgba(47, 107, 255, 0.28);
  color: var(--bexo-accent-soft, #9bb6ff);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.38em 0.95em;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bx-badge-plan {
  background: rgba(47, 107, 255, 0.18);
  border: 1px solid rgba(47, 107, 255, 0.4);
  color: var(--green, #2f6bff);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35em 0.85em;
  border-radius: 999px;
  display: inline-block;
}

/* --------------------------------------------------------------------------
   Navigation Bar
   -------------------------------------------------------------------------- */
.bx-nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  justify-content: center;
  padding: 22px 20px;
  transition: padding 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.bx-nav-wrap.is-scrolled {
  padding: 14px 20px;
}

.bx-nav {
  width: min(1080px, 100%);
  height: 56px;
  padding: 0 0.75em 0 1.1em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.35s ease;
}

.bx-nav-wrap.is-scrolled .bx-nav {
  background: rgba(5, 7, 15, 0.75);
  border-color: rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  box-shadow: 0 20px 48px -20px rgba(0, 0, 0, 0.5);
}

.bx-nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--serif, 'Playfair Display', Georgia, serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink, #0b1220);
  flex-shrink: 0;
  transition: color 0.3s ease;
}

.bx-nav-wrap.is-scrolled .bx-nav-logo {
  color: #fff;
}

.bx-nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.bx-nav-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2, #4a5568);
  padding: 0.65em 0.85em;
  border-radius: 999px;
  background: transparent;
  transition: color 0.2s ease, background 0.2s ease;
  display: inline-block;
}

.bx-nav-wrap.is-scrolled .bx-nav-link {
  color: rgba(244, 246, 251, 0.72);
}

.bx-nav-link:hover {
  color: var(--ink, #0b1220);
}

.bx-nav-wrap.is-scrolled .bx-nav-link:hover {
  color: #fff;
}

.bx-nav-link.is-active {
  color: var(--ink, #0b1220);
  background: color-mix(in oklab, var(--ink, #0b1220) 8%, transparent);
}

.bx-nav-wrap.is-scrolled .bx-nav-link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.bx-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bx-nav-login {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2, #4a5568);
  padding: 0.55em 0.4em;
  transition: color 0.3s ease;
}

.bx-nav-wrap.is-scrolled .bx-nav-login {
  color: var(--bexo-muted, rgba(248, 250, 252, 0.62));
}

.bx-nav-login:hover {
  color: var(--ink, #0b1220);
}

.bx-nav-wrap.is-scrolled .bx-nav-login:hover {
  color: #fff;
}

.bx-nav-cta {
  background: var(--bexo-accent, #2f6bff);
  color: #fff !important;
  padding: 0.6em 1.15em;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 14px 40px -14px rgba(47, 107, 255, 0.45);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease;
}

.bx-nav-cta:hover {
  transform: translateY(-2px);
  background: var(--bexo-accent-hover, #2558e0);
  color: #fff !important;
}

.bx-nav-cta:active {
  transform: translateY(0);
}

.bx-nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 301;
}

.bx-burger-line {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink, #0b1220);
  position: absolute;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}

.bx-nav-wrap.is-scrolled .bx-burger-line {
  background: #fff;
}

#bxBurgerLine1 {
  transform: translateY(-4px);
}

#bxBurgerLine2 {
  transform: translateY(4px);
}

.bx-nav-burger.is-open #bxBurgerLine1 {
  transform: rotate(45deg);
  background: #fff;
}

.bx-nav-burger.is-open #bxBurgerLine2 {
  transform: rotate(-45deg);
  background: #fff;
}

@media (max-width: 939px) {
  .bx-nav-links, .bx-nav-actions {
    display: none !important;
  }
  .bx-nav-burger {
    display: flex;
  }
}

/* --------------------------------------------------------------------------
   Mobile Navigation Overlay
   -------------------------------------------------------------------------- */
.bx-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #05070f;
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 28px clamp(20px, 5vw, 64px) 40px;
  opacity: 0;
  clip-path: circle(2% at calc(100% - 40px) 34px);
  transition: clip-path 0.5s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.3s ease;
}

.bx-nav-overlay.is-visible {
  opacity: 1;
  clip-path: circle(150% at calc(100% - 40px) 34px);
}

.bx-nav-overlay[hidden] {
  display: none;
}

.bx-overlay-logo {
  font-family: var(--serif, 'Playfair Display', Georgia, serif);
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fff;
}

.bx-overlay-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.bx-overlay-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
  margin-bottom: auto;
}

.bx-mlink {
  font-family: var(--serif, 'Playfair Display', Georgia, serif);
  font-size: clamp(32px, 8.5vw, 52px);
  font-weight: 600;
  color: #fff;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.bx-mlink:last-child {
  border-bottom: none;
}

.bx-mlink.is-active {
  color: var(--bexo-accent-soft, #9bb6ff);
}

.bx-nav-overlay.is-visible .bx-mlink {
  opacity: 1;
  transform: translateX(0);
}

.bx-mlink:nth-child(1) { transition-delay: 0.05s; }
.bx-mlink:nth-child(2) { transition-delay: 0.1s; }
.bx-mlink:nth-child(3) { transition-delay: 0.15s; }
.bx-mlink:nth-child(4) { transition-delay: 0.2s; }
.bx-mlink:nth-child(5) { transition-delay: 0.25s; }

.bx-overlay-footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease 0.3s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.bx-nav-overlay.is-visible .bx-overlay-footer {
  opacity: 1;
  transform: translateY(0);
}

.bx-overlay-cta {
  background: var(--bexo-accent, #2f6bff);
  color: #fff !important;
  padding: 15px 22px;
  border-radius: 999px;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 14px 40px -14px rgba(47, 107, 255, 0.45);
  transition: transform 0.25s ease;
}

.bx-overlay-cta:active {
  transform: scale(0.97);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.bx-footer-link {
  font-size: 14.5px;
  color: rgba(248, 250, 252, 0.85);
  transition: color 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
}

.bx-footer-link:hover {
  color: var(--bexo-accent-soft, #9bb6ff);
  transform: translateX(4px);
}

.bx-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 16px -4px oklch(6% 0.02 258 / 0.25);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bx-theme-toggle:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -6px oklch(6% 0.02 258 / 0.4);
}

.bx-theme-toggle:active {
  transform: scale(0.95);
}

.bx-theme-toggle i {
  font-size: 15px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bx-theme-toggle:hover i {
  transform: rotate(25deg);
}

@keyframes bx-cta-shimmer {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 16px 40px -14px oklch(58% 0.19 264 / 0.55); }
  50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 20px 48px -12px oklch(58% 0.19 264 / 0.75); }
}

.bx-cta-primary {
  animation: bx-cta-shimmer 4.5s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   Interactive Cards, Buttons & Elements
   -------------------------------------------------------------------------- */
.bx-hero-form:hover {
  box-shadow: 0 38px 74px -34px oklch(6% 0.02 258 / 0.42) !important;
}

.bx-hero-card:hover {
  box-shadow: 0 56px 104px -38px oklch(6% 0.02 258 / 0.5) !important;
}

.bx-claim-btn:hover {
  transform: translateX(5px);
}

.bx-claim-btn:active {
  transform: scale(0.97);
}

.bx-quickaction:hover {
  background: var(--paper-2);
}

.bx-pillar-card {
  position: relative;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.bx-pillar-card:hover {
  border-color: var(--green) !important;
  box-shadow: 0 42px 84px -34px oklch(6% 0.02 258 / 0.4) !important;
  transform: translateY(-6px);
}

.bx-pillar-card.is-dark:hover {
  box-shadow: 0 42px 84px -34px oklch(6% 0.02 258 / 0.55) !important;
}

.bx-pillar-card:hover .bx-pillar-accent {
  width: 100%;
}

.bx-pillar-accent {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--green), var(--amber));
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.bx-marquee-row:hover {
  animation-play-state: paused;
}

/* --------------------------------------------------------------------------
   Interactive 3D Card Flip (Kavinbalaji S.K. Premium BEXO Dark Card)
   -------------------------------------------------------------------------- */
.bx-card-flip-container {
  perspective: 1200px;
  cursor: pointer;
}

.bx-card-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-style: preserve-3d;
}

.bx-card-flip-container.is-flipped .bx-card-flip-inner,
.bx-card-flip-container:hover .bx-card-flip-inner {
  transform: rotateY(180deg);
}

.bx-card-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 20px;
}

.bx-card-face-back {
  transform: rotateY(180deg);
}

.bx-framer-card {
  position: relative;
  flex-shrink: 0;
  height: 420px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.6);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.3s ease;
  user-select: none;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bx-framer-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 36px 70px -20px rgba(0, 0, 0, 0.8), 0 0 0 1.5px var(--green);
  z-index: 10;
}

.bx-framer-glass-bar {
  background: rgba(18, 18, 22, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
}

.bx-cta-primary:hover {
  box-shadow: 0 20px 48px -14px oklch(58% 0.19 264 / 0.65) !important;
  transform: translateY(-3px);
}

.bx-cta-secondary:hover {
  background: var(--green) !important;
  color: var(--ink) !important;
}

.bx-fragment {
  transition: box-shadow 0.25s ease, transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.bx-fragment:hover {
  box-shadow: 0 26px 50px -20px oklch(6% 0.02 258 / 0.5);
}

.bx-fragment.is-active:hover {
  box-shadow: 0 0 0 5px oklch(58% 0.19 264 / 0.22), 0 30px 54px -20px oklch(6% 0.02 258 / 0.6);
}

.bx-spid-node {
  cursor: pointer;
  transition: filter 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bx-spid-node:hover {
  filter: brightness(1.2);
  transform: scale(1.12);
}

/* --------------------------------------------------------------------------
   Sticky TOC Layout (Legal / Documentation Pages)
   -------------------------------------------------------------------------- */
.bx-toc {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bx-toc a {
  font-size: 14.5px;
  color: var(--ink-2);
  transition: color 0.2s ease, transform 0.2s ease;
}

.bx-toc a:hover {
  color: var(--green);
  transform: translateX(4px);
}

.bx-toc a.is-active {
  color: var(--green);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Contrast Safeguards for Headings & Dark Sections
   -------------------------------------------------------------------------- */
[data-screen-label="SPiD"],
[data-screen-label="SPiD"] h1,
[data-screen-label="SPiD"] h2,
[data-screen-label="SPiD"] h3,
.is-dark,
.is-dark h1,
.is-dark h2,
.is-dark h3 {
  color: oklch(97% 0.01 258) !important;
}

[data-theme="light"] [data-screen-label="SPiD"] h2,
[data-theme="light"] [data-screen-label="SPiD"] h1,
[data-theme="light"] [data-screen-label="SPiD"] h3,
[data-theme="light"] [data-screen-label="SPiD"] p {
  color: oklch(97% 0.01 258) !important;
}

/* ==========================================================================
   METAMUSE MOBILE & TABLET RESPONSIVE ENGINE (Awwwards / Linear Grade)
   ========================================================================== */

/* 1. Global Touch & Viewport Safeguards */
html, body {
  overflow-x: clip;
  max-width: 100vw;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

:focus-visible {
  outline: 2px solid var(--bexo-accent, #2f6bff);
  outline-offset: 2px;
}

/* 2. Navigation Touch Targets */
.bx-nav-burger {
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s ease;
}

.bx-nav-burger:active {
  transform: scale(0.92);
}

.bx-overlay-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

/* 3. Hero Card Flip Responsive Physics */
.bx-card-flip-container {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.bx-card-flip-container:active {
  transform: scale(0.98);
}

/* Tablet & Mobile Navigation Breakpoint (<= 939px) */
@media (max-width: 939px) {
  .bx-nav-wrap {
    padding: 14px 16px;
  }
  .bx-nav {
    height: 52px;
    padding: 0 8px 0 14px;
  }
  .bx-nav-links, .bx-nav-actions {
    display: none !important;
  }
  .bx-nav-burger {
    display: flex !important;
  }
  .bx-nav-overlay {
    padding: max(20px, env(safe-area-inset-top, 20px)) clamp(20px, 6vw, 40px) max(32px, env(safe-area-inset-bottom, 32px));
  }
}

/* Tablet & Smaller Breakpoint (<= 900px) */
@media (max-width: 900px) {
  [data-bx-stack] {
    position: static !important;
    margin-bottom: 20px !important;
  }
  [data-bx-stack] > a {
    transform: none !important;
  }
  [data-hero-card] {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    margin-top: 14px !important;
  }
}

/* Mobile Breakpoint (<= 768px) */
@media (max-width: 768px) {
  /* Hero Section */
  #hero {
    min-height: auto !important;
    padding-top: clamp(88px, 18vw, 112px) !important;
    padding-bottom: 56px !important;
  }
  #bxHeroInner {
    gap: 32px !important;
  }
  #hero h1 {
    font-size: clamp(34px, 9.2vw, 52px) !important;
    line-height: 1.02 !important;
    margin-bottom: 20px !important;
  }
  #hero p {
    font-size: 16px !important;
    line-height: 1.55 !important;
    margin-bottom: 28px !important;
  }

  /* Form & Input */
  .bx-hero-form {
    padding: 20px 16px !important;
  }
  #bxHandleInput {
    font-size: clamp(20px, 6vw, 32px) !important;
    width: auto !important;
    max-width: 55vw !important;
  }
  .bx-hero-form span[style*=".atbexo.com"] {
    font-size: clamp(20px, 6vw, 32px) !important;
  }
  .bx-claim-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 14px 20px !important;
    box-sizing: border-box !important;
  }

  /* 3D Physical Business Card */
  #bxHeroFlippingCard {
    width: 100% !important;
    max-width: 360px !important;
    height: 222px !important;
  }
  .bx-card-face {
    padding: 20px 22px !important;
    border-radius: 18px !important;
  }
  .bx-card-face-front h3 {
    font-size: 26px !important;
    margin-bottom: 3px !important;
  }
  .bx-card-face-front p[style*="MANAGING DIRECTOR"] {
    font-size: 10.5px !important;
  }
  .bx-card-face-front div[style*="CONNECT"] {
    font-size: 9.5px !important;
    letter-spacing: 0.14em !important;
    padding-top: 6px !important;
  }

  /* Back Face Responsive Sizing */
  .bx-card-face-back {
    padding: 18px 20px !important;
  }
  .bx-card-face-back div[style*="height:100px"] {
    height: 72px !important;
  }
  .bx-card-face-back div[style*="width:120px; height:120px"] {
    width: 96px !important;
    height: 96px !important;
    border-radius: 13px !important;
    padding: 6px !important;
  }
  .bx-card-face-back div[style*="width:30px; height:30px"] {
    width: 24px !important;
    height: 24px !important;
  }
  .bx-card-face-back div[style*="width:30px; height:30px"] img {
    width: 17px !important;
    height: 17px !important;
  }
  .bx-card-face-back p[style*="Your Network."] {
    font-size: 12px !important;
  }
  .bx-card-face-back p[style*="Smarter Than Ever."] {
    font-size: 12px !important;
  }
  .bx-card-face-back span[style*="Tap or Scan to connect"] {
    font-size: 8.5px !important;
  }

  /* Section 01 Problem */
  #problem {
    padding: 64px 20px 80px !important;
  }
  #problem h2 {
    font-size: clamp(26px, 7vw, 38px) !important;
  }

  /* Section 02 Pillars */
  .bx-pillar-card {
    padding: 22px 18px !important;
    border-radius: 20px !important;
  }
  .bx-pillar-card h3 {
    font-size: clamp(24px, 6vw, 32px) !important;
  }
  .bx-pillar-card p {
    font-size: 14.5px !important;
  }

  /* Section 03 Expression / Marquee Cards */
  [data-screen-label="Expression"] {
    padding: 64px 0 !important;
  }
  .bx-framer-card {
    height: 310px !important;
    border-radius: 18px !important;
    touch-action: pan-y !important;
  }
  .bx-framer-card[style*="width:480px"] { width: 330px !important; }
  .bx-framer-card[style*="width:440px"] { width: 310px !important; }
  .bx-framer-card[style*="width:520px"] { width: 340px !important; }
  .bx-framer-card[style*="width:420px"] { width: 300px !important; }
  .bx-framer-card[style*="width:290px"],
  .bx-framer-card[style*="width:300px"],
  .bx-framer-card[style*="width:310px"],
  .bx-framer-card[style*="width:280px"] { width: 230px !important; }
  .bx-framer-card p[style*="font-size:32px"],
  .bx-framer-card p[style*="font-size:28px"],
  .bx-framer-card p[style*="font-size:36px"],
  .bx-framer-card p[style*="font-size:38px"] {
    font-size: 22px !important;
  }
  .bx-framer-glass-bar {
    padding: 8px 10px !important;
    font-size: 11px !important;
  }

  /* Section 04 Cinema / Atmosphere */
  #bxCinema {
    height: 160vh !important;
  }
  #bxCineFrame {
    width: 90% !important;
    height: 52vh !important;
    border-radius: 16px !important;
  }
  #bxCineCopy {
    left: 20px !important;
    right: 20px !important;
    bottom: 24px !important;
  }
  #bxCineCopy p[style*="var(--serif)"] {
    font-size: clamp(22px, 6vw, 34px) !important;
  }

  /* Section 05 SPiD */
  [data-screen-label="SPiD"] {
    padding: 64px 20px 80px !important;
  }
  [data-screen-label="SPiD"] h2 {
    font-size: clamp(26px, 7vw, 38px) !important;
  }
  #bxSpidGraph {
    height: 310px !important;
  }
  .bx-spid-node {
    padding: 5px 9px !important;
    font-size: 10.5px !important;
    border-radius: 14px !important;
  }

  /* Section 06 Proof / Studio */
  [data-screen-label="Proof"] {
    padding: 64px 20px 80px !important;
  }
  [data-screen-label="Proof"] h2 {
    font-size: clamp(26px, 7vw, 38px) !important;
  }

  /* Section 07 CTA */
  #bxCtaSection {
    padding: 80px 20px 96px !important;
  }
  #bxCtaSection h2 {
    font-size: clamp(28px, 7.8vw, 44px) !important;
    margin-bottom: 28px !important;
  }
  #bxCtaSection div[style*="display:flex; gap:16px"] {
    flex-direction: column !important;
    align-items: stretch !important;
    max-width: 320px !important;
    margin: 0 auto !important;
    gap: 12px !important;
  }
  .bx-cta-primary, .bx-cta-secondary {
    width: 100% !important;
    text-align: center !important;
    box-sizing: border-box !important;
    padding: 15px 20px !important;
  }

  /* Footer */
  footer {
    padding: 56px 20px max(32px, env(safe-area-inset-bottom, 32px)) !important;
  }
  footer div[style*="display:grid"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px 18px !important;
  }
  footer div[style*="justify-content:space-between; align-items:flex-end"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 20px !important;
  }

  /* Cookie Banner Mobile */
  #bxCookieBanner {
    left: 12px !important;
    right: 12px !important;
    bottom: max(14px, env(safe-area-inset-bottom, 14px)) !important;
    max-width: none !important;
    padding: 16px 18px !important;
    border-radius: 18px !important;
  }
  #bxCookieBanner button {
    min-height: 42px !important;
  }
}

/* Extra Small Phones (<= 380px: iPhone SE, etc) */
@media (max-width: 380px) {
  #bxHeroFlippingCard {
    max-width: 318px !important;
    height: 208px !important;
  }
  .bx-card-face {
    padding: 15px 16px !important;
  }
  .bx-card-face-front h3 {
    font-size: 23px !important;
  }
  .bx-card-face-back div[style*="width:120px; height:120px"] {
    width: 84px !important;
    height: 84px !important;
    padding: 5px !important;
  }
  .bx-card-face-back div[style*="height:100px"] {
    height: 60px !important;
  }
  footer div[style*="display:grid"] {
    grid-template-columns: 1fr !important;
  }
}

