/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

/* --- CSS Variables --- */
:root {
    --indigo-500: #6366F1;
    --indigo-700: #4338CA;
    --indigo-50: #EEF2FF;
    --amber-500: #F59E0B;
    --yellow-300: #FDE047;
    --white: #FFFFFF;
    --slate-50: #F8FAFC;
    --slate-800: #1E293B;
    --slate-500: #64748B;
    --slate-400: #94A3B8;
    --whatsapp-green: #25D366;
    --font-main: 'Inter', sans-serif;
}

/* --- Base & Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--slate-800);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Typography --- */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}
h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.1; }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); }
h3 { font-size: 1.5rem; font-weight: 600; }

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.logo-img { width: 140px; }

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

.nav-links a {
    padding: 12px 20px;
    text-decoration: none;
    color: var(--slate-800);
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a:hover { color: var(--indigo-500); }

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--indigo-500);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 50%;
}

.cta-button {
    background: linear-gradient(135deg, var(--indigo-500) 0%, #8B5CF6 100%);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.site-header .cta-button {
    background: var(--white);
    color: var(--indigo-500);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.site-header .cta-button:hover {
    background: var(--indigo-50);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 22px;
    position: relative;
    z-index: 1001;
}
.menu-toggle .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--slate-800);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
    position: absolute;
}
.menu-toggle .bar:nth-child(1) { top: 0; }
.menu-toggle .bar:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle .bar:nth-child(3) { bottom: 0; }

.menu-toggle.active .bar:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.menu-toggle.active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.active .bar:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }


/* --- Hero Section --- */
.hero {
    padding: 160px 0 80px 0;
    background-color: var(--slate-50);
    position: relative;
    overflow: hidden;
}
.background-blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}
.blob1 {
    width: 400px;
    height: 400px;
    background: var(--indigo-50);
    top: -100px;
    left: -100px;
    animation: float 15s ease-in-out infinite;
}
.blob2 {
    width: 300px;
    height: 300px;
    background: var(--yellow-300);
    bottom: -50px;
    right: -50px;
    animation: float 12s ease-in-out infinite reverse;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--yellow-300), var(--amber-500));
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.hero-content h1 .highlight { color: var(--whatsapp-green); }
.hero-content p {
    font-size: 1.1rem;
    color: var(--slate-500);
    max-width: 500px;
    margin: 24px 0 32px;
}
.hero-content .cta-button {
    font-size: 16px; /* Adjusted to match default cta-button font size */
    padding: 12px 24px; /* Standardized padding */
}
.hero-content .cta-button i { transition: transform 0.3s ease; }
.hero-content .cta-button:hover i { transform: rotate(15deg); }

.hero-illustration {
    position: relative;
    text-align: center;
}
.hero-main-img {
    max-width: 70%;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease-out;
    animation: float-rotate 10s ease-in-out infinite;
}

@keyframes float-rotate {
    0% {
        transform: translateY(0) rotate(-5deg);
    }
    50% {
        transform: translateY(-25px) rotate(5deg);
    }
    100% {
        transform: translateY(0) rotate(-5deg);
    }
}

.floating-element {
    position: absolute;
    background: var(--white);
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    font-weight: 600;
    z-index: 3;
    animation: float 5s ease-in-out infinite;
}
.stats-bubble {
    color: var(--amber-500);
    animation-delay: 0.5s;
}
.stats-bubble i { margin-right: 5px; }

/* --- Features Section --- */
.features {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--slate-50) 100%);
    position: relative;
}
.section-title {
    text-align: center;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 20px; /* Add space for the underline */
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px; /* Adjust width as needed */
    height: 4px;
    background: var(--indigo-500); /* Use a primary color for the underline */
    border-radius: 2px;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.feature-card {
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid transparent;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.1);
    border-color: var(--indigo-500);
}
.card-arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 20px;
    color: var(--slate-400);
    transition: color 0.3s ease;
}
.feature-card:hover .card-arrow {
    color: var(--indigo-500);
}
.feature-card .icon {
    font-size: 40px;
    color: var(--indigo-500);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}
.feature-card:hover .icon {
    transform: scale(1.1) rotate(-10deg);
}
.feature-card h3 { margin-bottom: 12px; }
.feature-card p { color: var(--slate-500); }

/* --- Advantages Section --- */
.advantages {
    background: #FAFBFF;
    padding: 100px 0;
    overflow: hidden;
}
.advantages-container {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 80px;
    align-items: center;
}
.stats-dashboard {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stats-dashboard:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}
.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}
.stats-label {
    font-size: 14px;
    color: var(--slate-500);
    margin-bottom: 4px;
}
.stats-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--slate-800);
}
.stats-badge {
    background-color: #D1FAE5;
    color: #065F46;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}
.progress-bars {
    display: grid;
    gap: 16px;
}
.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}
.progress-bg {
    width: 100%;
    height: 8px;
    background-color: #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    border-radius: 4px;
}
.advantage-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--slate-800);
    line-height: 1.2;
    margin-bottom: 16px;
}
.advantage-content .section-subtitle {
    font-size: 1.125rem;
    color: var(--slate-500);
    margin-bottom: 40px;
}
.advantage-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.advantage-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.check-icon {
    width: 24px;
    height: 24px;
    background: #10B981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 12px;
}
.advantage-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--slate-800);
    margin-bottom: 8px;
}
.advantage-item p {
    color: var(--slate-500);
    max-width: 500px;
}

/* --- Meta Provider Section --- */
.meta-provider {
    padding: 100px 0;
    background-color: var(--white);
    overflow: hidden;
}
.meta-provider-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.meta-provider-content h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}
.meta-provider-content p {
    font-size: 1.1rem;
    color: var(--slate-500);
    line-height: 1.7;
}
.meta-provider-illustration {
    text-align: center;
}
.meta-provider-img {
    max-width: 90%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.3s ease;
}
.meta-provider-img:hover {
    transform: translateY(-5px);
}

/* --- PeeloCommerce Section --- */
.peelocommerce {
    padding: 100px 0;
    background-color: var(--slate-50);
    overflow: hidden;
}
.peelocommerce-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.peelocommerce-content h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}
.peelocommerce-content p {
    font-size: 1.1rem;
    color: var(--slate-500);
    line-height: 1.7;
    margin-bottom: 16px;
}
.peelocommerce-content p:last-of-type {
    margin-bottom: 32px;
}
.peelocommerce-illustration {
    text-align: center;
}
.peelocommerce-images {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    position: relative;
    width: 100%;
    max-width: 700px; /* Adjust as needed */
    margin: 0 auto;
}
.peelocommerce-main-img {
    max-width: 60%; /* Adjust size for desktop */
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.peelocommerce-phone-img {
    max-width: 30%; /* Adjust size for desktop */
    height: auto;
    position: absolute;
    bottom: -20px; /* Adjust position */
    left: 0; /* Adjust position */
    transform: rotate(-10deg); /* Add a slight rotation */
    box-shadow: none;
    border: none;
    transition: transform 0.3s ease;
}
.peelocommerce-main-img:hover,
.peelocommerce-phone-img:hover {
    transform: translateY(-5px) rotate(-10deg); /* Maintain rotation on hover for phone */
}
.peelocommerce-main-img:hover {
    transform: translateY(-5px);
}

/* Responsive adjustments for peelocommerce section */
@media (max-width: 768px) {
    .peelocommerce-images {
        flex-direction: column;
        gap: 40px;
    }
    .peelocommerce-main-img {
        max-width: 80%;
    }
    .peelocommerce-phone-img {
        position: static;
        transform: none;
        max-width: 50%;
    }
    .peelocommerce-main-img:hover,
    .peelocommerce-phone-img:hover {
        transform: none;
    }
}
.price-info {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--slate-800);
    margin-top: 24px;
    margin-bottom: 24px !important;
}
.setup-note {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--slate-500);
    display: block;
    margin-top: 8px;
}

/* --- Clients Section --- */
.clients {
    padding: 80px 0;
    background-color: var(--slate-50);
}
.client-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* Flexible columns */
    justify-items: center; /* Center items within their grid cells */
    align-items: center;
    gap: 40px; /* Adjusted gap for better spacing */
    padding: 20px 0;
}
.client-logos img {
    max-height: 60px; /* Slightly larger max height */
    width: auto; /* Maintain aspect ratio */
    filter: grayscale(100%) contrast(0.8);
    transition: all 0.3s ease;
    opacity: 0.7;
}
.client-logos img:hover {
    filter: grayscale(0) contrast(1);
    transform: scale(1.05);
    opacity: 1;
}

/* --- Final CTA Section --- */
.final-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--indigo-700), var(--indigo-500));
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 800"><path fill="%234338CA" d="M400 0L400 800Q200 800 200 400Q200 0 400 0Z"/><path fill="%234338CA" d="M400 0L400 800Q600 800 600 400Q600 0 400 0Z"/></svg>');
    background-size: 20px;
    opacity: 0.05;
}
.final-cta .container {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}
.final-cta h2 {
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    margin-bottom: 16px;
}
.final-cta p {
    color: var(--indigo-50);
    opacity: 0.9;
    margin-bottom: 32px;
}
.final-cta .cta-button {
    background: linear-gradient(135deg, var(--indigo-500) 0%, #8B5CF6 100%); /* Revert to original gradient */
    color: var(--white); /* Revert to original text color */
    padding: 12px 24px; /* Standardized padding */
}
.final-cta .cta-button:hover {
    background: var(--indigo-50);
    transform: translateY(-2px) scale(1.05);
}

/* --- Footer --- */
.site-footer {
    background-color: var(--slate-800);
    color: var(--slate-400);
    padding: 60px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-section h3 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 20px;
}
.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: 10px; }
.footer-section a {
    color: var(--slate-400);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-section a:hover { color: var(--white); }
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}
.social-icons a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: all 0.3s ease;
}
.social-icons a:hover {
    background-color: var(--indigo-500);
    transform: scale(1.1);
}
.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #334155;
    font-size: 0.875rem;
    color: var(--slate-500);
}

/* --- Animations & Responsive --- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: var(--delay, 0s);
}
.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transition: right 0.5s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    .nav-links.active {
        right: 0;
    }
    .menu-toggle {
        display: block;
    }
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content p { margin-left: auto; margin-right: auto; }
    .hero-illustration { margin-top: 40px; }
    .advantages-container {
        grid-template-columns: 1fr; /* Stack columns on small screens */
    }
    .advantage-grid, .feature-grid { 
        grid-template-columns: 1fr; 
    }
    .advantage-card {
        text-align: center;
    }
    .advantage-card .icon { 
        margin: 0 auto 20px; 
    }
    .meta-provider-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .meta-provider-illustration {
        margin-top: 40px;
    }
    .peelocommerce-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .peelocommerce-illustration {
        margin-top: 40px;
    }
    .peelocommerce-content p {
        margin-left: auto;
        margin-right: auto;
    }
    .peelocommerce-content .cta-button {
        margin-left: auto;
        margin-right: auto;
    }
}
