/* =============================================
    1. ROOT VARIABLES & GLOBAL STYLES (Mobile First Base)
    ============================================= */

:root {
    --primary-color: #8a2be2; /* Roxo/Azul Violeta - Cor principal de destaque */
    --accent-color: #00c6ff;  /* Ciano - Cor secundária para gradientes */
    --text-light: #e2e8f0;    /* Cinza claro (Slate 200) */
    --text-muted: #94a3b8;    /* Cinza médio (Slate 400) */
    --bg-dark-primary: #0f172a; /* Azul-ardósia escuro (Slate 900) */
    --bg-dark-secondary: #1e293b; /* Azul-ardósia mais claro (Slate 800) */
    --border-color-dark: rgba(148, 163, 184, 0.2); /* Cinza com transparência */
    --font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --border-radius: 0.75rem; /* 12px */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-sans-serif);
    line-height: 1.6;
    background-color: var(--bg-dark-primary);
    background-image: linear-gradient(to bottom right, #020617, #1e1b4b, #020617);
    color: var(--text-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

h1, h2, h3 {
    font-weight: 800;
}

p {
    color: var(--text-muted);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: var(--text-light);
}

.gradient-text {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* =============================================
    2. HERO & LOGIN SECTION
    ============================================= */

.hero-section {
    padding: 4rem 0 3rem; /* Adjusted padding for mobile */
    text-align: center;
}

.hero-badges {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.badge-item {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    background-color: rgba(45, 55, 72, 0.5);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.badge-item svg {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.hero-section h1 {
    font-size: 2.25rem; /* Adjusted for smaller screens */
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.login-section {
    padding: 3rem 0;
}

.login-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border-color-dark);
    border-radius: var(--border-radius);
    padding: 2rem;
    max-width: 450px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.login-card h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.label-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.form-control {
    display: block;
    width: 100%;
    background-color: #334155;
    border: 1px solid #475569;
    color: var(--text-light);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.3);
}

.form-options {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.forgot-password {
    font-size: 0.875rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 0.5rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 198, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.4);
    color: white;
}

.btn-block {
    width: 100%;
}

.signup-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* =============================================
    3. CONTENT SECTIONS (How it works, Why, etc.)
    ============================================= */

.how-it-works-section,
.why-choose-us-section,
.social-networks-section,
.faq-section {
    padding: 4rem 0;
    text-align: center;
}

.why-choose-us-section {
    background-color: rgba(30, 41, 59, 0.3);
}

section h2 {
    font-size: 2.25rem;
    margin-bottom: 2rem;
}

section p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}

.steps-grid, .benefits-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

.step-card, .benefit-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border-color-dark);
    padding: 2rem;
    border-radius: var(--border-radius);
    transition: transform 0.3s, box-shadow 0.3s;
}

.step-card:hover, .benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(138, 43, 226, 0.2);
}

.step-icon, .benefit-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    background-color: rgba(138, 43, 226, 0.1);
    border-radius: 50%;
    width: 60px;
    height: 60px;
}

.step-icon svg, .benefit-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
}

.step-card h3, .benefit-card h3 {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.icons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.social-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border-color-dark);
    padding: 1.5rem 1rem;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: background-color 0.2s;
}
.social-card:hover {
    background-color: rgba(45, 55, 72, 0.8);
}
.social-card i, .social-card strong {
    font-size: 2rem;
    color: var(--accent-color);
}
.social-card span {
    font-weight: 500;
}

/* =============================================
    4. FAQ SECTION
    ============================================= */
.faq-list {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}
.faq-item {
    background-color: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border-color-dark);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}
.faq-item summary {
    font-size: 1.125rem;
    font-weight: 500;
    padding: 1rem;
    cursor: pointer;
    list-style: none; /* Remove default marker */
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item p {
    padding: 0 1rem 1rem;
    margin: 0;
    max-width: 100%;
}
.faq-icon {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    transition: transform 0.2s ease-in-out;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%238a2be2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}
.faq-item[open] > summary .faq-icon {
    transform: rotate(180deg);
}

/* =============================================
    5. FOOTER
    ============================================= */
.site-footer {
    background-color: #020617;
    padding: 4rem 0 2rem;
    color: var(--text-muted);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}
.footer-logo {
    height: 40px;
    margin-bottom: 1rem;
    display: inline-block;
}
.footer-about p {
    margin-bottom: 1rem;
}
.whatsapp-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background-color: #25d366;
    color: white;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    transition: background-color 0.2s;
}
.whatsapp-link:hover {
    background-color: #128c7e;
    color: white;
}
.whatsapp-link i {
    margin-right: 0.5rem;
}
.support-hours {
    font-size: 0.75rem;
}
.footer-links h4, .footer-social h4 {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}
.footer-links ul, .footer-social ul {
    list-style: none;
    padding: 0;
}
.footer-links li, .footer-social li {
    margin-bottom: 0.5rem;
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.footer-social i {
    margin-right: 0.5rem;
}
.footer-copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color-dark);
}

/* =============================================
    6. RESPONSIVE DESIGN (Progressive Enhancements)
    ============================================= */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .hero-badges {
        flex-direction: row;
        gap: 1rem;
    }
    .icons-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .hero-section {
        padding: 5rem 0 3rem; /* Restore original padding */
    }
    .hero-section h1 {
        font-size: 2.5rem; /* Restore original font size */
    }
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        text-align: left;
    }
    .footer-about, .footer-links, .footer-social {
        align-items: flex-start;
    }
    .footer-logo {
        margin-left: 0;
    }
    .footer-social a, .whatsapp-link {
        justify-content: flex-start;
    }
}

/* Large devices (desktops, 1024px and up) */
@media (min-width: 1024px) {
    .hero-section h1 {
        font-size: 3rem; /* Larger font size for desktops */
    }
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .icons-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* =============================================
    REFINAMENTOS DE ESTILO PREMIUM (DROP-IN)
    ============================================= */

:root {
    /* Motion */
    --ease-smooth: cubic-bezier(.22, .61, .36, 1);
    --ease-emph: cubic-bezier(.2, .8, .2, 1);
    --dur-fast: 150ms;
    --dur-base: 220ms;
    --dur-slow: 320ms;

    /* Sombra */
    --elev-1: 0 6px 18px rgba(0,0,0,.08);
    --elev-2: 0 10px 28px rgba(0,0,0,.12);
    --elev-inset: inset 0 1px 0 rgba(255,255,255,.6);

    /* Borda translúcida (dark) */
    --hairline: 1px solid rgba(255,255,255,.08);
}

/* Transições padrão para elementos interativos */
a, button, .btn, .dash_small_card, .affiliate-card, .order-card, .payment-card, .stat-item {
    transition: transform var(--dur-base) var(--ease-smooth),
                box-shadow var(--dur-base) var(--ease-smooth),
                background-color var(--dur-fast) var(--ease-smooth),
                color var(--dur-fast) var(--ease-smooth),
                border-color var(--dur-fast) var(--ease-smooth),
                opacity var(--dur-fast) var(--ease-smooth);
}

/* Sheen opcional para CTAs */
@keyframes sheen { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* Dark (login) */
body .form-control {
    background-color: rgba(51,65,85,.65);
    border: var(--hairline);
    box-shadow: none;
}
body .form-control:hover {
    background-color: rgba(51,65,85,.8);
}

/* (1) CTA com sheen + foco visível */
.btn-primary{
  background-size:200% 100%;
  position:relative;
  will-change:transform;
}
.btn-primary:hover{
  background-image:
    linear-gradient(135deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 35%),
    linear-gradient(to right, var(--primary-color), var(--accent-color));
  animation: sheen 1.4s var(--ease-smooth);
  transform: translateY(-2px);
}
.btn-primary:focus-visible{
  outline:none;
  box-shadow:0 0 0 3px rgba(138,43,226,.28), 0 10px 28px rgba(0,0,0,.18);
}

/* (2) Acessibilidade discreta em links */
a:focus-visible{
  outline:none;
  box-shadow:0 0 0 3px rgba(0,198,255,.25);
  border-radius:.25rem;
}

/* (3) Lift em badges/cards do herói */
.badge-item:hover,
.step-card:hover, .benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
}

/* garante que a keyframe exista (uma vez só no projeto) */
@keyframes sheen {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* =============================================
    ACABAMENTOS FINAIS (DROP-IN, SEM REMOVER NADA)
    ============================================= */

/* Botão: feedback de pressão no toque/click */
.btn-primary:active{
  transform: translateY(-1px);
  opacity: .96;
}

/* Foco visível em badges clicáveis (acessibilidade) */
.badge-item:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(138,43,226,.28);
}

/* Preferência do usuário por menos movimento */
@media (prefers-reduced-motion: reduce){
  * { transition: none !important; animation: none !important; }
}