/* ===== Variables ===== */
:root {
  --primary: #2eca8b;
  --primary-dark: #28b47d;
  --primary-light: #d1fae5;
  --secondary: #0f172a;
  --gold: #fbbf24;
  --gold-dark: #d97706;
  --gold-light: #fef3c7;
  --accent: #f59e0b;
  --text: #334155;
  --text-light: #64748b;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
  --transition: .3s ease;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--text); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== Utilities ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-title { font-size: 2.25rem; font-weight: 800; text-align: center; color: var(--secondary); margin-bottom: .75rem; }
.section-subtitle { text-align: center; color: var(--text-light); font-size: 1.125rem; max-width: 600px; margin: 0 auto 3rem; }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .875rem 2rem; border-radius: 8px; font-weight: 600; font-size: 1rem; border: none; cursor: pointer; transition: var(--transition); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-accent { background: var(--accent); color: var(--secondary); }
.btn-accent:hover { background: var(--gold-dark); }
.btn-whatsapp { background: #25d366; color: #fff; padding: .625rem 1.25rem; font-size: .9rem; }
.btn-whatsapp:hover { background: #1fb855; transform: translateY(-2px); }
.btn-gold { color: var(--gold-dark); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold); color: var(--secondary); }
.btn-gold-bg { background: var(--gold); color: var(--secondary); }
.btn-gold-bg:hover { background: var(--gold-dark); color: #fff; }

/* Animations */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== Navbar ===== */
#navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 1rem 0; transition: var(--transition); }
#navbar.scrolled { background: rgba(255,255,255,.95); backdrop-filter: blur(10px); box-shadow: var(--shadow); padding: .75rem 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-size: 1.5rem; font-weight: 800; color: var(--primary); display: inline-flex; align-items: center; gap: .5rem; }
.nav-logo span:first-of-type { color: var(--secondary); }
.logo-badge { font-size: .65rem; font-weight: 700; background: var(--gold); color: var(--secondary); padding: .15rem .5rem; border-radius: 4px; letter-spacing: .5px; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { font-weight: 500; color: var(--secondary); transition: var(--transition); font-size: .95rem; }
.nav-links a:hover { color: var(--primary); }
#menu-btn { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
#menu-btn svg { width: 28px; height: 28px; color: var(--secondary); }
#mobile-menu { display: none; }

/* ===== Hero ===== */
.hero { padding: 8rem 0 5rem; background: linear-gradient(135deg, #ecfdf5 0%, #f8fafc 50%, #fef3c7 100%); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(46,202,139,.1) 0%, transparent 70%); border-radius: 50%; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-version-badge { display: inline-block; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; padding: .5rem 1.25rem; border-radius: 50px; font-weight: 700; font-size: .9rem; margin-bottom: 1.5rem; letter-spacing: 1px; }
.hero-content h1 { font-size: 3.25rem; font-weight: 900; line-height: 1.15; color: var(--secondary); margin-bottom: 1.5rem; }
.hero-content h1 .highlight { color: var(--primary); }
.hero-content p { font-size: 1.2rem; color: var(--text-light); margin-bottom: 2rem; max-width: 520px; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-visual { display: flex; justify-content: center; align-items: center; }

/* Hero Mockup - Dashboard Style */
.hero-mockup { width: 100%; max-width: 520px; background: var(--bg); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--border); }
.hero-mockup .mock-header { display: flex; gap: .5rem; padding: .75rem 1rem; background: var(--secondary); }
.hero-mockup .mock-dot { width: 10px; height: 10px; border-radius: 50%; }
.hero-mockup .mock-dot:nth-child(1) { background: #ef4444; }
.hero-mockup .mock-dot:nth-child(2) { background: #f59e0b; }
.hero-mockup .mock-dot:nth-child(3) { background: #22c55e; }
.mock-content { display: flex; min-height: 240px; }
.mock-sidebar { width: 60px; background: #1e293b; padding: .75rem .5rem; display: flex; flex-direction: column; gap: .5rem; }
.mock-menu-item { height: 8px; border-radius: 4px; background: rgba(255,255,255,.1); }
.mock-menu-item.active { background: var(--primary); }
.mock-body { flex: 1; padding: 1rem; }
.mock-stat-row { display: flex; gap: .5rem; margin-bottom: 1rem; }
.mock-stat { flex: 1; height: 50px; border-radius: 8px; }
.mock-stat.green { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.mock-stat.blue { background: linear-gradient(135deg, #dbeafe, #93c5fd); }
.mock-stat.gold { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.mock-table { display: flex; flex-direction: column; gap: .4rem; }
.mock-row { height: 10px; border-radius: 4px; background: var(--border); }
.mock-row.header { background: var(--primary-light); height: 12px; }

.hero-badges { display: flex; gap: 1.5rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: var(--text-light); }
.hero-badge svg { width: 20px; height: 20px; color: var(--primary); }

/* ===== Features ===== */
.features { background: var(--bg); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.feature-card { padding: 2rem; border-radius: var(--radius); border: 1px solid var(--border); transition: var(--transition); text-align: center; background: var(--bg); }
.feature-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-4px); }
.feature-icon { width: 56px; height: 56px; border-radius: 12px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; color: var(--primary); }
.feature-icon.icon-gold { background: var(--gold-light); color: var(--gold-dark); }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--secondary); margin-bottom: .5rem; }
.feature-card p { font-size: .9rem; color: var(--text-light); }

/* ===== Modules ===== */
.modules { background: var(--bg-alt); }
.modules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.module-card { background: var(--bg); padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--border); display: flex; align-items: flex-start; gap: 1rem; transition: var(--transition); }
.module-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.module-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.module-card h3 { font-size: 1rem; font-weight: 700; color: var(--secondary); margin-bottom: .25rem; }
.module-card p { font-size: .85rem; color: var(--text-light); }

/* Module icon colors */
.mi-billing { background: #dbeafe; color: #2563eb; }
.mi-sales { background: #dcfce7; color: #16a34a; }
.mi-pos { background: #fef3c7; color: #d97706; }
.mi-inventory { background: #e0e7ff; color: #4f46e5; }
.mi-hotel { background: #fce7f3; color: #db2777; }
.mi-restaurant { background: #ffedd5; color: #ea580c; }
.mi-transport { background: #cffafe; color: #0891b2; }
.mi-imports { background: #f3e8ff; color: #7c3aed; }
.mi-app { background: #d1fae5; color: #059669; }
.mi-ecommerce { background: #e0f2fe; color: #0284c7; }
.mi-finance { background: #fee2e2; color: #dc2626; }
.mi-whatsapp { background: #dcfce7; color: #25d366; }

/* ===== Tech Stack ===== */
.tech { background: var(--secondary); color: #fff; }
.tech .section-title { color: #fff; }
.tech .section-subtitle { color: #94a3b8; }
.tech-grid { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.tech-item { text-align: center; }
.tech-item .tech-logo { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto .75rem; }
.tech-item span { font-size: .875rem; color: #94a3b8; }

/* ===== Pricing ===== */
.pricing { background: var(--bg); }
.pricing-reseller { background: var(--bg-alt); }
.pricing-section-header { text-align: center; margin-bottom: 2rem; }
.pricing-section-icon { width: 64px; height: 64px; border-radius: 16px; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; }
.pricing-section-icon.icon-gold { background: var(--gold-light); color: var(--gold-dark); }
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; align-items: start; }
.pricing-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 800px; margin-left: auto; margin-right: auto; }
.pricing-card { padding: 2rem; border-radius: var(--radius); border: 2px solid var(--border); transition: var(--transition); position: relative; background: var(--bg); }
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.pricing-card.popular { border-color: var(--primary); }
.pricing-card.popular .plan-icon { background: var(--primary); color: #fff; }
.pricing-card.popular .popular-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; padding: .25rem 1.25rem; border-radius: 20px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.pricing-card.reseller { border-color: var(--gold); }
.pricing-card.reseller .plan-icon { background: var(--gold-light); color: var(--gold-dark); }
.pricing-card.reseller .reseller-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--secondary); padding: .25rem 1.25rem; border-radius: 20px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.pricing-card.reseller-pro { border-color: var(--gold-dark); background: linear-gradient(180deg, #fffbeb 0%, #fff 30%); }
.pricing-card.reseller-pro .plan-icon { background: var(--gold); color: var(--secondary); }
.pricing-card.reseller-pro .reseller-pro-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: #fff; padding: .25rem 1.25rem; border-radius: 20px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.pricing-card h3 { font-size: 1.25rem; font-weight: 700; color: var(--secondary); margin-bottom: .5rem; }
.pricing-card .price { font-size: 2.5rem; font-weight: 900; color: var(--secondary); text-align: center; }
.pricing-card .price small { font-size: .85rem; font-weight: 400; color: var(--text-light); }
.pricing-card .price-period { font-size: .85rem; color: var(--text-light); margin-bottom: 1rem; }
.pricing-card ul { margin-bottom: 1.5rem; }
.pricing-card li { padding: .35rem 0; font-size: .875rem; color: var(--text); display: flex; align-items: center; gap: .5rem; }
.pricing-card li::before { content: '✓'; color: var(--primary); font-weight: 700; font-size: .8rem; }
.pricing-card.reseller li::before,
.pricing-card.reseller-pro li::before { color: var(--gold-dark); }
.pricing-card .btn { width: 100%; justify-content: center; }

/* Period Selector */
.period-selector { display: flex; border: 2px solid var(--border); border-radius: 8px; overflow: hidden; margin-bottom: 1.25rem; }
.period-btn { flex: 1; padding: .5rem .25rem; background: var(--bg); border: none; cursor: pointer; font-size: .75rem; font-weight: 500; color: var(--text-light); transition: var(--transition); font-family: inherit; line-height: 1.3; text-align: center; }
.period-btn + .period-btn { border-left: 1px solid var(--border); }
.period-btn strong { color: var(--primary); }
.period-btn.active { background: var(--primary); color: #fff; }
.period-btn.active strong { color: #fff; }
.pricing-card.reseller .period-btn.active,
.pricing-card.reseller-pro .period-btn.active { background: var(--gold); color: var(--secondary); }
.pricing-card.reseller .period-btn.active strong,
.pricing-card.reseller-pro .period-btn.active strong { color: var(--secondary); }

/* Price Display */
.price-display { text-align: center; margin-bottom: 1.25rem; min-height: 70px; display: flex; flex-direction: column; justify-content: center; }
.price-old { font-size: 1rem; color: var(--text-light); margin-bottom: .1rem; }
.price-old s { text-decoration: line-through; }

/* ===== Certificates ===== */
.certificates { background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%); }
.cert-content { text-align: center; max-width: 600px; margin: 0 auto; }
.cert-icon { width: 80px; height: 80px; background: var(--primary-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; color: var(--primary); }
.cert-content h2 { font-size: 2rem; font-weight: 800; color: var(--secondary); margin-bottom: 1rem; }
.cert-content p { font-size: 1.05rem; color: var(--text-light); margin-bottom: 2rem; }

/* ===== Migration ===== */
.migration { background: linear-gradient(135deg, #ecfdf5 0%, #fef3c7 100%); }
.migration-content { text-align: center; max-width: 700px; margin: 0 auto; }
.migration-content h2 { font-size: 2rem; font-weight: 800; color: var(--secondary); margin-bottom: 1rem; }
.migration-content p { font-size: 1.1rem; color: var(--text-light); margin-bottom: 2rem; }
.migration-benefits { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.migration-benefit { display: flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--secondary); font-size: .95rem; }
.migration-benefit svg { width: 24px; height: 24px; color: var(--primary); }

/* ===== FAQ ===== */
.faq { background: var(--bg-alt); }
.faq-list { max-width: 768px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 1rem; background: var(--bg); overflow: hidden; }
.faq-question { width: 100%; padding: 1.25rem 1.5rem; background: none; border: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 1rem; font-weight: 600; color: var(--secondary); text-align: left; font-family: inherit; }
.faq-question::after { content: '+'; font-size: 1.5rem; color: var(--primary); transition: var(--transition); }
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; }
.faq-item.open .faq-answer { max-height: 300px; padding: 0 1.5rem 1.25rem; }
.faq-answer p { color: var(--text-light); font-size: .95rem; line-height: 1.7; }

/* ===== Footer ===== */
.footer { background: var(--secondary); color: #94a3b8; padding: 4rem 0 2rem; }
.footer .nav-logo { color: var(--primary); }
.footer .nav-logo span:first-of-type { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .nav-logo { margin-bottom: 1rem; display: inline-flex; }
.footer-brand p { font-size: .9rem; line-height: 1.7; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.footer ul li { margin-bottom: .5rem; }
.footer ul a { font-size: .9rem; transition: var(--transition); }
.footer ul a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 2rem; text-align: center; font-size: .85rem; }
.footer-social { display: flex; gap: .75rem; margin-top: 1rem; }
.footer-social a { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.footer-social a:hover { background: var(--primary); }

/* WhatsApp floating button */
.whatsapp-float { position: fixed; bottom: 2rem; right: 2rem; width: 56px; height: 56px; background: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(37,211,102,.4); z-index: 999; transition: var(--transition); animation: pulse-whatsapp 2s infinite; }
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

@keyframes pulse-whatsapp {
  0%, 100% { box-shadow: 0 4px 12px rgba(37,211,102,.4); }
  50% { box-shadow: 0 4px 24px rgba(37,211,102,.6); }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  #menu-btn { display: block; }
  #mobile-menu { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.98); z-index: 999; flex-direction: column; justify-content: center; align-items: center; gap: 2rem; }
  #mobile-menu.active { display: flex; }
  #mobile-menu a { font-size: 1.25rem; font-weight: 600; color: var(--secondary); }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-content h1 { font-size: 2.25rem; }
  .hero-content p { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-visual { display: none; }
  .hero-badges { justify-content: center; }
  .section-title { font-size: 1.75rem; }
  .features-grid { grid-template-columns: 1fr; }
  .modules-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .pricing-grid-2 { max-width: 420px; }
  .footer-grid { grid-template-columns: 1fr; }
  .tech-grid { gap: 1.5rem; }
  .migration-benefits { flex-direction: column; align-items: center; }
}
