/* ============================================================
   InvMaster TI - Landing Page Styles
   ============================================================ */

:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: #1a2035;
    --bg-card-hover: #1e2642;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-glow: rgba(59, 130, 246, 0.3);
    --green: #10b981;
    --orange: #f59e0b;
    --red: #ef4444;
    --purple: #a855f7;
    --teal: #06b6d4;
    --border: #1e293b;
    --border-light: #334155;
    --gradient: linear-gradient(135deg, #3b82f6, #8b5cf6);
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}
.navbar.scrolled { background: rgba(10, 14, 26, 0.95); box-shadow: var(--shadow); }
.nav-content { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-img { height: 40px; width: 40px; border-radius: 10px; object-fit: cover; }
.logo-text { font-size: 1.3rem; font-weight: 700; color: var(--text-primary); }
.accent { color: var(--accent); }
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text-primary); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.mobile-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.4rem; cursor: pointer; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px;
    border-radius: 10px; font-weight: 600; font-size: 0.95rem; text-decoration: none;
    border: none; cursor: pointer; transition: all 0.3s ease; font-family: inherit;
}
.btn-primary { background: var(--gradient); color: white; box-shadow: 0 4px 20px var(--accent-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 30px var(--accent-glow); }
.btn-outline { background: transparent; color: var(--text-primary); border: 1px solid var(--border-light); }
.btn-outline:hover { background: var(--bg-card); border-color: var(--accent); }
.btn-whatsapp { background: #25d366; color: white; }
.btn-whatsapp:hover { background: #20bd5a; transform: translateY(-2px); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative; min-height: 100vh; display: flex; flex-direction: column;
    align-items: center; justify-content: center; padding: 120px 0 60px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-gradient {
    position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
    width: 800px; height: 800px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.4; animation: pulse-glow 4s ease-in-out infinite;
}
@keyframes pulse-glow {
    0%, 100% { opacity: 0.3; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.5; transform: translateX(-50%) scale(1.1); }
}
.hero-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(59,130,246,0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(59,130,246,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}
.hero-content { position: relative; z-index: 1; text-align: center; max-width: 800px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px;
    background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50px; font-size: 0.85rem; font-weight: 500; color: var(--accent); margin-bottom: 24px;
}
.hero-title { font-size: 3.5rem; font-weight: 800; line-height: 1.15; margin-bottom: 24px; letter-spacing: -0.02em; }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 1.15rem; color: var(--text-secondary); max-width: 650px; margin: 0 auto 40px; line-height: 1.7; }
.hero-cta { display: flex; gap: 16px; justify-content: center; margin-bottom: 60px; }
.hero-stats { display: flex; align-items: center; justify-content: center; gap: 40px; }
.stat { text-align: center; }
.stat-number { display: block; font-size: 2rem; font-weight: 800; color: var(--text-primary); }
.stat-suffix { font-size: 1.2rem; font-weight: 700; color: var(--accent); }
.stat-label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }
.stat-divider { width: 1px; height: 40px; background: var(--border-light); }
.hero-visual { position: relative; z-index: 1; width: 100%; max-width: 1100px; margin: 60px auto 0; }
.dashboard-preview { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-light); box-shadow: var(--shadow-lg); }
.preview-img { width: 100%; display: block; }
.preview-glow { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, var(--bg-primary) 100%); pointer-events: none; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header { text-align: center; margin-bottom: 60px; }
.section-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px;
    background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 50px; font-size: 0.8rem; font-weight: 600; color: var(--accent);
    margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em;
}
.section-title { font-size: 2.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 16px; letter-spacing: -0.02em; }
.section-subtitle { font-size: 1.1rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

/* ============================================================
   FEATURES
   ============================================================ */
.features { padding: 100px 0; background: var(--bg-secondary); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 32px; transition: all 0.3s ease; text-align: center;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 8px 30px rgba(59, 130, 246, 0.15); }
.feature-icon {
    width: 56px; height: 56px; border-radius: 14px; display: flex;
    align-items: center; justify-content: center; font-size: 1.4rem; margin: 0 auto 20px;
}
.icon-blue { background: rgba(59,130,246,0.1); color: #3b82f6; }
.icon-green { background: rgba(16,185,129,0.1); color: #10b981; }
.icon-orange { background: rgba(245,158,11,0.1); color: #f59e0b; }
.icon-purple { background: rgba(168,85,247,0.1); color: #a855f7; }
.icon-red { background: rgba(239,68,68,0.1); color: #ef4444; }
.icon-teal { background: rgba(6,182,212,0.1); color: #06b6d4; }
.feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; }
.feature-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how { padding: 100px 0; }
.steps { display: flex; gap: 32px; position: relative; }
.steps::before {
    content: ''; position: absolute; top: 60px; left: 120px; right: 120px;
    height: 2px; background: linear-gradient(90deg, var(--accent), var(--purple)); opacity: 0.3;
}
.step { flex: 1; text-align: center; position: relative; }
.step-number { font-size: 3rem; font-weight: 900; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; opacity: 0.3; margin-bottom: 8px; }
.step-icon {
    width: 80px; height: 80px; border-radius: 50%; background: var(--bg-card);
    border: 2px solid var(--accent); display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--accent); margin: 0 auto 24px; position: relative; z-index: 1;
}
.step-content h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; }
.step-content p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }

/* ============================================================
   DASHBOARD PREVIEW
   ============================================================ */
.preview-section { padding: 80px 0; background: var(--bg-secondary); }
.preview-wrapper { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.preview-header { display: flex; align-items: center; gap: 16px; padding: 14px 20px; background: var(--bg-secondary); border-bottom: 1px solid var(--border); }
.preview-dots { display: flex; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }
.preview-url { font-size: 0.8rem; color: var(--text-muted); font-family: 'Courier New', monospace; }
.preview-full { width: 100%; display: block; }

/* ============================================================
   PLANS CARDS (Nova estrutura)
   ============================================================ */
.plans { padding: 100px 0; }
.plans-cards-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    align-items: stretch;
}
.plan-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}
.plan-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.15);
}
.plan-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 40px var(--accent-glow);
    transform: scale(1.02);
}
.plan-card.featured:hover {
    transform: scale(1.02) translateY(-4px);
}
.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    background: var(--gradient);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
.plan-icon {
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: var(--accent);
}
.plan-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.plan-duration {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.plan-price {
    margin-bottom: 20px;
}
.currency {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    vertical-align: top;
}
.amount {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text-primary);
}
.period {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.plan-features {
    list-style: none;
    margin-bottom: 24px;
    text-align: left;
    flex-grow: 1;
}
.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}
.plan-features li:last-child { border-bottom: none; }
.plan-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}
.plan-features li i.fa-check { color: var(--green); font-size: 0.85rem; flex-shrink: 0; }
.plan-features li i.fa-xmark { color: var(--text-muted); font-size: 0.85rem; flex-shrink: 0; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { padding: 100px 0; background: var(--bg-secondary); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 900px; margin: 0 auto; }
.faq-item {
    margin-bottom: 0; border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; background: var(--bg-card);
}
.faq-question {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; background: none; border: none; color: var(--text-primary);
    font-size: 0.9rem; font-weight: 600; cursor: pointer; text-align: left;
    font-family: inherit; transition: color 0.2s;
}
.faq-question:hover { color: var(--accent); }
.faq-question i { transition: transform 0.3s; color: var(--text-muted); flex-shrink: 0; font-size: 0.8rem; }
.faq-question.active i { transform: rotate(180deg); color: var(--accent); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer.open { max-height: 200px; }
.faq-answer p { padding: 0 20px 16px; color: var(--text-secondary); font-size: 0.85rem; line-height: 1.6; }

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-final { padding: 100px 0; }
.cta-content {
    text-align: center; background: var(--gradient); border-radius: var(--radius-lg);
    padding: 80px 40px; position: relative; overflow: hidden;
}
.cta-content::before {
    content: ''; position: absolute; top: -50%; right: -20%;
    width: 400px; height: 400px; background: rgba(255,255,255,0.05); border-radius: 50%;
}
.cta-content h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 16px; position: relative; z-index: 1; }
.cta-content p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 32px; position: relative; z-index: 1; }
.cta-actions { display: flex; gap: 16px; justify-content: center; position: relative; z-index: 1; }
.cta-actions .btn-primary { background: white; color: var(--accent); box-shadow: none; }
.cta-actions .btn-primary:hover { background: var(--text-primary); }
.cta-actions .btn-whatsapp { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); }
.cta-actions .btn-whatsapp:hover { background: rgba(255,255,255,0.25); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg-secondary); border-top: 1px solid var(--border); padding: 60px 0 0; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 16px; max-width: 300px; }
.footer-links h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 16px; color: var(--text-primary); }
.footer-links a { display: block; color: var(--text-muted); text-decoration: none; font-size: 0.85rem; padding: 6px 0; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; text-align: center; }
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float {
    position: fixed; bottom: 24px; right: 24px; width: 60px; height: 60px;
    background: #25d366; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-size: 1.8rem; color: white;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); z-index: 999;
    transition: transform 0.3s; text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
    .plans-cards-container { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .plans-cards-container { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .hero-title { font-size: 2.2rem; }
    .hero-cta { flex-direction: column; align-items: center; }
    .hero-stats { gap: 20px; }
    .features-grid { grid-template-columns: 1fr; }
    .steps { flex-direction: column; gap: 40px; }
    .steps::before { display: none; }
    .section-title { font-size: 1.8rem; }
    .cta-content h2 { font-size: 1.8rem; }
    .cta-actions { flex-direction: column; align-items: center; }
    .footer-content { grid-template-columns: 1fr; }
    .faq-grid { grid-template-columns: 1fr; }
    .plans-cards-container { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .plan-card.featured { transform: none; }
    .plan-card.featured:hover { transform: translateY(-4px); }
    .nav-links.active {
        display: flex; flex-direction: column; position: absolute; top: 72px;
        left: 0; right: 0; background: var(--bg-primary); padding: 24px;
        border-bottom: 1px solid var(--border); gap: 16px;
    }
}
@media (max-width: 480px) {
    .hero-title { font-size: 1.8rem; }
    .stat-number { font-size: 1.5rem; }
    .amount { font-size: 1.8rem; }
}