/* Hero Section */
.hero-section {
  text-align: center;
  padding: 96px 20px 54px;
  position: relative;
  z-index: 1;
}

.full-width-section.hero-section-wrapper {
  position: relative;
  overflow: visible;
  background: #fff;
}

.space-balls {
  position: absolute;
  inset: 0;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: visible;
}

.space-balls .ball {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
  mix-blend-mode: normal;
  will-change: transform, opacity;
  pointer-events: none;
}

.ball-yellow { background: #f6c84c63; width: 100px; height: 100px; left: 6%; top: 56%; border: 1px solid #11111187; }
.ball-green { background: #2eb67d70; width: 90px; height: 90px; right: 10%; top: 16%; border: 1px solid #11111187; }
.ball-red { background: #eb575766; width: 110px; height: 110px; left: 45%; top: 38%; border: 1px solid #11111187; }

.ball-yellow { animation: wander-yellow 56s linear infinite; animation-delay: -8s; }
.ball-green { animation: wander-green 44s linear infinite; animation-delay: -16s; }
.ball-red { animation: wander-red 68s linear infinite; animation-delay: -24s; }

@keyframes wander-yellow {
  0% { transform: translate3d(0,0,0) scale(1); }
  15% { transform: translate3d(18vw, -14vh, 0) scale(0.97); }
  35% { transform: translate3d(-28vw, 8vh, 0) scale(1.02); }
  55% { transform: translate3d(22vw, 18vh, 0) scale(0.99); }
  75% { transform: translate3d(-12vw, -22vh, 0) scale(1.01); }
  100% { transform: translate3d(0,0,0) scale(1); }
}

@keyframes wander-green {
  0% { transform: translate3d(0,0,0) scale(1); }
  12% { transform: translate3d(-20vw, 20vh, 0) scale(1.01); }
  30% { transform: translate3d(30vw, -12vh, 0) scale(0.98); }
  52% { transform: translate3d(-10vw, -6vh, 0) scale(1.03); }
  78% { transform: translate3d(14vw, 10vh, 0) scale(0.995); }
  100% { transform: translate3d(0,0,0) scale(1); }
}

@keyframes wander-red {
  0% { transform: translate3d(0,0,0) scale(1); }
  10% { transform: translate3d(24vw, 6vh, 0) scale(0.98); }
  34% { transform: translate3d(-34vw, -10vh, 0) scale(1.03); }
  56% { transform: translate3d(12vw, 22vh, 0) scale(1); }
  82% { transform: translate3d(-18vw, -14vh, 0) scale(0.99); }
  100% { transform: translate3d(0,0,0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .space-balls .ball { animation: none; }
}

.hero-section h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  color: var(--ink);
  font-size: clamp(2.7rem, 4.8vw, 4.35rem);
  line-height: 1.03;
  max-width: 890px;
  margin: 30px auto 24px;
  letter-spacing: -0.055em;
}

.hero-section h1 span {
  position: relative;
  display: inline-block;
  color: var(--ink);
  font-style: normal;
  white-space: nowrap;
  z-index: 0;
}

.hero-section h1 span::before {
  content: "";
  position: absolute;
  inset: 0.52em -0.05em 0.08em;
  border-radius: 0;
  background: #f3c94d45;
  transform: rotate(-1.4deg);
  z-index: -1;
}

.hero-section p {
  font-size: 1.08rem;
  margin-bottom: 34px;
  color: var(--muted-ink);
  line-height: 1.8;
  margin-left: auto;
  margin-right: auto;
  max-width: 720px;
}

.dashboard-stage-section {
  padding: 0 0 88px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.dashboard-stage {
  position: relative;
  padding: clamp(56px, 7vw, 96px) clamp(24px, 7vw, 96px) clamp(44px, 6vw, 80px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-top: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(21, 38, 61, 0.08), transparent 24%),
    radial-gradient(circle at 86% 14%, rgba(21, 38, 61, 0.11), transparent 24%),
    linear-gradient(180deg, #f7f7f6 0%, #ecefec 100%);
}

.dashboard-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(21, 38, 61, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 38, 61, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
}

.dashboard-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 42%, rgba(255, 255, 255, 0.88) 86%, #fff 100%);
}

.dashboard-image-container {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.dashboard-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: 0 26px 80px rgba(21, 38, 61, 0.16);
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .hero-section p {
    font-size: 1.2em;
  }
}

@media (max-width: 992px) {
  .hero-section {
    padding: 88px 0 48px;
  }

  .hero-section p {
    font-size: 1.1em;
  }

  .hero-section h1 span::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 76px 0 42px;
  }

  .hero-section p {
    font-size: 1em;
  }

  .hero-section h1 {
    max-width: 680px;
  }

  .hero-section h1 span {
    white-space: normal;
  }

  .dashboard-stage-section {
    padding-bottom: 56px;
  }

  .dashboard-stage {
    margin: 0 -12px;
    padding: 48px 16px 36px;
  }

  .ball-yellow { width: 72px; height: 72px; left: 4%; top: 12%; }
  .ball-green { width: 64px; height: 64px; right: 6%; top: 16%; }
  .ball-red { width: 82px; height: 82px; left: 45%; top: 54%; }
}

@media (max-width: 680px) {
  .hero-section h1 {
    max-width: 520px;
    font-size: clamp(2.25rem, 10vw, 3.1rem);
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 58px 0 38px;
  }

  .hero-section h1 {
    max-width: 420px;
    font-size: clamp(2.05rem, 10.8vw, 2.75rem);
  }

  .hero-section p {
    font-size: 0.9em;
    margin-bottom: 32px;
  }
}
