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

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #0f172a;
  color: #cbd5e1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: box-shadow 0.3s, background 0.3s;
}
.navbar.scrolled {
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
  color: #94a3b8;
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #3b82f6;
  border-radius: 1px;
  transition: width 0.3s ease;
}
.nav-link:hover { color: #f1f5f9; }
.nav-link:hover::after { width: 100%; }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(16px);
  z-index: 40;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu .nav-link { font-size: 1.125rem; color: #e2e8f0; }

/* Sections on light bg */
.section-light {
  background: #e8edf5;
  color: #1e293b;
}

/* Cards (on light bg) */
.product-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 2rem;
  transition: box-shadow 0.4s ease, transform 0.4s ease, border-color 0.4s ease;
}
.product-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
  border-color: #3b82f6;
}

/* Stat boxes (on light bg) */
.stat-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
}

/* Form inputs (on light bg) */
.form-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 0.875rem;
  color: #1e293b;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
  border-color: #1a56db;
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}
.form-input::placeholder { color: #9ca3af; }
textarea.form-input { resize: vertical; min-height: 120px; }

/* ======================== */
/* Scroll animations        */
/* ======================== */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }

/* ======================== */
/* Hero entrance animation  */
/* ======================== */
.hero-text {
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-text-delay { animation-delay: 0.15s; }

.hero-illust-entrance {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  animation: heroIllustIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

@keyframes heroFadeIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroIllustIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ======================== */
/* Hero illustration        */
/* ======================== */
.hero-illustration {
  background: linear-gradient(135deg, rgba(26, 86, 219, 0.15), rgba(59, 108, 245, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* Floating animation keyframes for SVG elements */
@keyframes float1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}
@keyframes float3 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes floatSpin {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.05); }
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.5; }
}

.float-1 { animation: float1 4s ease-in-out infinite; }
.float-2 { animation: float2 5s ease-in-out infinite; }
.float-3 { animation: float3 3.5s ease-in-out infinite; }
.float-4 { animation: floatSpin 6s ease-in-out infinite; }
.pulse-glow { animation: pulse-glow 4s ease-in-out infinite; }

@media (max-width: 640px) {
  .hero-illustration { min-height: 200px; }
}

/* ======================== */
/* Toast                    */
/* ======================== */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 0.875rem 1.5rem;
  background: #1a56db;
  color: #fff;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transform: translateY(120%);
  transition: transform 0.3s;
  z-index: 100;
}
.toast.show { transform: translateY(0); }

/* Smooth section transitions */
section {
  position: relative;
}

/* Button hover glow */
button[type="submit"]:hover,
a.bg-white:hover {
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
}
