/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  color: #1f2937;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Color Palette */
:root {
  --primary-400: #818cf8;
  --primary-500: #6366f1;
  --primary-600: #4f46e5;
  --primary-700: #4338ca;
  --accent-500: #14b8a6;
  --accent-600: #0d9488;
  --warm-500: #f97316;
  --warm-600: #ea580c;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --gray-950: #030712;
  --yellow-400: #facc15;
  --green-600: #16a34a;
}

/* Utility Classes */
.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.bg-gray-50 {
  background-color: var(--gray-50);
}

.bg-gray-100 {
  background-color: var(--gray-100);
}

.bg-gray-900 {
  background-image: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  color: white;
  box-shadow: 0 10px 25px rgba(67, 56, 202, 0.35);
}

.bg-gray-950 {
  background-color: var(--gray-950);
}

.bg-white {
  background-color: white;
}

.bg-gradient-to-br {
  background-image: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(20, 184, 166, 0.15));
}

.text-white {
  color: white;
}

.text-gray-300 {
  color: #d1d5db;
}

.text-gray-400 {
  color: var(--gray-400);
}

.text-gray-600 {
  color: var(--gray-600);
}

.text-gray-700 {
  color: var(--gray-700);
}

.text-gray-900 {
  color: var(--gray-900);
}

.text-yellow-400 {
  color: var(--yellow-400);
}

.text-green-600 {
  color: var(--green-600);
}

.border {
  border: 1px solid var(--gray-300);
}

.border-b {
  border-bottom: 1px solid var(--gray-200);
}

.border-t {
  border-top: 1px solid var(--gray-200);
}

.border-gray-200 {
  border-color: var(--gray-200);
}

.border-gray-300 {
  border-color: var(--gray-300);
}

.border-gray-800 {
  border-color: var(--gray-800);
}

.border-2 {
  border-width: 2px;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-full {
  border-radius: 9999px;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.pt-8 {
  padding-top: 2rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mb-16 {
  margin-bottom: 4rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-16 {
  margin-top: 4rem;
}

.flex {
  display: flex;
}

.inline-block {
  display: inline-block;
}

.flex-col {
  flex-direction: column;
}

.flex-auto {
  flex: 1 1 auto;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-10 {
  gap: 2.5rem;
}

.gap-12 {
  gap: 3rem;
}

.gap-16 {
  gap: 4rem;
}

.gap-lg {
  gap: 40px;
}

.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.space-y-3 > * + * {
  margin-top: 0.75rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.max-w-3xl {
  max-width: 48rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.max-w-7xl {
  max-width: 80rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.text-center {
  text-align: center;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.5rem;
}

.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.text-5xl {
  font-size: 3rem;
  line-height: 1;
}

.text-6xl {
  font-size: 3.75rem;
  line-height: 1;
}

.text-7xl {
  font-size: 4.5rem;
  line-height: 1;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.tracking-tight {
  letter-spacing: -0.025em;
}

.w-6 {
  width: 1.5rem;
}

.w-12 {
  width: 3rem;
}

.w-full {
  width: 100%;
}

.h-6 {
  height: 1.5rem;
}

.h-10 {
  height: 2.5rem;
}

.h-12 {
  height: 3rem;
}

.h-auto {
  height: auto;
}

.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

.sticky {
  position: sticky;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.inset-x-0 {
  left: 0;
  right: 0;
}

.top-0 {
  top: 0;
}

.z-0 {
  z-index: 0;
}

.z-50 {
  z-index: 50;
}

.overflow-hidden {
  overflow: hidden;
}

.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}

.transition {
  transition-property: color, background-color, border-color, outline-color, text-decoration-color,
    fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.group {
  --tw-group: 1;
}

.group-open\:rotate-180 {
  --tw-rotate: 0deg;
}

details[open] .group-open\:rotate-180 {
  --tw-rotate: 180deg;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y))) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.hover\:bg-gray-50:hover {
  background-color: var(--gray-50);
}

.hover\:bg-gray-100:hover {
  background-color: var(--gray-100);
}

.hover\:bg-gray-800:hover {
  background-image: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  opacity: 1;
}

.hover\:text-white:hover {
  color: white;
}

.hover\:text-gray-900:hover {
  color: var(--gray-900);
}

/* Footer: make inline anchors behave like list items */
.footer-links > a {
  display: block; /* stack vertically */
  padding: 2px 0; /* small hit area and spacing complementing .space-y-2 */
}
.footer-links > a:hover {
  text-decoration: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .lg\:flex {
    display: none !important;
  }

  .lg\:gap-10 {
    gap: 2.5rem;
  }

  .max-lg\:hidden {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .sm\:flex-row {
    flex-direction: row;
  }

  .md\:text-2xl {
    font-size: 1.5rem;
  }

  .md\:text-5xl {
    font-size: 3rem;
  }

  .md\:text-7xl {
    font-size: 4.5rem;
  }
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: 1fr; /* ensure single-column layout on small screens */
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 768px) {
  .md\:grid-cols-5 {
    grid-template-columns: 1fr;
  }

  .md\:text-center {
    text-align: left;
  }

  .md\:flex-row {
    flex-direction: row;
  }
}

.col-span-2 {
  grid-column: span 2 / span 2;
}

.md\:col-span-1 {
  /* Default, no need to add */
}

@media (min-width: 768px) {
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .md\:grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .md\:flex-row {
    flex-direction: row;
  }

  .md\:col-span-1 {
    grid-column: span 1 / span 1;
  }
}

/* Additional Utility Classes */
.cursor-pointer {
  cursor: pointer;
}

.opacity-60 {
  opacity: 0.6;
}

.w-auto {
  width: auto;
}

.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate))
    skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x))
    scaleY(var(--tw-scale-y));
}

.origin-top {
  transform-origin: top;
}

/* Focus and Active States */
button:hover {
  opacity: 0.9;
}

a:hover {
  opacity: 1;
  color: var(--accent-600);
}

details summary::-webkit-details-marker {
  display: none;
}

details summary {
  user-select: none;
}

/* Mobile Navigation Adjustments */
@media (max-width: 640px) {
  body {
    font-size: 0.875rem;
  }

  .px-6 {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .py-20 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

.max-w-6xl {
  max-width: 72rem;
}

.leading-relaxed {
  line-height: 1.625;
}

.list-none {
  list-style-type: none;
}

.ml-4 {
  margin-left: 1rem;
}

.text-gray-500 {
  color: var(--gray-500);
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.text-xxs {
  font-size: 0.5rem;
  line-height: 1rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.bg-gray-50\/90 {
  background-color: rgba(249, 250, 251, 0.9);
}

.border-gray-200\/50 {
  border-color: rgba(229, 231, 235, 0.5);
}
.p-8 {
  padding: 40px;
}

.p-6 {
  padding: 30px;
}

section#features {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.08), rgba(6, 182, 212, 0.12));
}

section#reviews {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(236, 72, 153, 0.12));
}

section#pricing .border {
  border: 1px solid rgba(99, 102, 241, 0.3);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

section#pricing .border-2 {
  border-image: linear-gradient(135deg, var(--primary-400), var(--accent-500)) 1;
}

section#faqs {
  background: linear-gradient(160deg, rgba(129, 140, 248, 0.12), rgba(20, 184, 166, 0.12));
}

section.bg-gray-900 {
  background-image: linear-gradient(135deg, var(--warm-500), var(--primary-600));
}

footer {
  background: linear-gradient(180deg, #0f172a, #020617);
}
