:root {
  --bevec-bg: radial-gradient(1200px 800px at 15% 10%, rgba(255,255,255,0.08), transparent 60%),
             radial-gradient(1000px 700px at 85% 30%, rgba(255,255,255,0.06), transparent 55%),
             linear-gradient(120deg, #06070b, #0b1020 60%, #06070b);
}

/* Fullscreen, no scrollbars even if theme adds weird margins */
.bevec-funnel{
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  color: rgba(255,255,255,0.92);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  z-index: 9999;

  /* Desktop default: no page scroll */
  overflow: hidden;
}

.bevec-funnel__video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;      /* key: fills screen without distortion */
  object-position: center;
  transform: scale(1.02); /* tiny scale hides edge artifacts */
}

.bevec-funnel__bgMask{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55); /* ⬅ adjust opacity here */
  pointer-events: none;
}

.bevec-funnel__bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;   /* prevents scrollbars from video edges */
}

.bevec-funnel__bg::after{
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(900px 500px at 50% 30%, rgba(0,0,0,0.0), rgba(0,0,0,0.55));
}

.bevec-funnel__topbar{
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(14px, 2.2vw, 22px) clamp(16px, 3vw, 34px);
}

.bevec-funnel__brand{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 120px;
}

.bevec-funnel__logo{
  height: 34px;
  width: auto;
  display: block;
}

.bevec-funnel__logos{
  max-width: min(56vw, 760px);
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.bevec-funnel__logosTrack{
  display: flex;
  align-items: center;
  gap: 18px;
  will-change: transform;
}

.bevec-funnel__logoItem{
  flex: 0 0 auto;
  height: 26px;
  display: grid;
  place-items: center;
  opacity: 0.9;
}

.bevec-funnel__logoItem img{
  height: 26px;
  width: auto;
  display: block;
  filter: grayscale(1) brightness(1.1);
  opacity: 0.85;
}

/* Center area */
.bevec-funnel__center{
  position: relative;
  z-index: 5;
  height: 100%;
  display: grid;
  place-items: center;

  /* This padding is what causes overflow on small screens */
  padding: clamp(14px, 3vw, 34px);
}


.bevec-funnel__shell{
  width: min(1100px, 94vw);
  display: grid;
  gap: 18px;
  align-content: center;
  opacity: 0;
  transform: translateY(18px);
}

.bevec-funnel__intro--center{
  text-align: center;
}

.bevec-funnel__headline{
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: #ffffff;
}


.bevec-funnel__sub{
  margin: 0;
  font-size: clamp(14px, 1.6vw, 16px);
  opacity: 0.85;
}

/* Cards container (boxed) */
.bevec-funnel__cardsWrap{
  border-radius: 28px;
  padding: clamp(16px, 2.6vw, 28px);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 22px 80px rgba(0,0,0,0.5);
  backdrop-filter: blur(14px);
}

.bevec-funnel__cards{
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

@media (min-width: 900px){
  .bevec-funnel__cards{
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
  }
}

/* Playing-card tiles */
.bevec-funnel__companyCard{
  text-align: center;
  width: 100%;
  border-radius: 22px;
  padding: 18px 16px;
  cursor: pointer;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.92);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
  outline: none;
}

.bevec-funnel__companyCard:hover{
  transform: translateY(-3px);
  background: rgba(0,0,0,0.38);
  border-color: rgba(255,255,255,0.20);
}

.bevec-funnel__companyCard:focus-visible{
  box-shadow: 0 0 0 3px rgba(255,255,255,0.18);
}

.bevec-funnel__companyName{
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 16px;
  margin-bottom: 12px;
}

.bevec-funnel__companyLogo{
  height: 164px;            /* ⬅ bigger logo */
  width: auto;
  max-width: 80%;
  object-fit: contain;
  display: block;
  margin: 0 auto 14px;
  filter: grayscale(0) brightness(1); /* remove dulling */
  opacity: 1;
}

.bevec-funnel__companyDesc{
  font-size: 13px;
  opacity: 0.85;
  line-height: 1.35;
}

/* Login button row */
.bevec-funnel__loginRow{
  display: grid;
  place-items: center;
  margin-top: 16px;
}

.bevec-funnel__loginBtn{
  border-radius: 999px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.9);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.bevec-funnel__loginBtn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.20);
}

/* Footer info */
.bevec-funnel__footer{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  opacity: 0.75;
  padding-top: 6px;
  flex-wrap: wrap;
  text-align: center;
}

.bevec-funnel__dot{
  opacity: 0.6;
}

.bevec-funnel__footerLink{
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.25);
}

.bevec-funnel__footerLink:hover{
  border-bottom-color: rgba(255,255,255,0.55);
}

/* Transition wipe */
.bevec-funnel__wipe{
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0,0,0,0.0), rgba(0,0,0,0.55), rgba(0,0,0,0.0));
  transform: translateX(-120%);
  opacity: 0;
  z-index: 6;
}

@media (max-width: 640px){
  /* Allow scrolling ONLY on mobile */
  .bevec-funnel{
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Make center align to top so it scrolls naturally */
  .bevec-funnel__center{
    place-items: start center;
    padding: 14px 12px 18px;
  }

  /* Reduce spacing so everything fits */
  .bevec-funnel__shell{
    gap: 12px;
  }

  .bevec-funnel__headline{
    font-size: 28px;
    line-height: 1.08;
  }

  .bevec-funnel__sub{
    font-size: 13px;
  }

  /* Shrink the boxed container padding */
  .bevec-funnel__cardsWrap{
    padding: 14px;
    border-radius: 22px;
  }

  /* Tighten cards so you can see all content */
  .bevec-funnel__companyCard{
    padding: 14px 12px;
    border-radius: 18px;
  }

  .bevec-funnel__companyLogo{
    height: 54px; /* still big, but fits mobile */
    max-width: 85%;
    margin-bottom: 10px;
  }

  .bevec-funnel__companyDesc{
    font-size: 12px;
  }

  /* Reduce login button spacing */
  .bevec-funnel__loginRow{
    margin-top: 10px;
  }
}

/* ============================= */
/* Mobile only: horizontal cards */
/* ============================= */

@media (max-width: 899px){

  .bevec-funnel__cardsWrap{
    padding-left: 0;
    padding-right: 0;
  }

  .bevec-funnel__cards{
    display: flex;
    flex-direction: row;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 18px 6px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .bevec-funnel__cards::-webkit-scrollbar{
    display: none; /* hide scrollbar */
  }

  .bevec-funnel__companyCard{
    flex: 0 0 82%;          /* card width on mobile */
    max-width: 82%;
    scroll-snap-align: center;
  }
}
