/* Virtual lab block on the home page (right after the hero): one slider.
   The zone's video fills the stage, the lab pitch sits on the left, the zone
   card slides in from the right on a glass panel, zone tabs run along the bottom. */
.ugvl {
  --ugvl-text: #f4efff;
  --ugvl-muted: #cbbde6;
  --ugvl-line: rgba(255, 255, 255, 0.16);
  --ugvl-accent: #7d3af9;
  --ugvl-cyan: #5ee7ff;
  --ugvl-sun: #ffe161;
  --ugvl-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  background: #0d0913;
  color: var(--ugvl-text);
  font-family: 'Roboto Mono', ui-monospace, monospace;
}
.ugvl * { box-sizing: border-box; }
.ugvl__stage { position: relative; min-height: clamp(660px, 92vh, 900px); overflow: hidden; isolation: isolate; }

/* Background videos, cross-faded. */
.ugvl__bg { position: absolute; inset: 0; z-index: -2; background: #000; }
.ugvl__vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 0.9s ease, transform 6s ease-out; }
.ugvl__vid.is-on { opacity: 1; transform: scale(1); }
.ugvl__shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(13, 9, 19, 0.92) 0%, rgba(13, 9, 19, 0.7) 32%, rgba(13, 9, 19, 0.1) 62%, rgba(13, 9, 19, 0.35) 100%),
    linear-gradient(0deg, rgba(13, 9, 19, 0.95) 0%, rgba(13, 9, 19, 0) 28%),
    linear-gradient(180deg, rgba(13, 9, 19, 0.6) 0%, rgba(13, 9, 19, 0) 18%); }

.ugvl__wrap { width: min(1320px, 100% - 32px); margin: 0 auto; }
.ugvl__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: 40px; align-items: center;
  min-height: clamp(520px, calc(88vh - 110px), 750px); padding: clamp(110px, 10vw, 150px) 0 24px; }

/* Pitch. */
.ugvl__title { margin: 0 0 18px; max-width: 13em; font-size: clamp(32px, 4.4vw, 60px); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; color: var(--ugvl-text); text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5); }
.ugvl__title em { font-style: normal; color: transparent; background: linear-gradient(90deg, #dfcefd, var(--ugvl-cyan)); -webkit-background-clip: text; background-clip: text; }
.ugvl__lead { margin: 0 0 30px; max-width: 32em; color: var(--ugvl-muted); font-size: clamp(15px, 1.2vw, 17px); line-height: 1.6; }
.ugvl__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ugvl__btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border: 1px solid transparent; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 600; text-decoration: none !important; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s; }
.ugvl__btn svg { width: 18px; height: 18px; flex: none; }
.ugvl__btn--primary { background: var(--ugvl-accent); color: #fff !important; box-shadow: 0 10px 30px rgba(125, 58, 249, 0.45); }
.ugvl__btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(125, 58, 249, 0.65); }
.ugvl__btn--ghost { border-color: var(--ugvl-line); background: rgba(13, 9, 19, 0.45); backdrop-filter: blur(8px); color: var(--ugvl-text) !important; }
.ugvl__btn--ghost:hover { border-color: rgba(223, 206, 253, 0.55); }

/* Zone cards: glass panels that arrive from the right. */
.ugvl__panels { position: relative; display: grid; }
.ugvl__panel { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 14px; padding: 28px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 24px;
  background: linear-gradient(160deg, rgba(40, 26, 62, 0.55), rgba(16, 10, 26, 0.45));
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  opacity: 0; transform: translateX(70px); visibility: hidden; transition: opacity 0.45s ease, transform 0.7s var(--ugvl-ease), visibility 0s linear 0.7s; }
.ugvl__panel.is-on { opacity: 1; transform: none; visibility: visible; transition: opacity 0.55s ease 0.1s, transform 0.75s var(--ugvl-ease) 0.05s, visibility 0s; }
.ugvl__panel.is-leaving { transform: translateX(-30px); }
.ugvl__tag { align-self: flex-start; padding: 5px 10px; border-radius: 6px; background: rgba(94, 231, 255, 0.14); color: var(--ugvl-cyan); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.ugvl__panel-title { margin: 0; font-size: clamp(22px, 2vw, 28px); font-weight: 600; line-height: 1.15; color: var(--ugvl-text); }
.ugvl__text { margin: 0; color: var(--ugvl-muted); font-size: 14.5px; line-height: 1.6; }
.ugvl__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--ugvl-text); }
.ugvl__list li { display: flex; gap: 10px; line-height: 1.45; }
.ugvl__list li::before { content: ''; flex: none; width: 6px; height: 6px; margin-top: 0.55em; border-radius: 50%; background: var(--ugvl-sun); box-shadow: 0 0 8px rgba(255, 225, 97, 0.6); }
.ugvl__panel .ugvl__btn { align-self: flex-start; margin-top: 4px; }

/* Zone switcher with the auto-play progress. */
.ugvl__nav { position: relative; display: flex; align-items: center; gap: 16px; padding: 0 0 clamp(24px, 3vw, 36px); }
.ugvl__tabs { display: flex; flex: 1; gap: 8px; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.ugvl__tabs::-webkit-scrollbar { display: none; }
.ugvl__tab { position: relative; flex: 1 0 auto; min-width: 130px; padding: 14px 16px 16px; border: 1px solid var(--ugvl-line); border-radius: 14px; background: rgba(13, 9, 19, 0.5); backdrop-filter: blur(10px); color: var(--ugvl-muted); font: inherit; font-size: 13px; text-align: left; cursor: pointer; overflow: hidden; transition: border-color 0.25s, color 0.25s, background 0.25s; }
.ugvl__tab small { display: block; margin-bottom: 3px; color: rgba(203, 189, 230, 0.55); font-size: 10px; letter-spacing: 0.12em; }
.ugvl__tab:hover { border-color: rgba(223, 206, 253, 0.4); color: var(--ugvl-text); }
.ugvl__tab[aria-selected="true"] { border-color: rgba(125, 58, 249, 0.9); background: rgba(125, 58, 249, 0.28); color: #fff; }
.ugvl__tab::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--ugvl-cyan); transform: scaleX(var(--ugvl-p, 0)); transform-origin: left; }
.ugvl__arrows { display: flex; gap: 8px; }
.ugvl__arrow { width: 48px; height: 48px; border: 1px solid var(--ugvl-line); border-radius: 50%; background: rgba(13, 9, 19, 0.5); backdrop-filter: blur(10px); color: var(--ugvl-text); cursor: pointer; display: grid; place-items: center; transition: border-color 0.2s, background 0.2s; }
.ugvl__arrow:hover { border-color: var(--ugvl-accent); background: rgba(125, 58, 249, 0.3); }
.ugvl__arrow svg { width: 20px; height: 20px; }

/* Phones and tablets: the video on top, then the pitch, the tabs and the card. */
@media (max-width: 991px) {
  .ugvl__stage { min-height: 0; display: flex; flex-direction: column; }
  .ugvl__bg { position: relative; inset: auto; aspect-ratio: 16 / 9; order: 0; }
  .ugvl__shade { display: none; }
  .ugvl__grid { display: contents; }
  .ugvl__copy, .ugvl__panels { width: min(1320px, 100% - 32px); margin: 0 auto; }
  .ugvl__copy { order: 1; padding: 28px 0 20px; }
  .ugvl__nav { order: 2; padding-bottom: 16px; }
  .ugvl__panels { order: 3; padding-bottom: 32px; }
  .ugvl__title { font-size: clamp(28px, 7vw, 40px); }
  .ugvl__panel { transform: translateX(40px); }
  .ugvl__arrows { display: none; }
  .ugvl__tab { min-width: 118px; }
}
@media (max-width: 575px) {
  .ugvl__btn { width: 100%; }
  .ugvl__panel { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .ugvl__vid, .ugvl__panel, .ugvl__panel.is-on { transition: opacity 0.2s; transform: none; }
}
