/* --- Reset & Variables --- */
:root {
    --bg-dark: #121212;
    --primary-color: #8c8cf9;
    --primary-color-darken: #6262ff;
    --primary-bg: #8c8cf9;
    --accent-color: #000000;
    --text-color: #1a1a1a;
    --text-light: #666666;
    --white: #ffffff;
    --light-gray: #f4f4f4;
    --border-color: #e0e0e0;
    --button-bg: #8c8cf9;
    --button-text: #ffffff;
    --font-main: 'Manrope', sans-serif;
    --header-height: 80px;
}

.text-primary{
    color: var(--primary-color) !important;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

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

/* --- Buttons --- */
.btn-primary, .btn-cta {
    background-color: var(--button-bg);
    color: var(--button-text);
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-block;
    border: 1px solid var(--button-bg);
}

.btn-primary:hover, .btn-cta:hover {
    background-color: white;
    color: var(--button-bg);
}

.btn-outline {
    background-color: transparent;
    color: var(--button-bg);
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    border: 1px solid var(--button-bg);
}

.btn-outline:hover {
    background-color: var(--button-bg);
    color: var(--white);
}

/* --- Header --- */
.site-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed; /* Fixed so it floats over hero */
    top: 0;
    left: 0;
    width: 100%;
    background: transparent; /* Initial transparent */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;
}

/* Header Text Colors (Initial - Transparent) */
.site-header .main-nav a {
    color: var(--white); /* White text on hero */
}

/* Button in Header (Initial) */
.btn-header {
    background-color: var(--white);
    color: var(--primary-color);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 700;
    border: 1px solid var(--white);
    transition: 0.3s;
}
.btn-header:hover {
    background: transparent;
    color: var(--white);
}

/* --- Header Scrolled State (Added via JS) --- */
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-header.scrolled .main-nav a {
    color: var(--text-color); /* Dark text on white bg */
}
.site-header.scrolled .main-nav a:hover {
    color: var(--primary-color);
}

.site-header.scrolled .btn-header {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}
.site-header.scrolled .btn-header:hover {
    background-color: transparent;
    color: var(--primary-color);
}

/* Header Inner Layout */
.header-inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav ul { display: flex; gap: 30px; }
.main-nav a { font-weight: 600; font-size: 0.95rem; }

/* Mobile Trigger */
.mobile-menu-trigger {
    display: none;
    cursor: pointer;
}
.mobile-menu-trigger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--white); /* White bars initially */
    margin-bottom: 5px;
    transition: 0.3s;
}
.site-header.scrolled .mobile-menu-trigger span {
    background: var(--text-color); /* Dark bars when scrolled */
}

/* --- Mobile Menu Overlay --- */
.mobile-menu-overlay {
    position: fixed;
    top: var(--header-height); /* Starts exactly below the header */
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--white);
    z-index: 999;
    transform: translateX(100%); /* Hidden to the right by default */
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 40px;
    overflow-y: auto;
}

.mobile-menu-overlay.active {
    transform: translateX(0); /* Slide in */
    box-shadow: inset 0 10px 10px -10px rgba(0,0,0,0.1); /* Subtle shadow at top */
}

/* Mobile Links */
.mobile-nav-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 25px;
}

.mobile-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.mobile-link:hover {
    color: var(--primary-color);
}

.mobile-cta-container {
    margin-top: 20px;
    width: 80%;
    text-align: center;
}

.mobile-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px;
    font-size: 1.1rem;
}

/* --- Hamburger to X Animation --- */
.mobile-menu-trigger {
    z-index: 1001; /* Ensure it stays above the overlay */
}

.mobile-menu-trigger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background-color: var(--text-color) !important; /* Force dark color when open */
}

.mobile-menu-trigger.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-trigger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
    background-color: var(--text-color) !important; /* Force dark color when open */
}

/* Ensure header background becomes solid white when menu is open */
.site-header.menu-open {
    background-color: var(--white) !important;
}
/* Ensure logo logic handles the white background when menu is open */
.site-header.menu-open .logo-white { display: none !important; }
.site-header.menu-open .logo-dark { display: block !important; }

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 70vh; /* Full screen height */
    min-height: 600px;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Adjust for fixed header overlay */
    padding-top: var(--header-height);
}

.hero-bg-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("/images/background-presencify.png") center/cover no-repeat;
    opacity: 0.6; /* Darken bg image slightly */
    z-index: 1;
}

.hero-content {
    margin-left: 10px;
    text-align: left;
    position: relative;
    z-index: 2;
    color: var(--white);
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-text {
    font-size: 1.3rem;
    margin-bottom: 40px;
    max-width: 600px;
    line-height: 1.5;
}
.section-tag {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 30px;
    display: inline-block;
    border-bottom: 2px solid var(--text-color);
}

/* --- Benefits --- */
.benefits-section { padding: 80px 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 40px; }
.benefit-card { text-align: center; }
.img-placeholder { margin-bottom: 20px; border-radius: 8px; overflow: hidden; }
.img-placeholder img { max-width: 100%; height: auto; display: block; margin:0 auto; }
.benefit-card h4 { font-size: 1.2rem; margin-bottom: 10px; font-weight: 700;}

/* --- Feature Split --- */
.feature-split-section { padding: 80px 0; background: #f9f9f9; }
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.img-placeholder-large img { width: 100%; height: auto; border-radius: 12px; }
.split-content h2 { font-size: 2.5rem; margin-bottom: 20px; line-height: 1.2; }
.split-content p { margin-bottom: 20px; color: var(--text-light); }

/* --- How It Works --- */
.how-it-works-section { padding: 100px 0;
    background: #f9f9f9; }
.how-it-works-section h2 { font-size: 2.5rem; margin-bottom: 50px; text-align: center; }
.info-box {
    background: var(--white);
    padding: 30px;
    border-left: 4px solid var(--primary-bg);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100%;
}
.icon-wrap { margin-bottom: 15px; }

/* --- Stats --- */
.stats-section {
    background: #fff;
    color: black;
    padding: 80px 0;
    text-align: center;
}
.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}
.stat-item { display: flex; flex-direction: column; align-items: center; }
.number { font-size: 3rem; font-weight: 700; }
.label { font-size: 1rem; opacity: 0.9; }

/* --- FAQ Accordion --- */
.faq-section { padding: 100px 0; max-width: 800px; margin: 0 auto;}
.faq-section h2 { text-align: center; margin-bottom: 40px; font-size: 2.2rem; }

.accordion-item { border-bottom: 1px solid var(--border-color); }

.accordion-item button {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 20px 0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
}

.accordion-item button:after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    transition: transform 0.3s;
}

.accordion-item.active button:after {
    transform: rotate(45deg); /* Rotates + to x */
}

/* Accordion Content (Hidden by default, animated via max-height) */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content p {
    padding-bottom: 20px;
    color: var(--text-light);
    line-height: 1.6;
}

/* --- Support & Pricing --- */
.support-cta-section { padding: 60px 0; background: #f0f4f8; text-align: center; }
.pricing-section { padding: 100px 0; }
.pricing-section h2 { text-align: center; margin-bottom: 60px; font-size: 2rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.price-card {
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 12px;
    display: flex; flex-direction: column;
}
.price-card ul { margin: 20px 0 40px; padding-left: 20px; }
.price-card ul li { list-style: disc; margin-bottom: 10px; color: var(--text-light); }

/* --- Bottom CTA --- */
.bottom-cta-section { padding: 80px 0; background: #8c8cf9; color: #fff; }
.bottom-cta-section .container { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.bottom-content { max-width: 600px; }
.bottom-content ul li { margin-bottom: 15px; }

.person-placeholder {
    width: 300px; height: 300px;
    background: url("/images/2021.avif") center/contain no-repeat;
    border-radius: 50%;
}

/* --- Footer --- */
.site-footer { background: #f9f9f9; padding: 60px 0 20px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { margin-bottom: 20px; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; }
.footer-col ul li { margin-bottom: 8px; }
.copyright { border-top: 1px solid #ddd; padding-top: 20px; text-align: center; color: #888; }
/* --- Scroll Down Indicator --- */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Hide when scrolled */
.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

.scroll-indicator span {
    display: block;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid #fff; /* White arrows */
    border-right: 2px solid #fff;
    transform: rotate(45deg);
    margin: -10px auto; /* Stack them closely */
    animation: bounce 8s infinite;
}

/* Second arrow with a slight delay for a "wave" effect, or sync them */
.scroll-indicator span:nth-child(2) {
    animation-delay: 0.1s;
}

/* --- Bouncing Animation (4s cycle) --- */
@keyframes bounce {
    0% {
        transform: rotate(45deg) translate(0, 0);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    10% {
        transform: rotate(45deg) translate(10px, 10px);
    }
    15% {
        transform: rotate(45deg) translate(0, 0);
    }
    20% {
        transform: rotate(45deg) translate(10px, 10px);
    }
    25% {
        transform: rotate(45deg) translate(0, 0);
        opacity: 1;
    }
    30% {
        transform: rotate(45deg) translate(0, 0);
        opacity: 0;
    }
    100% {
        /* Stay hidden/still for the rest of the 4 seconds */
        transform: rotate(45deg) translate(0, 0);
        opacity: 0;
    }
}
/* --- Responsive --- */
@media (max-width: 900px) {
    .grid-3, .split-layout, .grid-2 { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 1.5rem; }
    .hero-text {
        font-size: 0.8rem;
    }
    .main-nav { display: none; } /* Hide nav on mobile for now */
    .header-cta { display: none; } /* Hide nav on mobile for now */
    .mobile-menu-trigger { display: block; }

    .bottom-cta-section .container { flex-direction: column; text-align: center; }
    .person-placeholder { margin: 0 auto; }
}
