/* ============================================
   WRAVELO — Core Design System
   ============================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=Lexend:wght@300;400;500;600;700&display=swap');

/* --- Custom Properties --- */
html {
  scroll-behavior: smooth;
  background-color: #000000;
}

:root {
  --bg: #000000;
  --bg-elevated: #080808;
  --brand-red: #851b1b;
  --brand-gold: #f5c842;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --primary: #F5F5F7;
  --secondary: #e2e2e8;
  --muted: #71717a;
  --accent: #2d3f49;
  --accent-light: #3d5566;
  --accent-glow: rgba(45, 63, 73, 0.4);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --radius-sm: 0.75rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-full: 9999px;
  --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-label: 'Lexend', system-ui, sans-serif;
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: auto;
  overflow-x: hidden;
  background-color: #000000;
  /* Lenis handles smooth scroll */
}

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;
}

body {
  font-family: var(--font-body);
  background-color: #000000;
  background: linear-gradient(180deg, #000000 0%, #050505 50%, #000000 100%);
  color: var(--primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
}

/* --- Fixed dark background fallback (prevents white flash on overscroll) --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -100;
  background: #000000;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

/* --- Typography Utilities --- */
.font-label {
  font-family: var(--font-label);
}

.text-balance {
  text-wrap: balance;
}

/* --- Section Label (Eyebrow) --- */
.section-label {
  font-family: var(--font-label);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  border: 1px solid #851b1b;
  box-shadow: 0 0 15px rgba(133, 27, 27, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@media (min-width: 1536px) {
  .section-label {
    font-size: 0.95rem;
    padding: 0.75rem 1.75rem;
  }
}

@media (max-width: 639px) {
  .section-label {
    font-size: 0.65rem;
    padding: 0.4rem 1rem;
    letter-spacing: 0.1em;
    gap: 0.5rem;
  }
  .section-label::before {
    width: 5px;
    height: 5px;
  }
}

.section-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-gold);
  box-shadow: 0 0 8px var(--brand-gold);
}

/* --- Glass Card --- */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background var(--transition-base),
    border-color var(--transition-base),
    transform var(--transition-smooth),
    box-shadow var(--transition-smooth);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 20px 50px -10px rgba(255, 106, 0, 0.15),
    0 12px 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* --- Pill Button --- */
.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

@media (min-width: 640px) {
  .hero-container {
    min-height: 80vh;
  }
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

@media (min-width: 1536px) {
  .btn-pill {
    font-size: 1.125rem;
    padding: 1.25rem 3rem;
  }
}

.btn-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition-base);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
}

.btn-pill:hover::before {
  opacity: 1;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg);
}

.btn-primary:hover {
  background: #e4e4e7;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(245, 245, 247, 0.15);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--brand-gold);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: #FFFFFF;
  transform: translateY(-1px);
}

/* Arrow icon in button */
.btn-arrow {
  display: inline-flex;
  transition: transform var(--transition-base);
}

.btn-pill:hover .btn-arrow {
  transform: translateX(3px);
}

/* --- Ambient Background Effects --- */
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  pointer-events: none;
  will-change: transform;
}

.dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* --- Global Gradient Mesh Background --- */
.gradient-mesh-bg {
  position: fixed;
  inset: 0;
  z-index: -10;
  background-color: #0b0c0c;
  overflow: hidden;
}

.gradient-mesh-bg::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(ellipse at 10% 20%, rgba(137, 147, 143, 0.2) 0%, transparent 40%),
    radial-gradient(ellipse at 80% 60%, rgba(80, 95, 90, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 40% 80%, rgba(120, 137, 133, 0.15) 0%, transparent 45%);
  filter: blur(100px);
}

.gradient-mesh-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 20%, rgba(58, 64, 61, 0.6) 0%, transparent 50%);
  filter: blur(80px);
}

/* --- Noise Grain Overlay --- */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: -9;
  opacity: 0.25;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* --- Floating Header --- */
.floating-header {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  z-index: 1000;
  border-radius: var(--radius-full);
  background: rgba(10, 10, 10, 0.6);
  border: 1.5px solid rgba(220, 38, 38, 0.9);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  padding: 0.5rem 1rem 0.5rem 1.5rem;
  transition: all var(--transition-base);
}

.floating-header.scrolled {
  top: 0.75rem;
  background: rgba(10, 10, 10, 0.98);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

/* --- Nav Link Hover Effect --- */
.nav-link {
  position: relative;
  font-family: var(--font-label);
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--secondary);
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width var(--transition-base);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  width: 100%;
}

/* --- Active Nav Link (current page indicator) --- */
@keyframes nav-underline-draw {
  0% {
    width: 0;
    left: 50%;
    transform: translateX(-50%);
  }

  100% {
    width: 100%;
    left: 0;
    transform: translateX(0);
  }
}

.nav-link--active {
  color: var(--primary) !important;
}

.nav-link--active::after {
  width: 100%;
  height: 2px;
  background: rgba(220, 38, 38, 0.9);
  box-shadow: 0 0 8px rgba(220, 38, 38, 0.6);
  animation: nav-underline-draw 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: none;
}

.nav-link--active:hover::after {
  background: rgba(220, 38, 38, 0.9);
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.8);
}

/* --- Mega Menu Gradient Border Effect --- */
.megamenu-gradient-container {
  position: relative;
  background: rgba(10, 10, 10, 0.96) !important;
}

.megamenu-gradient-container::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5px;
  /* Border thickness */
  border-radius: inherit;
  background: linear-gradient(135deg,
      rgba(255, 60, 0, 0.95) 0%,
      rgba(255, 106, 0, 0.7) 25%,
      rgba(255, 140, 66, 0.4) 50%,
      rgba(255, 106, 0, 0.7) 75%,
      rgba(255, 60, 0, 0.95) 100%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  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;
}

.megamenu-card-gradient {
  position: relative;
  background: rgba(255, 255, 255, 0.01) !important;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.megamenu-card-gradient::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  /* Card border thickness */
  border-radius: inherit;
  background: linear-gradient(135deg,
      rgba(255, 60, 0, 0.4) 0%,
      rgba(255, 140, 66, 0.25) 50%,
      rgba(255, 60, 0, 0.4) 100%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  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;
  transition: opacity 0.4s ease;
}

.megamenu-card-gradient:hover {
  background: rgba(255, 255, 255, 0.04) !important;
  transform: translateY(-4px);
}

.megamenu-card-gradient:hover::before {
  background: linear-gradient(135deg,
      rgba(255, 60, 0, 0.8) 0%,
      rgba(255, 140, 66, 0.5) 50%,
      rgba(255, 60, 0, 0.8) 100%);
}

/* ── Process Cards ── */
.process-card {
  min-height: 220px;
}

.process-tag {
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  background: var(--glass-bg);
  border: 1px solid #851b1b;
  border-radius: var(--radius-full);
  padding: 0.4rem 1rem;
  transition: all var(--transition-base);
  white-space: nowrap;
  box-shadow: 0 0 10px rgba(133, 27, 27, 0.1);
}

@media (min-width: 1536px) {
  .process-tag {
    font-size: 0.85rem;
    padding: 0.5rem 1.25rem;
  }
}

.process-card:hover .process-tag {
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

.process-progress-dot.is-active {
  background: white;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.8), 0 0 24px rgba(168, 85, 247, 0.4);
  transform: scale(1.3);
}

/* ============================================
   Section Gradient Backgrounds (.sg) (Premium Lighting System)
   ============================================ */

.sg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  will-change: opacity, transform;
}

.sg::before,
.sg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  mix-blend-mode: screen;
  will-change: transform;
}

/* ── 1. HERO ──
   Dominant top-left Burnt Red/Orange light source, soft amber ambient fill */
#hero .sg::before {
  width: 80%;
  height: 80%;
  top: -20%;
  left: -15%;
  background: radial-gradient(ellipse at center,
      rgba(255, 60, 0, 0.4) 0%,
      rgba(255, 106, 0, 0.25) 40%,
      rgba(255, 140, 66, 0.1) 70%,
      transparent 100%);
}

#hero .sg::after {
  width: 60%;
  height: 60%;
  bottom: -10%;
  right: -10%;
  background: radial-gradient(ellipse at center,
      rgba(255, 140, 66, 0.2) 0%,
      rgba(255, 106, 0, 0.1) 50%,
      transparent 100%);
}

/* ── 2. SERVICES ── */
#services .sg::before {
  width: 65%;
  height: 80%;
  top: 10%;
  right: -15%;
  background: radial-gradient(ellipse at center,
      rgba(255, 106, 0, 0.3) 0%,
      rgba(255, 60, 0, 0.15) 50%,
      transparent 100%);
}

#services .sg::after {
  width: 55%;
  height: 65%;
  top: -10%;
  left: -10%;
  background: radial-gradient(ellipse at center,
      rgba(255, 140, 66, 0.25) 0%,
      rgba(255, 106, 0, 0.1) 60%,
      transparent 100%);
}

/* ── 3. PRICING ── */
#pricing .sg::before {
  width: 70%;
  height: 70%;
  top: 5%;
  left: 15%;
  background: radial-gradient(ellipse at center,
      rgba(255, 60, 0, 0.35) 0%,
      rgba(255, 106, 0, 0.2) 40%,
      transparent 100%);
}

#pricing .sg::after {
  width: 90%;
  height: 50%;
  bottom: -10%;
  right: -5%;
  background: radial-gradient(ellipse at center,
      rgba(255, 140, 66, 0.2) 0%,
      transparent 60%);
}

/* ── 4. PROCESS ── */
#process .sg::before {
  width: 70%;
  height: 65%;
  top: -10%;
  left: -10%;
  background: radial-gradient(ellipse at center,
      rgba(255, 106, 0, 0.3) 0%,
      transparent 80%);
}

#process .sg::after {
  width: 65%;
  height: 70%;
  bottom: -10%;
  right: -10%;
  background: radial-gradient(ellipse at center,
      rgba(255, 60, 0, 0.35) 0%,
      rgba(255, 140, 66, 0.15) 60%,
      transparent 100%);
}

/* ── 5. CONTACT ── */
#contact .sg::before {
  width: 80%;
  height: 80%;
  top: -10%;
  left: 10%;
  background: radial-gradient(ellipse at center,
      rgba(255, 60, 0, 0.4) 0%,
      rgba(255, 106, 0, 0.25) 40%,
      transparent 100%);
}

#contact .sg::after {
  width: 55%;
  height: 70%;
  bottom: 0%;
  right: -8%;
  background: radial-gradient(ellipse at center,
      rgba(255, 140, 66, 0.25) 0%,
      transparent 60%);
}

/* ── Stat Cards (CTA Section) ── */
.stat-card {
  width: 180px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(145deg,
      rgba(139, 92, 246, 0.25) 0%,
      rgba(6, 182, 212, 0.2) 50%,
      rgba(21, 94, 117, 0.3) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.4s ease,
    border-color 0.4s ease;
  cursor: default;
}

.stat-card:hover {
  transform: scaleX(1.12) scaleY(1.04);
  border-color: rgba(255, 120, 30, 0.25);
  box-shadow:
    0 12px 48px rgba(139, 92, 246, 0.15),
    0 4px 20px rgba(6, 182, 212, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.stat-cards-group {
  transition: gap 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stat-cards-group:hover {
  gap: 2rem;
}

@media (max-width: 639px) {
  .stat-card {
    width: 100%;
    max-width: none;
    flex: 1;
    min-width: 0;
    padding: 1rem 0.25rem;
    gap: 0.5rem;
    align-items: center;
    border-radius: 0.75rem;
  }
}

/* --- Pricing Card Highlight --- */
.pricing-highlight {
  position: relative;
}

.pricing-highlight::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--accent-light), transparent 60%);
  z-index: -1;
  opacity: 0.6;
}

/* --- CTA Glow Button --- */
.cta-glow-btn {
  position: relative;
}

.cta-glow-btn::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent-light), var(--accent), var(--accent-light));
  z-index: -1;
  opacity: 0;
  filter: blur(12px);
  transition: opacity var(--transition-slow);
}

.cta-glow-btn:hover::after {
  opacity: 0.6;
}

/* --- Footer Giant Text --- */
.footer-giant-text {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(4rem, 15vw, 14rem);
  line-height: 0.85;
  letter-spacing: -0.04em;

  /* Modern Webkit Gradient Text & Stroke */
  background: linear-gradient(135deg,
      rgba(139, 92, 246, 0.4) 0%,
      rgba(255, 255, 255, 0.05) 50%,
      rgba(6, 182, 212, 0.4) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  /* High visibility outline */
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.12);

  /* Fallback for older browsers or where stroke isn't desired alone */
  text-shadow: 0 0 40px rgba(0, 0, 0, 0.5);

  user-select: none;
  overflow: hidden;
  transition: opacity 0.5s ease;
  opacity: 0.8;
}

.footer-giant-text:hover {
  opacity: 1;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.25);
}

/* --- Keyframe Animations --- */
@keyframes float {

  0%,
  100% {
    transform: translateY(0px) scale(1);
  }

  50% {
    transform: translateY(-20px) scale(1.02);
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.6;
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes icon-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3);
  }

  100% {
    box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
  }
}

.animate-icon-pulse {
  animation: icon-pulse 2s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reveal Animations (GSAP will control these) --- */
.reveal {
  will-change: opacity, transform;
}

.reveal-left {
  will-change: opacity, transform;
}

.reveal-right {
  will-change: opacity, transform;
}

.reveal-scale {
  will-change: opacity, transform;
}

/* --- Mobile Nav --- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.mobile-nav.is-open {
  opacity: 1;
  pointer-events: all;
}

/* --- Hamburger --- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 0.25rem;
  cursor: pointer;
  z-index: 1001;
}

@media (min-width: 640px) {
  .hamburger {
    padding: 0.5rem;
  }
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: all var(--transition-base);
  transform-origin: center;
}

.hamburger span:nth-child(2) {
  width: 14px;
  align-self: flex-end;
}

.hamburger:hover span:nth-child(2) {
  width: 22px;
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(3.75px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  width: 22px;
  transform: translateY(-3.75px) rotate(-45deg);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .floating-header {
    left: 1rem;
    right: 1rem;
  }
}

@media (max-width: 768px) {
  .floating-header {
    top: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    padding: 0.35rem 0.8rem 0.35rem 0.875rem;
  }

  .hamburger {
    display: flex;
  }

  .desktop-nav {
    display: none;
  }
}

/* --- Selection Color --- */
::selection {
  background: var(--accent);
  color: var(--primary);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   Tech Ecosystem Animations
   ============================================ */
.data-noise {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.tech-anim-flow path {
  stroke-dasharray: 6 30;
  animation: techFlowData 2s linear infinite;
  opacity: 0;
  /* Hidden by default, triggered by JS or shown implicitly */
}

@keyframes techFlowData {
  from {
    stroke-dashoffset: 36;
  }

  to {
    stroke-dashoffset: 0;
  }
}

.tech-ecosystem.is-visible .tech-anim-flow path {
  opacity: 0.8;
  transition: opacity 1s ease-in-out;
}

/* --- Mobile Nav Active Link --- */
@keyframes mobile-active-in {
  from {
    opacity: 0;
    transform: scaleX(0);
  }

  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

/* Active text: white-to-orange gradient */
.mobile-nav .mobile-nav-link--active>span {
  background: linear-gradient(90deg, #ffffff 40%, #f97316 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

/* Active state for Pricing accordion button (button element) */
.mobile-nav button.mobile-nav-link--active {
  color: #f97316 !important;
  position: relative;
}

/* Active underline draw-in */
.mobile-nav .mobile-nav-link--active>span::after,
.mobile-nav button.mobile-nav-link--active::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #ea580c, #f97316, #fb923c);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(234, 88, 12, 0.5);
  transform-origin: left center;
  animation: mobile-active-in 0.6s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* --- Global Vignette --- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  background: radial-gradient(circle, transparent 50%, rgba(0, 0, 0, 0.4) 120%);
}

/* --- Interactive Cursor Glow --- */
#cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle closest-side, rgba(255, 106, 0, 0.18) 0%, transparent 100%);
  transform: translate(-50%, -50%);
  will-change: transform;
  mix-blend-mode: screen;
}

/* --- Tech Ecosystem Network Animations --- */
.network-base path {
  opacity: 0.3;
  transition: opacity 0.4s ease;
}

.tech-ecosystem:hover .network-base path {
  opacity: 0.15;
}

.tech-ecosystem:hover .network-base path:hover,
.tech-ecosystem:hover .network-base path.highlighted {
  opacity: 0.8 !important;
}

.flow-pulse {
  stroke-dasharray: 150 800;
  /* Creates the dashed traveling effect */
  stroke-dashoffset: 950;
  animation: data-flow 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  opacity: 0.7;
}

.flow-pulse.delay-1 {
  animation-delay: 0s;
  animation-duration: 4.5s;
  stroke-dasharray: 100 900;
}

.flow-pulse.delay-2 {
  animation-delay: 1s;
  animation-duration: 5s;
  stroke-dasharray: 120 700;
}

.flow-pulse.delay-3 {
  animation-delay: 2s;
  animation-duration: 4.2s;
  stroke-dasharray: 80 800;
}

.flow-pulse.delay-4 {
  animation-delay: 1.5s;
  animation-duration: 4.8s;
  stroke-dasharray: 140 1000;
}

.flow-pulse.delay-5 {
  animation-delay: 0.5s;
  animation-duration: 5.5s;
  stroke-dasharray: 90 950;
}

@keyframes data-flow {
  0% {
    stroke-dashoffset: 950;
    opacity: 0;
  }

  10% {
    opacity: 0.7;
  }

  90% {
    opacity: 0.7;
  }

  100% {
    stroke-dashoffset: -150;
    opacity: 0;
  }
}

.node-interactive {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.node-interactive .tech-icon-box {
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.1);
  transition: all 0.4s ease;
}

.node-interactive:hover {
  transform: translateY(-8px) scale(1.05);
}

.node-interactive:hover .tech-icon-box {
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.4), inset 0 0 10px rgba(255, 106, 0, 0.2) !important;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

@media (hover: none) and (pointer: coarse) {
  #cursor-glow {
    display: none !important;
  }
}

/* ─── Lottie SVG Global Override ─── */
.lottie-svg-override,
.hero-lottie-wrap svg {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Force white-tone strokes for a minimalist look */
.hero-lottie-wrap svg path,
.hero-lottie-wrap svg polyline,
.hero-lottie-wrap svg circle,
.hero-lottie-wrap svg rect,
.hero-lottie-wrap svg line {
  stroke: rgba(255, 255, 255, 0.6) !important;
  stroke-width: 1.5px !important;
  fill: none !important;
}

/* --- Premium Pricing Toggle --- */
.pricing-toggle-container {
  display: inline-flex;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 9999px;
  padding: 4px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(255, 255, 255, 0.05);
}

.pricing-toggle-bg-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  /* Deep charcoal to slate gradient for depth */
  background: linear-gradient(135deg, #2d2d31 0%, #151517 100%);
  border-radius: 9999px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.5),
    inset 0 -1px 2px rgba(0, 0, 0, 0.3);
}

.pricing-toggle-btn {
  position: relative;
  z-index: 10;
  padding: 10px 24px;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  transition: all 0.3s ease-in-out;
  border-radius: 9999px;
  cursor: pointer;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .pricing-toggle-btn {
    padding: 10px 32px;
    font-size: 12px;
  }
}

.pricing-toggle-btn.is-active {
  color: #FFFFFF !important;
  font-weight: 600;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Subtle outer glow for the container when hovered */
.pricing-toggle-container:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.03), inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Scroll To Top Button
   ============================================ */

#scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 0.5rem;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 106, 0, 0.3);
  /* Copper/Orange border */
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

#scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

#scroll-to-top:hover {
  background: rgba(255, 106, 0, 0.1);
  border-color: rgba(255, 106, 0, 0.8);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 12px 40px rgba(255, 106, 0, 0.2);
}

#scroll-to-top svg {
  width: 1.2rem;
  height: 1.2rem;
  transition: transform 0.3s ease;
}

#scroll-to-top:hover svg {
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  #scroll-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 2.1rem;
    height: 2.1rem;
  }

  #scroll-to-top svg {
    width: 0.9rem;
    height: 0.9rem;
  }
}