:root {
  --nexo-classic-blue: #006cff;
  --nexo-classic-blue-deep: #0053d4;
  --nexo-classic-cyan: #55e8ff;
  --nexo-classic-mint: #52f3bd;
}

.nexo-hero {
  min-height: calc(100vh - 68px);
  color: #ffffff;
  background:
    radial-gradient(circle at 48% 17%, rgba(85, 232, 255, 0.25), transparent 22%),
    linear-gradient(135deg, #0095ff 0%, #006dff 43%, #0053d4 100%);
  border-bottom-color: rgba(255, 255, 255, 0.18);
}

.nexo-hero__ambient {
  background: rgba(85, 232, 255, 0.2);
  filter: blur(54px);
}

.nexo-hero__ambient--left {
  top: 26%;
  left: -180px;
}

.nexo-hero__ambient--right {
  top: 4%;
  right: -170px;
}

.nexo-hero__content {
  width: min(980px, calc(100% - 36px));
  padding: 24px 0 42px;
}

.nexo-cube {
  width: 290px;
  margin-bottom: 20px;
}

.nexo-cube__scene {
  width: 270px;
  height: 238px;
  cursor: grab;
  touch-action: none;
  filter: drop-shadow(0 0 36px rgba(90, 241, 255, 0.36));
}

.nexo-cube__scene:active {
  cursor: grabbing;
}

.nexo-cube__body {
  width: 148px;
  height: 148px;
  filter:
    drop-shadow(0 28px 24px rgba(0, 43, 132, 0.28))
    drop-shadow(0 0 22px rgba(82, 243, 189, 0.28));
}

.nexo-cube__body::before {
  inset: 10px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.28), transparent 48%);
  transform: translateZ(75px);
  box-shadow: none;
}

.nexo-cube__body::after {
  inset: 13px 25px 101px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  filter: blur(8px);
  transform: translateZ(76px);
}

.nexo-cube__face {
  border: 1px solid rgba(177, 255, 244, 0.58);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), transparent 42%),
    linear-gradient(135deg, #26e1d5 0%, #0ac9ca 48%, #089ea9 100%);
  box-shadow:
    inset 7px 7px 16px rgba(255, 255, 255, 0.2),
    inset -10px -13px 20px rgba(0, 83, 139, 0.24),
    0 0 10px rgba(75, 244, 225, 0.18);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.nexo-cube__face::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.42);
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 9px;
  background-image: var(--nexo-social-logo, none);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0 0;
  transition: background-size 240ms ease;
  pointer-events: none;
}

html[data-nexo-social] .nexo-cube__face::after {
  background-size: 58% 58%;
}

.nexo-cube__face--front {
  transform: translateZ(74px);
}

.nexo-cube__face--back {
  transform: rotateY(180deg) translateZ(74px);
}

.nexo-cube__face--right {
  background-color: #08a9b4;
  transform: rotateY(90deg) translateZ(74px);
}

.nexo-cube__face--left {
  background-color: #23d8cd;
  transform: rotateY(-90deg) translateZ(74px);
}

.nexo-cube__face--top {
  background-color: #48eadb;
  transform: rotateX(90deg) translateZ(74px);
}

.nexo-cube__face--bottom {
  background-color: #078e9e;
  transform: rotateX(-90deg) translateZ(74px);
}

.nexo-cube__scan {
  border-color: rgba(82, 243, 189, 0.55);
  box-shadow: 0 0 26px rgba(82, 243, 189, 0.28);
}

.nexo-cube__status {
  color: var(--nexo-classic-mint);
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  text-shadow: 0 8px 20px rgba(0, 45, 130, 0.35);
  box-shadow: none;
}

.compact-finder {
  width: min(900px, 100%);
  margin-inline: auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.compact-finder__form {
  grid-template-columns: minmax(0, 1fr) 74px;
  gap: 0;
  min-height: 90px;
  padding: 11px 13px 11px 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 999px;
  box-shadow:
    0 24px 70px rgba(0, 35, 110, 0.28),
    inset 0 0 30px rgba(0, 41, 125, 0.05);
}

.compact-finder__field {
  min-height: 66px;
  padding-left: 8px;
  color: #7182a8;
  background: transparent;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
}

.compact-finder__field:focus-within {
  border-color: transparent;
  box-shadow: none;
}

.compact-finder__field > svg {
  width: 27px;
  height: 27px;
  flex: none;
}

.compact-finder__field input {
  height: 66px;
  padding: 0 10px;
  color: #12182a;
  font-size: clamp(16px, 2vw, 21px);
}

.compact-finder__field input::placeholder {
  color: #7182a8;
}

.compact-finder__paste {
  width: 44px;
  height: 44px;
  margin-right: 6px;
  color: #0877cf;
  background: #eef7ff;
  border-radius: 50%;
}

.compact-finder__submit {
  position: relative;
  align-self: center;
  justify-self: center;
  width: 62px;
  height: 62px;
  min-height: 62px;
  padding: 0;
  color: #ffffff;
  background: linear-gradient(180deg, #167aff, #0058db);
  border-radius: 50%;
  font-size: 0;
  box-shadow: 0 12px 24px rgba(0, 80, 210, 0.34);
}

.compact-finder__submit > svg {
  display: none;
}

.compact-finder__submit::before {
  content: "";
  display: block;
  width: 30px;
  height: 30px;
  margin: auto;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12'/%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3Cpath d='M5 21h14a2 2 0 0 0 2-2v-3'/%3E%3Cpath d='M3 16v3a2 2 0 0 0 2 2'/%3E%3C/svg%3E");
}

.compact-clipboard {
  width: fit-content;
  max-width: 100%;
  margin: 12px auto 0;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(0, 38, 118, 0.12);
}

.compact-clipboard button {
  color: #075ca9;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
}

.compact-analysis,
.compact-media {
  box-shadow: 0 18px 48px rgba(0, 40, 126, 0.22), inset 0 1px #ffffff;
}

@media (max-width: 760px) {
  .nexo-hero {
    min-height: calc(100vh - 62px);
  }

  .nexo-hero__content {
    width: calc(100% - 24px);
    padding: 14px 0 28px;
  }

  .nexo-cube {
    width: 230px;
    margin-bottom: 14px;
  }

  .nexo-cube__scene {
    width: 220px;
    height: 204px;
    margin-block: -10px;
    transform: scale(0.88);
  }

  .compact-finder__form {
    grid-template-columns: minmax(0, 1fr) 62px;
    min-height: 72px;
    padding: 7px 8px 7px 17px;
  }

  .compact-finder__field,
  .compact-finder__field input {
    min-height: 56px;
    height: 56px;
  }

  .compact-finder__field input {
    font-size: 15px;
  }

  .compact-finder__submit {
    width: 56px;
    height: 56px;
    min-height: 56px;
  }
}

@media (max-width: 520px) {
  .compact-finder__form {
    padding-left: 12px;
  }

  .compact-finder__field {
    gap: 5px;
    padding-left: 3px;
  }

  .compact-finder__field > svg {
    width: 22px;
    height: 22px;
  }

  .compact-finder__field input {
    padding-inline: 7px 3px;
    font-size: 13px;
  }

  .compact-finder__paste {
    display: none;
  }

  .compact-clipboard {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nexo-cube__face::after {
    transition: none;
  }
}
