/* app/static/css/landing.css */

/* Navigation */
nav {
    background: var(--bg-white);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

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

.logo {
    font-size: 24px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.nav-right-group {
    display: flex;
    align-items: center;
    gap: 24px;
}

.top-nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.top-nav-links a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.top-nav-links a:hover {
    color: var(--primary-color);
}

.user-greeting {
    color: #666;
    font-size: 14px;
}

.nav-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.nav-button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(91, 79, 233, 0.1) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero .subtitle {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.cta-primary {
    background: var(--primary-color);
    color: white;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(91, 79, 233, 0.3);
    animation: fadeInUp 0.8s ease-out 0.4s both;
    position: relative;
    overflow: hidden;
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-primary:hover::before {
    width: 300px;
    height: 300px;
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(91, 79, 233, 0.4);
}

.micro-text {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-light);
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.micro-text span {
    color: var(--success-color);
    font-weight: 600;
}

/* Social Proof Bar */
.social-proof-bar {
    padding: 60px 0;
    background: var(--bg-white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.social-proof-bar h3 {
    text-align: center;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 30px;
    font-size: 16px;
}

.logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.company-logo {
    font-size: 24px;
    font-weight: 700;
    color: #CBD5E0;
    transition: all 0.3s ease;
}

.company-logo:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
}

/* Problem Agitation Solution */
.pas-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.pas-section h2 {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-dark);
}

.pas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.pas-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pas-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
}

.pas-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.pas-card.problem::before {
    background: var(--secondary-color);
}

.pas-card.agitation::before {
    background: #FFB84D;
}

.pas-card.solution::before {
    background: var(--success-color);
}

.pas-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pas-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.problem .pas-icon {
    background: rgba(255, 107, 107, 0.1);
    color: var(--secondary-color);
}

.agitation .pas-icon {
    background: rgba(255, 184, 77, 0.1);
    color: #FFB84D;
}

.solution .pas-icon {
    background: rgba(78, 205, 196, 0.1);
    color: var(--success-color);
}

.pas-card ul {
    list-style: none;
}

.pas-card li {
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    color: var(--text-light);
    line-height: 1.8;
}

.pas-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Benefits Section */
.benefits {
    padding: 80px 0;
    background: var(--bg-white);
}

.benefits h2 {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.benefits-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 18px;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.benefit-card {
    text-align: center;
    padding: 40px 30px;
    border-radius: 20px;
    background: var(--bg-light);
    transition: all 0.3s ease;
    position: relative;
}

.benefit-card:hover {
    transform: translateY(-10px);
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1) rotate(5deg);
}

.benefit-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

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

/* How It Works */
.how-it-works {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

.how-it-works h2 {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-dark);
}

.demo-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    padding: 40px;
    position: relative;
}

.demo-header {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
}

.demo-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.demo-dot:nth-child(1) {
    background: #FF5F56;
}

.demo-dot:nth-child(2) {
    background: #FFBD2E;
}

.demo-dot:nth-child(3) {
    background: #27C93F;
}

.demo-content {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 30px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.demo-animation {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.step {
    padding: 20px;
    background: var(--bg-white);
    border-radius: 12px;
    margin: 20px 0;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideIn 0.5s ease-out forwards;
    box-shadow: var(--shadow-sm);
}

.step:nth-child(1) {
    animation-delay: 0.2s;
}

.step:nth-child(2) {
    animation-delay: 0.4s;
}

.step:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    line-height: 30px;
    font-weight: 600;
    margin-right: 12px;
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background: var(--bg-white);
}

.testimonials h2 {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-dark);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.testimonial-card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
    background: var(--bg-white);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 80px;
    color: var(--primary-color);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial-text {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
}

.testimonial-text strong {
    color: var(--primary-color);
    font-weight: 700;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 600;
}

.author-info h4 {
    font-size: 18px;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.author-info p {
    font-size: 14px;
    color: var(--text-light);
}

.rating {
    margin-top: 20px;
    color: #FFB84D;
    font-size: 20px;
}

/* Pricing */
.pricing {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

.pricing h2 {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.pricing-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 18px;
    margin-bottom: 60px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: stretch;
}

.pricing-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.plan-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.plan-price {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 8px;
    white-space: nowrap;
    line-height: 1.1;
    min-height: 46px;
}

.plan-price span {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-light);
}

/* MODIFICADO: Removido flex-grow e adicionado altura mínima */
.plan-description {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 16px;
    min-height: 48px; /* Garante altura mínima para descrições curtas */
}

/* MODIFICADO: Adicionado flex-grow para ocupar espaço */
.plan-features {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1; /* Faz esta lista crescer e empurrar o botão para baixo */
}

.plan-features li {
    padding: 12px 0;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.plan-features li::before {
    content: '✓';
    color: var(--success-color);
    font-weight: bold;
    font-size: 18px;
}

.plan-button {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    display: inline-block;
    margin-top: auto;
}

.plan-button:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.pricing-card.popular .plan-button {
    background: var(--primary-color);
    color: white;
}

.pricing-card.popular .plan-button:hover {
    background: var(--primary-hover);
}

/* Final CTA */
.final-cta {
    padding: 100px 0;
    background: var(--gradient);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    bottom: -50%;
    left: -50%;
    animation: wave 10s linear infinite;
}

@keyframes wave {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.final-cta h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.final-cta p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.final-cta-button {
    background: white;
    color: var(--primary-color);
    padding: 20px 48px;
    font-size: 18px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.final-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.guarantee {
    margin-top: 30px;
    font-size: 16px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.guarantee span {
    font-weight: 700;
    text-decoration: underline;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: white;
    padding: 40px 0;
    text-align: center;
}

footer p {
    opacity: 0.8;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
    }

    .pricing-card.popular {
        transform: none;
    }
}


@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }

    .hero .subtitle {
        font-size: 18px;
    }

    .pas-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .final-cta h2 {
        font-size: 32px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .nav-right-group {
        gap: 16px;
    }

    .top-nav-links {
        gap: 16px;
        font-size: 14px;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Ripple effect for buttons */
button, .nav-button, .plan-button {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.nav-right-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-nav-links {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 15px;
}

.top-nav-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.top-nav-links a:hover {
    color: var(--primary-color);
}

.user-greeting {
    color: var(--text-dark);
    font-weight: 500;
}

@media (max-width: 768px) {
    .top-nav-links {
        display: none; /* Em telas menores, escondemos os links para manter a simplicidade */
    }
}