/* ===========================================
   Cinematic Hero - Liquid-Glass Design System
   Adapted for 蓝和信息科技
   =========================================== */

/* ---------- Video background ---------- */
.hero-cinematic-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
  pointer-events: none;
}
.hero-cinematic-video::-webkit-media-controls { display: none !important; }
.hero-cinematic-video::-webkit-media-controls-panel { display: none !important; }

/* ---------- Liquid-glass utilities ---------- */
.liquid-glass {
  background: rgba(255,255,255,0.02);
  background-blend-mode: luminosity;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}
.liquid-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.2px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.35) 0%,
    rgba(255,255,255,0.10) 25%,
    rgba(255,255,255,0) 50%,
    rgba(255,255,255,0.10) 75%,
    rgba(255,255,255,0.35) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.liquid-glass-strong {
  background: rgba(255,255,255,0.02);
  background-blend-mode: luminosity;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15), inset 0 1px 1px rgba(255,255,255,0.12);
  position: relative;
  overflow: hidden;
  border: none;
}
.liquid-glass-strong::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.2px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.40) 0%,
    rgba(255,255,255,0.15) 25%,
    rgba(255,255,255,0) 50%,
    rgba(255,255,255,0.15) 75%,
    rgba(255,255,255,0.40) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ---------- Hero section ---------- */
.hero-cinematic {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #05080f;
}

/* Cinematic background */
.hero-cinematic-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-cinematic-bg-main {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 85% 65% at 50% -15%, rgba(59,130,246,0.20) 0%, transparent 70%),
    radial-gradient(ellipse 70% 55% at 80% 75%, rgba(96,165,250,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 20% 65%, rgba(37,99,235,0.15) 0%, transparent 50%),
    radial-gradient(ellipse 100% 40% at 50% 100%, rgba(59,130,246,0.08) 0%, transparent 60%),
    linear-gradient(180deg, rgba(5,8,15,0.60) 0%, rgba(10,22,40,0.40) 40%, rgba(13,26,48,0.30) 70%, rgba(6,11,21,0.50) 100%);
}
.hero-cinematic-bg-brand {
  position: absolute;
  inset: 0;
  background: url('/assets/hero-image.png?v=2') no-repeat center / cover;
  opacity: 0.06;
  filter: blur(8px);
}
/* Accent light streaks */
.hero-cinematic-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, transparent 30%, rgba(59,130,246,0.03) 50%, transparent 70%),
    linear-gradient(125deg, transparent 25%, rgba(147,197,253,0.02) 45%, transparent 65%),
    linear-gradient(75deg, transparent 35%, rgba(59,130,246,0.02) 55%, transparent 75%);
  pointer-events: none;
}

/* Subtle animated grid overlay */
.hero-cinematic-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.06;
  background-image:
    linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Floating particles (animated dots) */
.hero-cinematic-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.hero-cinematic-particles span {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(96,165,250,0.4);
  border-radius: 50%;
  animation: particleFloat 12s infinite ease-in-out;
}
.hero-cinematic-particles span:nth-child(1)  { top: 15%; left: 10%; animation-delay: 0s; width: 4px; height: 4px; }
.hero-cinematic-particles span:nth-child(2)  { top: 25%; left: 85%; animation-delay: 1.5s; }
.hero-cinematic-particles span:nth-child(3)  { top: 60%; left: 5%; animation-delay: 3s; width: 5px; height: 5px; background: rgba(147,197,253,0.3); }
.hero-cinematic-particles span:nth-child(4)  { top: 70%; left: 75%; animation-delay: 4.5s; }
.hero-cinematic-particles span:nth-child(5)  { top: 40%; left: 45%; animation-delay: 2s; width: 2px; height: 2px; }
.hero-cinematic-particles span:nth-child(6)  { top: 10%; left: 50%; animation-delay: 6s; background: rgba(96,165,250,0.2); width: 6px; height: 6px; }
.hero-cinematic-particles span:nth-child(7)  { top: 80%; left: 30%; animation-delay: 7.5s; }
.hero-cinematic-particles span:nth-child(8)  { top: 35%; left: 70%; animation-delay: 9s; }
.hero-cinematic-particles span:nth-child(9)  { top: 90%; left: 90%; animation-delay: 1s; width: 2px; height: 2px; }
.hero-cinematic-particles span:nth-child(10) { top: 50%; left: 20%; animation-delay: 5s; background: rgba(147,197,253,0.35); width: 4px; height: 4px; }

@keyframes particleFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.4; }
  25% { transform: translateY(-20px) scale(1.2); opacity: 0.8; }
  50% { transform: translateY(-10px) scale(0.9); opacity: 0.5; }
  75% { transform: translateY(-30px) scale(1.1); opacity: 0.7; }
}

/* Hero glow accent */
.hero-cinematic-glow {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}
.hero-cinematic-glow-1 {
  width: 600px; height: 600px;
  top: -200px; right: -100px;
  background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: glowPulse 6s ease-in-out infinite;
}
.hero-cinematic-glow-2 {
  width: 400px; height: 400px;
  bottom: -100px; left: -100px;
  background: radial-gradient(circle, rgba(96,165,250,0.06) 0%, transparent 60%);
  border-radius: 50%;
  animation: glowPulse 8s ease-in-out infinite reverse;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* ---------- Hero content ---------- */
.hero-cinematic-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Badge */
.hero-cinematic-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 4px 4px;
  border-radius: 9999px;
  margin-bottom: 28px;
}
.hero-cinematic-badge-chip {
  background: #fff;
  color: #05080f;
  padding: 3px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.hero-cinematic-badge-text {
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: 400;
  padding-right: 8px;
}

/* Headline */
.hero-cinematic-title {
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  font-weight: 800;
  line-height: 1.05;
  color: #fff;
  max-width: 800px;
  margin-bottom: 20px;
}
.hero-cinematic-title .highlight {
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtitle */
.hero-cinematic-sub {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: rgba(255,255,255,0.65);
  max-width: 640px;
  line-height: 1.6;
  margin-bottom: 32px;
  font-weight: 300;
}

/* CTA buttons */
.hero-cinematic-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-cinematic-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hero-cinematic-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(59,130,246,0.2);
}
.hero-cinematic-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  padding: 12px 4px;
  transition: color 0.2s;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.hero-cinematic-btn-secondary:hover {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.4);
}

/* Arrow icon */
.hero-cinematic-arrow {
  display: inline-block;
  width: 18px;
  height: 18px;
}
.hero-cinematic-arrow svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Stats row ---------- */
.hero-cinematic-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 48px;
}
.hero-cinematic-stat {
  padding: 16px 24px;
  border-radius: 16px;
  min-width: 150px;
  text-align: center;
}
.hero-cinematic-stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.hero-cinematic-stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
  font-weight: 400;
}

/* ---------- Blur-in animation ---------- */
.blur-in {
  filter: blur(12px);
  opacity: 0;
  transform: translateY(16px);
  transition: filter 0.7s cubic-bezier(0.25, 0.1, 0.25, 1),
              opacity 0.7s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.blur-in.visible {
  filter: blur(0);
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.blur-delay-1 { transition-delay: 0.3s; }
.blur-delay-2 { transition-delay: 0.5s; }
.blur-delay-3 { transition-delay: 0.7s; }
.blur-delay-4 { transition-delay: 0.9s; }
.blur-delay-5 { transition-delay: 1.1s; }

/* ---------- Navbar override (cinematic dark theme) ---------- */
.navbar-cinematic {
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.navbar-cinematic.scrolled {
  background: rgba(0,0,0,0.55) !important;
  box-shadow: 0 4px 30px rgba(0,0,0,0.25) !important;
}

/* ── Glass base (matches liquid-glass aesthetic) ── */
.navbar {
  background: rgba(0,0,0,0.20) !important;
  border: none !important;
  backdrop-filter: blur(20px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(150%) !important;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.06);
}

/* ── Liquid-glass gradient border (matches hero) ── */
.navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 27px;
  padding: 1.2px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.30) 0%,
    rgba(255,255,255,0.08) 25%,
    rgba(255,255,255,0) 50%,
    rgba(255,255,255,0.08) 75%,
    rgba(255,255,255,0.30) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
}

/* ── Text colors ── */
.navbar .nav-menu > li > a {
  color: rgba(255,255,255,0.78) !important;
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.navbar .nav-menu > li > a:hover {
  color: #fff !important;
}

.navbar .nav-phone {
  color: rgba(255,255,255,0.90) !important;
  font-size: 14px !important;
}
.navbar .nav-phone:hover {
  color: #60a5fa !important;
}

.navbar .nav-toggle {
  color: rgba(255,255,255,0.80) !important;
}

.navbar .nav-arrow {
  color: rgba(255,255,255,0.4);
}

/* ── Buttons ── */
.navbar .nav-cta {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #fff !important;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(37,99,235,0.2);
}
.navbar .nav-cta:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
  box-shadow: 0 4px 16px rgba(37,99,235,0.3);
}

/* ── Logo — white pill behind transparent logo ── */
.navbar .logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.95);
  border-radius: 8px;
  padding: 4px 10px;
  height: 32px;
}
.navbar .logo img {
  filter: none;
  height: 22px;
  width: auto;
}

/* ── Dropdown ── */
.navbar .nav-dropdown {
  background: rgba(8,12,25,0.92) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.navbar .dropdown-item-name {
  color: rgba(255,255,255,0.85) !important;
}
.navbar .dropdown-item-desc {
  color: rgba(255,255,255,0.40) !important;
}
.navbar .dropdown-item:hover {
  background: rgba(255,255,255,0.05) !important;
}
.navbar .dropdown-item:hover .dropdown-item-name {
  color: #60a5fa !important;
}
.navbar .dropdown-col {
  border-color: rgba(255,255,255,0.04) !important;
}
.navbar .dropdown-brand {
  color: #60a5fa !important;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .nav-menu {
    background: rgba(8,12,25,0.95) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
  }
  .nav-menu > li > a {
    color: rgba(255,255,255,0.85) !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hero-cinematic-content {
    padding: 100px 20px 60px;
  }
  .hero-cinematic-stats {
    flex-direction: column;
    align-items: center;
  }
  .hero-cinematic-stat {
    min-width: 260px;
  }
}
