/* ==========================================================================
   GESTOR MAIS - LANDING PAGE STYLESHEET
   Design System: Deep Obsidian, Cyber Violet, Neon Cyan, Glassmorphism
   ========================================================================== */

:root {
    --bg-dark: #07090e;
    --bg-card: rgba(15, 23, 42, 0.72);
    --bg-card-hover: rgba(22, 33, 60, 0.85);
    --bg-surface: #0e1526;
    
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-glow: rgba(99, 102, 241, 0.35);
    
    --accent-cyan: #06b6d4;
    --accent-cyan-glow: rgba(6, 182, 212, 0.35);
    
    --accent-purple: #a855f7;
    --accent-green: #10b981;
    --accent-green-glow: rgba(16, 185, 129, 0.3);
    --accent-amber: #f59e0b;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(99, 102, 241, 0.3);
    --glass-blur: blur(16px);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background Ambient Glows */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
    animation: pulseGlow 12s infinite alternate ease-in-out;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -150px;
    left: -150px;
}

.glow-2 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
    top: 25%;
    right: -250px;
    animation-delay: -4s;
}

.glow-3 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
    bottom: 10%;
    left: -100px;
    animation-delay: -8s;
}

@keyframes pulseGlow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.28; }
    50% { transform: scale(1.15) translate(30px, -20px); opacity: 0.42; }
    100% { transform: scale(1) translate(0, 0); opacity: 0.28; }
}

/* Grid Pattern Overlay */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 1;
}

/* Typography Utility */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 20%, #a5b4fc 60%, #38bdf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-accent {
    background: linear-gradient(135deg, #818cf8 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 18px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(7, 9, 14, 0.85);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.brand-badge {
    background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: 6px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 22px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px var(--primary-glow);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(99, 102, 241, 0.55);
    background: linear-gradient(135deg, #6d70fa 0%, #5850ec 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(30deg);
    transition: 0.8s;
    pointer-events: none;
}

.btn-glow:hover::after {
    left: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.88rem;
}

.btn-lg {
    padding: 14px 30px;
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.85rem;
    color: #c7d2fe;
    font-weight: 600;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.hero-tag .pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-green);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.hero h1 {
    font-size: 3.4rem;
    font-weight: 800;
    letter-spacing: -1.2px;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 34px;
    max-width: 580px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

.hero-badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.hero-badge-item i {
    color: var(--accent-cyan);
    font-size: 1rem;
}

/* ==========================================================================
   HERO INTERACTIVE PREVIEW: DASHBOARD & WHATSAPP MOCKUP
   ========================================================================== */
.hero-visual {
    position: relative;
}

.visual-stack {
    position: relative;
    width: 100%;
}

.dashboard-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    backdrop-filter: var(--glass-blur);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.dashboard-card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 24px 60px rgba(99, 102, 241, 0.2);
}

.card-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-subtle);
}

.card-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.card-title-bar {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-grid-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px;
}

.stat-box-title {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-box-val {
    font-size: 1.45rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-heading);
}

.stat-box-growth {
    font-size: 0.75rem;
    color: var(--accent-green);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

/* WhatsApp Live Interactive Box */
.whatsapp-mockup {
    background: #0b141a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.wa-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 12px;
}

.wa-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
}

.wa-info h5 {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.wa-info p {
    font-size: 0.72rem;
    color: var(--accent-green);
}

.wa-chat {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.82rem;
}

.wa-msg {
    max-width: 88%;
    padding: 10px 14px;
    border-radius: 12px;
    line-height: 1.45;
    position: relative;
}

.wa-msg-bot {
    align-self: flex-start;
    background: #202c33;
    color: #e9edef;
    border-top-left-radius: 2px;
}

.wa-msg-time {
    display: block;
    font-size: 0.68rem;
    color: #8696a0;
    text-align: right;
    margin-top: 4px;
}

.wa-pix-box {
    background: #111b21;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 8px;
    margin-top: 6px;
    font-family: monospace;
    font-size: 0.74rem;
    color: #38bdf8;
    word-break: break-all;
}

.wa-action-btn {
    width: 100%;
    margin-top: 10px;
    background: linear-gradient(135deg, var(--accent-green) 0%, #059669 100%);
    color: #fff;
    border: none;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}

.wa-action-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px var(--accent-green-glow);
}

.wa-confirmed-msg {
    align-self: flex-start;
    background: #005c4b;
    color: #e9edef;
    border-radius: 12px;
    padding: 10px 14px;
    animation: fadeIn 0.4s ease;
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Floating badge on visual */
.floating-glass-badge {
    position: absolute;
    bottom: -15px;
    right: -15px;
    background: rgba(14, 21, 38, 0.9);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: var(--glass-blur);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 3;
    animation: floatAnim 6s ease-in-out infinite;
}

.floating-glass-badge i {
    font-size: 1.5rem;
    color: var(--accent-green);
}

.floating-glass-badge span {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
}

.floating-glass-badge strong {
    font-size: 0.95rem;
    color: #fff;
}

@keyframes floatAnim {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ==========================================================================
   METRICS COUNTER SECTION
   ========================================================================== */
.metrics-section {
    padding: 60px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(15, 23, 42, 0.4);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.metric-item h3 {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.metric-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

/* ==========================================================================
   FEATURES / MODULES SECTION
   ========================================================================== */
.section {
    padding: 110px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}

.section-tag {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-cyan);
    margin-bottom: 12px;
    display: inline-block;
}

.section-header h2 {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.8px;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    backdrop-filter: var(--glass-blur);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-glow);
    background: var(--bg-card-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--primary-glow);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-light);
    margin-bottom: 22px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.08);
}

.feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   INTERACTIVE ROI & TIME SAVINGS CALCULATOR
   ========================================================================== */
.calc-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.6) 100%);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-xl);
    padding: 48px;
    backdrop-filter: var(--glass-blur);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.calc-control h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.calc-control p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.slider-wrapper {
    margin-bottom: 24px;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.slider-labels span {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.slider-val-badge {
    background: var(--primary);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: var(--radius-sm);
}

input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 10px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    transition: var(--transition);
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--primary));
    cursor: pointer;
    box-shadow: 0 0 14px var(--accent-cyan-glow);
    transition: var(--transition);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.calc-results {
    background: rgba(7, 9, 14, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.calc-result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.calc-result-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.calc-result-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.calc-result-label i {
    color: var(--accent-cyan);
    font-size: 1.1rem;
}

.calc-result-val {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

.calc-highlight {
    color: var(--accent-green);
}

/* ==========================================================================
   COMPARISON SECTION
   ========================================================================== */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.comp-card {
    border-radius: var(--radius-lg);
    padding: 36px;
    backdrop-filter: var(--glass-blur);
}

.comp-card-before {
    background: rgba(239, 68, 68, 0.03);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.comp-card-after {
    background: rgba(16, 185, 129, 0.04);
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.1);
    position: relative;
}

.comp-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.comp-card-before .comp-badge {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.comp-card-after .comp-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.comp-card h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.comp-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comp-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.96rem;
    color: var(--text-secondary);
}

.comp-list li i {
    font-size: 1.1rem;
    margin-top: 2px;
}

.comp-card-before .comp-list li i {
    color: #ef4444;
}

.comp-card-after .comp-list li i {
    color: #10b981;
}

/* ==========================================================================
   PLATFORM ENVIRONMENTS (V2 vs LEGADO)
   ========================================================================== */
.envs-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
}

.env-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 40px;
    backdrop-filter: var(--glass-blur);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.env-card-v2 {
    border-color: var(--border-glow);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(15, 23, 42, 0.8) 100%);
    box-shadow: 0 15px 45px rgba(99, 102, 241, 0.15);
}

.env-card-v2:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.25);
}

.env-card-legado {
    background: rgba(15, 23, 42, 0.4);
}

.env-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.env-card-v2 .env-tag {
    background: var(--primary);
    color: #fff;
}

.env-card-legado .env-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.env-card h3 {
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.env-card p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.env-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.env-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.env-card-v2 .env-features li i {
    color: var(--accent-cyan);
}

.env-card-legado .env-features li i {
    color: var(--text-muted);
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-wrapper {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active {
    border-color: var(--border-glow);
    background: var(--bg-card-hover);
}

.faq-question {
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-question i {
    font-size: 0.9rem;
    color: var(--primary-light);
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
    padding: 0 24px;
    color: var(--text-secondary);
    font-size: 0.96rem;
    line-height: 1.65;
}

.faq-item.active .faq-answer {
    max-height: 400px;
    padding-bottom: 22px;
    transition: max-height 0.4s ease-in-out;
}

/* ==========================================================================
   FINAL CTA SECTION
   ========================================================================== */
.final-cta {
    padding: 100px 0;
}

.cta-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(6, 182, 212, 0.15) 100%);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-xl);
    padding: 64px 32px;
    text-align: center;
    backdrop-filter: var(--glass-blur);
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.cta-box h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.8px;
}

.cta-box p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto 36px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 70px 0 35px;
    background: #05070a;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-about p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-top: 14px;
    max-width: 320px;
    line-height: 1.6;
}

.footer-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 6px 12px;
    border-radius: 100px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-size: 0.8rem;
    color: var(--accent-green);
}

.footer-status-badge .dot {
    width: 7px;
    height: 7px;
    background-color: var(--accent-green);
    border-radius: 50%;
    animation: pulseDot 2s infinite;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: #fff;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 30px;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==========================================================================
   RESPONSIVENESS
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-desc {
        margin: 0 auto 34px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-badges {
        justify-content: center;
    }
    
    .visual-stack {
        max-width: 580px;
        margin: 0 auto;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .calc-card {
        grid-template-columns: 1fr;
        padding: 32px;
    }
    
    .envs-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.4rem;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }
}

/* ==========================================================================
   REFERRAL SYSTEM & INVITATION MODAL
   ========================================================================== */
.ref-status-banner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.9rem;
    color: #6ee7b7;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
}

.ref-code-highlight {
    background: #10b981;
    color: #042f2e;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* Modal Backdrop */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 7, 12, 0.82);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 20px;
}

.modal-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(20, 29, 48, 0.95) 100%);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-xl);
    padding: 40px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 40px rgba(99, 102, 241, 0.2);
    position: relative;
    text-align: center;
    transform: scale(0.92) translateY(20px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-card {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: scale(1.1);
}

.modal-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(6, 182, 212, 0.2));
    border: 1px solid var(--border-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--accent-cyan);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.3);
}

.modal-card h3 {
    font-size: 1.65rem;
    margin-bottom: 12px;
}

.modal-card p {
    color: var(--text-secondary);
    font-size: 0.96rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.modal-input-group {
    text-align: left;
    margin-bottom: 24px;
}

.modal-input-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 8px;
}

.input-box-ref {
    position: relative;
    display: flex;
    align-items: center;
}

.input-box-ref i {
    position: absolute;
    left: 16px;
    color: var(--primary-light);
    font-size: 1.1rem;
}

.input-box-ref input {
    width: 100%;
    background: rgba(7, 9, 14, 0.7);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-md);
    padding: 14px 16px 14px 48px;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    outline: none;
    transition: var(--transition);
}

.input-box-ref input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
    background: rgba(7, 9, 14, 0.95);
}

.ref-error-msg {
    display: block;
    color: #f87171;
    font-size: 0.82rem;
    margin-top: 6px;
    min-height: 18px;
}

.modal-footer-note {
    margin-top: 20px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.modal-footer-note a {
    color: var(--primary-light);
    font-weight: 600;
}

.modal-footer-note a:hover {
    text-decoration: underline;
    color: #fff;
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON (Exclusive for valid referral visits)
   ========================================================================== */
.floating-whatsapp-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
    z-index: 999;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    animation: bounceIn 0.5s ease;
}

.floating-whatsapp-btn:hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 14px 38px rgba(37, 211, 102, 0.65);
    color: #ffffff;
}

.whatsapp-btn-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.4);
    z-index: -1;
    animation: waPulse 2s infinite;
}

@keyframes waPulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.4); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.whatsapp-tooltip {
    position: absolute;
    right: 74px;
    background: #0f172a;
    color: #f8fafc;
    border: 1px solid rgba(37, 211, 102, 0.35);
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    opacity: 0.95;
    transition: var(--transition);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent #0f172a;
}

@media (max-width: 768px) {
    .floating-whatsapp-btn {
        bottom: 20px;
        right: 20px;
        width: 54px;
        height: 54px;
        font-size: 1.7rem;
    }
    .whatsapp-tooltip {
        display: none;
    }
}

/* ==========================================================================
   PAYMENT INTEGRATIONS SECTION
   ========================================================================== */
.gateways-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 48px;
    margin-bottom: 36px;
}

.gateway-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 26px 20px;
    backdrop-filter: var(--glass-blur);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.gateway-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    opacity: 0;
    transition: var(--transition);
}

/* Card-specific borders and glows on hover */
.gateway-card-mp:hover {
    border-color: rgba(0, 158, 227, 0.45);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 24px rgba(0, 158, 227, 0.25);
    transform: translateY(-6px);
}
.gateway-card-mp::before {
    background: linear-gradient(90deg, #009ee3, #00e5ff);
}

.gateway-card-fastpay:hover {
    border-color: rgba(16, 185, 129, 0.45);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 24px rgba(16, 185, 129, 0.25);
    transform: translateY(-6px);
}
.gateway-card-fastpay::before {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.gateway-card-fastdpix:hover {
    border-color: rgba(168, 85, 247, 0.45);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 24px rgba(168, 85, 247, 0.25);
    transform: translateY(-6px);
}
.gateway-card-fastdpix::before {
    background: linear-gradient(90deg, #a855f7, #c084fc);
}

.gateway-card-lynx:hover {
    border-color: rgba(245, 158, 11, 0.45);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 24px rgba(245, 158, 11, 0.25);
    transform: translateY(-6px);
}
.gateway-card-lynx::before {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.gateway-card-asaas:hover {
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 24px rgba(56, 189, 248, 0.25);
    transform: translateY(-6px);
}
.gateway-card-asaas::before {
    background: linear-gradient(90deg, #0284c7, #38bdf8);
}

.gateway-card:hover::before {
    opacity: 1;
}

/* Gateway Header */
.gateway-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.gateway-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: var(--transition);
}

.gateway-icon-mp {
    background: rgba(0, 158, 227, 0.12);
    border: 1px solid rgba(0, 158, 227, 0.3);
    color: #38bdf8;
}
.gateway-card-mp:hover .gateway-icon-mp {
    background: #009ee3;
    color: #fff;
    transform: scale(1.08);
}

.gateway-icon-fastpay {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}
.gateway-card-fastpay:hover .gateway-icon-fastpay {
    background: #10b981;
    color: #fff;
    transform: scale(1.08);
}

.gateway-icon-fastdpix {
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #c084fc;
}
.gateway-card-fastdpix:hover .gateway-icon-fastdpix {
    background: #a855f7;
    color: #fff;
    transform: scale(1.08);
}

.gateway-icon-lynx {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}
.gateway-card-lynx:hover .gateway-icon-lynx {
    background: #f59e0b;
    color: #fff;
    transform: scale(1.08);
}

.gateway-icon-asaas {
    background: rgba(2, 132, 199, 0.12);
    border: 1px solid rgba(2, 132, 199, 0.3);
    color: #38bdf8;
}
.gateway-card-asaas:hover .gateway-icon-asaas {
    background: #0284c7;
    color: #fff;
    transform: scale(1.08);
}

/* Gateway Badges */
.gateway-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.badge-mp {
    background: rgba(0, 158, 227, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(0, 158, 227, 0.3);
}

.badge-fastpay {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-fastdpix {
    background: rgba(168, 85, 247, 0.12);
    color: #d8b4fe;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.badge-lynx {
    background: rgba(245, 158, 11, 0.12);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-asaas {
    background: rgba(2, 132, 199, 0.12);
    color: #7dd3fc;
    border: 1px solid rgba(2, 132, 199, 0.3);
}

/* Gateway Body */
.gateway-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.gateway-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.gateway-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 18px;
    min-height: 64px;
}

.gateway-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 22px;
    flex-grow: 1;
}

.gateway-features li {
    font-size: 0.81rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.gateway-features li i {
    color: var(--accent-green);
    font-size: 0.82rem;
    flex-shrink: 0;
}

/* Gateway Footer */
.gateway-footer {
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
}

.gateway-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-muted);
}

.gateway-card:hover .gateway-status {
    color: var(--text-secondary);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
    animation: statusPulse 2s infinite ease-in-out;
}

@keyframes statusPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.45;
        transform: scale(0.85);
    }
}

/* Gateways Banner */
.gateways-banner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.6) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    backdrop-filter: var(--glass-blur);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
    margin-bottom: 36px;
}

.gateway-benefit {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.benefit-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--primary-light);
    flex-shrink: 0;
}

.benefit-text h4 {
    font-size: 0.98rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.benefit-text p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.gateways-cta {
    margin-top: 10px;
}

.gateways-cta p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* Responsiveness for Gateways */
@media (max-width: 1280px) {
    .gateways-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .gateways-banner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .gateways-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gateways-grid > div:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .gateways-grid {
        grid-template-columns: 1fr;
    }
    .gateways-grid > div:last-child {
        grid-column: span 1;
    }
    .gateways-banner {
        grid-template-columns: 1fr;
        padding: 22px 18px;
    }
}



