/* Landing Page Styles for Emagre.Club SaaS */

/* Variables already defined in style.css, but we can add landing specific ones */
:root {
    --landing-primary: #1D6A80;
    --landing-accent: #04A6D5;
    --landing-secondary: #8B4F8B;
    --landing-dark: #0f172a;
    --landing-light: #f8fafc;
    --landing-gradient: linear-gradient(135deg, #1D6A80 0%, #8B4F8B 100%);
}

/* Landing Layout Overrides */
.landing-body {
    background-color: var(--card-bg);
}

.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.landing-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.landing-nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.landing-nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

.landing-btn-login {
    background: transparent;
    border: 1px solid var(--landing-primary);
    color: var(--landing-primary) !important;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 600 !important;
    transition: all 0.2s;
}

.landing-btn-login:hover {
    background: var(--landing-primary);
    color: white !important;
}

/* Hero Section */
.landing-hero {
    min-height: 100vh;
    background: #ffffff;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 8rem 5% 4rem;
}

.landing-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.landing-hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.landing-hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    color: var(--landing-primary);
    margin-bottom: 1.5rem;
}

.landing-hero-title span {
    background: var(--landing-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing-hero-subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.landing-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.landing-btn-primary {
    background: var(--landing-gradient);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(29, 106, 128, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}

.landing-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(29, 106, 128, 0.6);
}

.landing-hero-image-wrapper {
    position: relative;
    z-index: 2;
    flex: 1;
    margin-left: 3rem;
    perspective: 1000px;
    display: none; /* Mobile hidden by default */
    height: 400px;
}

@media (min-width: 992px) {
    .landing-hero-image-wrapper {
        display: block;
    }
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    transform: rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.hero-carousel:hover {
    transform: rotateY(0) rotateX(0);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(29, 106, 128, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    animation: fadeCarousel 15s infinite;
}

.carousel-slide:nth-child(1) {
    animation-delay: 0s;
}

.carousel-slide:nth-child(2) {
    animation-delay: 5s;
}

.carousel-slide:nth-child(3) {
    animation-delay: 10s;
}

@keyframes fadeCarousel {
    0%, 28% { opacity: 1; z-index: 2; }
    33%, 95% { opacity: 0; z-index: 1; }
    100% { opacity: 1; z-index: 2; }
}

/* Sections */
.landing-section {
    padding: 5rem 5%;
}

.landing-section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.landing-section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* How It Works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.step-card {
    text-align: center;
    position: relative;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--landing-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--landing-primary);
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.step-card:hover .step-icon {
    transform: scale(1.1);
    background: var(--landing-gradient);
    color: white;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-desc {
    color: var(--text-secondary);
}

/* Pricing */
.pricing-section {
    background: var(--landing-light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border-radius: 1rem;
    padding: 3rem 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    position: relative;
    transition: transform 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.popular {
    border: 2px solid var(--landing-accent);
    transform: scale(1.05);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--landing-accent);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-plan {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--landing-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.pricing-currency {
    font-size: 1.5rem;
    margin-right: 0.25rem;
}

.pricing-period {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.pricing-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--text-primary);
}

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

.pricing-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.pricing-btn-outline {
    border: 2px solid var(--landing-primary);
    color: var(--landing-primary);
    background: transparent;
}

.pricing-btn-outline:hover {
    background: var(--landing-primary);
    color: white;
}

.pricing-btn-solid {
    background: var(--landing-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(4, 166, 213, 0.4);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.testimonial-stars {
    color: #fbbf24;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--landing-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--landing-primary);
}

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

.testimonial-role {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Footer */
.landing-footer {
    background: var(--landing-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 5% 2rem;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact a {
    color: var(--landing-accent);
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .landing-hero-title {
        font-size: 2.5rem;
    }
    .landing-hero {
        padding-top: 8rem;
    }
    .pricing-card.popular {
        transform: scale(1);
    }
    .pricing-card.popular:hover {
        transform: translateY(-5px);
    }
}
