@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --bg-primary: #FFFFFF;
  --bg-secondary: #FAFAFA;
  --bg-tertiary: #F3F4F6;
  
  --bg-dark: #12211C;
  --bg-dark-grad: linear-gradient(135deg, #153123 0%, #0B1912 100%);
  --bg-dark-glass: rgba(255, 255, 255, 0.08);
  
  --accent-green: #1B3A2D;
  --accent-light: #22C55E;
  --accent-gold: #EDB046;
  
  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-muted: #9CA3AF;
  
  --text-on-dark: #FFFFFF;
  --text-on-dark-muted: #D1D5DB;
  
  /* UI Elements */
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.08);
  --shadow-float: 0 24px 48px rgba(0, 0, 0, 0.15);
  
  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --radius-pill: 100px;
  
  /* Layout */
  --max-width: 1280px;
  --section-py: clamp(5rem, 10vw, 8rem);
  --px: clamp(1.5rem, 5vw, 4rem);
  
  --font-primary: 'Plus Jakarta Sans', sans-serif;
}

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

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
h1 { font-size: clamp(3rem, 6vw, 5.5rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }
p { font-size: 1.125rem; color: var(--text-secondary); }
.text-small { font-size: 0.9375rem; }

.grid-pr { padding-right: 2rem; }
@media (max-width: 768px) {
  .grid-pr { padding-right: 0 !important; text-align: center; }
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Layout Utilities */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--px); }
.section { padding: var(--section-py) 0; }
.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); align-items: center; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Responsive Grids */
@media (max-width: 1024px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .items-start { align-items: stretch; }
}

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Backgrounds */
.bg-dark { background: var(--bg-dark); color: var(--text-on-dark); }
.bg-secondary { background: var(--bg-secondary); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1rem 2rem; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 1rem; cursor: pointer;
  border: none; transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
  will-change: transform;
}
.btn-primary { background: white; color: var(--bg-dark); }
.btn-primary:hover { background: var(--bg-tertiary); transform: translateY(-2px); }
.btn-dark { background: var(--bg-dark); color: white; }
.btn-dark:hover { background: #1B3A2D; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { border: 1px solid rgba(255,255,255,0.2); background: transparent; color: white; }
.btn-outline:hover { background: white; color: var(--bg-dark); }

/* Custom Floating Navbar */
.navbar-wrapper {
  position: fixed; top: 1.5rem; left: 0; width: 100%; z-index: 100;
  padding: 0 var(--px); pointer-events: none;
}
.navbar {
  max-width: var(--max-width); margin: 0 auto;
  background: var(--bg-dark-glass); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-pill);
  padding: 0.75rem 1rem 0.75rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  pointer-events: auto; color: white;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0,0,0,0.1);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}
.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-links a { font-size: 0.9375rem; font-weight: 500; opacity: 0.8; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; }
.logo { font-size: 1.25rem; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }

.nav-actions { display: flex; align-items: center; gap: 1rem; }
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 768px) {
  .navbar-wrapper { top: 1rem; padding: 0 1rem; }
  .navbar { border-radius: 20px; padding: 0.75rem 1rem; }
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-radius: 20px;
    margin-top: 1rem;
    box-shadow: var(--shadow-lg);
    display: none;
    color: var(--text-primary);
  }
  .nav-links.active { display: flex; }
  .navbar:not(.scrolled) .menu-toggle { color: white; }
  .navbar.scrolled .menu-toggle { color: var(--text-primary); }
  .navbar .btn-primary { display: none; } /* Hide the button on mobile navbar to save space, or keep it if needed. I'll hide it for a cleaner look and put it in the menu if desired, but for now let's just make it compact. */
}
.hero {
  position: relative;
  background: var(--bg-dark-grad);
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 6rem;
  overflow: hidden;
}
/* Finvo style noise/gradient overlay */
.hero::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 100%; height: 100%;
  background: radial-gradient(circle, rgba(237, 176, 70, 0.15) 0%, transparent 60%);
  filter: blur(80px); z-index: 0;
}

.hero-content { position: relative; z-index: 1; max-width: 600px; }
.hero-content h1 { color: white; margin-bottom: 1.5rem; }
.hero-content p { color: var(--text-on-dark-muted); margin-bottom: 2.5rem; font-size: 1.25rem; }

.avatars-joined { display: flex; align-items: center; gap: 1rem; margin-top: 3rem; }
.avatar-group { display: flex; }
.avatar-group img {
  width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--bg-dark);
  margin-left: -12px; object-fit: cover;
}
.avatar-group img:first-child { margin-left: 0; }
.avatars-joined span { color: var(--text-on-dark-muted); font-weight: 500; font-size: 0.9375rem; }

/* Right Mockup */
.hero-mockup { position: relative; z-index: 1; display: flex; justify-content: flex-end; }
.hero-phone { max-width: 380px; transform: rotate(-5deg); z-index: 2; position: relative; transform-style: preserve-3d; }
.hero-widget {
  position: absolute; background: white; border-radius: var(--radius-sm);
  padding: 1.25rem; box-shadow: var(--shadow-float); z-index: 3;
  display: flex; align-items: center; gap: 1rem;
}
.widget-left { bottom: 15%; left: -60px; transform: translateZ(50px); }
.widget-right { top: 20%; right: -20px; transform: translateZ(80px); }

@media (max-width: 768px) {
  .hero { min-height: auto; padding-top: 8rem; padding-bottom: 4rem; }
  .hero-content { max-width: 100%; text-align: center; }
  .hero-content h1 { font-size: 3rem; }
  .hero-content p { font-size: 1.125rem; }
  .avatars-joined { justify-content: center; margin-top: 2rem; }
  .gs-actions { justify-content: center; }
  
  .hero-mockup { justify-content: center; margin-top: 4rem; }
  .hero-phone { max-width: 280px; transform: rotate(0); }
  .widget-left { bottom: -20px; left: 0; }
  .widget-right { top: -20px; right: 0; }
}

/* Brands */
.brands-section { padding: 4rem 0; border-bottom: 1px solid var(--bg-tertiary); }
.brands-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 2rem; }
.brands-row h3 { color: var(--text-muted); font-size: 1.5rem; opacity: 0.5; font-family: serif; font-style: italic; }

/* Feature Cards */
.feat-cards .grid-4 { gap: 1.5rem; }
.feat-card {
  background: white; border: 1px solid var(--bg-tertiary); border-radius: var(--radius-md);
  padding: 2rem; transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}
.feat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.feat-icon {
  width: 48px; height: 48px; background: var(--bg-secondary); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem;
  color: var(--text-primary);
}

/* App Features */
.app-feat-img {
  background: var(--bg-secondary); border-radius: var(--radius-lg);
  padding: 3rem; display: flex; align-items: center; justify-content: center;
}
.app-feat-img img { box-shadow: var(--shadow-float); border-radius: var(--radius-sm); }

/* Download Section */
.download-section {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  margin: var(--section-py) var(--px); padding: 6rem 3rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 500px;
}
.download-bg {
  position: absolute; top:0; left:0; width:100%; height:100%;
  object-fit: cover; z-index: 0;
}
.download-content { position: relative; z-index: 1; color: white; max-width: 500px; }
.download-content h2 { margin-bottom: 1.5rem; color: white; }

@media (max-width: 768px) {
  .download-section { padding: 4rem 1.5rem; min-height: 400px; margin: 2rem 1rem; text-align: center; justify-content: center; }
  .download-content { max-width: 100%; }
  .download-content .flex { justify-content: center; flex-direction: column; }
}

/* Pricing */
.pricing-card {
  background: white; border: 1px solid var(--bg-tertiary); border-radius: var(--radius-lg);
  padding: 3rem 2rem; display: flex; flex-direction: column;
}
.pricing-dark { background: var(--bg-dark); color: white; transform: scale(1.05); }

@media (max-width: 1024px) {
  .pricing-dark { transform: scale(1); margin: 1rem 0; }
  .brands-row { gap: 2rem !important; }
}

@media (max-width: 768px) {
  .footer .grid-4 { grid-template-columns: 1fr; text-align: center; }
  .footer .logo { justify-content: center; }
  .footer .footer-links { padding: 0; }
}

.pricing-dark p, .pricing-dark li { color: rgba(255,255,255,0.7); }
.pricing-dark .btn { background: white; color: var(--bg-dark); }
.check-list li { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; font-size: 0.9375rem; }
.check-icon { color: var(--accent-light); }

/* Footer */
.footer { background: var(--bg-dark); color: var(--text-on-dark-muted); padding: 5rem 0 2rem; }
.footer h4 { color: white; margin-bottom: 1.5rem; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a:hover { color: white; }
.footer-bottom { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; font-size: 0.875rem; }

/* Animation Utility */
.reveal { will-change: transform, opacity; opacity: 1; }

/* Dashboard Iframe & Video */
.dashboard-preview { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--bg-tertiary); box-shadow: var(--shadow-lg); height: 750px;}
.ui-video { width: 100%; border-radius: 12px; box-shadow: var(--shadow-float); display: block; border: 1px solid var(--border-light); transform-origin: center; will-change: transform; }

/* Page Loader */
.page-loader { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: var(--bg-dark); z-index: 99999; }

/* NEW EXPANSION STYLES */

/* Integrations Marquee */
.marquee-wrapper { overflow: hidden; white-space: nowrap; padding: 3rem 0; mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
.marquee-content { display: inline-flex; align-items: center; gap: 4rem; padding-right: 4rem; }
.marquee-item { display: inline-flex; align-items: center; justify-content: center; background: white; border: 1px solid var(--bg-tertiary); padding: 1rem 2rem; border-radius: var(--radius-pill); box-shadow: var(--shadow-sm); font-weight: 600; color: var(--text-secondary); gap: 0.5rem; transition: transform 0.3s; will-change: transform; }
.marquee-item:hover { transform: translateY(-5px); color: var(--bg-dark); border-color: var(--text-muted); }

/* How It Works (Timeline) */
.timeline { position: relative; max-width: 800px; margin: 4rem auto; }
.timeline::before { content: ''; position: absolute; left: 50%; transform: translateX(-50%); width: 2px; height: 100%; background: var(--bg-tertiary); z-index: 0; }
.timeline-progress { position: absolute; left: 50%; transform: translateX(-50%); width: 2px; height: 0; background: var(--accent-light); z-index: 1; }
.timeline-step { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; margin-bottom: 4rem; opacity: 0; }
.timeline-step:nth-child(even) { flex-direction: row-reverse; }
.timeline-content { width: calc(50% - 3rem); background: white; padding: 2rem; border-radius: var(--radius-md); box-shadow: var(--shadow-md); border: 1px solid var(--bg-tertiary); }
.timeline-img { width: calc(50% - 3rem); display: flex; justify-content: center; }
.timeline-dot { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; background: white; border: 4px solid var(--accent-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--accent-light); font-weight: 800; font-family: var(--font-mono); z-index: 3; box-shadow: 0 0 0 4px white; }

@media (max-width: 768px) {
  .timeline::before, .timeline-progress { left: 20px; transform: none; }
  .timeline-step { flex-direction: column !important; align-items: flex-start; padding-left: 50px; gap: 1.5rem; }
  .timeline-content, .timeline-img { width: 100%; text-align: left; }
  .timeline-img { justify-content: flex-start; }
  .timeline-dot { left: 20px; transform: translateY(-50%); }
}

/* Security Section */
.security-card { background: var(--bg-primary); padding: 2.5rem; border-radius: var(--radius-md); border: 1px solid rgba(255,255,255,0.05); }

/* FAQ Accordion */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background: white; border: 1px solid var(--bg-tertiary); border-radius: var(--radius-sm); margin-bottom: 1rem; overflow: hidden; transition: all 0.3s; }
.faq-question { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem; font-weight: 600; cursor: pointer; color: var(--text-primary); font-size: 1.125rem; }
.faq-answer { padding: 0 1.5rem; max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease; color: var(--text-secondary); }
.faq-item.active { border-color: var(--accent-green); box-shadow: var(--shadow-sm); }
.faq-item.active .faq-answer { padding: 0 1.5rem 1.5rem 1.5rem; max-height: 400px; opacity: 1; }
.faq-icon { transition: transform 0.3s ease; color: var(--accent-green); }
.faq-item.active .faq-icon { transform: rotate(180deg); }

/* Interactive Calculator Mockup */
.calc-mockup { background: white; padding: 3rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--bg-tertiary); }
.calc-bar-bg { width: 100%; height: 12px; background: var(--bg-tertiary); border-radius: 100px; overflow: hidden; margin: 1rem 0 2rem; }
.calc-bar-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent-light), var(--accent-green)); border-radius: 100px; }
.big-roi { font-size: 3.5rem; font-weight: 800; color: var(--accent-green); line-height: 1; margin-bottom: 0.5rem; }

@media (max-width: 768px) {
  .calc-mockup { padding: 1.5rem; margin-top: 2rem; }
  .big-roi { font-size: 2.5rem; }
}
