.hero {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding-top: 130px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 50px;
}

.hero h1 {
  margin-bottom: 20px;
  font-size: clamp(3.4rem, 8vw, 6.6rem);
}

.hero .lead {
  max-width: 520px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.15rem;
}

.secondary-lead {
  margin-top: -12px;
}

.typed {
  border-right: 3px solid var(--cyan);
  color: var(--cyan);
  animation: blink 0.8s infinite;
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.mock {
  position: relative;
  perspective: 1200px;
  transition: transform 0.4s ease-out;
}

.window {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(
    160deg,
    rgba(10, 30, 70, 0.85),
    rgba(4, 14, 36, 0.95)
  );
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(24, 224, 240, 0.18);
  animation: floatDashboard 6s ease-in-out infinite;
}

@keyframes floatDashboard {
  50% {
    transform: translateY(-16px);
  }
}

.dots {
  display: flex;
  gap: 7px;
  margin-bottom: 14px;
}

.dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}

.dots i:nth-child(2) {
  background: #febc2e;
}

.dots i:nth-child(3) {
  background: #28c840;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.kpi {
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.kpi small {
  color: var(--muted);
  font-size: 0.65rem;
}

.kpi b {
  display: block;
  color: white;
  font-size: 1.15rem;
}

.kpi em {
  color: var(--cyan);
  font-size: 0.65rem;
  font-style: normal;
}

.chart {
  margin-bottom: 12px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 100px;
}

.bars span {
  flex: 1;
  height: 0;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(to top, var(--blue), var(--cyan));
  transition: height 1.4s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.in-view .bars span {
  height: var(--h);
}

.line-svg {
  width: 100%;
  height: 70px;
}

.line-svg path {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 3;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  filter: drop-shadow(0 0 6px var(--cyan));
}

.in-view .line-svg path {
  animation: drawLine 2.4s 0.4s forwards;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

.chip {
  position: absolute;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(7, 21, 51, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 0.8rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
  animation: floatChip 5s ease-in-out infinite;
}

.chip b {
  color: var(--cyan);
}

.chip.c1 {
  top: -18px;
  left: -30px;
}

.chip.c2 {
  right: -24px;
  bottom: 40px;
  animation-delay: -2.5s;
}

.chip.c3 {
  bottom: -22px;
  left: 30px;
  animation-delay: -4s;
}

@keyframes floatChip {
  50% {
    transform: translateY(-12px);
  }
}

.scroll-ind {
  position: absolute;
  bottom: 26px;
  left: 50%;
  width: 26px;
  height: 42px;
  border: 2px solid var(--cyan);
  border-radius: 20px;
  transform: translateX(-50%);
}

.scroll-ind::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: var(--cyan);
  transform: translateX(-50%);
  animation: scrollWheel 1.6s infinite;
}

@keyframes scrollWheel {
  to {
    opacity: 0;
    transform: translate(-50%, 14px);
  }
}

@media (max-width: 960px) {
  .hero-container {
    grid-template-columns: 1fr;
  }

  .mock {
    margin-top: 30px;
  }

  .chip.c1 {
    left: -6px;
  }

  .chip.c2 {
    right: -6px;
  }
}

@media (max-width: 600px) {
  .hero-btns {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-btns .btn {
    width: 100%;
  }
}