/* ==========================================================================
   ZPO AI - Advanced Design System & Custom Tokens (Ultimate Global Release)
   High-Precision Typography, Swiper Carousels, Circuit Connectors & Zero-Jiggle Animations
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Sora:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700;800&display=swap');

:root {
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Color Tokens */
  --color-neon-blue: #3b82f6;
  --color-neon-indigo: #6366f1;
  --color-neon-purple: #a855f7;
  --color-neon-cyan: #06b6d4;
  --color-neon-emerald: #10b981;
  --color-neon-amber: #f59e0b;
  --color-dark-bg: #020617; /* slate-950 */
}

/* Base resets & production typography sizing */
body {
  font-family: var(--font-body);
  background-color: var(--color-dark-bg);
  color: #f8fafc;
  overflow-x: hidden;
  font-size: 1.08rem; /* Enhanced readable production font size */
  line-height: 1.7;
}

h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.025em;
}

code, pre, .font-mono, .badge-tech, .counter-val, .nav-mono {
  font-family: var(--font-mono);
}

/* ==========================================================================
   Studio Freight Lenis (Smooth Scroll) Essential Styles
   ========================================================================== */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/* ==========================================================================
   Custom Scrollbar
   ========================================================================== */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: #020617;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4.5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
::-webkit-scrollbar-thumb:hover {
  background: #3b82f6;
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.7);
}

/* ==========================================================================
   Glassmorphism & Frosted Glass Utility Components
   ========================================================================== */
.glass-nav {
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 35px 0 rgba(0, 0, 0, 0.45);
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  opacity: 1 !important; /* Guaranteed production visibility */
}

.glass-card:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 15px 45px 0 rgba(99, 102, 241, 0.25);
  transform: translateY(-4px);
}

.glass-pill {
  background: rgba(30, 41, 59, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Testimonial Cards & Badges */
.testimonial-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.55) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  transition: all 0.3s ease;
  height: 100%;
}
.testimonial-card:hover {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 14px 40px rgba(16, 185, 129, 0.18);
  transform: translateY(-4px);
}

.badge-verified {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Swiper Carousel Custom Styles (Services & Testimonials)
   ========================================================================== */
.service-swiper, .testimonial-swiper {
  padding-bottom: 60px !important;
}
.swiper-pagination-bullet {
  background: #475569 !important;
  opacity: 0.6 !important;
  width: 10px !important;
  height: 10px !important;
  transition: all 0.3s ease !important;
}
.swiper-pagination-bullet-active {
  background: #3b82f6 !important;
  opacity: 1 !important;
  width: 32px !important;
  border-radius: 5px !important;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.8) !important;
}
.swiper-btn-nav {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.25s ease;
  cursor: pointer;
  z-index: 10;
}
.swiper-btn-nav:hover {
  background: #3b82f6;
  border-color: #3b82f6;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
  transform: scale(1.05);
}

/* ==========================================================================
   Backgrounds & Ambient Grids
   ========================================================================== */
.bg-grid {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.038) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.038) 1px, transparent 1px);
  background-size: 40px 40px;
}

.bg-radial-glow-blue {
  background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.18) 0%, rgba(2, 6, 23, 0) 70%);
}

.bg-radial-glow-purple {
  background: radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.18) 0%, rgba(2, 6, 23, 0) 70%);
}

/* ==========================================================================
   Interactive Annotation Demo Specific Styles
   ========================================================================== */
.annotation-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.9), inset 0 0 25px rgba(59, 130, 246, 0.15);
}

.bounding-box {
  position: absolute;
  border: 2px dashed #06b6d4;
  background: rgba(6, 182, 212, 0.12);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.45);
  transition: all 0.3s ease;
  cursor: pointer;
  z-index: 10;
}

.bounding-box:hover, .bounding-box.active {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.35);
  box-shadow: 0 0 28px rgba(59, 130, 246, 0.8);
  transform: scale(1.02);
  z-index: 20;
}

.box-label {
  position: absolute;
  top: -26px;
  left: -2px;
  background: #06b6d4;
  color: #020617;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 3px 10px;
  border-top-right-radius: 6px;
  border-top-left-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  pointer-events: none;
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.7);
  white-space: nowrap;
}

.bounding-box:hover .box-label, .bounding-box.active .box-label {
  background: #3b82f6;
  color: #ffffff;
}

.keypoint-dot {
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #ffffff;
  box-shadow: 0 0 16px #10b981;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 15;
}
.keypoint-dot:hover, .keypoint-dot.active {
  transform: scale(1.5);
  background: #f59e0b;
  box-shadow: 0 0 24px #f59e0b;
  z-index: 25;
}

/* Maritime Sea-Level Polyline Bar */
.polyline-bar {
  position: absolute;
  height: 4px;
  background: linear-gradient(90deg, #f59e0b, #06b6d4, #10b981);
  box-shadow: 0 0 15px #f59e0b;
  cursor: pointer;
  z-index: 12;
  transition: all 0.3s ease;
}
.polyline-bar:hover, .polyline-bar.active {
  height: 6px;
  box-shadow: 0 0 25px #f59e0b, 0 0 35px #06b6d4;
  transform: scaleY(1.3);
}

/* Scanline visual effect */
@keyframes scan {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(1000%); }
}

.scanline-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 16px;
  background: linear-gradient(to bottom, rgba(6, 182, 212, 0), rgba(6, 182, 212, 0.4), rgba(6, 182, 212, 0));
  animation: scan 4.5s linear infinite;
  pointer-events: none;
  opacity: 0.7;
}

/* ==========================================================================
   QA Pipeline Circuit Connectors & Micro-Animations
   ========================================================================== */
.circuit-connector {
  position: absolute;
  top: 50%;
  right: -24px;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  z-index: 1;
  display: none;
}
@media (min-width: 1024px) {
  .circuit-connector {
    display: block;
  }
}
.circuit-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00f0ff;
  box-shadow: 0 0 10px #00f0ff;
  top: -3px;
  left: 0;
  animation: move-circuit 2.5s infinite linear;
}
@keyframes move-circuit {
  0% { left: 0; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

.text-glow-blue {
  filter: drop-shadow(0 2px 10px rgba(59, 130, 246, 0.45));
}
.text-glow-indigo {
  filter: drop-shadow(0 2px 10px rgba(99, 102, 241, 0.45));
}
.text-glow-emerald {
  filter: drop-shadow(0 2px 8px rgba(16, 185, 129, 0.45));
}

/* ==========================================================================
   Hero Highlight Headline:
   - Default: Solid, plain, high-contrast, razor-sharp sky-cyan typography
   - Hover: Ignites with dynamic neon shimmer gradient, cyber glow & smooth micro-elevation
   ========================================================================== */
@keyframes neon-shimmer-flow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.hero-highlight-text {
  display: inline-block;
  color: #38bdf8; /* Solid plain vibrant sky-cyan in default state */
  font-weight: 900;
  letter-spacing: -0.02em;
  cursor: pointer;
  position: relative;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  border-radius: 0.5rem;
  padding: 0 4px;
}

/* Subtle high-tech interactive indicator tick */
.hero-highlight-text::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 8%;
  width: 84%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.7), transparent);
  border-radius: 2px;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.45;
  pointer-events: none;
}

/* Hover State: Ignites with blazing neon gradient, luminous aura & smooth lift */
.hero-highlight-text:hover {
  background: linear-gradient(90deg, #00f0ff 0%, #38bdf8 25%, #a5b4fc 50%, #38bdf8 75%, #00f0ff 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #00f0ff;
  filter: drop-shadow(0 0 28px rgba(0, 240, 255, 0.75)) drop-shadow(0 0 10px rgba(56, 189, 248, 0.9));
  transform: translateY(-3px) scale(1.025);
  animation: neon-shimmer-flow 3.5s ease-in-out infinite;
}

.hero-highlight-text:hover::after {
  opacity: 1;
  left: 2%;
  width: 96%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #00f0ff, #818cf8, #00f0ff, transparent);
  box-shadow: 0 0 20px #00f0ff, 0 0 10px #38bdf8;
  bottom: -6px;
}

.btn-glow {
  box-shadow: 0 4px 18px rgba(59, 130, 246, 0.32);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn-glow:hover {
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.55);
  transform: translateY(-2px);
}

.tab-btn {
  transition: all 0.25s ease;
}
.tab-btn.active {
  background: rgba(59, 130, 246, 0.22);
  border-color: rgba(59, 130, 246, 0.7);
  color: #60a5fa;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
}

/* Zero-Jiggle Dynamic Text Container */
.dynamic-word-wrap {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  vertical-align: baseline;
  min-width: 280px;
  line-height: 1.3;
}
@media (min-width: 640px) {
  .dynamic-word-wrap {
    min-width: 380px;
  }
}
