/* ==================== Custom CSS for Canada PC Prediction SaaS Landing Page ==================== */

/* ---- Root Variables ---- */
:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #6366f1;
  --primary-bg: #eef2ff;
  --text-dark: #1e293b;
  --text-body: #475569;
  --text-muted: #94a3b8;
  --bg-light: #f8fafc;
  --white: #ffffff;
  --border-light: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --transition-base: 0.3s ease;
  --transition-fast: 0.15s ease;
}

/* ---- Smooth Scroll ---- */
html {
  scroll-behavior: smooth;
}

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition-base);
}
.navbar.scrolled {
  border-bottom-color: var(--border-light);
  box-shadow: var(--shadow-sm);
}
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition-base);
}
.nav-link:hover::after {
  width: 100%;
}
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.mobile-menu.open {
  max-height: 400px;
}

/* ---- Hero ---- */
.hero-gradient {
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 30%, #c7d2fe 60%, #f5f3ff 100%);
}
.hero-badge {
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero-image-wrapper {
  position: relative;
}
.hero-image-wrapper::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--primary), var(--primary-light), #818cf8);
  opacity: 0.3;
  filter: blur(20px);
  z-index: -1;
}

/* ---- Feature Cards ---- */
.feature-card {
  transition: all var(--transition-base);
  border: 1px solid var(--border-light);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}
.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 1.5rem;
  transition: all var(--transition-base);
}
.feature-card:hover .feature-icon-wrapper {
  background: var(--primary);
  color: #fff;
  transform: scale(1.05);
}

/* ---- Stats Counter ---- */
.stat-number {
  font-variant-numeric: tabular-nums;
}
.stat-card {
  transition: all var(--transition-base);
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ---- Testimonials ---- */
.testimonial-card {
  transition: all var(--transition-base);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-bg);
}

/* ---- FAQ Accordion ---- */
.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}
.faq-item:hover {
  border-color: var(--primary-light);
}
.faq-toggle {
  display: none;
}
.faq-question {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  user-select: none;
  transition: color var(--transition-fast);
}
.faq-question:hover {
  color: var(--primary);
}
.faq-question i {
  transition: transform var(--transition-base);
  color: var(--text-muted);
}
.faq-toggle:checked ~ .faq-question i {
  transform: rotate(180deg);
  color: var(--primary);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-toggle:checked ~ .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.25rem;
}
.faq-answer-inner {
  color: var(--text-body);
  line-height: 1.7;
}

/* ---- CTA Section ---- */
.cta-section {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 40%, #7c3aed 100%);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  animation: cta-rotate 20s linear infinite;
}
@keyframes cta-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ---- Footer ---- */
.footer-link {
  transition: color var(--transition-fast);
}
.footer-link:hover {
  color: var(--primary-light);
}
.footer-social-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}
.footer-social-icon:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ---- Back to Top ---- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all var(--transition-base);
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
}

/* ---- Responsive Adjustments ---- */
@media (max-width: 768px) {
  .hero-badge {
    animation: none;
  }
  .feature-card:hover {
    transform: translateY(-3px);
  }
}
