/* Hero showcase v2 — home WNEXO (tema claro, split layout) */

.hero-showcase {
  position: relative;
  min-height: min(82vh, 840px);
  display: flex;
  align-items: center;
  color: var(--ink, #121212);
  overflow: hidden;
  background: transparent;
}

.hero-showcase-inner {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-h) + 48px) 28px 64px;
  width: 100%;
}

.hero-showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: end;
}

.hero-showcase-copy {
  max-width: 640px;
  position: relative;
  z-index: 2;
}

.hero-showcase-figure {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
  background: transparent;
}

.hero-showcase-figure img {
  width: min(100%, 520px);
  max-height: min(80vh, 760px);
  height: auto;
  object-fit: contain;
  object-position: bottom center;
  background: transparent;
  animation: wnxHeroFloat 7s ease-in-out infinite;
}

@keyframes wnxHeroFloat {

  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -10px, 0);
  }
}

@media (min-width: 960px) {
  .hero-showcase-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(440px, 0.95fr);
    gap: 24px 32px;
    align-items: center;
  }

  .hero-showcase-figure {
    justify-content: flex-end;
    min-height: min(80vh, 760px);
  }

  .hero-showcase-figure img {
    width: min(100%, 580px);
    max-height: min(88vh, 840px);
  }
}

.hero-showcase-copy h1 em {
  font-style: normal;
  color: var(--blue, #2B6CB0);
}

.hero-showcase-kicker {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--blue) 14%, transparent);
  color: var(--blue, #2B6CB0);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-showcase-copy h1 {
  color: var(--ink, #121212);
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.hero-showcase-copy .hero-sub {
  margin-top: 18px;
  font-size: clamp(1rem, 1.6vw, 1.1875rem);
  line-height: 1.5;
  color: var(--text, #424245);
  max-width: 32em;
}

.hero-showcase-copy .btn-primary {
  background: var(--ink, #121212);
  color: #fff;
  border: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.hero-showcase-copy .btn-primary:hover {
  background: #333336;
  transform: translateY(-1px);
}

/* Seção animação do sistema (abaixo do hero) */
.system-showcase {
  position: relative;

  overflow: hidden;
  padding-bottom: 56px;
}

.system-showcase-ticker {
  border-bottom: 1px solid rgba(43, 108, 176, 0.08);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.system-showcase-body {
  padding: 48px 28px 0;
}

.system-showcase-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}

.system-showcase-intro .kicker {
  color: var(--blue, #2B6CB0);
}

.system-showcase-intro h2 {
  color: var(--ink, #121212);
  margin-top: 8px;
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
}

.system-showcase-intro p {
  margin-top: 12px;
  color: var(--muted, #6e6e73);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.system-showcase .hero-showcase-stage {
  max-width: 740px;
  margin: 0 auto;
  min-height: 320px;
}

.system-showcase .hero-showcase-orbit--a {
  width: 210px;
  height: 210px;
  top: -28px;
  right: -14px;
}

.system-showcase .hero-showcase-orbit--b {
  width: 150px;
  height: 150px;
  bottom: 14px;
  left: -22px;
}

.system-showcase .hero-showcase-float {
  padding: 8px 12px;
  font-size: 0.6875rem;
  max-width: 180px;
}

.system-showcase .hero-showcase-float--pill {
  max-width: 168px;
}

.system-showcase .hero-showcase-float--pill i {
  font-size: 1rem;
}

/* Stage / device */
.hero-showcase-stage {
  position: relative;
  min-height: 420px;
  perspective: 1200px;
}

.hero-showcase-orbit {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  pointer-events: none;
}

.hero-showcase-orbit--a {
  width: 280px;
  height: 280px;
  top: -40px;
  right: -20px;
  background: rgba(43, 108, 176, 0.12);
  animation: wnxOrbitA 8s ease-in-out infinite;
}

.hero-showcase-orbit--b {
  width: 200px;
  height: 200px;
  bottom: 20px;
  left: -30px;
  background: rgba(16, 185, 129, 0.1);
  animation: wnxOrbitB 10s ease-in-out infinite;
}

@keyframes wnxOrbitA {

  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(-12px, 16px, 0);
  }
}

@keyframes wnxOrbitB {

  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(14px, -10px, 0);
  }
}

.hero-showcase-device {
  position: relative;
  z-index: 2;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(43, 108, 176, 0.1);
  box-shadow:
    0 24px 64px rgba(43, 108, 176, 0.1),
    0 8px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  transform: rotateY(-6deg) rotateX(4deg);
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  animation: wnxDeviceFloat 6s ease-in-out infinite;
}

.hero-showcase-stage:hover .hero-showcase-device {
  transform: rotateY(-2deg) rotateX(2deg) translateY(-4px);
}

@keyframes wnxDeviceFloat {

  0%,
  100% {
    transform: rotateY(-6deg) rotateX(4deg) translateY(0);
  }

  50% {
    transform: rotateY(-4deg) rotateX(3deg) translateY(-8px);
  }
}

.hero-showcase-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #f8fafc;
  border-bottom: 1px solid rgba(43, 108, 176, 0.08);
}

.hero-showcase-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.hero-showcase-dot:nth-child(1) {
  background: #ff5f57;
}

.hero-showcase-dot:nth-child(2) {
  background: #febc2e;
}

.hero-showcase-dot:nth-child(3) {
  background: #28c840;
}

.hero-showcase-tabs {
  display: flex;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hero-showcase-tabs button {
  border: none;
  background: transparent;
  color: var(--muted, #6e6e73);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: inherit;
}

.hero-showcase-tabs button.is-active,
.hero-showcase-tabs button:hover {
  background: rgba(43, 108, 176, 0.08);
  color: var(--blue, #2B6CB0);
}

.hero-showcase-screen {
  position: relative;
  aspect-ratio: 16 / 11;
  background: #f8fafc;
  overflow: hidden;
}

.hero-showcase-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-showcase-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: translate3d(6%, 0, 0) scale(0.98);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  overflow: hidden;
}

.hero-showcase-slide.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  pointer-events: auto;
  z-index: 1;
}

.hero-showcase-slide.is-exiting {
  opacity: 0;
  transform: translate3d(-5%, 0, 0) scale(0.985);
}

.hero-showcase-slide img,
.hero-showcase-shot {
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center top;
  display: block;
  background: #f8fafc;
  -webkit-mask-image: none;
  mask-image: none;
}

.hero-showcase-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(43, 108, 176, 0.08);
  z-index: 5;
}

.hero-showcase-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 18px 14px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.72) 55%, transparent 100%);
  pointer-events: none;
}

.hero-showcase-caption__label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink, #121212);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.hero-showcase-caption__hint {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted, #6e6e73);
  text-align: right;
  line-height: 1.4;
}

.hero-showcase-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #2b6cb0, #38bdf8);
  transition: width 0.1s linear;
}

/* Floating cards */
.hero-showcase-float {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(43, 108, 176, 0.1);
  box-shadow: 0 12px 32px rgba(43, 108, 176, 0.1);
  backdrop-filter: blur(12px);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink, #121212);
  max-width: 220px;
}

.hero-showcase-float--pill {
  max-width: 200px;
}

.hero-showcase-float--pill i {
  font-size: 1.125rem;
  color: var(--blue, #2B6CB0);
  flex-shrink: 0;
}

.hero-showcase-float--1 {
  top: 8%;
  left: -4%;
  animation: wnxFloat1 7s ease-in-out infinite;
}

.hero-showcase-float--2 {
  bottom: 6%;
  right: -2%;
  animation: wnxFloat2 8s ease-in-out infinite;
}

@keyframes wnxFloat1 {

  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -10px, 0);
  }
}

@keyframes wnxFloat2 {

  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, 8px, 0);
  }
}

/* Ticker (TradingView-style) */
.hero-showcase-ticker-track {
  display: flex;
  gap: 40px;
  width: max-content;
  padding: 12px 0;
  animation: wnxTicker 38s linear infinite;
}

.hero-showcase-ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text, #424245);
  white-space: nowrap;
}

.hero-showcase-ticker-track span::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue, #2B6CB0);
  box-shadow: 0 0 8px rgba(43, 108, 176, 0.35);
}

@keyframes wnxTicker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 959px) {
  .hero-showcase {
    min-height: auto;
  }

  .hero-showcase-figure {
    order: -1;
    max-height: 340px;
    overflow: hidden;
    align-items: center;
  }

  .hero-showcase-figure img {
    max-height: 340px;
    animation: none;
  }
}

@media (max-width: 960px) {
  .hero-showcase {
    min-height: min(68vh, 640px);
  }

  .hero-showcase-copy h1 {
    max-width: none;
  }

  .system-showcase .hero-showcase-stage {
    min-height: 260px;
  }

  .hero-showcase-device {
    transform: none;
    animation: none;
  }

  .hero-showcase-float {
    display: none;
  }

  .hero-showcase-caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 20px 14px 12px;
  }

  .hero-showcase-caption__hint {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {

  .hero-showcase-figure img,
  .hero-showcase-person,
  .hero-showcase-device,
  .hero-showcase-orbit--a,
  .hero-showcase-orbit--b,
  .hero-showcase-float--1,
  .hero-showcase-float--2,
  .hero-showcase-ticker-track {
    animation: none !important;
  }

  .hero-showcase-slide {
    transition: opacity 0.2s ease;
  }
}