body {
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #4f46e5;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #7c3aed;
}

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.dark .glass {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Text Gradients */
.text-gradient {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  transition:
    opacity 0.5s ease-out,
    visibility 0.5s ease-out;
}
.dark #preloader {
  background-color: #0f172a;
}

.loader-core {
  width: 60px;
  height: 60px;
  border: 4px solid transparent;
  border-top-color: #4f46e5;
  border-bottom-color: #7c3aed;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Phone Mockup Frame */
.phone-frame {
  border: 8px solid #1f2937;
  border-radius: 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  position: relative;
  background: white;
}
.dark .phone-frame {
  border-color: #334155;
  background: #0f172a;
}
.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 25px;
  background: #1f2937;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 10;
}
.dark .phone-notch {
  background: #334155;
}

/* Grid Background Pattern */
.bg-grid-pattern {
  background-image:
    linear-gradient(to right, rgba(79, 70, 229, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(79, 70, 229, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
}

.accordion-content {
  transition:
    max-height 0.3s ease-out,
    padding 0.3s ease;
  max-height: 0;
  overflow: hidden;
}
.accordion-active .accordion-content {
  max-height: 500px;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.accordion-active .accordion-icon {
  transform: rotate(180deg);
}
