/* ========================================
   FlowCore VVS – Custom Styles
   Premium dark-themed plumbing landing page
   ======================================== */

/* ── Base ── */
html {
  scroll-behavior: auto !important;
}

/* Lenis essentials */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/* ── Grain / Noise Overlay ── */
.grain-overlay {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Gradient Headline ── */
.gradient-text {
  background: linear-gradient(135deg, rgba(240, 242, 255, 1) 0%, #3A86FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Hero Headline ── */
.hero-headline {
  font-size: clamp(4.2rem, 15vw, 165px);
  line-height: 0.9;
  font-weight: 600;
  letter-spacing: -0.03em;
}

/* ── Panel Surfaces ── */
.panel-surface {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.panel-surface-hover {
  transition: border-color 0.3s ease, background 0.3s ease;
}
.panel-surface-hover:hover {
  border-color: rgba(58, 134, 255, 0.2);
  background: rgba(255, 255, 255, 0.045);
}

/* ── Navbar ── */
.nav-glass {
  background: rgba(12, 17, 24, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-scrolled {
  background: rgba(12, 17, 24, 0.88) !important;
  border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

/* Nav link underline hover */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #3A86FF;
  transition: width 0.3s ease;
}
.nav-link:hover {
  color: white;
}
.nav-link:hover::after {
  width: 100%;
}

/* ── CTA Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #3A86FF;
  color: white;
  padding: 14px 32px;
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  text-decoration: none;
}
.btn-primary:hover {
  background: #5a9bff;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  padding: 14px 32px;
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
}
.btn-secondary:hover {
  border-color: #3A86FF;
  color: #3A86FF;
}

/* ── Blueprint Grid ── */
.blueprint-grid {
  background-image:
    linear-gradient(rgba(58, 134, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 134, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── Section Divider ── */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(58, 134, 255, 0.12), transparent);
}

/* ── Animated Line ── */
.animated-line {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #3A86FF, transparent);
}

/* ── Counter ── */
.counter-number {
  font-variant-numeric: tabular-nums;
}

/* ── Mobile Menu ── */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.active {
  transform: translateX(0);
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: #0C1118;
}
::-webkit-scrollbar-thumb {
  background: rgba(58, 134, 255, 0.25);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(58, 134, 255, 0.4);
}

/* ── Selection ── */
::selection {
  background: rgba(58, 134, 255, 0.3);
  color: white;
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  .grain-overlay {
    display: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
