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

/* --- CUSTOM BASE AND UTILITY STYLES --- */
:root {
  --bg-deep: #070a13;
  --bg-dark: #0c111e;
  --bg-card: rgba(15, 22, 39, 0.65);
  --bg-card-hover: rgba(22, 32, 57, 0.85);
  
  --emerald-glow: rgba(16, 185, 129, 0.15);
  --coral-glow: rgba(239, 68, 68, 0.15);
  --indigo-glow: rgba(99, 102, 241, 0.2);
  --cyan-glow: rgba(6, 182, 212, 0.15);
  
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-border-glow: rgba(16, 185, 129, 0.35);
  
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
}

/* Base resets & styles */
html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: 'Outfit', 'Inter', sans-serif;
  background-color: var(--bg-deep);
  color: #f8fafc;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Cyber grid lines background effect */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center top;
  pointer-events: none;
  z-index: 1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
}

/* --- GLOW ORBS --- */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  transition: opacity 1s ease;
}
.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--indigo-glow) 0%, transparent 70%);
  top: -100px;
  left: -150px;
}
.orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--emerald-glow) 0%, transparent 70%);
  top: 25%;
  right: -200px;
}
.orb-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--coral-glow) 0%, transparent 70%);
  top: 55%;
  left: -200px;
}
.orb-4 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 70%);
  bottom: 5%;
  right: -100px;
}

/* --- SCROLL REVEAL ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-75 { transition-delay: 75ms; }
.delay-100 { transition-delay: 100ms; }
.delay-150 { transition-delay: 150ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* --- GLASSMORPHISM SYSTEM --- */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  transition: border-color 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, background 0.4s ease;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-glow);
  box-shadow: 0 15px 35px rgba(16, 185, 129, 0.08);
  background: var(--bg-card-hover);
}

/* Problem-specific glass hover */
.glass-card-problem:hover {
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow: 0 15px 35px rgba(239, 68, 68, 0.08);
}

/* --- MICRO ANIMATIONS --- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

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

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; filter: blur(35px); }
  50% { opacity: 0.8; filter: blur(45px); }
}

.pulse-glow-emerald {
  animation: pulse-glow 4s ease-in-out infinite alternate;
}

/* Custom progress bar transitions */
.progress-fill {
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom checkbox styling */
.checkbox-container {
  display: block;
  position: relative;
  padding-left: 32px;
  cursor: pointer;
  user-select: none;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 3px;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  transition: all 0.25s ease;
}

.checkbox-container:hover input ~ .checkmark {
  border-color: var(--glass-border-glow);
  background-color: rgba(16, 185, 129, 0.05);
}

.checkbox-container input:checked ~ .checkmark {
  background-color: #10b981;
  border-color: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-container .checkmark:after {
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* FAQ accordion panel styling */
.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  opacity: 0;
}

.faq-open .faq-panel {
  opacity: 1;
}

.faq-trigger .faq-icon {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-open .faq-trigger .faq-icon {
  transform: rotate(135deg);
  color: #10b981;
}

/* Before / After Table Specific Classes */
.before-item {
  position: relative;
  background: rgba(239, 68, 68, 0.02);
  border-left: 3px solid rgba(239, 68, 68, 0.4);
}
.after-item {
  position: relative;
  background: rgba(16, 185, 129, 0.02);
  border-left: 3px solid rgba(16, 185, 129, 0.6);
}

/* Shiny hover overlay effect for premium CTA */
.btn-shiny {
  position: relative;
  overflow: hidden;
}
.btn-shiny::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 30%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  transition: all 0.75s ease;
  opacity: 0;
}
.btn-shiny:hover::after {
  left: 130%;
  opacity: 1;
}

/* Sticky CTA mobile footer */
.sticky-footer-cta {
  transform: translateY(120%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.sticky-footer-cta.show-sticky {
  transform: translateY(0);
}

/* Custom mockup illustration styles */
.mockup-canvas {
  background: linear-gradient(135deg, #111827 0%, #030712 100%);
  box-shadow: 
    0 30px 60px -15px rgba(0, 0, 0, 0.8),
    0 0 50px rgba(99, 102, 241, 0.15);
}

/* Highlight badge pulse */
.pulse-badge {
  animation: pulse-ring 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
