/* =============================================
   NEXFLOW - SaaS Landing Page Template
   Version: 1.0
   Author: Your Name
   ============================================= */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #0F62FE;
  --primary-dark: #0043CE;
  --accent: #00D4AA;
  --dark: #050A14;
  --dark-2: #0D1526;
  --dark-3: #162032;
  --text-muted: #8B9BB4;
  --border: rgba(255,255,255,0.08);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--dark);
  color: #E8EDF5;
  overflow-x: hidden;
}
h1,h2,h3,h4,h5 { font-family: 'Sora', sans-serif; }

/* ---------- Hero Background ---------- */
.hero-bg {
  background: var(--dark);
  position: relative;
}
.hero-bg::before {
  content: '';
  position: absolute;
  top: -200px; left: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(15,98,254,0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-bg::after {
  content: '';
  position: absolute;
  top: 100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,212,170,0.10) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ---------- Noise Texture ---------- */
.noise::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ---------- Glass Card ---------- */
.glass {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

/* ---------- Gradient Text ---------- */
.grad-text {
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Buttons ---------- */
.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(15,98,254,0.35);
}
.btn-ghost {
  background: transparent;
  color: #E8EDF5;
  padding: 14px 32px;
  border-radius: 8px;
  font-family: 'Sora', sans-serif;
  font-weight: 500;
  font-size: 15px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.05);
}

/* ---------- Navbar ---------- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: all 0.3s ease;
}
nav.scrolled {
  background: rgba(5,10,20,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

/* ---------- Feature Cards ---------- */
.feature-card { transition: all 0.3s ease; }
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(15,98,254,0.4) !important;
  box-shadow: 0 20px 60px rgba(15,98,254,0.12);
}

/* ---------- Pricing ---------- */
.pricing-popular {
  background: linear-gradient(135deg, rgba(15,98,254,0.15), rgba(0,212,170,0.08));
  border-color: rgba(15,98,254,0.5) !important;
  position: relative;
}

/* ---------- Stats ---------- */
.stat-card { border-left: 3px solid var(--primary); }

/* ---------- Testimonials ---------- */
.testimonial-card:hover { border-color: rgba(255,255,255,0.15) !important; }

/* ---------- Fade Up Animation ---------- */
.fade-up {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Dashboard Mockup ---------- */
.dashboard-mockup {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
}
.mockup-bar {
  background: var(--dark-3);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}
.mockup-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}

/* ---------- FAQ Accordion ---------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-answer.open { max-height: 300px; }

/* ---------- Mobile Menu ---------- */
.mobile-menu { display: none; }
.mobile-menu.open { display: block; }

/* ---------- Scroll Progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 999;
  transition: width 0.1s linear;
}

/* ---------- Logo Ticker ---------- */
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-inner {
  display: flex;
  animation: ticker 20s linear infinite;
  width: max-content;
}
.ticker-inner:hover { animation-play-state: paused; }

/* ---------- Form Input ---------- */
input[type="email"] {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: #E8EDF5;
  padding: 14px 20px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
input[type="email"]:focus { border-color: var(--primary); }
input[type="email"]::placeholder { color: var(--text-muted); }

/* ---------- Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15,98,254,0.12);
  border: 1px solid rgba(15,98,254,0.3);
  color: #60A5FA;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-family: 'Sora', sans-serif;
  font-weight: 500;
}

/* ---------- Check List ---------- */
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 15px;
}
.check-list li span.check {
  color: var(--accent);
  font-size: 16px;
  margin-top: 1px;
  flex-shrink: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
  .grid-3 { grid-template-columns: repeat(2, 1fr) !important; }
  .footer-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem !important; }
  .section-title { font-size: 2rem !important; }
  .desktop-nav { display: none !important; }
  .hamburger { display: block !important; }
  .grid-3 { grid-template-columns: 1fr !important; }
  .grid-4 { grid-template-columns: 1fr !important; }
  .pricing-grid { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr !important; }
  .dashboard-inner { grid-template-columns: 1fr !important; }
  .dashboard-sidebar { display: none; }
  .stats-grid { grid-template-columns: repeat(2,1fr) !important; }
  .cta-input-wrap { flex-direction: column !important; align-items: center; }
  input[type="email"] { width: 100% !important; }
}
@media (min-width: 769px) {
  .hamburger { display: none !important; }
}