.site-header {
  --mx: 50%;
  --my: 6%;
}

.hero-card,
.about-poster__glass,
.pp-dropdown {
  --mx: 50%;
  --my: 12%;
}

.hero__grid,
.about__decor,
.site-footer__grid {
  overflow: hidden;
  pointer-events: none;
}

.site-header__glass {
  position: absolute;
  inset: 0;
  isolation: isolate;
  overflow: hidden;
  pointer-events: none;
}

.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.site-header::before {
  background:
    radial-gradient(520px 360px at var(--mx) var(--my), rgba(255, 255, 255, .75), transparent 60%),
    radial-gradient(640px 420px at calc(var(--mx) + 12%) calc(var(--my) + 18%), rgba(0, 153, 255, .16), transparent 68%);
  mix-blend-mode: screen;
  opacity: .38;
  transition: opacity .16s ease;
}

.site-header::after {
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .62),
    inset 0 0 0 1px rgba(255, 255, 255, .06),
    inset 0 -10px 30px rgba(0, 0, 0, .06);
  opacity: .85;
}

.pp-dropdown {
  isolation: isolate;
}

.site-header__glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(14px) saturate(210%) contrast(116%);
  -webkit-backdrop-filter: blur(14px) saturate(210%) contrast(116%);
  filter: url("#pp-liquid-refract");
  opacity: .62;
  pointer-events: none;
}

.site-header__glass::after {
  content: "";
  position: absolute;
  inset: -24px;
  background:
    radial-gradient(520px 320px at 18% 12%, rgba(255, 255, 255, .72), transparent 60%),
    radial-gradient(640px 380px at 78% 22%, rgba(0, 153, 255, .24), transparent 62%),
    radial-gradient(640px 380px at 72% 94%, rgba(255, 255, 255, .28), transparent 62%);
  mix-blend-mode: overlay;
  filter: url("#pp-liquid-caustics");
  opacity: .18;
  pointer-events: none;
}

.site-header__inner {
  z-index: 2;
}

.main-nav__link--drop::after {
  transition: transform 0.28s ease;
  transform-origin: 50% 50%;
}

.main-nav__link--drop.is-open::after {
  transform: rotate(180deg);
}

.pp-dropdown-root {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

.pp-dropdown-root.is-open {
  pointer-events: auto;
}

.pp-dropdown-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.06);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.pp-dropdown-root.is-open .pp-dropdown-overlay {
  opacity: 1;
}

.pp-dropdown {
  position: absolute;
  top: var(--pp-dropdown-top, 88px);
  left: 50%;
  width: min(1000px, calc(100vw - 48px));
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.52), rgba(235, 247, 255, 0.2));
  backdrop-filter: blur(18px) saturate(205%) contrast(114%);
  -webkit-backdrop-filter: blur(18px) saturate(205%) contrast(114%);
  box-shadow:
    0 14px 70px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transform: translate(-50%, 16px) scale(0.985);
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease,
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.pp-dropdown::before,
.pp-dropdown::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.pp-dropdown::before {
  inset: 0;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(18px) saturate(205%) contrast(114%);
  -webkit-backdrop-filter: blur(18px) saturate(205%) contrast(114%);
  filter: url("#pp-liquid-refract");
  opacity: .88;
}

.pp-dropdown::after {
  inset: -24px;
  background:
    radial-gradient(520px 360px at var(--mx) var(--my), rgba(255, 255, 255, .75), transparent 60%),
    radial-gradient(640px 420px at calc(var(--mx) + 12%) calc(var(--my) + 18%), rgba(0, 153, 255, .16), transparent 68%),
    radial-gradient(520px 320px at 18% 12%, rgba(255, 255, 255, .3), transparent 62%);
  mix-blend-mode: screen;
  opacity: .52;
}

.pp-dropdown.is-active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
}

.pp-dropdown--support {
  width: min(700px, calc(100vw - 48px));
}

.pp-dropdown__body {
  position: relative;
  z-index: 1;
  max-height: 80vh;
  max-height: min(80vh, calc(100dvh - var(--pp-dropdown-top, 88px) - 24px));
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.pp-dropdown__title {
  margin: 0 0 20px;
  color: var(--color-text);
  font-size: 24px;
  line-height: 30px;
  font-weight: 700;
}

.pp-dropdown-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pp-dropdown-grid--support {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pp-dropdown-card {
  display: block;
  padding: 18px;
  border: 1px solid rgba(0, 153, 255, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    background 0.28s ease,
    border-color 0.28s ease;
}

.pp-dropdown-card:hover,
.pp-dropdown-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(0, 153, 255, 0.4);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 22px rgba(0, 153, 255, 0.16);
}

.pp-dropdown-card__title {
  display: block;
  margin-bottom: 8px;
  color: var(--color-blue);
  font-size: 14px;
  line-height: 18px;
  font-weight: 700;
}

.pp-dropdown-card__desc {
  margin: 0;
  color: var(--color-text);
  font-size: 12px;
  line-height: 19px;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    background: rgba(244, 249, 253, .96);
  }

  .site-header__glass {
    opacity: .72;
  }

  .site-header__glass::before,
  .site-header__glass::after,
  .pp-dropdown::before,
  .pp-dropdown::after {
    filter: none;
  }

  .pp-dropdown {
    background: rgba(246, 250, 253, .98);
  }

  @media (max-width: 900px) {
    .main-nav,
    .nav-toggle {
      background: rgba(246, 250, 253, .98);
    }
  }
}

.hero-card__badge,
.hero-card__title,
.hero-card__description,
.hero-card__actions .button {
  will-change: transform, opacity;
}

.hero-card.is-animating .hero-card__badge,
.hero-card.is-animating .hero-card__title,
.hero-card.is-animating .hero-card__description,
.hero-card.is-animating .hero-card__actions .button {
  opacity: 0;
}

.hero-card.is-animating .hero-card__badge {
  animation: slideInSmooth 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-card.is-animating .hero-card__title {
  animation: fadeInSlide 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.hero-card.is-animating .hero-card__description {
  animation: fadeInSlide 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.hero-card.is-animating .hero-card__actions .button:first-child {
  animation: scaleInSmooth 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}

.hero-card.is-animating .hero-card__actions .button:last-child {
  animation: scaleInSmooth 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

.hero-flow-line,
.hero-pulse-node,
.hero-flow-svg,
.hex-showcase__mesh,
.about-ambient,
.footer-ambient {
  pointer-events: none;
}

.hero-flow-line {
  position: absolute;
  overflow: visible;
  z-index: 1;
  opacity: 0.31;
}

.hero-flow-line--horizontal {
  top: var(--flow-position);
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--flow-color), transparent);
}

.hero-flow-line--vertical {
  top: 0;
  bottom: 0;
  left: var(--flow-position);
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--flow-color), transparent);
}

.hero-flow__packet {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--flow-color);
  box-shadow:
    0 0 12px var(--flow-color),
    0 0 24px var(--flow-color);
  opacity: 0;
  will-change: transform, opacity;
}

.hero-flow-line--horizontal .hero-flow__packet {
  top: -5px;
  animation: flowHorizontal var(--duration) linear var(--delay) infinite;
}

.hero-flow-line--vertical .hero-flow__packet {
  left: -5px;
  animation: flowVertical var(--duration) linear var(--delay) infinite;
}

.hero-pulse-node {
  position: absolute;
  z-index: 2;
  left: var(--node-x);
  top: var(--node-y);
  width: var(--node-size);
  height: var(--node-size);
  border-radius: 50%;
  background: var(--node-color);
  box-shadow:
    0 0 14px var(--node-color),
    0 0 28px var(--node-color);
  opacity: 0.5;
  animation: pulse var(--duration) ease-in-out var(--delay) infinite;
  will-change: transform, opacity;
}

.hero-flow-svg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.16;
}

.hero-flow-svg line,
.hex-showcase__mesh line {
  stroke-dasharray: 8 4;
  animation: heroDash var(--duration, 4s) linear var(--delay, 0s) infinite;
}

.hex-showcase {
  isolation: isolate;
}

.hex-showcase__mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.18;
}

.hex-card {
  animation: float var(--float-duration, 5.6s) ease-in-out var(--float-delay, 0s) infinite;
  will-change: transform;
}

.hex-card:hover {
  cursor: pointer;
  filter: none;
  z-index: 2;
}

.hex-card__body {
  transition: transform 500ms ease, filter 500ms ease;
  transform-origin: center;
  will-change: transform;
}

.hex-card:hover .hex-card__body {
  transform: scale(1.10);
}

.hex-card__frame,
.hex-card__icon,
.hex-card small {
  transition: filter 500ms ease, transform 500ms ease;
}

.about-poster {
  isolation: isolate;
}

.about-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.18) 0, rgba(255, 255, 255, 0) 38%),
    radial-gradient(circle at 80% 75%, rgba(255, 255, 255, 0.18) 0, rgba(255, 255, 255, 0) 42%);
  opacity: 0.28;
  animation: bgPulseStrong 8s ease-in-out infinite;
  pointer-events: none;
}

.about-poster__glass {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.about-poster__glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 280px at var(--mx) var(--my), rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0) 65%),
    radial-gradient(300px 220px at 20% 18%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 70%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.about-poster__glass > * {
  position: relative;
  z-index: 1;
}

.about-rotating-word {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  transition:
    opacity 0.38s ease,
    transform 0.38s ease;
}

.about-rotating-word.is-leaving {
  opacity: 0;
  transform: translate3d(0, -18px, 0) scale(0.96);
}

.about-rotating-word.is-entering {
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.96);
}

.about-ambient {
  position: absolute;
  inset: 0;
}

.about-ambient__particle,
.about-ambient__trail,
.about-ambient__node,
.about-ambient__stream {
  position: absolute;
}

.about-ambient__particle {
  left: var(--start-x);
  top: var(--start-y);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: var(--color);
  box-shadow:
    0 0 18px var(--color),
    0 0 36px var(--color);
  opacity: 0;
  animation: convergeToCenter var(--duration) ease-in-out var(--delay) infinite;
}

.about-ambient__trail {
  left: var(--start-x);
  top: var(--start-y);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--color);
  box-shadow:
    0 0 14px var(--color),
    0 0 8px var(--color);
  opacity: 0;
  transform: translate3d(var(--trail-move-x, 0px), var(--trail-move-y, 0px), 0);
  animation: convergeFade var(--duration) ease-in-out var(--delay) infinite;
}

.about-ambient__node {
  left: var(--node-x);
  top: var(--node-y);
  width: var(--node-size);
  height: var(--node-size);
  border-radius: 50%;
  background: var(--node-color);
  box-shadow:
    0 0 22px var(--node-color),
    0 0 38px var(--node-color);
  opacity: 0;
  animation: bgPulseStrong var(--duration) ease-in-out var(--delay) infinite;
}

.about-ambient__stream {
  opacity: 0.42;
  background-size: 200% 200%;
  animation: dataFlow var(--duration) linear infinite;
}

.about-ambient__stream--horizontal {
  left: 0;
  right: 0;
  top: var(--stream-position);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--stream-color), rgba(255, 255, 255, 0.08), var(--stream-color), transparent);
}

.about-ambient__stream--vertical {
  top: 0;
  bottom: 0;
  left: var(--stream-position);
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--stream-color), rgba(255, 255, 255, 0.08), var(--stream-color), transparent);
}

.support-animated-title {
  --support-progress: 0%;
  position: relative;
  display: inline-block;
}

.support-title__base {
  color: #292b37;
}

.support-title__fill {
  position: absolute;
  inset: 0;
  color: transparent;
  background: linear-gradient(90deg, #ff6900 0%, #0099ff 50%, #314158 100%);
  -webkit-background-clip: text;
  background-clip: text;
  clip-path: inset(0 calc(100% - var(--support-progress)) 0 0);
  pointer-events: none;
}

.support-card--reveal {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease,
    filter 0.38s ease;
}

.support-card--reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: var(--card-delay, 0ms);
}

.support-card {
  position: relative;
  overflow: visible;
  transition: transform 0.34s ease, filter 0.34s ease;
}

.support-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: -1;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 105, 0, 0.24), rgba(0, 153, 255, 0.2), rgba(49, 65, 88, 0.24));
  filter: blur(26px);
  opacity: 0;
  transition: opacity 0.34s ease;
}

.support-card:hover {
  transform: translateY(-10px) scale(1.02);
  filter: drop-shadow(0 18px 34px rgba(0, 153, 255, 0.16));
}

.support-card:hover::after {
  opacity: 1;
}

.support-card:hover .support-icon {
  transform: scale(1.08) rotate(4deg);
}

.support-icon {
  transition: transform 0.34s ease, box-shadow 0.34s ease;
}

.support-card:hover .support-icon {
  box-shadow:
    0 10px 15px rgba(0, 0, 0, 0.1),
    0 4px 6px rgba(0, 0, 0, 0.1),
    0 0 24px rgba(0, 153, 255, 0.22);
}

.browser-list {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
}

.browser-list::-webkit-scrollbar {
  display: none;
}

.browser-list.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.browser-list.is-dragging span {
  pointer-events: none;
}

.browser-list::after {
  display: none;
}

.browser-list span {
  flex: 0 0 auto;
  transition:
    transform 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease,
    color 0.28s ease;
}

.browser-list span:hover {
  transform: translateY(-2px) scale(1.03);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 18px rgba(29, 41, 61, 0.12);
  color: var(--color-blue);
}

.tested-strip::before,
.tested-strip::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 96px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.24s ease;
  z-index: 1;
}

.tested-strip::before {
  left: 0;
  background: linear-gradient(90deg, var(--color-bg), rgba(249, 250, 251, 0));
}

.tested-strip::after {
  right: 0;
  background: linear-gradient(270deg, var(--color-bg), rgba(249, 250, 251, 0));
}

.tested-strip.can-scroll-left::before,
.tested-strip.can-scroll-right::after {
  opacity: 1;
}

.round-control {
  transition:
    transform 0.28s ease,
    background 0.28s ease,
    opacity 0.28s ease;
}

.round-control:not(:disabled):hover,
.round-control:not(:disabled):focus-visible {
  transform: translateY(-2px) scale(1.05);
}

.round-control:disabled {
  cursor: not-allowed;
}

.footer-ambient {
  position: absolute;
  inset: 0;
}

.footer-ambient__line,
.footer-ambient__dot {
  position: absolute;
}

.footer-ambient__line--horizontal {
  left: 0;
  right: 0;
  top: var(--line-position);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-color), transparent);
  box-shadow: 0 0 8px var(--line-color);
  animation: glowPulse var(--duration) ease-in-out var(--delay) infinite;
}

.footer-ambient__line--vertical {
  top: 0;
  bottom: 0;
  left: var(--line-position);
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line-color), transparent);
  box-shadow: 0 0 7px var(--line-color);
  animation: glowPulse var(--duration) ease-in-out var(--delay) infinite;
}

.footer-ambient__dot {
  top: var(--dot-y);
  left: var(--dot-x);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot-color);
  box-shadow:
    0 0 11px var(--dot-color),
    0 0 22px var(--dot-color);
  animation: dotPulse var(--duration) ease-in-out var(--delay) infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

@keyframes slideInSmooth {
  from {
    opacity: 0;
    transform: translateX(-15px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleInSmooth {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes flowHorizontal {
  0% {
    left: -3%;
    opacity: 0;
  }

  10%,
  90% {
    opacity: 0.65;
  }

  100% {
    left: 103%;
    opacity: 0;
  }
}

@keyframes flowVertical {
  0% {
    top: -3%;
    opacity: 0;
  }

  10%,
  90% {
    opacity: 0.65;
  }

  100% {
    top: 103%;
    opacity: 0;
  }
}

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

  50% {
    opacity: 0.72;
    transform: scale(1.25);
  }
}

@keyframes heroDash {
  to {
    stroke-dashoffset: 24;
  }
}

@keyframes convergeToCenter {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.8);
  }

  15% {
    opacity: 0.6;
  }

  55% {
    opacity: 0.9;
    transform: translate3d(var(--move-x), var(--move-y), 0) scale(1.08);
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--move-x-end, var(--move-x)), var(--move-y-end, var(--move-y)), 0) scale(0.5);
  }
}

@keyframes convergeFade {
  0% {
    opacity: 0;
  }

  50% {
    opacity: 0.55;
  }

  100% {
    opacity: 0;
  }
}

@keyframes bgPulseStrong {
  0%,
  100% {
    opacity: 0;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.35);
  }
}

@keyframes dataFlow {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 100% 100%;
  }
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.32;
  }

  50% {
    opacity: 0.82;
  }
}

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

  50% {
    opacity: 1;
    transform: scale(1.5);
  }
}

@media (max-width: 1200px) {
  .hex-showcase__mesh,
  .hero-flow-svg {
    display: none;
  }
}

@media (max-width: 900px) {
  .pp-dropdown-root {
    display: none;
  }

  .hero-flow-line--vertical,
  .about-ambient__trail {
    opacity: 0.22;
  }

  .tested-strip .round-control:first-child {
    display: inline-flex;
  }

  .tested-strip .round-control {
    width: 40px;
    height: 40px;
    top: 31px;
  }

  .tested-strip .browser-list {
    padding-left: 52px;
    padding-right: 52px;
  }

  .pp-dropdown-grid,
  .pp-dropdown-grid--support {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .hero-flow-line,
  .hero-flow-svg,
  .hex-showcase__mesh,
  .about-ambient__particle,
  .about-ambient__trail {
    display: none;
  }

  .about-poster__glass span {
    white-space: normal;
  }

  .tested-strip::before,
  .tested-strip::after {
    width: 72px;
  }

  .tested-strip .browser-list {
    padding-left: 48px;
    padding-right: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
