:root {
    --purple-grad: linear-gradient(45deg, #8a2be2, #4b0082);
    --purple-solid: #8a2be2;
    --bg-main: #F4F6FC;
    --bg-card: #FFFFFF;
    --text-dark: #121217;
    --text-light: #5A5F70;
    --text-white: #FFFFFF;
    --border-color: #EAEBF1;
    --font-family: 'Inter', sans-serif;
    --shadow: 0px 8px 25px rgba(0, 0, 0, 0.07);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-family);
    background-color: var(--bg-main);
    color: var(--text-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- CABEÇALHO --- */
header {
    background: var(--bg-card);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    text-decoration: none;
}

.header-button {
    background: var(--purple-solid);
    color: var(--text-white);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}
.header-button:hover { background-color: #4b0082; }

/* --- SEÇÃO HERO COM EFEITO --- */
#hero {
    text-align: center;
    padding: 80px 0;
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(138, 43, 226, 0.5), 0 0 20px rgba(138, 43, 226, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(138, 43, 226, 0.8), 0 0 40px rgba(138, 43, 226, 0.5);
    }
}

#hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    /* Cor base e animação */
    color: var(--purple-solid);
    animation: textGlow 3s infinite ease-in-out;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* --- SEÇÃO DE SERVIÇOS (PLATFORM CARD) --- */
#services { padding-bottom: 80px; }

.platform-card {
    background: var(--purple-grad);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
}
.platform-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}
.platform-icon {
    font-size: 2rem;
    color: var(--text-white);
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
}
.platform-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-white);
}
.services-list {
    display: grid;
    gap: 15px;
}

.service-row {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border-color);
}
.service-row:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.service-info {
    display: flex;
    align-items: center;
    gap: 15px;
}
.service-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--purple-grad);
    color: var(--text-white);
    font-size: 1.2rem;
}
.service-text h4 { font-size: 1.1rem; font-weight: 600; }
.service-text p { font-size: 0.9rem; color: var(--text-light); }
.service-arrow { font-size: 1.2rem; color: var(--text-light); }


/* --- SEÇÃO COMO FUNCIONA --- */
#how-it-works {
    background: var(--bg-card);
    padding: 80px 0;
    text-align: center;
}
#how-it-works h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
}
.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.step-card { text-align: left; }
.step-icon {
    width: 50px;
    height: 50px;
    background: var(--purple-grad);
    color: var(--text-white);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 12px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
}
.step-card h3 { margin-bottom: 10px; font-size: 1.3rem; }
.step-card p { color: var(--text-light); line-height: 1.6; }

/* --- RODAPÉ --- */
footer {
    padding: 40px 0;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}
.footer-disclaimer { margin-top: 5px; font-size: 0.8rem; }


/* --- MODAIS --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 10, 20, 0.7);
    backdrop-filter: blur(5px);
    display: flex; justify-content: center; align-items: center;
    z-index: 2000; padding: 20px;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s, visibility 0s 0.3s;
}
.modal-overlay.show { opacity: 1; visibility: visible; transition: opacity 0.3s; }
.modal-content {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 30px;
    width: 100%;
    max-width: 700px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s;
}
.modal-overlay.show .modal-content { transform: translateY(0); }
.close-button {
    position: absolute; top: 15px; right: 15px; background: none; border: none;
    font-size: 1.8rem; color: var(--text-light); cursor: pointer;
}
.modal-content h3 { font-size: 1.8rem; text-align: center; margin-bottom: 25px; }
.modal-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-height: 60vh;
    overflow-y: auto;
    padding: 5px;
}
.plan-card-modal {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    text-align: center;
}
.plan-card-modal h4 { font-size: 1.2rem; font-weight: 600; margin-bottom: 10px; }
.plan-card-modal .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--purple-solid);
    margin: 10px 0;
}
.plan-card-modal .benefits { font-size: 0.9rem; color: var(--text-light); margin: 10px 0 20px; flex-grow: 1;}
.btn {
    display: inline-block; padding: 12px 28px; border-radius: 8px; font-weight: 600;
    text-decoration: none; text-align: center; transition: all 0.3s ease; border: none; cursor: pointer;
}
.btn-primary { background: var(--purple-solid); color: var(--text-white); }
.btn-primary:hover { background-color: #4b0082; transform: translateY(-2px); }
.btn-full { display: block; width: 100%; }

/* --- MODAL DE COMPRA --- */
#purchase-modal .modal-content { max-width: 450px; }
.order-summary {
    background: var(--bg-main); padding: 15px; border-radius: 8px;
    margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center;
}
#purchase-plan-name { font-weight: 600; }
#purchase-plan-price { font-size: 1.2rem; font-weight: 700; color: var(--purple-solid); }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 1rem; }
#username-input {
    width: 100%; padding: 12px; border-radius: 8px;
    border: 1px solid var(--border-color); background: #fff;
    color: var(--text-dark); font-size: 1rem;
}
#username-input:focus { outline: none; border-color: var(--purple-solid); }
.input-error { color: #e74c3c; font-size: 0.8rem; margin-top: 5px; display: none; }
.modal-warning {
    font-size: 0.9rem; color: var(--text-light); background: #FFF8E1;
    border: 1px solid #FFECB3; padding: 10px; border-radius: 8px;
    margin-bottom: 25px; text-align: center;
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 992px) {
    .steps-container { grid-template-columns: 1fr; }
    .step-card { text-align: center; }
    .step-icon { margin: 0 auto 20px auto; }
}
@media (max-width: 768px) {
    #hero h1 { font-size: 2.2rem; }
    .subtitle { font-size: 1rem; }
    .platform-header { flex-direction: column; align-items: flex-start; }
    #how-it-works h2 { font-size: 2rem; }
}
@media (max-width: 480px) {
    .service-info { flex-direction: column; align-items: flex-start; text-align: left; }
    .service-text h4 { margin-top: 10px; }
    .modal-plans-grid { grid-template-columns: 1fr; }
}