/* Hero carousel -- structural pattern from netsuite.com's homepage carousel
   (6 slides, dot nav, prev/next arrows), built in our own brand colors and
   with our own real content. DESIGN-REFERENCE.md's hero rules still apply:
   display heading at weight 300, full-bleed dark band. */

.hero-carousel {
  position: relative;
  overflow: hidden;
  /* Depth without a custom illustration asset: a fine dot grid for texture,
     a soft teal glow (echoes the accent color), and a diagonal gradient
     instead of one flat navy fill. */
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 88% 12%, rgba(34, 211, 238, 0.12), transparent 45%),
    linear-gradient(160deg, #0F172A 0%, #16213A 55%, #0F172A 100%);
  background-size: 28px 28px, auto, auto;
}

.hero-carousel__track {
  position: relative;
}

.hero-carousel__slide {
  display: none;
  /* Generous bottom padding so the dashboard image sits fully inside the
     dark band with clean breathing room before the section ends -- no
     overlap into whatever section follows. */
  padding: 88px 0 72px;
}

.hero-carousel__slide.is-active {
  display: block;
  animation: hero-fade 0.5s ease;
}

@keyframes hero-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel__slide.is-active {
    animation: none;
  }
}

/* Text-first, stacked layout: eyebrow/headline/lede/CTA first, the product
   image sits below and overlaps the bottom edge of the dark band -- same
   grammar as netsuite.com's own hero (text above, screenshot bridging into
   the section below), not the old side-by-side split. */
.hero-carousel__inner {
  display: block;
  text-align: center;
}

.hero-carousel__text {
  color: #FFFFFF;
  max-width: 720px;
  margin: 0 auto;
}

.hero-carousel__text .hero__eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-eyebrow-size);
  font-weight: var(--text-eyebrow-weight);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  margin: 0 0 16px;
}

.hero-carousel__text .hero__heading {
  font-family: var(--font-sans);
  font-size: 48px;
  font-weight: 300;
  line-height: 1.15;
  margin: 0 0 20px;
}

.hero-carousel__text .hero__lede {
  font-size: 18px;
  line-height: 1.5;
  color: #CBD5E1;
  margin: 0 0 32px;
}

.hero-carousel__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.placeholder-box--dark {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  color: #94A3B8;
  aspect-ratio: 4 / 3;
}

/* ---- the dashboard image: below the text, fully contained within the
   dark band (never behind the text -- it simply follows it in normal
   flow, and never crosses the section's own bottom edge). ---- */

.hero-carousel__visual {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.hero-carousel__visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  /* Depth via shadow, not a border -- reads as a floating panel, matching
     the "premium, modern, enterprise" brief. */
  box-shadow:
    0 30px 60px -12px rgba(15, 23, 42, 0.45),
    0 12px 28px rgba(15, 23, 42, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* ---- arrows ---- */

.hero-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.hero-carousel__arrow:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero-carousel__arrow--prev {
  left: 24px;
}

.hero-carousel__arrow--next {
  right: 24px;
}

/* ---- dots ---- */

.hero-carousel__dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  z-index: 2;
}

/* The button itself is a full 24x24 touch target (WCAG 2.2 target-size);
   the visible dot is a smaller ::before centered inside it, so the design
   doesn't change even though the clickable area is much bigger. */
.hero-carousel__dot {
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-carousel__dot::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: background-color 0.15s ease;
}

.hero-carousel__dot:hover::before {
  background: rgba(255, 255, 255, 0.6);
}

.hero-carousel__dot.is-active::before {
  background: var(--accent-primary);
}

@media (max-width: 899px) {
  .hero-carousel__arrow {
    display: none;
  }
}

@media (max-width: 599px) {
  .hero-carousel__slide {
    padding: 48px 0 40px;
  }

  .hero-carousel__text .hero__heading {
    font-size: 30px;
  }

  .hero-carousel__actions {
    margin-bottom: 40px;
  }

  .hero-carousel__visual img {
    border-radius: 8px;
  }
}
