:root {
  /* Color -------------------------------------------------------------- */
  --hero-ink:          #16241f;
  --hero-surface:      #f5f7f5;
  --hero-surface-alt:  #eaf0ec;
  --hero-forest:       #0e5c46;
  --hero-forest-deep:  #082f24;
  --hero-gold:         #c9932e;
  --hero-gold-light:   #e8c374;
  --hero-muted:        #5b6b66;
  --hero-border:       rgba(255, 255, 255, 0.2);

  /* Radius --------------------------------------------------------------- */
  --hero-radius-sm:   8px;
  --hero-radius-md:   16px;
  --hero-radius-lg:   26px;
  --hero-radius-pill: 999px;

  /* Shadow ----------------------------------------------------------------*/
  --hero-shadow-sm: 0 2px 10px rgba(8, 24, 19, 0.14);
  --hero-shadow-md: 0 14px 34px rgba(8, 24, 19, 0.22);
  --hero-shadow-lg: 0 28px 64px rgba(8, 24, 19, 0.32);

  /* Spacing ---------------------------------------------------------------*/
  --hero-space-1: 0.25rem;
  --hero-space-2: 0.5rem;
  --hero-space-3: 0.75rem;
  --hero-space-4: 1rem;
  --hero-space-6: 1.5rem;
  --hero-space-8: 2rem;
  --hero-space-12: 3rem;

  /* Type --------------------------------------------------------------- */
  --hero-font-display: Georgia, 'Times New Roman', Times, serif;
  --hero-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Motion ------------------------------------------------------------- */
  --hero-transition-fast: 0.2s ease;
  --hero-transition-base: 0.4s ease;
  --hero-autoplay-duration: 6s;
}

/* Scoped reset — kept inside .hero so this file never leaks
   into the rest of the page it's dropped into. --------------------------- */
.enterprise-hero,
.enterprise-hero *,
.enterprise-hero *::before,
.enterprise-hero *::after {
  box-sizing: border-box;
}

.enterprise-hero {
  position: relative;
  font-family: var(--hero-font-sans);
  color: var(--hero-ink);
  isolation: isolate;
}

.enterprise-hero:focus {
  outline: none;
}

.enterprise-hero:focus-visible {
  outline: 3px solid var(--hero-gold);
  outline-offset: -3px;
}

.hero-wrapper {
  position: relative;
  overflow: hidden;
  background: var(--hero-forest-deep);
  min-height: 640px;
  min-height: min(88vh, 860px);
  min-height: min(88svh, 860px);
}

.hero-slides {
  position: relative;
  height: 640px;
  height: min(88vh, 860px);
  height: min(88svh, 860px);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--hero-transition-base);
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.hero-slide {
    background: #eef4f9;
}

.hero-background {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            120deg,
            #f8fafc,
            #e6eef8
        );
}

.hero-background img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    100deg,
    rgba(8, 24, 19, 0.92) 0%,
    rgba(8, 24, 19, 0.74) 40%,
    rgba(8, 24, 19, 0.38) 70%,
    rgba(8, 24, 19, 0.14) 100%
  );
}

.hero-container {
  position: relative;
  z-index: 3;
  height: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3.5rem);
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3rem);
  width: 100%;
  padding-block: clamp(2.5rem, 8vh, 5rem);
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
  }
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-slide.active .hero-badge   { animation: hero-rise 0.7s ease both; animation-delay: 0.10s; }
.hero-slide.active .hero-left h1 { animation: hero-rise 0.7s ease both; animation-delay: 0.22s; }
.hero-slide.active .hero-left p  { animation: hero-rise 0.7s ease both; animation-delay: 0.34s; }
.hero-slide.active .hero-buttons { animation: hero-rise 0.7s ease both; animation-delay: 0.46s; }
.hero-slide.active .hero-stats   { animation: hero-rise 0.7s ease both; animation-delay: 0.58s; }
.hero-slide.active .hero-right   { animation: hero-rise 0.8s ease both; animation-delay: 0.50s; }


.hero-left {
  color: #fff;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--hero-space-2);
  padding: var(--hero-space-2) var(--hero-space-4);
  border-radius: var(--hero-radius-pill);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--hero-border);
  backdrop-filter: blur(8px);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--hero-gold-light);
  margin-bottom: var(--hero-space-4);
}

.hero-left h1 {
  font-family: var(--hero-font-display);
  font-size: clamp(2.1rem, 1.35rem + 3.2vw, 3.85rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 var(--hero-space-4);
}

.hero-left p {
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.15rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
  max-width: 58ch;
  margin: 0 0 var(--hero-space-6);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hero-space-3);
  margin-bottom: var(--hero-space-8);
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--hero-space-2);
  padding: 0.9rem 1.7rem;
  border-radius: var(--hero-radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform var(--hero-transition-fast), box-shadow var(--hero-transition-fast), background-color var(--hero-transition-fast);
  white-space: nowrap;
}

.hero-btn.primary {
  background: var(--hero-gold);
  color: var(--hero-forest-deep);
  box-shadow: var(--hero-shadow-md);
}

.hero-btn.primary:hover {
  background: var(--hero-gold-light);
  transform: translateY(-2px);
}

.hero-btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
}

.hero-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.hero-btn:focus-visible {
  outline: 3px solid var(--hero-gold-light);
  outline-offset: 2px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: var(--hero-space-6) var(--hero-space-8);
}

@media (min-width: 576px) {
  .hero-stats {
    grid-template-columns: repeat(4, auto);
  }
}

.hero-stat h3 {
  font-family: var(--hero-font-sans);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  font-weight: 800;
  color: var(--hero-gold-light);
  margin: 0;
}

.hero-stat span {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 3px;
}

.hero-right {
  display: flex;
  justify-content: center;
}

.hero-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: rgba(20, 40, 34, 0.55);
  border: 1px solid var(--hero-gold);
  outline: 1px solid rgba(201, 147, 46, 0.38);
  outline-offset: 6px;
  border-radius: var(--hero-radius-lg);
  backdrop-filter: blur(16px);
  box-shadow: var(--hero-shadow-lg);
  padding: var(--hero-space-6);
  color: #fff;
}

.hero-card::before,
.hero-card::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid var(--hero-gold-light);
  opacity: 0.9;
}

.hero-card::before {
  top: -9px;
  left: -9px;
  border-right: none;
  border-bottom: none;
}

.hero-card::after {
  bottom: -9px;
  right: -9px;
  border-left: none;
  border-top: none;
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: var(--hero-space-3);
  padding-bottom: var(--hero-space-4);
  margin-bottom: var(--hero-space-4);
  border-bottom: 1px solid var(--hero-border);
}

.hero-card-header .icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--hero-gold);
  color: var(--hero-forest-deep);
  border-radius: var(--hero-radius-md);
  font-size: 1.1rem;
}

.hero-card-header h3 {
  font-family: var(--hero-font-display);
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.hero-card-header p {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero-features {
  display: grid;
  gap: var(--hero-space-2);
  margin-bottom: var(--hero-space-4);
}

.feature {
  display: flex;
  align-items: center;
  gap: var(--hero-space-2);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.9);
}

.feature i {
  color: var(--hero-gold-light);
}

.hero-card-footer {
  padding-top: var(--hero-space-4);
  border-top: 1px solid var(--hero-border);
}

.rank-one-empty {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin: 0;
}

.rank-one-card {
  display: flex;
  flex-direction: column;
  gap: var(--hero-space-3);
}

.rank-one-header {
  display: flex;
  align-items: center;
  gap: var(--hero-space-3);
}

.rank-one-photo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--hero-forest);
  display: grid;
  place-items: center;
  border: 2px solid var(--hero-gold);
  font-size: 1.3rem;
}

.rank-one-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hero-forest-deep);
  background: linear-gradient(135deg, var(--hero-gold-light), var(--hero-gold));
  padding: 3px 10px 3px 7px;
  border-radius: var(--hero-radius-pill);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 2px 6px rgba(0, 0, 0, 0.25);
  margin-bottom: 4px;
}

.rank-one-info h3 {
  font-family: var(--hero-font-display);
  margin: 0;
  font-size: 1rem;
}

.rank-one-info p {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
}

.rank-performance {
  text-align: center;
  padding: var(--hero-space-3);
  background: rgba(255, 255, 255, 0.07);
  border-radius: var(--hero-radius-md);
}

.performance-score strong {
  display: block;
  font-variant-numeric: tabular-nums;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
}

.performance-score span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.rank-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--hero-space-2);
}

.rank-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  font-size: 0.7rem;
}

.rank-item i {
  color: var(--hero-gold-light);
}

.rank-item strong {
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
}


.hero-controls {
  position: absolute;
  inset-inline: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 var(--hero-space-4);
  z-index: 4;
  pointer-events: none;
}

.hero-arrow {
  pointer-events: auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--hero-border);
  background: rgba(20, 40, 34, 0.45);
  backdrop-filter: blur(8px);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--hero-transition-fast), transform var(--hero-transition-fast);
}

@media (min-width: 768px) {
  .hero-arrow {
    display: flex;
  }

}


.hero-arrow:hover {
  background: rgba(20, 40, 34, 0.75);
  transform: scale(1.06);
}

.hero-arrow:focus-visible {
  outline: 3px solid var(--hero-gold-light);
  outline-offset: 2px;
}

.hero-play-pause {
  position: absolute;
  right: var(--hero-space-4);
  bottom: var(--hero-space-6);
  z-index: 4;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--hero-border);
  background: rgba(20, 40, 34, 0.45);
  backdrop-filter: blur(8px);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color var(--hero-transition-fast);
}

.hero-play-pause:hover {
  background: rgba(20, 40, 34, 0.75);
}

.hero-play-pause:focus-visible {
  outline: 3px solid var(--hero-gold-light);
  outline-offset: 2px;
}

.hero-progress-container {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 4;
  overflow: hidden;
}

.hero-progress-line {
  height: 100%;
  width: 100%;
  background: var(--hero-gold);
  transform-origin: left center;
  transform: scaleX(0);
  animation: hero-progress-fill var(--hero-autoplay-duration) linear forwards;
}

.hero-progress-line.is-paused {
  animation-play-state: paused;
}

.hero-progress-line.is-resetting {
  animation: none;
  transform: scaleX(0);
}

@keyframes hero-progress-fill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.hero-indicators {
  position: absolute;
  left: 50%;
  bottom: var(--hero-space-6);
  transform: translateX(-50%);
  display: flex;
  gap: var(--hero-space-2);
  z-index: 4;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background-color var(--hero-transition-fast), transform var(--hero-transition-fast);
  padding: 0;
}

.hero-dot.active {
  background: var(--hero-gold);
  transform: scale(1.3);
}

.hero-dot:focus-visible {
  outline: 2px solid var(--hero-gold-light);
  outline-offset: 3px;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: var(--hero-space-2);
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 4;
  animation: hero-bounce 2.4s ease-in-out infinite;
}

@media (min-width: 768px) {
  .hero-scroll {
    display: flex;
  }
}

@keyframes hero-bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 6px); }
}

.hero-quick-access {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(0, 0, 0, 0.06);
}

@media (min-width: 768px) {
  .hero-quick-access {
    grid-template-columns: repeat(4, 1fr);
  }
}

.quick-item {
  display: flex;
  align-items: center;
  gap: var(--hero-space-3);
  padding: var(--hero-space-6) var(--hero-space-4);
  background: var(--hero-surface);
  color: var(--hero-ink);
  text-decoration: none;
  transition: background-color var(--hero-transition-fast);
}

.quick-item:hover {
  background: var(--hero-surface-alt);
}

.quick-item:focus-visible {
  outline: 3px solid var(--hero-forest);
  outline-offset: -3px;
}

.quick-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: var(--hero-radius-md);
  background: #0065bd;
  color: #fff;
  font-size: 1.1rem;
}

.quick-text strong {
  display: block;
  font-size: 0.92rem;
}

.quick-text span {
  font-size: 0.78rem;
  color: var(--hero-muted);
}


.hero-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 24, 19, 0.6);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--hero-transition-base);
  z-index: 40;
}

.hero-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}


@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-btn,
  .hero-arrow,
  .hero-dot,
  .quick-item {
    transition: none !important;
  }

  .hero-slide.active .hero-badge,
  .hero-slide.active .hero-left h1,
  .hero-slide.active .hero-left p,
  .hero-slide.active .hero-buttons,
  .hero-slide.active .hero-stats,
  .hero-slide.active .hero-right,
  .hero-progress-line,
  .hero-scroll {
    animation: none !important;
  }
}

@media print {
  .enterprise-hero {
    display: none;
  }
}

@media (max-width: 767px) {
  .hero-arrow {
    display: flex;
  }

  .hero-stats,.hero-buttons,
  .hero-features ,.hero-left p {
    display: none;
  }
}