/**
 * CoreFlow AI — Page-Specific Styles
 * Extends the base Tailwind CDN with custom CSS for subpage layouts
 */

/* ─── Base Page Reset (ensures consistency with Tailwind CDN pages) ─── */
body {
  background-color: #020b07;
  color: #f8f9fa;
  overflow-x: hidden;
}

/* ─── Lenis Smooth Scroll ─── */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ─── Glass Panel ─── */
.glass-panel {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ─── Navbar Scrolled State ─── */
.nav-scrolled {
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
}
.nav-scrolled .glass-panel {
  background: rgba(2, 11, 7, 0.85);
  border-color: rgba(255, 255, 255, 0.08);
}

/* ─── Subpage Hero Pattern ─── */
.subpage-hero {
  padding-top: 10rem;
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.subpage-hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(4, 120, 87, 0.15);
  filter: blur(120px);
  pointer-events: none;
}

/* ─── Section Styles ─── */
.section-alt {
  background-color: #0a0a0a;
}
.section-dark {
  background-color: #050505;
}

/* ─── Feature Card ─── */
.feature-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1.5rem;
  padding: 2.5rem;
  transition: all 0.3s ease;
}
.feature-card:hover {
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-4px);
}
.feature-card .icon-box {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: rgba(16, 185, 129, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #34d399;
  margin-bottom: 1.5rem;
}

/* ─── Pricing Card ─── */
.pricing-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1.5rem;
  padding: 2.5rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.pricing-card.featured {
  background: white;
  color: #020b07;
  transform: scale(1.02);
}
.pricing-card:hover {
  transform: translateY(-6px);
}
.pricing-card.featured:hover {
  transform: scale(1.02) translateY(-6px);
}

/* ─── Blog Card ─── */
.blog-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
}
.blog-card:hover {
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-4px);
}
.blog-card .blog-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.1));
}

/* ─── FAQ Accordion ─── */
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.125rem;
  color: #f8f9fa;
  background: none;
  border: none;
  text-align: left;
  transition: color 0.2s;
}
.faq-question:hover { color: #34d399; }
.faq-question .faq-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s;
  color: #10b981;
  flex-shrink: 0;
}
.faq-item.open .faq-question .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  color: #a1a1aa;
  line-height: 1.7;
}
.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: 1.5rem;
}

/* ─── Timeline ─── */
.process-timeline {
  position: relative;
  padding-left: 3rem;
}
.process-timeline::before {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #10b981, rgba(16, 185, 129, 0.1));
}
.process-step {
  position: relative;
  padding-bottom: 3rem;
}
.process-step::before {
  content: '';
  position: absolute;
  left: -2.35rem;
  top: 0.5rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #020b07;
  border: 3px solid #10b981;
}
.process-step.active::before {
  background: #10b981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

/* ─── ROI Calculator ─── */
.roi-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.03));
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 1.5rem;
  padding: 2.5rem;
}

/* ─── Smooth Scroll Anchors ─── */
html {
  scroll-padding-top: 6rem;
}

/* ─── Particle Canvas ─── */
#particle-hero-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 5;
  pointer-events: none;
}
.particle-hero-section {
  position: relative;
  z-index: 5;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* ─── Responsive Fine-Tuning ─── */
@media (max-width: 768px) {
  .subpage-hero {
    padding-top: 7rem;
    padding-bottom: 3rem;
  }
  .subpage-hero h1 {
    font-size: 2.5rem !important;
  }
  .process-timeline {
    padding-left: 2rem;
  }
}

/* ─── Selection Style ─── */
::selection {
  background: #10b981;
  color: white;
}

/* ─── Hide Scrollbar ─── */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ─── Ambient Glows ─── */
.ambient-glow-tr {
  position: fixed;
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(6, 78, 59, 0.2);
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.ambient-glow-bl {
  position: fixed;
  bottom: -10%;
  left: -10%;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: rgba(2, 44, 34, 0.4);
  filter: blur(150px);
  pointer-events: none;
  z-index: 0;
}
