/* =====================================================
   OMNIWISE TECH — hero.css
   ===================================================== */

.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-navy);
}

/* --- VIDEO LAYER ------------------------------------ */
.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#heroVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}

#heroVideo.loaded { opacity: 1; }

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,34,64,0.68) 0%,
    rgba(10,34,64,0.50) 50%,
    rgba(46,175,160,0.38) 100%
  );
  z-index: 1;
}

/* Mobile: hide video, use fallback bg */
@media (max-width: 767px) {
  .hero__video-wrap { display: none; }
  .hero {
    background: linear-gradient(
      135deg,
      rgba(10,34,64,0.92) 0%,
      rgba(46,175,160,0.65) 100%
    ),
    url('../images/hero-fallback.jpg') center/cover no-repeat;
  }
}

/* --- CONTENT LAYER ---------------------------------- */
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--padding-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero__text {
  max-width: 580px;
  flex-shrink: 0;
}

.hero__eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-teal);
  display: block;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.08;
  margin-bottom: 24px;
}

.hero__subhead {
  font-size: 17px;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero__badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero__badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.06);
}

/* --- DIAGRAM LAYER (desktop only) ------------------- */
.hero__diagram {
  flex: 0 0 380px;
  position: relative;
}

@media (max-width: 1023px) {
  .hero__diagram { display: none; }
}

.hero__diagram svg {
  width: 100%;
  height: auto;
}

/* Animated flow diagram keyframes */
@keyframes flowDash {
  from { stroke-dashoffset: 200; }
  to   { stroke-dashoffset: 0; }
}

@keyframes nodePulse {
  0%, 100% { r: 8; opacity: 1; }
  50%       { r: 10; opacity: 0.8; }
}

@keyframes fadeInStep {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

.flow-line {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: flowDash 1s ease forwards;
}

.flow-line--1 { animation-delay: 0.2s; }
.flow-line--2 { animation-delay: 0.8s; }
.flow-line--3 { animation-delay: 1.4s; }
.flow-line--4 { animation-delay: 2.0s; }

.flow-node {
  animation: nodePulse 2.5s ease-in-out infinite;
}
.flow-node--1 { animation-delay: 0.0s; }
.flow-node--2 { animation-delay: 0.5s; }
.flow-node--3 { animation-delay: 1.0s; }
.flow-node--4 { animation-delay: 1.5s; }
.flow-node--5 { animation-delay: 2.0s; }

.flow-label {
  animation: fadeInStep 0.4s ease forwards;
  opacity: 0;
}
.flow-label--1 { animation-delay: 0.4s; }
.flow-label--2 { animation-delay: 1.0s; }
.flow-label--3 { animation-delay: 1.6s; }
.flow-label--4 { animation-delay: 2.2s; }
.flow-label--5 { animation-delay: 2.8s; }

/* --- VIDEO CONTROLS --------------------------------- */
.hero__controls {
  position: absolute;
  bottom: 80px;
  right: var(--padding-x);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-ctrl {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.hero-ctrl:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.6);
}

.hero-ctrl svg { width: 16px; height: 16px; }

@media (max-width: 767px) {
  .hero__controls { display: none; }
}

/* --- SCROLL CHEVRON --------------------------------- */
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}

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

.hero__scroll svg {
  width: 20px;
  height: 20px;
  color: rgba(255,255,255,0.5);
}
