.color-bends-container,
.glow-cursor {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.glow-cursor__canvas {
  position: absolute;
  z-index: 10;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
  mix-blend-mode: screen;
}

.glow-cursor__content {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.global-glow-cursor {
  position: fixed;
  z-index: 1000;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  overflow: visible;
  pointer-events: none;
}

.global-glow-cursor .glow-cursor__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-section {
  min-height: min(900px, 100dvh);
  border: 0;
  background: transparent;
  isolation: isolate;
  overflow: hidden;
}

.hero-section::before,
.hero-section::after,
.hero-section .hero-layout::before {
  content: none !important;
  display: none !important;
}

.hero-section .scene-underlay,
.hero-section .hero-color-bends {
  position: absolute;
  inset: 0;
}

.site-color-field {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background: #0d0915;
  pointer-events: none;
}

.site-color-field .site-color-bends {
  position: absolute;
  inset: -3%;
  width: auto;
  height: auto;
  z-index: 0;
  opacity: 0.84;
  filter: saturate(1.34) brightness(0.68);
  mix-blend-mode: screen;
  background: transparent;
}

.site-color-field .site-color-bends canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-section .hero-glow-cursor {
  position: relative;
  z-index: auto;
  min-height: min(900px, 100dvh);
  overflow: hidden;
}

.hero-section .hero-glow-cursor > .glow-cursor__content {
  min-height: min(900px, 100dvh);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-section .scene-underlay {
  z-index: -2;
  overflow: hidden;
  background: #0d0915;
}

.hero-section .hero-color-bends {
  z-index: 0;
  opacity: 0.84;
  filter: saturate(1.34) brightness(0.68);
  mix-blend-mode: screen;
  background: transparent;
}

.hero-section .hero-color-bends canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-section .hero-inner,
.hero-section .hero-question-band {
  position: relative;
  z-index: 8;
}

.hero-section .hero-question-band { z-index: 9; }
.hero-section .hero-brand-mark { display: none; }

/* LiquidButton: copied from the approved visual lab component. */
.btn-wrapper {
  --rad: 32px;
  --color-wrapper-border: #fff;
  --color-btn-bg: #f00;
  --color-btn-text: #000;
  --color-btn-text-shadow: #fff;
  --color-btn-inset-shadow: #558;
  --color-layer-a: #fff;
  --color-layer-b: #00f;
  --color-overlay-text: #000;
  --color-overlay-glow: #fff;
  --color-overlay-shadow: #0004;
  --color-overlay-highlight: #fff5;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: clip;
  overflow-clip-margin: 4px;
  min-width: 0;
  border: 2px solid var(--color-wrapper-border);
  border-radius: var(--rad);
  font-family: Inter, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: normal;
  flex: 0 0 auto;
  filter: saturate(0.55) brightness(1.28);
  transition: filter 700ms ease;
}

.btn-wrapper.liquid-action,
.btn-wrapper.liquid-action:hover {
  min-width: 0;
  min-height: 0;
  border-color: var(--color-wrapper-border);
  border-radius: var(--rad);
  background: transparent;
  box-shadow: none;
}

.btn-wrapper .gradient-btn {
  position: relative;
  z-index: -1;
  display: block;
  width: auto;
  min-width: auto;
  min-height: auto;
  padding: 12px 43.2px;
  border: 0;
  border-radius: var(--rad);
  font: inherit;
  line-height: normal;
  letter-spacing: 0;
  color: var(--color-btn-text);
  background-color: var(--color-btn-bg);
  background-size: 200% 200%;
  box-shadow: inset 0 0 10px 9px var(--color-btn-inset-shadow);
  text-shadow: 0 1px 3px var(--color-btn-text-shadow);
  cursor: pointer;
  mix-blend-mode: color-dodge;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.btn-wrapper .gradient-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--rad);
  background-size: 200% 200%;
  mix-blend-mode: difference;
  pointer-events: none;
}

.btn-wrapper .gradient-layer {
  position: absolute;
  left: -160px;
  width: 500%;
  aspect-ratio: 1;
  background: radial-gradient(
    ellipse at 65% 180%,
    var(--color-layer-a), var(--color-layer-b), var(--color-layer-a),
    var(--color-layer-b), var(--color-layer-a), var(--color-layer-b),
    var(--color-layer-a), var(--color-layer-b), var(--color-layer-a),
    var(--color-layer-b), var(--color-layer-a)
  );
  mix-blend-mode: difference;
  animation: source-liquid-rotate 8s linear infinite;
  transition: opacity 700ms ease;
  pointer-events: none;
}

.btn-wrapper .gradient-layer:last-of-type {
  mix-blend-mode: color-dodge;
}

.btn-wrapper .text-overlay {
  position: absolute;
  z-index: 2;
  padding: 12px 43.2px;
  border-radius: var(--rad);
  font: inherit;
  line-height: normal;
  letter-spacing: 0;
  color: var(--color-overlay-text);
  text-shadow: 0 0 4px var(--color-overlay-glow);
  box-shadow: inset 0 -4px 4px var(--color-overlay-shadow), inset 0 4px 4px var(--color-overlay-highlight);
  mix-blend-mode: multiply;
  transition: transform 0.3s ease;
  animation: source-opacity-pulse 5s ease infinite;
  pointer-events: none;
  white-space: nowrap;
}

.btn-wrapper:hover .text-overlay { transform: scale(1.1); }
.btn-wrapper:hover .gradient-btn,
.btn-wrapper:active .gradient-btn { color: #0000; text-shadow: 0 0 0 #0000; }
.btn-wrapper:hover { filter: saturate(0.65) brightness(1.8); }
.btn-wrapper:not(:hover) .gradient-layer { animation-duration: 30s !important; opacity: 0.74; }
.btn-wrapper:hover .gradient-layer { opacity: 1; }
.btn-wrapper:active .text-overlay { transform: scale(0.95); }

.btn-wrapper .light {
  position: absolute;
  z-index: 1;
  width: 80%;
  height: 1.9rem;
  border-radius: 50px;
  background: #fff5;
  filter: blur(5px);
  opacity: 0.58;
  animation: source-liquid-pulse 8s ease-in-out infinite;
  pointer-events: none;
}

.btn-wrapper:hover .light { opacity: 1; animation-duration: 3s !important; }

@keyframes source-liquid-rotate { to { transform: rotate(360deg); } }
@keyframes source-liquid-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.1; } }
@keyframes source-opacity-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* PillNav: copied from the approved visual lab component. */
.site-header.pill-nav-container {
  position: fixed;
  z-index: 99;
  top: 14px;
  left: 50%;
  width: min(1200px, calc(100% - 40px));
  min-height: 54px;
  padding: 6px;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: translateX(-50%);
  transform-origin: center top;
  pointer-events: none;
  will-change: transform;
  box-sizing: border-box;
}

body::after {
  content: "";
  position: fixed;
  z-index: 98;
  top: 0;
  right: 0;
  left: 0;
  height: 112px;
  background: linear-gradient(
    to bottom,
    #0d0915 0,
    #0d0915 72px,
    rgb(13 9 21 / 92%) 84px,
    rgb(13 9 21 / 54%) 96px,
    rgb(13 9 21 / 0%) 112px
  );
  pointer-events: none;
}

.pill-nav-surface {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 50%;
  width: min(420px, calc(100vw - 32px));
  height: 54px;
  display: block;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 999px;
  background: rgb(12 8 20 / 88%);
  box-shadow: 0 16px 34px rgb(0 0 0 / 34%), inset 0 1px 0 rgb(255 255 255 / 24%), inset 0 -10px 24px rgb(82 39 255 / 8%);
  transform: translateX(-50%);
  transform-origin: center;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.pill-nav {
  --nav-h: 42px;
  --logo: 36px;
  --pill-pad-x: 18px;
  --pill-gap: 3px;
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
  font-family: Inter, "Segoe UI Variable", "Microsoft YaHei UI", sans-serif;
}

.pill-brand-lockup {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  pointer-events: auto;
  will-change: transform;
}

.pill-brand-label {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  white-space: nowrap;
}

.pill-nav-items {
  position: relative;
  display: flex;
  align-items: center;
  height: var(--nav-h);
  background: var(--base, #000);
  border-radius: 9999px;
  pointer-events: auto;
  will-change: transform;
}

.pill-logo {
  width: var(--nav-h);
  height: var(--nav-h);
  flex: 0 0 var(--nav-h);
  border-radius: 50%;
  background: var(--base, #000);
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pill-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pill-list { height: 100%; display: flex; align-items: stretch; gap: var(--pill-gap); margin: 0; padding: 3px; list-style: none; }
.pill-list > li { height: 100%; display: flex; }

.pill {
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--pill-pad-x);
  overflow: hidden;
  position: relative;
  border: 0;
  border-radius: 9999px;
  background: var(--pill-bg, #fff);
  color: var(--pill-text, var(--base, #000));
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 0;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
}

.pill .hover-circle {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 0;
  display: block;
  border-radius: 50%;
  background: var(--base, #000);
  pointer-events: none;
  will-change: transform;
}

.pill .label-stack { position: relative; z-index: 2; display: inline-block; line-height: 1; }
.pill .pill-label { position: relative; z-index: 2; display: inline-block; line-height: 1; will-change: transform; }
.pill .pill-label-hover { position: absolute; z-index: 3; top: 0; left: 0; display: inline-block; color: var(--hover-text, #fff); will-change: transform, opacity; }
.pill.is-active::after {
  content: "";
  position: absolute;
  z-index: 4;
  bottom: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50px;
  background: var(--base, #000);
  transform: translateX(-50%);
}
.desktop-only { display: block; }
.mobile-only { display: none; }

.pill-nav .mobile-menu-button {
  width: var(--nav-h);
  height: var(--nav-h);
  border: 0;
  border-radius: 50%;
  background: var(--base, #000);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
}

.hamburger-line { width: 16px; height: 2px; border-radius: 1px; background: var(--pill-bg, #fff); transform-origin: center; }

.site-header .mobile-menu-popover {
  position: absolute;
  z-index: 998;
  top: 58px;
  left: 1rem;
  right: 1rem;
  padding: 3px;
  border-radius: 27px;
  background: #000;
  box-shadow: 0 8px 32px rgb(0 0 0 / 20%);
  opacity: 0;
  visibility: hidden;
  pointer-events: auto;
}

.site-header .mobile-menu-popover.is-open { opacity: 1; visibility: visible; }
.site-header .mobile-menu-popover > a,
.site-header .mobile-menu-popover > button { display: block; width: 100%; padding: 12px 16px; border: 0; border-radius: 50px; background: #fff; color: #000; text-align: left; text-decoration: none; }
.site-header .mobile-menu-popover .language-switch { display: flex; padding: 3px; }

@media (max-width: 900px) {
  .site-header.pill-nav-container { width: calc(100% - 16px); }
  body::after {
    height: 96px;
    background: linear-gradient(
      to bottom,
      #0d0915 0,
      #0d0915 64px,
      rgb(13 9 21 / 92%) 76px,
      rgb(13 9 21 / 48%) 86px,
      rgb(13 9 21 / 0%) 96px
    );
  }
  .pill-nav { width: 100%; justify-content: space-between; padding: 0 0.5rem; }
  .pill-brand-label, .desktop-only { display: none; }
  .mobile-only { display: block; }
  .pill-nav .mobile-menu-button { display: flex; }
  .pill-nav-surface { opacity: 1; width: 100%; }
}

@media (max-width: 900px), (hover: none) and (pointer: coarse), (prefers-reduced-motion: reduce) {
  .site-color-field {
    background:
      radial-gradient(circle at 18% 14%, rgb(82 39 255 / 42%), transparent 38%),
      radial-gradient(circle at 84% 34%, rgb(255 159 252 / 22%), transparent 42%),
      linear-gradient(150deg, #12091f 0%, #0d0915 54%, #171027 100%);
  }

  .site-color-field .site-color-bends,
  .global-glow-cursor {
    display: none;
  }

  .btn-wrapper,
  .btn-wrapper:hover,
  .btn-wrapper.liquid-action,
  .btn-wrapper.liquid-action:hover {
    width: min(100%, 280px);
    min-height: 52px;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 42%);
    border-radius: 26px;
    background: #6843f5;
    box-shadow: 0 12px 28px rgb(37 17 84 / 36%), inset 0 1px 0 rgb(255 255 255 / 32%);
    filter: none;
    transition: transform 160ms ease, background-color 160ms ease;
  }

  .btn-wrapper .gradient-layer,
  .btn-wrapper .light,
  .btn-wrapper .text-overlay {
    display: none;
    animation: none !important;
  }

  .btn-wrapper .gradient-btn,
  .btn-wrapper:hover .gradient-btn,
  .btn-wrapper:active .gradient-btn {
    z-index: 1;
    width: 100%;
    min-height: 52px;
    padding: 12px 24px;
    color: #fff;
    background: transparent;
    box-shadow: none;
    text-shadow: none;
    mix-blend-mode: normal;
  }

  .btn-wrapper .gradient-btn::after {
    display: none;
  }

  .btn-wrapper:active {
    transform: translateY(1px);
    background: #5a35dc;
  }
}

/* DriftWall: motion and material copied from the supplied React component. */
.drift-wall {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  perspective: var(--dw-perspective, 1200px);
  perspective-origin: 50% 50%;
  --dw-tile-w: 200px;
  --dw-tile-h: 132px;
  --dw-gap: 18px;
  --dw-radius: 14px;
  --dw-lift: 64px;
  --dw-dim: 0.55;
  --dw-gray: 0;
  --dw-overlay: #060010;
  --dw-edge: 40%;
  -webkit-mask-image:
    radial-gradient(ellipse 78% 82% at 50% 46%, #000 var(--dw-edge), transparent 100%),
    linear-gradient(
      to bottom,
      transparent 0,
      #000 var(--dw-edge),
      #000 calc(100% - var(--dw-edge)),
      transparent 100%
    );
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(ellipse 78% 82% at 50% 46%, #000 var(--dw-edge), transparent 100%),
    linear-gradient(
      to bottom,
      transparent 0,
      #000 var(--dw-edge),
      #000 calc(100% - var(--dw-edge)),
      transparent 100%
    );
  mask-composite: intersect;
}

.drift-wall [data-drift-wall-items] {
  display: none;
}

.drift-wall__plane {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: row;
  transform-style: preserve-3d;
  cursor: pointer;
  transform-origin: 50% 50%;
  will-change: transform;
}

.drift-wall__col {
  position: relative;
  width: calc(var(--dw-tile-w) + var(--dw-gap));
  transform-style: preserve-3d;
}

.drift-wall__track {
  display: flex;
  flex-direction: column;
  will-change: transform;
  transform-style: preserve-3d;
}

.drift-wall__tile {
  position: relative;
  display: block;
  width: 100%;
  height: calc(var(--dw-tile-h) + var(--dw-gap));
  flex: 0 0 auto;
  outline: none;
  transform-style: preserve-3d;
}

.drift-wall[data-drift-reveal-state="entering"] .drift-wall__tile {
  will-change: opacity, transform;
}

.drift-wall__inner {
  position: absolute;
  inset: calc(var(--dw-gap) / 2);
  display: block;
  overflow: hidden;
  border-radius: var(--dw-radius);
  border: 1px solid rgb(180 143 255 / 22%);
  background: #160b28;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 8%);
  opacity: var(--dw-dim);
  transform: translateZ(0);
  pointer-events: none;
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.drift-wall__tile img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: var(--dw-focus-x, 50%) var(--dw-focus-y, 50%);
  filter: grayscale(0.28) saturate(0.58) brightness(0.42) contrast(1.18) sepia(0.12) hue-rotate(224deg);
  transform: scale(var(--dw-media-scale, 2.35));
  transition: filter 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  user-select: none;
  -webkit-user-drag: none;
}

.drift-wall__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, rgb(82 39 255 / 46%), rgb(255 159 252 / 16%)),
    var(--dw-overlay);
  opacity: 0.62;
  pointer-events: none;
  transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.drift-wall__caption {
  position: absolute;
  right: 10px;
  bottom: 9px;
  left: 10px;
  z-index: 2;
  padding: 8px 9px;
  border: 1px solid rgb(214 189 255 / 22%);
  border-radius: 8px;
  background: rgb(20 8 36 / 84%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-shadow: 0 2px 8px rgb(0 0 0 / 74%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.drift-wall__tile.is-active .drift-wall__inner,
.drift-wall__tile:focus-visible .drift-wall__inner {
  opacity: 1;
  transform: translateZ(var(--dw-lift));
  box-shadow: 0 24px 60px -18px rgb(0 0 0 / 70%);
}

.drift-wall__tile.is-active img,
.drift-wall__tile:focus-visible img {
  filter: grayscale(0.08) saturate(0.82) brightness(0.68) contrast(1.12) sepia(0.08) hue-rotate(218deg);
}

.drift-wall__tile.is-active .drift-wall__overlay,
.drift-wall__tile:focus-visible .drift-wall__overlay {
  opacity: 0.22;
}

.drift-wall__tile:focus-visible .drift-wall__inner {
  box-shadow:
    0 24px 60px -18px rgb(0 0 0 / 70%),
    0 0 0 2px rgb(255 255 255 / 90%);
}

@media (prefers-reduced-motion: reduce) {
  .drift-wall__plane,
  .drift-wall__track {
    will-change: auto;
  }
}

html[data-effects-profile="low-power"] .drift-wall__plane,
html[data-effects-profile="low-power"] .drift-wall__track,
html[data-effects-profile="low-power"] .drift-wall__tile {
  will-change: auto;
}

html[data-effects-profile="low-power"] .drift-wall__inner,
html[data-effects-profile="low-power"] .drift-wall__tile img,
html[data-effects-profile="low-power"] .drift-wall__overlay {
  transition: none;
}
