:root {
    --primary-color: #581c87;
    --primary-light: #7e22ce;
    --primary-dark: #3b0764;
    --accent-color: #f97316;
    --accent-hover: #ea580c;
    --bg-color: #ffffff;
    --text-main: #1f2937;
    --text-muted: #4b5563;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* --- MODAL DE CADASTRO --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: flex-start; /* Permite rolar a partir do topo */
    z-index: 2000;
    overflow-y: auto; /* Habilita o scroll */
    padding: 40px 0;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 600px;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    color: var(--text-main);
    margin: auto; /* Centraliza horizontalmente e dá respiro no vertical */
}

.modal-close {
    position: absolute;
    top: 20px; right: 20px;
    background: none; border: none;
    font-size: 1.5rem; cursor: pointer;
    color: var(--text-muted);
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header img {
    height: 100px;
    margin-bottom: 15px;
}

.modal-header h2 {
    color: var(--primary-dark);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.modal-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-full { grid-column: span 2; }

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: var(--primary-light);
}

@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; }
    .form-full { grid-column: span 1; }
}

/* --- ANIMAÇÕES PREMIUM --- */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(249, 115, 22, 0); }
    100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

.floating {
    animation: float 5s ease-in-out infinite;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* NAVBAR */
.navbar {
    background-color: transparent;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    min-height: 180px;
    display: flex;
    align-items: center;
}

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

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 0.95rem;
}

.btn-orange {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
    animation: pulse-glow 3s infinite;
}

.btn-orange:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-purple {
    background-color: var(--primary-color);
    color: white;
}

.btn-purple:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

/* HERO SECTION */
.hero {
    background: radial-gradient(circle at top right, rgba(126, 34, 206, 0.2), transparent),
                radial-gradient(circle at bottom left, rgba(88, 28, 135, 0.2), transparent),
                linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    position: relative;
    padding: 150px 0 120px 0;
    min-height: 700px;
    color: white;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.4;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    position: relative;
    z-index: 10;
}

.hero-content {
    flex: 1;
    max-width: 550px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-title span {
    color: var(--bg-color);
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.hero-feature-item {
    display: flex;
    gap: 15px;
}

.feature-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.orange-icon {
    background-color: var(--accent-color);
    color: white;
}

.feature-text h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.feature-text p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* FORM CARD */
.hero-form-wrapper {
    flex: 1;
    max-width: 500px;
    width: 100%;
}

.form-card {
    background: var(--glass-bg);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow);
    color: var(--text-main);
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-group {
    margin-bottom: 20px;
    flex: 1;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.required {
    color: #ef4444;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    background-color: #f9fafb;
    transition: border-color 0.3s;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
}

.form-group textarea {
    resize: vertical;
}

/* WAVES */
.wave-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

.wave-top {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave-top svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 90px;
}

/* FEATURES SECTION */
.features {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    color: var(--accent-color);
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 15px;
}

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

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

.feature-card {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: white;
    border: 1px solid #f3f4f6;
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-card-icon {
    color: var(--primary-color);
    flex-shrink: 0;
}

.feature-card-icon svg {
    width: 32px;
    height: 32px;
}

.feature-card-content h4 {
    color: var(--primary-dark);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.feature-card-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.trust-section {
    text-align: center;
    margin-top: 80px;
}

.trust-subtitle {
    color: var(--accent-color);
    font-weight: 600;
}

.trust-title {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 800;
}

/* FAQ SECTION */
.faq {
    padding: 80px 0 120px 0;
    background-color: #fafafa;
}

.faq-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.faq-image {
    flex: 1;
}

.faq-content {
    flex: 1;
}

.faq-subtitle {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.faq-title {
    color: var(--primary-dark);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.faq-desc {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-item {
    border-bottom: 1px solid #e5e7eb;
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    cursor: pointer;
    text-align: left;
}

.accordion-header .icon {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 400;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-body p {
    padding-bottom: 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.accordion-item.active .accordion-body {
    max-height: 200px;
}

/* FOOTER */
.footer {
    background-color: var(--primary-color);
    position: relative;
    padding: 100px 0 50px 0;
    color: white;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .hero-container, .faq-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 40px;
    }
    
    .hero-features {
        align-items: center;
        text-align: left;
    }
    
    .nav-links, .btn-orange {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}
