/* =============================================
   FLOWZA IQ — Main Stylesheet
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #050A14;
  --bg-card:   #0C1526;
  --bg-card2:  #0F1A30;
  --border:    rgba(99, 179, 237, 0.12);
  --blue:      #3B82F6;
  --blue-glow: rgba(59, 130, 246, 0.35);
  --cyan:      #06B6D4;
  --text:      #E2E8F0;
  --text-muted:#8DA5C0;
  --white:     #FFFFFF;
  --gradient:  linear-gradient(135deg, #3B82F6 0%, #06B6D4 100%);
  --radius:    14px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
em { font-style: normal; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ---- Layout ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 0 24px var(--blue-glow);
}
.btn-primary:hover { opacity: 0.88; box-shadow: 0 0 36px var(--blue-glow); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--blue); color: var(--white); }
.btn-ghost { color: var(--text-muted); }
.btn-ghost:hover { color: var(--white); }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-full { width: 100%; }

/* ---- Section labels ---- */
.section-tag {
  display: inline-block;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.3);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--white);
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 56px;
}

/* =============================================
   NAV
   ============================================= */
.nav-wrapper {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(5,10,20,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
}
.logo-icon { font-size: 1.4rem; }
.logo-iq { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.nav-links {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

.nav-cta { display: flex; gap: 10px; }
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: auto;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 120px 24px 80px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
.hero-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.hero-glow-1 {
  width: 500px; height: 500px;
  background: rgba(59,130,246,0.18);
  top: -100px; left: -100px;
}
.hero-glow-2 {
  width: 400px; height: 400px;
  background: rgba(6,182,212,0.12);
  top: 200px; right: -80px;
}
.hero-content { position: relative; z-index: 1; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.25);
  color: #93C5FD;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--blue);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-headline {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-social-proof {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.industries {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.industries span {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
}

/* Dashboard Mockup */
.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}
.dashboard-mockup {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(59,130,246,0.15), 0 32px 64px rgba(0,0,0,0.4);
}
.mockup-bar {
  background: rgba(255,255,255,0.04);
  padding: 12px 16px;
  display: flex;
  gap: 7px;
  border-bottom: 1px solid var(--border);
}
.mockup-bar span {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.mockup-bar span:nth-child(1) { background: #FF5F57; }
.mockup-bar span:nth-child(2) { background: #FFBD2E; }
.mockup-bar span:nth-child(3) { background: #28C840; }
.mockup-body { padding: 24px; }
.mockup-stat { margin-bottom: 16px; }
.stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.stat-value { font-size: 1.9rem; font-weight: 800; color: var(--white); }
.stat-up { font-size: 0.78rem; color: #34D399; margin-top: 2px; }
.mockup-divider { height: 1px; background: var(--border); margin: 16px 0; }
.mockup-chart {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 80px;
  margin-top: 20px;
}
.chart-bar {
  flex: 1;
  background: rgba(59,130,246,0.25);
  border-radius: 4px 4px 0 0;
  transition: background 0.3s;
}
.chart-bar.active { background: var(--gradient); box-shadow: 0 0 12px var(--blue-glow); }

/* =============================================
   TRUST BAR
   ============================================= */
.trust-bar {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.trust-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.trust-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.trust-logo {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: all 0.2s;
}
.trust-logo:hover { border-color: var(--blue); color: var(--white); }

/* =============================================
   SERVICES
   ============================================= */
.services {
  padding: 100px 24px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.services .section-sub { margin: 0 auto 56px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
  transition: all 0.3s;
}
.service-card:hover {
  border-color: rgba(59,130,246,0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(59,130,246,0.12);
}
.service-card--featured {
  border-color: rgba(59,130,246,0.4);
  background: linear-gradient(160deg, #0F1A30, #0C1526);
  box-shadow: 0 0 40px rgba(59,130,246,0.1);
}
.featured-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}
.card-icon { font-size: 2rem; margin-bottom: 16px; }
.service-card h3 { font-size: 1.25rem; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.service-card p { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.7; }
.card-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.card-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
}
.card-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}
.card-link { font-size: 0.88rem; color: var(--blue); font-weight: 600; }
.card-link:hover { text-decoration: underline; }

/* =============================================
   HOW IT WORKS
   ============================================= */
.how-it-works {
  padding: 100px 24px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.how-it-works .section-sub { margin: 0 auto 60px; }
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  justify-content: center;
  flex-wrap: wrap;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 200px;
  flex: 1;
  min-width: 160px;
}
.step-num {
  width: 56px; height: 56px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  box-shadow: 0 0 24px var(--blue-glow);
  flex-shrink: 0;
}
.step-body h4 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.step-body p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
.step-connector {
  flex: 0 0 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  margin-top: 28px;
  opacity: 0.4;
}

/* =============================================
   RESULTS
   ============================================= */
.results {
  padding: 100px 24px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.results-glow {
  position: absolute;
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(59,130,246,0.1) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 24px;
  transition: all 0.3s;
}
.stat-card:hover {
  border-color: rgba(59,130,246,0.3);
  transform: translateY(-3px);
}
.stat-number {
  font-size: 2.8rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 12px;
}
.stat-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; }

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}
.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.testimonial-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 38px; height: 38px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 0.9rem; color: var(--white); }
.testimonial-author span { font-size: 0.78rem; color: var(--text-muted); }

/* =============================================
   PRICING
   ============================================= */
.pricing {
  padding: 100px 24px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.pricing .section-sub { margin: 0 auto 56px; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}
.pricing-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
  transition: all 0.3s;
}
.pricing-card:hover { border-color: rgba(59,130,246,0.3); transform: translateY(-4px); }
.pricing-card--featured {
  border-color: rgba(59,130,246,0.5);
  background: linear-gradient(160deg, #0F1A30, #0C1526);
  box-shadow: 0 0 48px rgba(59,130,246,0.15);
}
.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}
.plan-name { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.plan-price { font-size: 2.4rem; font-weight: 900; color: var(--white); margin-bottom: 8px; }
.plan-price span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.plan-desc { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 24px; line-height: 1.6; }
.plan-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}
.plan-features li { font-size: 0.88rem; color: var(--text-muted); }

/* =============================================
   CTA / CONTACT
   ============================================= */
.cta-section {
  padding: 100px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(59,130,246,0.14) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.cta-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; color: var(--white); margin-bottom: 16px; }
.cta-sub { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 40px; line-height: 1.7; }

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cta-form input,
.cta-form select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s;
}
.cta-form input::placeholder { color: var(--text-muted); }
.cta-form input:focus,
.cta-form select:focus { border-color: var(--blue); }
.cta-form select { color: var(--text-muted); cursor: pointer; }
.cta-form select option { background: var(--bg-card); color: var(--text); }
.form-note { font-size: 0.8rem; color: var(--text-muted); text-align: center; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 64px 24px 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand p { font-size: 0.88rem; color: var(--text-muted); margin-top: 14px; max-width: 260px; line-height: 1.7; }
.footer-links { display: contents; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h5 { font-size: 0.85rem; font-weight: 700; color: var(--white); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-col a { font-size: 0.88rem; color: var(--text-muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a:hover { color: var(--white); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 100px; }
  .hero-visual { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .steps { flex-direction: column; align-items: center; gap: 20px; }
  .step-connector { width: 2px; height: 30px; flex: none; margin-top: 0; margin-bottom: 0; background: linear-gradient(180deg, var(--blue), var(--cyan)); }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: block; }
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-content > * {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}
.hero-content > *:nth-child(1) { animation-delay: 0.05s; }
.hero-content > *:nth-child(2) { animation-delay: 0.15s; }
.hero-content > *:nth-child(3) { animation-delay: 0.25s; }
.hero-content > *:nth-child(4) { animation-delay: 0.35s; }
.hero-content > *:nth-child(5) { animation-delay: 0.45s; }
