:root {
  --dock-bg: rgba(45, 45, 45, 0.75);
  --dock-border: rgba(255, 255, 255, 0.15);
  --tooltip-bg: rgba(28, 31, 39, 0.92);
  --tooltip-border: rgba(255, 255, 255, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  overflow: hidden;
  color: #fff;
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: #000;
}

.hero-defs {
  position: absolute;
  width: 0;
  height: 0;
}

.hero-background,
.hero-shader {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.hero-background {
  background: #000;
}

.hero-shader {
  overflow: hidden;
}

.hero-shader canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.hero-shader-primary {
  z-index: 0;
}

.hero-shader-secondary {
  z-index: 1;
  opacity: 0.6;
}

.hero-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 24px;
  pointer-events: none;
}

.hero-logo-group {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 75px;
  color: #fff;
  filter: url(#logo-glow);
  pointer-events: auto;
}

.hero-logo-mark {
  width: 60px;
  height: 60px;
  transition: transform 300ms ease, filter 300ms ease, fill 300ms ease;
}

.hero-logo-group:hover .hero-logo-mark,
.hero-logo-group.is-sparkle .hero-logo-mark {
  fill: url(#logo-gradient);
  transform: scale(1.05);
}

.hero-logo-group.is-sparkle .hero-logo-mark {
  animation: heroLogoSparkleMark 700ms ease-in-out;
}

.hero-logo-particles {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}

.hero-logo-group:hover .hero-logo-particles,
.hero-logo-group.is-sparkle .hero-logo-particles {
  opacity: 1;
}

.hero-logo-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  animation: heroParticle 2s ease-in-out infinite;
}

.hero-logo-particle.p1 {
  left: 49.7687%;
  top: 63.4039%;
  animation-delay: 0s;
}

.hero-logo-particle.p2 {
  left: 48.9095%;
  top: 63.2543%;
  animation-delay: 0.2s;
}

.hero-logo-particle.p3 {
  left: 63.4582%;
  top: 49.4371%;
  animation-delay: 0.4s;
}

.hero-logo-particle.p4 {
  left: 38.2313%;
  top: 35.2507%;
  animation-delay: 0.6s;
}

.hero-logo-particle.p5 {
  left: 70.4607%;
  top: 29.6421%;
  animation-delay: 0.8s;
}

.hero-logo-particle.p6 {
  left: 38.9974%;
  top: 68.8776%;
  animation-delay: 1s;
}

.hero-badge {
  position: fixed;
  right: 55px;
  bottom: 55px;
  z-index: 30;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero-badge-core {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.02);
}

.hero-badge-canvas {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: block;
}

.hero-badge-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: heroBadgeRotate 20s linear infinite;
  transform: scale(1.6);
}

.hero-badge-text {
  font-size: 10px;
  fill: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
  text-anchor: middle;
  dominant-baseline: middle;
}

.hero-copy {
  position: fixed;
  left: 50%;
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
  z-index: 24;
  width: min(920px, calc(100vw - 64px));
  text-align: center;
  pointer-events: none;
}

.hero-copy-title {
  margin: 0 0 22px;
  font-size: clamp(3.75rem, 6vw, 6rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero-copy-title span {
  display: block;
}

.hero-copy-title-top {
  margin-bottom: 8px;
  font-size: clamp(2.25rem, 4vw, 3.75rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(135deg, #ffffff 0%, #06b6d4 30%, #f97316 70%, #ffffff 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: url(#text-glow);
  animation: heroTitleGradient 8s linear infinite;
}

.hero-copy-title-main {
  font-weight: 900;
  color: #ffffff;
  font-size: clamp(3.75rem, 6vw, 6rem);
  letter-spacing: -0.055em;
  text-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

.hero-copy-title-bottom {
  margin-top: 0;
  font-size: clamp(3.75rem, 6vw, 6rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: -0.02em;
}

.hero-copy-description {
  margin: 0;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: -0.01em;
  margin-inline: auto;
}

.mobile-home {
  display: none;
}

.desktop-stage {
  position: relative;
  z-index: 26;
  min-height: 100svh;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 34px 18px 3vh;
}

.dock-zone {
  width: 100%;
  display: grid;
  justify-items: center;
  transform: translateY(20%);
}

.dock-scroller {
  max-width: min(100vw - 24px, 100%);
  overflow: visible;
  padding: 72px 18px 72px;
}

.dock-frame {
  position: relative;
  margin: 0 auto;
  backdrop-filter: blur(14px);
  overflow: visible;
}

.dock-shell {
  position: relative;
  min-width: max-content;
  background: var(--dock-bg);
  border: 1px solid var(--dock-border);
  box-shadow:
    0 6px 26px rgba(0, 0, 0, 0.42),
    0 2px 10px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  overflow: visible;
}

.dock-shell::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto;
  height: 46%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.dock-shell::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -20px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.34), transparent 74%);
  filter: blur(10px);
  pointer-events: none;
}

.dock-content {
  position: relative;
  overflow: visible;
}

.dock-item {
  position: absolute;
  bottom: 0;
  cursor: pointer;
  transform-origin: bottom center;
  user-select: none;
  -webkit-user-drag: none;
}

.dock-item:focus-visible {
  outline: none;
}

.dock-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(8px);
  padding: 7px 10px;
  border-radius: 12px;
  background: var(--tooltip-bg);
  border: 1px solid var(--tooltip-border);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.2);
}

.dock-item:hover .dock-tooltip,
.dock-item:focus-visible .dock-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.dock-icon-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.18)) drop-shadow(0 6px 9px rgba(0, 0, 0, 0.16));
}

.dock-icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes heroParticle {
  0% {
    transform: translateX(0) translateY(-10px) scale(0);
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    transform: translateX(8px) translateY(-20px) scale(1);
    opacity: 0;
  }
}

@keyframes heroLogoSparkleMark {
  0% {
    transform: scale(1) rotate(0deg);
  }

  35% {
    transform: scale(1.06) rotate(-2deg);
  }

  65% {
    transform: scale(1.06) rotate(2deg);
  }

  100% {
    transform: scale(1.05) rotate(0deg);
  }
}

@keyframes heroBadgeRotate {
  from {
    transform: scale(1.6) rotate(0deg);
  }

  to {
    transform: scale(1.6) rotate(360deg);
  }
}

@keyframes heroTitleGradient {
  0% {
    background-position: 0% 50%;
  }

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

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

@media (max-width: 640px) {
  .hero-header {
    padding: 18px;
  }

  .hero-badge {
    right: 18px;
    bottom: 18px;
    width: 68px;
    height: 68px;
  }

  .hero-badge-ring {
    transform: scale(1.45);
  }

  .desktop-stage {
    padding: 20px 8px 7vh;
  }

  .hero-copy {
    top: 38%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(460px, calc(100vw - 36px));
  }

  .hero-copy-pill {
    margin-bottom: 18px;
    padding: 8px 12px;
  }

  .hero-copy-pill span {
    font-size: 12px;
  }

  .hero-copy-description {
    font-size: 15px;
  }

  .dock-scroller {
    max-width: calc(100vw - 10px);
    overflow-x: auto;
    overflow-y: hidden;
    padding: 58px 2px;
  }

  .dock-scroller::-webkit-scrollbar {
    height: 8px;
  }

  .dock-scroller::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
  }

  .dock-tooltip {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-badge-ring,
  .hero-logo-particle,
  .dock-tooltip,
  .dock-item {
    animation: none;
    transition: none;
  }
}
