/* ===========================
   Linzcloud — Custom Styles
   =========================== */

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Tajawal', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Brand Gradient */
.bg-gradient-blue {
  background: linear-gradient(135deg, #1E3A8A 0%, #0EA5E9 100%);
}

.bg-gradient-soft {
  background: linear-gradient(180deg, #EFF6FF 0%, #FFFFFF 100%);
}

/* Hero Pattern (Subtle dots) */
.hero-pattern {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(30, 58, 138, 0.08) 1px, transparent 0);
  background-size: 24px 24px;
}

/* Card Hover */
.card-hover {
  transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
}

/* FAQ Accordion */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms ease, padding 300ms ease;
}
.faq-item.active .faq-content {
  max-height: 800px;
  padding-top: 0.5rem;
  padding-bottom: 1rem;
}
.faq-icon {
  transition: transform 300ms ease;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* Fade-in on Scroll */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease;
}
.mobile-menu.open {
  max-height: 800px;
}

/* Logo image — keep crisp */
.logo-img {
  object-fit: contain;
}

/* Active Nav Link */
.nav-link {
  position: relative;
  transition: color 200ms ease;
}
.nav-link.active {
  color: #1E3A8A;
  font-weight: 700;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 0;
  left: 0;
  height: 2px;
  background-color: #0EA5E9;
  border-radius: 2px;
}

/* Pricing Card — Featured */
.pricing-featured {
  position: relative;
  z-index: 10;
}

@media (min-width: 768px) {
  .pricing-featured {
    transform: scale(1.04);
  }
}

/* Lucide icons baseline alignment */
[data-lucide] {
  vertical-align: middle;
  flex-shrink: 0;
}

/* Form Inputs Focus */
.form-input:focus {
  outline: none;
  border-color: #1E3A8A;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.15);
}

/* Print */
@media print {
  header, footer, .no-print { display: none !important; }
  body { color: #000; }
}

/* ============================
   Stats Section — Premium Design
   ============================ */

.stats-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1E3A8A 0%, #1e40af 50%, #0c2461 100%);
}

/* Grid pattern overlay */
.stats-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

/* Glowing blobs */
.stats-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.35;
}
.stats-blob-1 {
  top: -100px;
  right: 10%;
  width: 400px;
  height: 400px;
  background: #0EA5E9;
}
.stats-blob-2 {
  bottom: -100px;
  left: 10%;
  width: 350px;
  height: 350px;
  background: #38bdf8;
  opacity: 0.25;
}

/* Stat Card */
.stat-card {
  position: relative;
  padding: 1.5rem 1rem;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.25rem;
  text-align: center;
  transition: transform 350ms cubic-bezier(0.4, 0, 0.2, 1),
              background 350ms ease,
              border-color 350ms ease,
              box-shadow 350ms ease;
  overflow: hidden;
}

@media (min-width: 768px) {
  .stat-card {
    padding: 2rem 1.5rem;
  }
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity 350ms ease;
  pointer-events: none;
}

.stat-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(14, 165, 233, 0.5);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4),
              0 0 0 1px rgba(14, 165, 233, 0.3);
}

.stat-card:hover::before { opacity: 1; }

/* Stat Icon */
.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #0EA5E9 0%, #38bdf8 50%, #1E3A8A 100%);
  border-radius: 0.875rem;
  color: white;
  box-shadow: 0 8px 24px -4px rgba(14, 165, 233, 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 1;
  transition: transform 350ms ease;
}

@media (min-width: 768px) {
  .stat-icon {
    width: 3.5rem;
    height: 3.5rem;
  }
}

.stat-card:hover .stat-icon {
  transform: scale(1.08) rotate(-4deg);
}

/* Stat Number — Gradient Text */
.stat-number {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #ffffff 0%, #bae6fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* Stat Label */
.stat-label {
  color: #bae6fd;
  font-size: 0.875rem;
  font-weight: 500;
  position: relative;
  z-index: 1;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .stat-label {
    font-size: 1rem;
  }
}

/* Bottom accent line */
.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #0EA5E9, transparent);
  transition: width 400ms ease;
}

.stat-card:hover::after {
  width: 80%;
}

/* Section Badge */
.stats-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  color: #e0f2fe;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Scrollbar (cosmetic) */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #EFF6FF;
}
::-webkit-scrollbar-thumb {
  background: #1E3A8A;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0EA5E9;
}
