@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Inter:wght@300;400;500;700&display=swap');

:root {
    --primary: #0078D4;
    --primary-glow: rgba(0, 120, 212, 0.5);
    --secondary: #6366f1;
    --accent: #f43f5e;
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --text-white: #f8fafc;
    --text-gray: #94a3b8;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Effects */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(0, 120, 212, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(99, 102, 241, 0.15) 0%, transparent 40%);
    z-index: -1;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #a855f7 50%, #ec4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header/Nav */
nav {
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo .icon {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: white;
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto 3rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px var(--primary-glow);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    padding: 2.5rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.testimonial-header img.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: crop;
}

.testimonial-header h3 {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.testimonial-header p {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

.testimonial-text {
    font-style: italic;
    line-height: 1.7;
    color: var(--text-gray);
    flex-grow: 1;
}

.stars {
    color: #ffb800;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

/* Promo Section / Funnel */
.promo-section {
    padding: 6rem 0;
}

.promo-container {
    padding: 4rem;
    text-align: center;
    border: 2px solid rgba(162, 155, 254, 0.3);
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.6) 0%, rgba(10, 10, 20, 0.8) 100%);
}

.promo-container .badge {
    /* Adjusted to target badge within promo-container */
    background: #ff7675;
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    display: inline-block;
    box-shadow: 0 0 20px rgba(255, 118, 117, 0.4);
}

.promo-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.promo-content p {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.promo-form {
    display: flex;
    gap: 1rem;
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.promo-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0 1.5rem;
    color: white;
    font-size: 1.1rem;
}

.promo-form input:focus {
    outline: none;
}

.promo-form .btn {
    border-radius: 50px;
    padding: 1rem 2.5rem;
}

.promo-footer {
    margin-top: 1.5rem;
    font-size: 0.9rem !important;
    opacity: 0.6;
}

/* Funil: Social Proof Social */
.social-proof {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transform: translateX(-150%);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-proof.active {
    transform: translateX(0);
}

.proof-dot {
    width: 10px;
    height: 10px;
    background: #55efc4;
    border-radius: 50%;
    box-shadow: 0 0 10px #55efc4;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.social-proof p {
    color: #2d3436;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
}

/* Funil: Floating CTA */
.floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.floating-cta.active {
    opacity: 1;
    pointer-events: auto;
}

.exit-content {
    background: #fffafa !important;
    /* Slightly distinct for exit intent */
    text-align: center;
}

@media (max-width: 600px) {
    .social-proof {
        display: none;
        /* Hide proof on mobile to avoid clutter */
    }
}

.btn-secondary {
    background: var(--glass);
    color: white;
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Visual Mockup Container */
.mockup-container {
    margin-top: 5rem;
    perspective: 1000px;
}

.mockup {
    width: 100%;
    max-width: 1000px;
    height: 500px;
    margin: 0 auto;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
    transform: rotateX(5deg);
    transition: transform 0.5s;
    background-image: url('assets/background.png');
    background-size: cover;
    background-position: center;
}

.mockup:hover {
    transform: rotateX(0deg);
}

/* Features Section */
.features {
    padding: 8rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-gray);
    font-size: 1rem;
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 4rem;
}

.pricing-card {
    background: var(--bg-card);
    padding: 3rem 2rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pricing-card:hover {
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    background: linear-gradient(180deg, rgba(0, 120, 212, 0.1) 0%, rgba(15, 23, 42, 0) 100%);
    box-shadow: 0 20px 40px rgba(0, 120, 212, 0.2);
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.plan-currency {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: -0.5rem;
}

/* Botões de Auth */
.auth-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
}

/* Modal - Light Pastel Theme */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    max-width: 650px;
    width: 100%;
    padding: 2.5rem;
    border-radius: 30px;
    background: #fdfbff;
    /* Off-white pastel */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    animation: modalScale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalScale {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header {
    margin-bottom: 2rem;
    text-align: center;
}

.modal-header h2 {
    font-size: 2.2rem;
    color: #2d3436;
    /* Dark gray for title */
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: #636e72;
    /* Mid gray for desc */
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: #f1f2f6;
    border: none;
    color: #2d3436;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.close-modal:hover {
    transform: rotate(90deg);
    background: #dfe6e9;
    color: #ff7675;
}

/* Formulário Pastel */
.register-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4b4b4b;
    margin-bottom: 4px;
}

.form-group input {
    background: #ffffff;
    border: 2px solid #edf2f7;
    padding: 0.9rem 1.1rem;
    border-radius: 12px;
    color: #2d3436;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #a29bfe;
    /* Pastel Purple */
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(162, 155, 254, 0.15);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.85rem;
    color: #636e72;
    margin: 0.5rem 0;
}

.form-checkbox input {
    margin-top: 3px;
    cursor: pointer;
    accent-color: #a29bfe;
}

.w-100 {
    width: 100%;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
    }
}

.plan-price .period {
    font-size: 1rem;
    color: var(--text-gray);
    font-weight: 400;
}

.plan-features {
    list-style: none;
    margin-bottom: 3rem;
    text-align: left;
}

.plan-features li {
    padding: 0.5rem 0;
    color: var(--text-gray);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.plan-features li:last-child {
    border-bottom: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 1rem;
        align-items: center;
        text-align: center;
        background: rgba(15, 23, 42, 0.95);
        padding: 1rem;
        border-radius: 12px;
        border: 1px solid var(--glass-border);
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 0.5rem 0;
    }

    .auth-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
    }

    .auth-buttons .btn {
         width: 100%;
         text-align: center;
    }

    .hero {
        padding: 6rem 0 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }

    .cta-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
    
    .hero-btns { /* Specific for the hero buttons container if it exists, matching the HTML structure */
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .mockup {
        height: 250px;
    }

    .promo-container {
        padding: 2rem 1.5rem;
    }

    .promo-content h2 {
        font-size: 2rem;
    }

    .promo-form {
        flex-direction: column;
        border-radius: 20px;
        padding: 1.5rem;
    }

    .promo-form input {
        width: 100%;
        margin-bottom: 0.5rem;
        text-align: center;
    }

    .promo-form .btn {
        width: 100%;
        padding: 1rem;
    }

    .feature-grid, .pricing-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .pricing-card.featured {
        transform: scale(1); /* Reset scale on mobile to avoid overflow */
    }
}