/* Global Styles */
body { background-color: #0a1628; color: #ffffff; overflow-x: hidden; }
.glass { background: rgba(255,255,255,0.03); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.1); }
.glass-strong { background: rgba(16,73,96,0.4); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.15); }
.gradient-text { background: linear-gradient(135deg, #fff 0%, #0066FF 50%, #00A86B 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.mesh-gradient { background-color: #0a1628; background-image: radial-gradient(at 0% 0%, rgba(0,102,255,0.15) 0px, transparent 50%), radial-gradient(at 100% 0%, rgba(255,140,66,0.1) 0px, transparent 50%), radial-gradient(at 100% 100%, rgba(0,168,107,0.1) 0px, transparent 50%), radial-gradient(at 0% 100%, rgba(16,73,96,0.3) 0px, transparent 50%); }

/* Interactions */
.card-hover { transition: all 0.4s cubic-bezier(0.4,0,0.2,1); }
.card-hover:hover { transform: translateY(-8px); box-shadow: 0 20px 40px -15px rgba(0,102,255,0.3); }
.nav-link { position: relative; }
.nav-link::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -4px; left: 0; background: #0066FF; transition: width 0.3s ease; }
.nav-link:hover::after { width: 100%; }
.nav-link.active::after { width: 100%; }
.reveal { opacity: 0; transform: translateY(30px); }

/* Buttons */
.btn-primary { background: linear-gradient(135deg, #0066FF 0%, #0052cc 100%); transition: all 0.3s ease; position: relative; overflow: hidden; }
.btn-primary::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); transition: left 0.5s ease; }
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(0,102,255,0.5); }

/* Effects */
.noise { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9998; opacity: 0.03; 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"); }

/* Index Specific */
.input-field { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); transition: all 0.3s ease; }
.input-field:focus { background: rgba(255,255,255,0.1); border-color: #0066FF; outline: none; box-shadow: 0 0 0 3px rgba(0,102,255,0.2); }
.floating-shape { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4; animation: float 10s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-20px)} }

/* Features Specific */
.feature-detail { border-left: 3px solid #0066FF; padding-left: 1.5rem; margin-bottom: 1.5rem; }
.feature-detail.accent { border-left-color: #FF8C42; }
.feature-detail.success { border-left-color: #00A86B; }
.feature-detail.purple { border-left-color: #a855f7; }
.feature-detail.bright { border-left-color: #0066FF; }

/* How It Works Specific */
.workflow-card { border-left: 3px solid transparent; transition: all 0.3s; }
.workflow-card:hover { border-left-color: #0066FF; background: rgba(255,255,255,0.03); }
.step-card { position: relative; }
.step-number { position: absolute; left: -1.5rem; top: 0; width: 3rem; height: 3rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.25rem; }
@media (max-width: 768px) { .step-number { position: static; margin-bottom: 1rem; } }

/* Builders Specific */
.comparison-row:nth-child(even) { background: rgba(255,255,255,0.02); }
.comparison-row { transition: background 0.2s; }
.comparison-row:hover { background: rgba(255,255,255,0.05); }

/* Animated Background Orbs */
@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -30px) scale(1.1); }
  50% { transform: translate(-20px, 20px) scale(0.9); }
  75% { transform: translate(20px, 30px) scale(1.05); }
}

.animated-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: float-orb 20s ease-in-out infinite;
  pointer-events: none;
}

.orb-blue {
  width: 500px;
  height: 500px;
  background: #0066FF;
  animation-delay: 0s;
}

.orb-orange {
  width: 400px;
  height: 400px;
  background: #FF8C42;
  animation-delay: -7s;
}

.orb-green {
  width: 350px;
  height: 350px;
  background: #00A86B;
  animation-delay: -14s;
}

/* Glowing pulse effect for CTAs */
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 102, 255, 0.4); }
  50% { box-shadow: 0 0 40px rgba(0, 102, 255, 0.8), 0 0 60px rgba(0, 102, 255, 0.4); }
}

.btn-glow {
  animation: glow-pulse 2s ease-in-out infinite;
}

/* Shimmer effect for featured elements */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer-text {
  background: linear-gradient(90deg, #fff 0%, #0066FF 50%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

/* Floating cards animation */
@keyframes card-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

.animate-float {
  animation: card-float 6s ease-in-out infinite;
}

.animate-float-delayed {
  animation: card-float 6s ease-in-out infinite;
  animation-delay: -3s;
}

/* Gradient border animation */
@keyframes rotate-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.gradient-border {
  position: relative;
  background: linear-gradient(135deg, #0a1628, #0a1628);
  border-radius: 1rem;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 1rem;
  background: linear-gradient(90deg, #0066FF, #FF8C42, #00A86B, #0066FF);
  background-size: 300% 300%;
  animation: rotate-gradient 4s ease infinite;
  z-index: -1;
}

/* Scroll indicator animation */
@keyframes bounce-arrow {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* Stats counter glow */
.stat-glow {
  text-shadow: 0 0 30px rgba(0, 102, 255, 0.5), 0 0 60px rgba(0, 102, 255, 0.3);
}

/* Feature icon pulse */
@keyframes icon-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.icon-pulse:hover {
  animation: icon-pulse 0.5s ease-in-out;
}
