/* ============================================
   BLACK CAT ANALYTICS — LANDING PAGE STYLES
   ============================================ */

/* ---------- Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  overflow-x: hidden;
  position: relative;
}

::selection {
  background: rgba(168, 85, 247, 0.35);
  color: #fff;
}

/* ---------- Noise Overlay ---------- */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

/* ---------- Navigation ---------- */
#navbar {
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

#navbar.scrolled {
  background: rgba(10, 10, 10, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.04);
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.4);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(20px);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 40;
}

.mobile-menu.open {
  transform: translateX(0);
}

/* Hamburger animation */
#mobile-menu-btn.active .hamburger-line:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}
#mobile-menu-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
#mobile-menu-btn.active .hamburger-line:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

/* ---------- CTA Buttons ---------- */
.cta-button {
  background: linear-gradient(135deg, #3b82f6 0%, #a855f7 100%);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #60a5fa 0%, #c084fc 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  border-radius: inherit;
}

.cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3), 0 0 16px rgba(168, 85, 247, 0.2);
}

.cta-button:hover::before {
  opacity: 1;
}

.cta-button {
  position: relative;
  z-index: 0;
}

/* Animated gradient on hero CTA */
.cta-button-sm {
  background: linear-gradient(135deg, #3b82f6 0%, #a855f7 100%);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button-sm:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.3);
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---------- Hero ---------- */
.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(59, 130, 246, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 60%, rgba(34, 197, 94, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 80% 50%, rgba(168, 85, 247, 0.06) 0%, transparent 50%);
}

.hero-gradient-text {
  background: linear-gradient(135deg, #3b82f6 0%, #22c55e 50%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Email Input ---------- */
.email-input {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.email-input:focus {
  background: rgba(23, 23, 23, 0.9);
}

/* ---------- Dashboard Mockup ---------- */
.dashboard-mockup {
  background: rgba(14, 14, 14, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(8px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 20px 80px rgba(0, 0, 0, 0.6),
    0 4px 16px rgba(0, 0, 0, 0.3);
}

.dashboard-glow {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 120px;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.12) 0%, rgba(168, 85, 247, 0.06) 40%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

/* KPI Cards */
.kpi-card {
  position: relative;
  border-radius: 12px;
  padding: 1px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
}

.kpi-card-inner {
  background: rgba(15, 15, 15, 0.95);
  border-radius: 11px;
  padding: 14px 16px;
}

.kpi-green {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.25) 0%, rgba(34, 197, 94, 0.05) 100%);
}
.kpi-green:hover {
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.15);
}

.kpi-blue {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(59, 130, 246, 0.05) 100%);
}
.kpi-blue:hover {
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
}

.kpi-red {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(239, 68, 68, 0.05) 100%);
}
.kpi-red:hover {
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.15);
}

.kpi-cyan {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25) 0%, rgba(6, 182, 212, 0.05) 100%);
}
.kpi-cyan:hover {
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.15);
}

.kpi-purple {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(168, 85, 247, 0.05) 100%);
}
.kpi-purple:hover {
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.15);
}

/* Chart bars */
.chart-bar-group {
  flex: 1;
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 100%;
}

.chart-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  min-width: 0;
  transition: opacity 0.2s;
}

/* ---------- Problem Cards ---------- */
.problem-card {
  position: relative;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.problem-card:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.problem-card-inner {
  background: rgba(14, 14, 14, 0.95);
  border-radius: 15px;
  padding: 28px 24px;
}

/* ---------- Feature Cards ---------- */
.feature-card {
  position: relative;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(168, 85, 247, 0.1) 50%, rgba(34, 197, 94, 0.08) 100%);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-card-inner {
  background: rgba(14, 14, 14, 0.95);
  border-radius: 15px;
  padding: 24px 20px;
  height: 100%;
}

/* ---------- Pricing Cards ---------- */
.pricing-card {
  position: relative;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.pricing-card-inner {
  background: rgba(14, 14, 14, 0.95);
  border-radius: 15px;
  padding: 28px 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pricing-card-inner > a {
  margin-top: auto;
}

/* Popular card */
.pricing-card-popular {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.4) 0%, rgba(168, 85, 247, 0.3) 100%);
  transform: scale(1.02);
}

.pricing-card-popular:hover {
  transform: scale(1.02) translateY(-4px);
  box-shadow: 0 16px 48px rgba(59, 130, 246, 0.2), 0 0 20px rgba(168, 85, 247, 0.1);
}

.pricing-card-inner-popular {
  background: rgba(14, 14, 14, 0.97);
  border-radius: 15px;
  padding: 28px 24px;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pricing-card-inner-popular > a {
  margin-top: auto;
}

.popular-badge {
  position: absolute;
  top: -1px;
  right: 20px;
  background: linear-gradient(135deg, #3b82f6, #a855f7);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  padding: 4px 14px;
  border-radius: 0 0 8px 8px;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #a3a3a3;
}

.pricing-feature::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2322c55e'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

/* Coming Soon badges in pricing */
.pricing-coming-soon {
  color: #737373;
}

.pricing-coming-soon::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23737373'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

.coming-soon-badge {
  display: inline-block;
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
  border: 1px solid rgba(234, 179, 8, 0.25);
  font-size: 9px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ---------- Trust Cards ---------- */
.trust-card {
  position: relative;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  transition: transform 0.3s ease;
}

.trust-card:hover {
  transform: translateY(-4px);
}

.trust-card-inner {
  background: rgba(14, 14, 14, 0.95);
  border-radius: 15px;
  padding: 32px 24px;
}

/* ---------- Testimonial Cards ---------- */
.testimonial-card {
  position: relative;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(59, 130, 246, 0.08) 100%);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.testimonial-card-inner {
  background: rgba(14, 14, 14, 0.95);
  border-radius: 15px;
  padding: 28px 24px;
  height: 100%;
}

/* ---------- Demo Video ---------- */
.demo-video-wrapper {
  background:
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(34, 197, 94, 0.06) 0%, transparent 70%),
    rgba(23, 23, 23, 0.8);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.demo-video-wrapper:hover {
  border-color: rgba(34, 197, 94, 0.3) !important;
  box-shadow: 0 12px 48px rgba(34, 197, 94, 0.1);
}

/* ---------- FAQ ---------- */
.faq-item {
  border-radius: 12px;
  background: rgba(23, 23, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.08);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-answer {
  max-height: 200px;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

/* ---------- CTA Section Background ---------- */
.cta-section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(59, 130, 246, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 30% 60%, rgba(34, 197, 94, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse 40% 50% at 70% 40%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
}

/* ---------- Success Message ---------- */
.success-message {
  animation: fadeInUp 0.5s ease forwards;
}

.success-checkmark svg {
  animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    transform: translateY(16px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ---------- Reveal Animations (IntersectionObserver) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .dashboard-mockup {
    border-radius: 12px;
  }

  .kpi-card-inner {
    padding: 10px 12px;
  }

  .pricing-card-popular {
    transform: scale(1);
  }

  .pricing-card-popular:hover {
    transform: translateY(-4px);
  }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #444;
}

/* ---------- Blog Cards ---------- */
.blog-card {
  display: block;
  position: relative;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.blog-card:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(168, 85, 247, 0.1) 50%, rgba(34, 197, 94, 0.08) 100%);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.blog-card-inner {
  background: rgba(14, 14, 14, 0.95);
  border-radius: 15px;
  padding: 28px 24px;
  height: 100%;
}

/* ---------- Blog Content (Article Pages) ---------- */
.blog-content h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.blog-content h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  color: #e5e5e5;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.blog-content p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #a3a3a3;
  margin-bottom: 1.25rem;
}

.blog-content a {
  color: #22c55e;
  text-decoration: none;
  transition: color 0.2s;
}

.blog-content a:hover {
  text-decoration: underline;
}

.blog-content strong {
  color: #d4d4d4;
  font-weight: 600;
}

.blog-content ul,
.blog-content ol {
  margin: 1rem 0 1.25rem 0;
  padding-left: 1.5rem;
}

.blog-content li {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #a3a3a3;
  margin-bottom: 0.5rem;
}

.blog-content ul li {
  list-style-type: disc;
}

.blog-content ol li {
  list-style-type: decimal;
}

.blog-content table {
  border-collapse: collapse;
}

/* ---------- Legal Content (Privacy/Terms Pages) ---------- */
.legal-content h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.375rem;
  color: #fff;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.legal-content h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.0625rem;
  color: #e5e5e5;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.legal-content p {
  font-size: 0.875rem;
  line-height: 1.8;
  color: #a3a3a3;
  margin-bottom: 1rem;
}

.legal-content a {
  color: #3b82f6;
  text-decoration: none;
  transition: color 0.2s;
}

.legal-content a:hover {
  text-decoration: underline;
}

.legal-content strong {
  color: #d4d4d4;
  font-weight: 600;
}

.legal-content ul,
.legal-content ol {
  margin: 0.75rem 0 1rem 0;
  padding-left: 1.5rem;
}

.legal-content li {
  font-size: 0.875rem;
  line-height: 1.8;
  color: #a3a3a3;
  margin-bottom: 0.375rem;
}

.legal-content ul li {
  list-style-type: disc;
}

.legal-content ol li {
  list-style-type: decimal;
}

.legal-content table {
  border-collapse: collapse;
}
