/* ============================================
   Home Page
   Hero, Intro, Services Preview, Stats, CTA
   ============================================ */

/* ===== VIDEO SHOWCASE ===== */
.video-showcase {
  position: relative;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-showcase__player {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background: #000;
}

.video-showcase__mute {
  position: absolute;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(20, 37, 56, 0.65);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 3;
}

.video-showcase__mute:hover {
  background: rgba(20, 37, 56, 0.9);
  transform: scale(1.05);
}

.video-showcase__mute .icon-unmuted { display: none; }
.video-showcase__mute.is-unmuted .icon-muted { display: none; }
.video-showcase__mute.is-unmuted .icon-unmuted { display: inline; }

@media (max-width: 768px) {
  .video-showcase {
    height: 100vh;
  }
  .video-showcase__mute {
    bottom: var(--space-4);
    right: var(--space-4);
    width: 40px;
    height: 40px;
  }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--industrial-blue-dark);
  color: var(--white);
  padding-top: var(--nav-height);
}

/* Background image + gradient overlay */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45) contrast(1.05);
  animation: slowZoom 24s ease-out forwards;
}

@keyframes slowZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(20, 37, 56, 0.92) 0%,
    rgba(20, 37, 56, 0.7) 50%,
    rgba(20, 37, 56, 0.5) 100%
  );
}

/* Diagonal grid overlay pattern */
.hero__pattern {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(135deg, black 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(135deg, black 0%, transparent 70%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-16) var(--space-6);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.hero__content {
  max-width: 720px;
}

.hero__tagline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-orange);
  margin-bottom: var(--space-6);
  opacity: 0;
  animation: fadeInUp 800ms var(--ease-out) 200ms forwards;
}

.hero__tagline::before {
  content: '';
  width: 48px;
  height: 2px;
  background: var(--accent-orange);
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--white);
  font-weight: 800;
  margin-bottom: var(--space-6);
  opacity: 0;
  animation: fadeInUp 900ms var(--ease-out) 350ms forwards;
}

.hero__title em {
  font-style: normal;
  color: var(--accent-orange);
  position: relative;
}

.hero__title em::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 6px;
  background: var(--accent-orange);
  opacity: 0.25;
  z-index: -1;
}

.hero__desc {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  max-width: 580px;
  margin-bottom: var(--space-8);
  opacity: 0;
  animation: fadeInUp 900ms var(--ease-out) 500ms forwards;
}

.hero__cta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 900ms var(--ease-out) 650ms forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero stat card (right side) */
.hero__card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: var(--space-8);
  position: relative;
  opacity: 0;
  animation: fadeInUp 1000ms var(--ease-out) 800ms forwards;
}

.hero__card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 40px;
  height: 40px;
  border-top: 3px solid var(--accent-orange);
  border-left: 3px solid var(--accent-orange);
}

.hero__card::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 40px;
  height: 40px;
  border-bottom: 3px solid var(--accent-orange);
  border-right: 3px solid var(--accent-orange);
}

.hero__card h3 {
  color: var(--white);
  font-size: 1.125rem;
  margin-bottom: var(--space-6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero__stats-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.hero__stat {
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero__stat-num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent-orange);
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero__stat-label {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: var(--space-2);
  letter-spacing: 0.05em;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  opacity: 0;
  animation: fadeInUp 1000ms var(--ease-out) 1200ms forwards;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-orange);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { top: -100%; }
  100% { top: 100%; }
}

/* ===== INTRO ===== */
.intro {
  position: relative;
}

.intro__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-16);
  align-items: center;
}

.intro__visual {
  position: relative;
}

.intro__image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.intro__badge {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 180px;
  height: 180px;
  background: var(--accent-orange);
  color: var(--white);
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--space-6);
  box-shadow: var(--shadow-xl);
}

.intro__badge-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.intro__badge-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: var(--space-2);
}

.intro__content h2 {
  margin-bottom: var(--space-6);
}

.intro__content p {
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: var(--space-4);
}

.intro__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.intro__feature {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.intro__feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--off-white);
  color: var(--accent-orange);
  display: grid;
  place-items: center;
  border-left: 3px solid var(--accent-orange);
}

.intro__feature h4 {
  font-size: 1rem;
  margin-bottom: var(--space-1);
}

.intro__feature p {
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 0;
}

/* ===== SERVICES PREVIEW ===== */
.services-preview__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: var(--space-8) var(--space-6);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__num {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  margin-bottom: var(--space-6);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  background: var(--industrial-blue-dark);
  color: var(--accent-orange);
  display: grid;
  place-items: center;
  margin-bottom: var(--space-6);
  transition: all var(--transition-base);
}

.service-card:hover .service-card__icon {
  background: var(--accent-orange);
  color: var(--white);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-3);
}

.service-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: var(--space-6);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--industrial-blue);
  transition: all var(--transition-fast);
}

.service-card:hover .service-card__link {
  color: var(--accent-orange);
  gap: var(--space-3);
}

/* ===== STATS ===== */
.stats {
  background: var(--industrial-blue-dark);
  color: var(--white);
  padding: var(--space-20) 0;
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.stats__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.stat-item {
  text-align: center;
  padding: 0 var(--space-4);
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.stat-item__num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-3);
}

.stat-item__num span {
  color: var(--accent-orange);
}

.stat-item__label {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: none;
  letter-spacing: normal;
  font-weight: 600;
}

/* ===== CTA Banner ===== */
.cta-banner {
  padding: var(--space-20) 0;
  background: var(--off-white);
  position: relative;
  overflow: hidden;
}

.cta-banner__inner {
  background: var(--industrial-blue-dark);
  padding: var(--space-16) var(--space-12);
  display: grid;
  grid-template-columns: 1.5fr auto;
  gap: var(--space-8);
  align-items: center;
  position: relative;
  overflow: hidden;
  color: var(--white);
}

.cta-banner__inner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background:
    radial-gradient(circle at 70% 50%, rgba(255, 107, 0, 0.25) 0%, transparent 50%);
}

.cta-banner__inner::after {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100px;
  height: 100px;
  border: 3px solid var(--accent-orange);
  opacity: 0.3;
}

.cta-banner h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--white);
  margin-bottom: var(--space-3);
  position: relative;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.0625rem;
  position: relative;
}

.cta-banner__actions {
  position: relative;
  display: flex;
  gap: var(--space-4);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .services-preview__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-12); }
  .stat-item:nth-child(2)::after { display: none; }
  .hero__inner { grid-template-columns: 1fr; gap: var(--space-8); }
  .hero__card { max-width: 520px; }
  .intro__grid { grid-template-columns: 1fr; gap: var(--space-12); }
  .intro__badge { width: 140px; height: 140px; bottom: -20px; right: -10px; }
  .intro__badge-num { font-size: 2.25rem; }
}

@media (max-width: 720px) {
  .services-preview__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .stat-item::after { display: none !important; }
  .cta-banner__inner {
    grid-template-columns: 1fr;
    padding: var(--space-12) var(--space-6);
    text-align: center;
  }
  .cta-banner__actions {
    justify-content: center;
    flex-wrap: wrap;
  }
  .intro__features { grid-template-columns: 1fr; }
  .hero__scroll { display: none; }
}
