/*
Theme Name: Stackflow
Theme URI: https://stackflow.io
Author: Stackflow Team
Description: A modern, clean SaaS business WordPress theme.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: stackflow
Tags: business, saas, modern, clean, responsive
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #0f172a; background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* NAVBAR */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: all 0.3s ease; }
.site-header.scrolled { background: rgba(255,255,255,0.85); backdrop-filter: blur(20px); border-bottom: 1px solid #f1f5f9; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.navbar { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.navbar-brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; color: #0f172a; letter-spacing: -0.02em; }
.brand-logo { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg,#6366f1,#7c3aed); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 14px; }
.navbar-nav { display: flex; align-items: center; gap: 4px; list-style: none; }
.navbar-nav a { padding: 8px 16px; border-radius: 10px; font-size: 14px; font-weight: 500; color: #475569; transition: all 0.2s; }
.navbar-nav a:hover, .navbar-nav a.active { color: #0f172a; background: #f8fafc; }
.navbar-actions { display: flex; align-items: center; gap: 12px; }
.btn-ghost { padding: 8px 16px; font-size: 14px; font-weight: 500; color: #334155; background: transparent; border: none; cursor: pointer; border-radius: 10px; transition: all 0.2s; }
.btn-ghost:hover { background: #f8fafc; }
.btn-primary { padding: 10px 20px; font-size: 14px; font-weight: 600; color: #fff; background: #0f172a; border: none; border-radius: 12px; cursor: pointer; transition: all 0.2s; }
.btn-primary:hover { background: #1e293b; transform: translateY(-1px); }
.hamburger { display: none; cursor: pointer; background: none; border: none; }

/* HERO */
.hero { padding: 160px 0 100px; position: relative; overflow: hidden; background: linear-gradient(to bottom, rgba(238,242,255,0.6), #fff); }
.hero::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 800px; height: 600px; background: radial-gradient(ellipse, rgba(167,139,250,0.2), transparent 70%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; background: #eef2ff; border: 1px solid #e0e7ff; border-radius: 999px; font-size: 12px; font-weight: 500; color: #4338ca; margin-bottom: 24px; }
.badge-dot { width: 8px; height: 8px; background: #6366f1; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.hero h1 { font-size: clamp(36px,5vw,58px); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; color: #0f172a; margin-bottom: 24px; }
.gradient-text { background: linear-gradient(135deg,#6366f1,#7c3aed); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 18px; color: #64748b; line-height: 1.7; max-width: 500px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.btn-hero-primary { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; font-size: 15px; font-weight: 700; color: #fff; background: #0f172a; border-radius: 14px; border: none; cursor: pointer; text-decoration: none; transition: all 0.25s; box-shadow: 0 4px 16px rgba(15,23,42,0.2); }
.btn-hero-primary:hover { background: #1e293b; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,23,42,0.3); }
.btn-hero-outline { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; font-size: 15px; font-weight: 600; color: #334155; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; cursor: pointer; text-decoration: none; transition: all 0.25s; }
.btn-hero-outline:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.hero-social-proof { display: flex; align-items: center; gap: 16px; }
.avatars { display: flex; }
.avatar { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; margin-right: -8px; }
.stars { color: #f59e0b; font-size: 14px; }
.social-text { font-size: 12px; color: #64748b; margin-top: 2px; }
.hero-image-wrapper img { border-radius: 20px; box-shadow: 0 25px 60px rgba(99,102,241,0.12); border: 1px solid rgba(226,232,240,0.5); }

/* LOGO CLOUD */
.logo-cloud { padding: 60px 0; border-top: 1px solid #f1f5f9; border-bottom: 1px solid #f1f5f9; }
.logo-cloud-label { text-align: center; font-size: 12px; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 32px; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 48px; }
.logos span { font-size: 20px; font-weight: 800; color: #cbd5e1; letter-spacing: -0.02em; }

/* FEATURES */
.features { padding: 100px 0; }
.section-label { font-size: 12px; font-weight: 700; color: #6366f1; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; display: block; }
.section-title { font-size: clamp(28px,4vw,40px); font-weight: 800; color: #0f172a; letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 16px; }
.section-subtitle { font-size: 18px; color: #64748b; line-height: 1.7; max-width: 560px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 64px; }
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.feature-card { padding: 28px; border-radius: 20px; background: #fff; border: 1px solid #f1f5f9; transition: all 0.3s ease; }
.feature-card:hover { border-color: #e2e8f0; box-shadow: 0 12px 32px rgba(0,0,0,0.06); transform: translateY(-4px); }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; background: #eef2ff; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 20px; }
.feature-card h3 { font-size: 17px; font-weight: 700; color: #0f172a; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: #64748b; line-height: 1.7; }

/* STATS */
.stats-section { padding: 80px 0; background: #0f172a; position: relative; overflow: hidden; }
.stats-section::before { content: ''; position: absolute; top: 50%; left: 25%; width: 384px; height: 384px; background: rgba(99,102,241,0.1); border-radius: 50%; filter: blur(80px); transform: translate(-50%,-50%); }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 48px; position: relative; }
.stat-item { text-align: center; }
.stat-value { font-size: clamp(36px,4vw,52px); font-weight: 800; background: linear-gradient(to right,#fff,#cbd5e1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; letter-spacing: -0.03em; }
.stat-label { font-size: 14px; font-weight: 600; color: #fff; margin-top: 8px; }
.stat-sub { font-size: 12px; color: #475569; margin-top: 4px; }

/* TESTIMONIALS */
.testimonials { padding: 100px 0; background: rgba(248,250,252,0.5); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.testimonial-card { background: #fff; border: 1px solid #f1f5f9; border-radius: 20px; padding: 28px; transition: all 0.3s ease; }
.testimonial-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.06); }
.stars-row { color: #f59e0b; font-size: 16px; margin-bottom: 20px; letter-spacing: 2px; }
.testimonial-quote { font-size: 14px; color: #475569; line-height: 1.8; margin-bottom: 24px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.author-name { font-size: 14px; font-weight: 700; color: #0f172a; }
.author-role { font-size: 12px; color: #94a3b8; margin-top: 2px; }

/* CTA BANNER */
.cta-banner { padding: 80px 0; }
.cta-inner { background: linear-gradient(135deg,#0f172a 0%,#1e1b4b 100%); border-radius: 28px; padding: 80px 60px; text-align: center; position: relative; overflow: hidden; }
.cta-inner::before { content: ''; position: absolute; top: 0; right: 0; width: 320px; height: 320px; background: rgba(99,102,241,0.2); border-radius: 50%; filter: blur(80px); }
.cta-inner h2 { font-size: clamp(28px,4vw,44px); font-weight: 800; color: #fff; letter-spacing: -0.025em; margin-bottom: 20px; position: relative; }
.cta-inner p { font-size: 18px; color: #94a3b8; max-width: 500px; margin: 0 auto 36px; position: relative; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }
.btn-cta-primary { display: inline-flex; align-items: center; gap: 8px; padding: 16px 32px; font-size: 15px; font-weight: 700; color: #0f172a; background: #fff; border-radius: 14px; text-decoration: none; border: none; cursor: pointer; transition: all 0.25s; }
.btn-cta-primary:hover { background: #f1f5f9; transform: translateY(-2px); }
.btn-cta-outline { display: inline-flex; align-items: center; gap: 8px; padding: 16px 32px; font-size: 15px; font-weight: 600; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,0.2); border-radius: 14px; text-decoration: none; cursor: pointer; transition: all 0.25s; }
.btn-cta-outline:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.05); }

/* PRICING */
.pricing-page { padding: 120px 0 80px; }
.pricing-toggle { display: flex; justify-content: center; margin-bottom: 56px; }
.toggle-wrapper { display: inline-flex; background: #f1f5f9; border-radius: 14px; padding: 4px; gap: 4px; }
.toggle-btn { padding: 10px 24px; font-size: 14px; font-weight: 600; border-radius: 11px; border: none; cursor: pointer; transition: all 0.2s; background: transparent; color: #64748b; }
.toggle-btn.active { background: #fff; color: #0f172a; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.badge-save { display: inline-block; padding: 2px 8px; font-size: 11px; font-weight: 700; background: #eef2ff; color: #4338ca; border-radius: 999px; margin-left: 6px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; max-width: 1000px; margin: 0 auto; }
.pricing-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 24px; padding: 32px; transition: all 0.3s; position: relative; }
.pricing-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.08); transform: translateY(-4px); }
.pricing-card.popular { background: #0f172a; border-color: transparent; outline: 2px solid #6366f1; box-shadow: 0 20px 60px rgba(15,23,42,0.2); }
.popular-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: #6366f1; color: #fff; font-size: 11px; font-weight: 700; padding: 4px 14px; border-radius: 999px; }
.plan-name { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: #0f172a; }
.pricing-card.popular .plan-name { color: #fff; }
.plan-desc { font-size: 13px; color: #64748b; margin-bottom: 24px; }
.pricing-card.popular .plan-desc { color: #94a3b8; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 6px; }
.price-amount { font-size: 44px; font-weight: 800; color: #0f172a; letter-spacing: -0.03em; }
.pricing-card.popular .price-amount { color: #fff; }
.price-period { font-size: 14px; color: #94a3b8; }
.price-savings { font-size: 12px; color: #6366f1; margin-bottom: 24px; }
.pricing-card.popular .price-savings { color: #a5b4fc; }
.plan-cta { width: 100%; padding: 12px; border-radius: 12px; font-size: 14px; font-weight: 700; cursor: pointer; border: none; transition: all 0.2s; margin-bottom: 28px; }
.pricing-card:not(.popular) .plan-cta { background: #0f172a; color: #fff; }
.pricing-card.popular .plan-cta { background: #fff; color: #0f172a; }
.plan-features { list-style: none; }
.plan-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: #475569; padding: 5px 0; }
.pricing-card.popular .plan-features li { color: #cbd5e1; }
.check-icon { color: #6366f1; font-weight: 900; flex-shrink: 0; }
.pricing-card.popular .check-icon { color: #a5b4fc; }
.faq-section { padding: 80px 0; }
.faq-grid { max-width: 700px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid #f1f5f9; border-radius: 16px; padding: 24px; margin-bottom: 12px; }
.faq-item h3 { font-size: 15px; font-weight: 700; color: #0f172a; margin-bottom: 8px; }
.faq-item p { font-size: 14px; color: #64748b; line-height: 1.7; }

/* ABOUT */
.about-page { padding: 120px 0 80px; }
.about-hero { text-align: center; max-width: 700px; margin: 0 auto 80px; }
.about-image { border-radius: 28px; overflow: hidden; margin-bottom: 80px; box-shadow: 0 20px 60px rgba(0,0,0,0.1); }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-bottom: 80px; align-items: start; }
.story-text h2 { font-size: 30px; font-weight: 800; color: #0f172a; margin-bottom: 24px; }
.story-text p { font-size: 16px; color: #64748b; line-height: 1.8; margin-bottom: 16px; }
.timeline h2 { font-size: 30px; font-weight: 800; color: #0f172a; margin-bottom: 24px; }
.timeline-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid #f1f5f9; }
.timeline-year { font-size: 13px; font-weight: 700; color: #6366f1; min-width: 40px; }
.timeline-event { font-size: 14px; color: #64748b; }
.values-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.value-card { padding: 24px; background: #fff; border: 1px solid #f1f5f9; border-radius: 20px; transition: all 0.3s; }
.value-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.value-icon { width: 40px; height: 40px; background: #eef2ff; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 16px; }
.value-card h3 { font-size: 15px; font-weight: 700; color: #0f172a; margin-bottom: 8px; }
.value-card p { font-size: 13px; color: #64748b; line-height: 1.7; }

/* CONTACT */
.contact-page { padding: 120px 0 80px; }
.contact-grid { display: grid; grid-template-columns: 2fr 3fr; gap: 64px; max-width: 960px; margin: 0 auto; align-items: start; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 28px; }
.contact-icon { width: 44px; height: 44px; background: #eef2ff; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.contact-info-item h4 { font-size: 14px; font-weight: 700; color: #0f172a; margin-bottom: 4px; }
.contact-info-item p { font-size: 13px; color: #64748b; }
.contact-live-chat { background: #0f172a; border-radius: 20px; padding: 24px; margin-top: 16px; }
.contact-live-chat h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.contact-live-chat p { font-size: 13px; color: #94a3b8; margin-bottom: 12px; }
.contact-live-chat span { font-size: 12px; color: #64748b; }
.contact-form { background: #fff; border: 1px solid #e2e8f0; border-radius: 24px; padding: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.form-group input, .form-group textarea { width: 100%; padding: 11px 14px; border: 1px solid #e2e8f0; border-radius: 12px; font-size: 14px; color: #0f172a; background: #fff; transition: all 0.2s; font-family: inherit; outline: none; }
.form-group input:focus, .form-group textarea:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }
.form-group textarea { min-height: 140px; resize: vertical; }
.btn-submit { width: 100%; padding: 14px; background: #0f172a; color: #fff; font-size: 14px; font-weight: 700; border: none; border-radius: 12px; cursor: pointer; transition: all 0.2s; }
.btn-submit:hover { background: #1e293b; }

/* FOOTER */
.site-footer { background: #020617; color: #fff; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { font-size: 13px; color: #475569; line-height: 1.8; max-width: 240px; margin-top: 16px; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 13px; color: #475569; transition: color 0.2s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { padding-top: 32px; border-top: 1px solid #1e293b; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-bottom p { font-size: 13px; color: #475569; }
.footer-social { display: flex; gap: 24px; }
.footer-social a { font-size: 13px; color: #475569; transition: color 0.2s; }
.footer-social a:hover { color: #fff; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .features-grid, .testimonials-grid { grid-template-columns: repeat(2,1fr); }
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 32px; }
  .values-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero-grid, .story-grid, .contact-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .hero { padding: 120px 0 60px; }
  .navbar-nav, .navbar-actions { display: none; }
  .hamburger { display: block; }
  .features-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .cta-inner { padding: 48px 28px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .values-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}