/* Reset completo - sem conflitos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Animações */
@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Variáveis CSS - Bitcoin + Seletoro */
:root {
    --primary-color: #f7931a; /* Laranja Bitcoin */
    --secondary-color: #1e3a8a; /* Azul Seletoro */
    --accent-color: #ff9500; /* Laranja mais vibrante */
    --success-color: #10b981;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-200: #e5e7eb;
    --bitcoin-gold: #f7931a;
    --seletoro-blue: #1e3a8a;
}

/* Estilos básicos */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header e Navegação */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
    transition: all 0.3s ease;
    height: 70px;
    animation: slideInDown 0.8s ease-out;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    max-width: 200px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--bitcoin-gold) 0%, var(--seletoro-blue) 100%);
    color: var(--white);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-badge {
    display: inline-block;
    background: rgba(247, 147, 26, 0.9);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.hero-features {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(30, 58, 138, 0.8);
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature:hover {
    background: rgba(30, 58, 138, 0.9);
    transform: translateY(-2px);
}

/* Simulador limpo */
.converter-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(247, 147, 26, 0.2);
    backdrop-filter: blur(20px);
}

.converter-card h3 {
    text-align: center;
    background: linear-gradient(135deg, var(--bitcoin-gold), var(--seletoro-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    font-size: 1.5rem;
    font-weight: 700;
}

.converter-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.converter-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.converter-row label {
    font-weight: 600;
    color: var(--seletoro-blue);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group {
    display: flex;
    border: 2px solid rgba(247, 147, 26, 0.3);
    border-radius: 12px;
    overflow: visible;
    background: var(--white);
    transition: all 0.3s ease;
}

.input-group:focus-within {
    border-color: var(--bitcoin-gold);
    box-shadow: 0 0 0 3px rgba(247, 147, 26, 0.1);
}

.input-group input {
    flex: 1;
    padding: 15px;
    border: none;
    outline: none;
    font-size: 1rem;
    font-weight: 500;
}

/* Dropdown limpo e simples */
.dropdown {
    position: relative;
    min-width: 120px;
}

.dropdown-btn {
    width: 100%;
    padding: 15px;
    background: rgba(30, 58, 138, 0.05);
    border: none;
    border-left: 1px solid rgba(247, 147, 26, 0.3);
    color: var(--seletoro-blue);
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.dropdown-btn:hover {
    background: rgba(30, 58, 138, 0.1);
    color: var(--bitcoin-gold);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 9999;
    min-width: 120px;
    min-height: 50px;
}

.dropdown-menu.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.dropdown-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s ease;
    background: var(--white);
    color: var(--text-color);
    font-weight: 500;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: #f8fafc;
}

.rate-info {
    margin-top: 8px;
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(247, 147, 26, 0.1), rgba(30, 58, 138, 0.1));
    border-radius: 8px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--bitcoin-gold);
    font-weight: 500;
    border: 1px solid rgba(247, 147, 26, 0.2);
}

/* Seções */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--text-color);
}

.how-it-works {
    padding: 80px 0;
    background: var(--gray-50);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.step-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-200);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--bitcoin-gold), var(--seletoro-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--white);
    font-size: 2rem;
    box-shadow: 0 8px 25px rgba(247, 147, 26, 0.3);
}

.step-card h3 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.step-card p {
    color: var(--text-light);
    line-height: 1.6;
}

.advantages-section {
    padding: 80px 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.advantage-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-200);
}

.advantage-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--bitcoin-gold), var(--seletoro-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 1.8rem;
    box-shadow: 0 6px 20px rgba(247, 147, 26, 0.3);
}

.advantage-card h3 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.advantage-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* FAQ */
.faq-section {
    padding: 80px 0;
    background: var(--gray-50);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-item.active .faq-question {
    background: linear-gradient(135deg, var(--bitcoin-gold), var(--seletoro-blue));
    color: var(--white);
}

.faq-item.active .faq-question h3 {
    color: var(--white);
}

.faq-item.active .faq-question i {
    color: var(--white);
}

.faq-question h3 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin: 0;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 200px;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* CTA */
.cta-section-enhanced {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bitcoin-gold), var(--seletoro-blue));
    color: var(--white);
}

.cta-content-enhanced {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content-enhanced h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content-enhanced p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-success {
    background: var(--bitcoin-gold);
    color: var(--white);
    border: 2px solid var(--bitcoin-gold);
}

.btn-success:hover {
    background: var(--seletoro-blue);
    border-color: var(--seletoro-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(247, 147, 26, 0.3);
}

/* Footer */
.footer {
    background: var(--text-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: var(--white);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
    padding: 12px 20px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #9ca3af;
}

.footer-bottom a {
    color: #d1d5db;
    text-decoration: none;
    margin: 0 10px;
}

/* Indicador de Atualização */
.update-indicator {
    background: rgba(30, 58, 138, 0.05);
    border: 1px solid rgba(30, 58, 138, 0.2);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.update-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--seletoro-blue);
    margin-bottom: 10px;
    font-weight: 500;
}

.update-text i {
    color: var(--bitcoin-gold);
    animation: spin 2s linear infinite;
}


.data-source {
    font-size: 0.75rem;
    margin-left: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
}

.data-source.real-data {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.data-source.fallback-data {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(30, 58, 138, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--bitcoin-gold), var(--seletoro-blue));
    border-radius: 3px;
    transition: width 0.1s linear;
    width: 100%;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Botão de Inverter */
.swap-button-container {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.swap-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bitcoin-gold), var(--seletoro-blue));
    border: 2px solid var(--white);
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.swap-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.swap-button:active {
    transform: scale(0.95);
}

/* Botão de Realizar Câmbio */
.cambio-button-container {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0 0 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cambio-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--bitcoin-gold), var(--seletoro-blue));
    color: var(--white);
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cambio-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #e6a700, #2563eb);
}

.cambio-btn:active {
    transform: translateY(0);
}

.cambio-btn i {
    font-size: 1rem;
}

/* Responsivo */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        height: calc(100vh - 70px);
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        z-index: 999;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-container {
        padding: 0 15px;
    }

    .logo-img {
        height: 32px;
        max-width: 160px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-features {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .steps-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .converter-card {
        padding: 20px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .dropdown-btn {
        border-left: none;
        border-top: 1px solid rgba(247, 147, 26, 0.3);
    }
    
    .dropdown-menu {
        z-index: 9999;
        min-width: 100px;
    }
    
    .swap-button {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .cambio-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .update-indicator {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .update-text {
        font-size: 0.8rem;
    }
}
