/* ============================================================
   FLOWLY — MOBILE APP LANDING — style.css
   Dark luxury design with vibrant purple/cyan accents
   ============================================================ */

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

:root {
  --primary:       #7c3aed;
  --primary-dark:  #5b21b6;
  --primary-glow:  rgba(124,58,237,0.25);
  --primary-light: #f5f3ff;
  --bg:            #0a0a0f;
  --bg-alt:        #111118;
  --surface:       #16161f;
  --border:        rgba(255,255,255,.08);
  --text:          #ffffff;
  --text-muted:    #a1a1aa;
  --text-light:    #52525b;
  --accent:        #06b6d4;
  --accent-2:      #f59e0b;
  --radius:        12px;
  --radius-lg:     20px;
  --shadow:        0 4px 24px rgba(0,0,0,.4);
  --shadow-glow:   0 0 40px rgba(124,58,237,.2);
  --font:          'Space Grotesk', system-ui, sans-serif;
  --max-w:         1180px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

#scrollProgress { position: fixed; top: 0; left: 0; height: 2px; background: linear-gradient(to right, var(--primary), var(--accent)); width: 0%; z-index: 9999; }

/* NAVBAR */
.navbar { position: sticky; top: 0; z-index: 500; background: rgba(10,10,15,.85); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); transition: box-shadow .2s; }
.navbar.scrolled { box-shadow: 0 4px 32px rgba(124,58,237,.12); }
.navbar-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 32px; }
.navbar-logo { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.navbar-logo .logo-icon { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: center; justify-content: center; }
.navbar-links { display: flex; align-items: center; gap: 4px; list-style: none; margin-left: auto; }
.navbar-links a { font-size: 14px; font-weight: 500; padding: 7px 14px; border-radius: 8px; color: var(--text-muted); transition: color .15s, background .15s; }
.navbar-links a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.navbar-actions { display: flex; align-items: center; gap: 8px; }
.btn-ghost { padding: 9px 18px; font-size: 13.5px; font-weight: 600; color: var(--text); background: transparent; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; transition: all .15s; }
.btn-ghost:hover { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.05); }
.btn-nav-cta { padding: 9px 20px; font-size: 13.5px; font-weight: 700; color: #fff; background: var(--primary); border: none; border-radius: 8px; cursor: pointer; transition: all .15s; white-space: nowrap; }
.btn-nav-cta:hover { background: var(--primary-dark); box-shadow: 0 4px 16px var(--primary-glow); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.mobile-menu { display: none; flex-direction: column; background: var(--bg-alt); border-top: 1px solid var(--border); padding: 16px 24px 24px; gap: 4px; }
.mobile-menu a { padding: 10px 12px; font-size: 14px; font-weight: 500; border-radius: 8px; color: var(--text-muted); }
.mobile-menu a:hover { background: rgba(255,255,255,.06); color: var(--text); }
.mobile-menu .btn-nav-cta { margin-top: 8px; text-align: center; padding: 12px; border-radius: 10px; }
.navbar.open .mobile-menu { display: flex; }

/* HERO */
.hero { position: relative; min-height: 96vh; display: flex; align-items: center; overflow: hidden; padding: 120px 24px 80px; }
.hero-glow-1 { position: absolute; width: 600px; height: 600px; background: radial-gradient(circle, rgba(124,58,237,.3) 0%, transparent 65%); top: -150px; left: -100px; pointer-events: none; }
.hero-glow-2 { position: absolute; width: 500px; height: 500px; background: radial-gradient(circle, rgba(6,182,212,.2) 0%, transparent 65%); bottom: -150px; right: -100px; pointer-events: none; }
.hero .container { position: relative; z-index: 2; max-width: var(--max-w); margin: 0 auto; width: 100%; 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: rgba(124,58,237,.15); border: 1px solid rgba(124,58,237,.3); border-radius: 100px; font-size: 12px; font-weight: 700; color: #c4b5fd; letter-spacing: .05em; margin-bottom: 28px; }
.hero-badge span { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.hero-h1 { font-size: clamp(2.8rem, 6vw, 4.5rem); font-weight: 800; line-height: 1.02; letter-spacing: -.04em; margin-bottom: 24px; }
.hero-h1 .grad { background: linear-gradient(135deg, #c4b5fd, var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: 1.125rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 40px; max-width: 500px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
.btn-store { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 12px; font-size: 13px; font-weight: 700; transition: all .18s; cursor: pointer; }
.btn-store-ios { background: #fff; color: #0a0a0f; border: none; }
.btn-store-ios:hover { background: #f5f5f5; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,255,255,.15); }
.btn-store-android { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,.15); }
.btn-store-android:hover { background: rgba(255,255,255,.06); transform: translateY(-2px); }
.btn-store .store-icon { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.btn-store .store-text small { display: block; font-size: 9px; font-weight: 500; opacity: .6; text-transform: uppercase; letter-spacing: .08em; }
.btn-demo { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text-muted); transition: color .15s; cursor: pointer; background: none; border: none; padding: 0; font-family: var(--font); }
.btn-demo:hover { color: var(--text); }
.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.hero-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.hero-stat .sv { font-size: 1.8rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.hero-stat .sl { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.hero-phone { position: relative; }
.hero-phone-wrap { position: relative; display: inline-block; width: 100%; }
.hero-phone-wrap img { width: 80%; max-width: 340px; margin: 0 auto; border-radius: 28px; box-shadow: 0 40px 100px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08); }
.hero-phone-glow { position: absolute; inset: -20%; background: radial-gradient(ellipse at center, var(--primary-glow) 0%, transparent 65%); pointer-events: none; }

/* LOGOS */
.logos-bar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 24px; }
.logos-inner { max-width: var(--max-w); margin: 0 auto; display: flex; align-items: center; gap: 24px; justify-content: center; flex-wrap: wrap; }
.logos-label { font-size: 12px; font-weight: 600; color: var(--text-light); letter-spacing: .08em; text-transform: uppercase; }
.logos-list { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.logo-chip { font-size: 14px; font-weight: 700; color: var(--text-light); }

/* SECTIONS */
.section { padding: 100px 24px; }
.section-alt { background: var(--bg-alt); }
.container { max-width: var(--max-w); margin: 0 auto; }
.section-eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
.section-headline { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; line-height: 1.12; letter-spacing: -.03em; margin-bottom: 16px; }
.section-sub { font-size: 1.0625rem; color: var(--text-muted); line-height: 1.75; max-width: 580px; }
.section-header { margin-bottom: 64px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-sub { margin: 0 auto; }

/* FEATURES */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; transition: all .22s; }
.feature-card:hover { border-color: rgba(124,58,237,.3); box-shadow: 0 0 32px rgba(124,58,237,.12); transform: translateY(-3px); }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p  { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* HOW IT WORKS */
.how-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.how-steps { display: flex; flex-direction: column; gap: 0; }
.how-step { display: flex; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--border); }
.how-step:last-child { border-bottom: none; }
.how-num { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-size: 15px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.how-step h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.how-step p  { font-size: 14px; color: var(--text-muted); line-height: 1.65; }
.how-image { border-radius: var(--radius-lg); overflow: hidden; }
.how-image img { width: 100%; object-fit: cover; }

/* SCREENSHOTS */
.screenshots-scroll { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.screenshot-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: all .22s; }
.screenshot-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow); }
.screenshot-card img { width: 100%; display: block; }

/* PRICING */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pricing-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; transition: all .22s; display: flex; flex-direction: column; }
.pricing-card.popular { border-color: var(--primary); background: linear-gradient(135deg, rgba(124,58,237,.1), rgba(6,182,212,.05)); box-shadow: 0 0 40px rgba(124,58,237,.15); }
.pricing-badge { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); background: rgba(124,58,237,.15); border: 1px solid rgba(124,58,237,.3); padding: 3px 10px; border-radius: 100px; display: inline-block; margin-bottom: 12px; }
.pricing-name  { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.pricing-desc  { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.pricing-price { font-size: 2.8rem; font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.pricing-price span { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.pricing-period { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; margin-top: 4px; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 10px; flex: 1; margin-bottom: 28px; }
.pricing-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-muted); }
.pricing-features li svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.btn-pricing { display: block; text-align: center; padding: 13px; font-size: 14.5px; font-weight: 700; border-radius: 10px; transition: all .18s; cursor: pointer; border: none; font-family: var(--font); }
.pricing-card:not(.popular) .btn-pricing { background: rgba(255,255,255,.06); color: var(--text); border: 1px solid var(--border); }
.pricing-card:not(.popular) .btn-pricing:hover { background: rgba(255,255,255,.1); }
.pricing-card.popular .btn-pricing { background: var(--primary); color: #fff; }
.pricing-card.popular .btn-pricing:hover { background: var(--primary-dark); box-shadow: 0 6px 24px var(--primary-glow); transform: translateY(-1px); }

/* TESTIMONIALS */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 16px; transition: all .22s; }
.testimonial-card:hover { border-color: rgba(124,58,237,.25); box-shadow: 0 0 32px rgba(124,58,237,.1); }
.test-stars { display: flex; gap: 3px; }
.test-stars svg { color: var(--accent-2); }
.test-quote { font-size: 14.5px; color: var(--text-muted); line-height: 1.72; flex: 1; }
.test-author { display: flex; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.test-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.test-name  { font-size: 14px; font-weight: 700; }
.test-title { font-size: 12px; color: var(--text-muted); }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .18s; }
.faq-item.open { border-color: rgba(124,58,237,.4); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 18px 20px; background: none; border: none; text-align: left; font-family: var(--font); font-size: 15px; font-weight: 600; color: var(--text); cursor: pointer; }
.faq-q svg { flex-shrink: 0; transition: transform .2s; color: var(--text-light); }
.faq-item.open .faq-q svg { transform: rotate(45deg); color: var(--primary); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner { padding: 0 20px 18px; font-size: 14.5px; color: var(--text-muted); line-height: 1.7; }

/* DOWNLOAD CTA */
.download-section { padding: 100px 24px; background: linear-gradient(135deg, #0d0621, #0a1a2f); position: relative; overflow: hidden; text-align: center; }
.download-glow { position: absolute; width: 700px; height: 400px; background: radial-gradient(ellipse, rgba(124,58,237,.25) 0%, transparent 65%); top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.download-section .container { position: relative; z-index: 2; }
.download-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #c4b5fd; margin-bottom: 16px; }
.download-h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 18px; }
.download-sub { font-size: 1.0625rem; color: var(--text-muted); max-width: 480px; margin: 0 auto 40px; line-height: 1.75; }
.download-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }
.btn-dl-ios { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; background: #fff; color: #0a0a0f; border-radius: 12px; font-size: 14px; font-weight: 700; transition: all .18s; }
.btn-dl-ios:hover { background: #f0f0f0; transform: translateY(-2px); }
.btn-dl-android { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; background: transparent; color: var(--text); border: 1.5px solid rgba(255,255,255,.2); border-radius: 12px; font-size: 14px; font-weight: 700; transition: all .18s; }
.btn-dl-android:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.06); transform: translateY(-2px); }
.download-note { font-size: 13px; color: var(--text-light); }
.download-note a { color: var(--text-muted); }

/* FOOTER */
footer { background: #06060a; border-top: 1px solid var(--border); padding: 64px 24px 32px; }
.footer-top { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin: 12px 0 20px; max-width: 240px; }
.footer-brand .fb-logo { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 800; }
.footer-brand .fb-logo-icon { width: 28px; height: 28px; border-radius: 6px; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.footer-social { display: flex; gap: 8px; }
.social-btn { width: 36px; height: 36px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: all .15s; }
.social-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.footer-col h5 { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { font-size: 13.5px; color: var(--text-light); transition: color .15s; }
.footer-col ul li a:hover { color: var(--text); }
.footer-bottom { max-width: var(--max-w); margin: 0 auto; border-top: 1px solid var(--border); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-copy { font-size: 13px; color: var(--text-light); }

/* BACK TO TOP */
.back-to-top { position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px; background: var(--primary); color: #fff; border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 16px var(--primary-glow); opacity: 0; transition: opacity .25s; z-index: 400; }
.back-to-top.visible { opacity: 1; }
.back-to-top:hover { background: var(--primary-dark); }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-stats { max-width: 480px; margin: 0 auto; }
  .hero-phone { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .how-layout { grid-template-columns: 1fr; }
  .how-image { display: none; }
  .screenshots-scroll { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .navbar-links, .navbar-actions .btn-ghost { display: none; }
  .hamburger { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .screenshots-scroll { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: 72px 20px; }
}
