/* ============================================================
   HERO COMPONENT
   ============================================================ */

/* Main hero with video/image bg */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--c-primary);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  transition: opacity 1s ease;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--g-hero);
}

/* Animated gradient mesh */
.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 60%, rgba(0,201,224,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 80% 30%, rgba(21,101,192,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  width: 100%;
  padding-top: var(--nav-h);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: var(--sp-20);
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: rgba(0,201,224,0.12);
  border: 1px solid rgba(0,201,224,0.25);
  border-radius: var(--r-full);
  font-size: var(--sz-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--sp-6);
  animation: fadeInDown 0.6s var(--ease-out) 0.1s both;
}
.hero-pill-dot {
  width: 6px;
  height: 6px;
  background: var(--c-accent);
  border-radius: 50%;
  animation: pulse-ring 2s ease infinite;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, var(--sz-7xl));
  font-weight: var(--fw-extrabold);
  color: white;
  line-height: 1.1;
  margin-bottom: var(--sp-6);
  animation: fadeInUp 0.7s var(--ease-out) 0.25s both;
}
.hero-title .accent {
  display: block;
  font-size: clamp(2rem, 4.5vw, 70px);
  line-height: 1.9;
  background: var(--g-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, var(--sz-xl));
  color: rgba(255,255,255,0.7);
  line-height: var(--lh-relaxed);
  max-width: 520px;
  margin-bottom: var(--sp-10);
  animation: fadeInUp 0.7s var(--ease-out) 0.4s both;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.hero-actions {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  animation: fadeInUp 0.7s var(--ease-out) 0.55s both;
}

/* Hero stats bar */
.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--sp-6) 0;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.08);
  animation: fadeInUp 0.7s var(--ease-out) 0.7s both;
}
.hero-stats-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.hero-stat-num {
  font-size: var(--sz-3xl);
  font-weight: var(--fw-extrabold);
  color: var(--c-accent);
  line-height: 1;
}
.hero-stat-text {}
.hero-stat-label {
  font-size: var(--sz-sm);
  font-weight: var(--fw-semibold);
  color: white;
  line-height: 1.2;
}
.hero-stat-sub { font-size: var(--sz-xs); color: rgba(255,255,255,0.5); }
.hero-stat-sep {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--sp-20);
  right: var(--sp-10);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  color: rgba(255,255,255,0.5);
  animation: fadeIn 1s var(--ease-out) 1s both;
}
.scroll-indicator span {
  font-size: var(--sz-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, rgba(0,201,224,0.6));
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100%;
  height: 50%;
  background: var(--c-accent);
  animation: scroll-dot 1.5s ease-in-out infinite;
}

/* Page hero (for inner pages) */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + var(--sp-16)) 0 var(--sp-16);
  background: var(--c-primary);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 100% at 80% 50%, rgba(21,101,192,0.25) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-accent), transparent);
}

.page-hero-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}
.page-hero-label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--sz-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--sp-4);
}
.page-hero-label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: currentColor;
}

.page-hero-title {
  font-size: clamp(2rem, 5vw, var(--sz-6xl));
  font-weight: var(--fw-extrabold);
  color: white;
  margin-bottom: var(--sp-4);
  line-height: 1.1;
}
.page-hero-desc {
  font-size: var(--sz-lg);
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-6);
}
.page-hero-breadcrumb .breadcrumb a { color: rgba(255,255,255,0.5); }
.page-hero-breadcrumb .breadcrumb a:hover { color: var(--c-accent); }
.page-hero-breadcrumb .breadcrumb .current { color: rgba(255,255,255,0.85); }
.page-hero-breadcrumb .breadcrumb .sep { color: rgba(255,255,255,0.25); }

/* Responsive */
@media (max-width: 768px) {
  .hero-stats-inner { gap: var(--sp-5); justify-content: center; }
  .hero-stat-sep { display: none; }
  .scroll-indicator { display: none; }
  .hero-actions { gap: var(--sp-3); }
  .hero-actions .btn { flex: 1 1 auto; min-width: 140px; }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
