/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

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

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Header Styles */
.header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
}

.logo-text {
    font-weight: 700;
    font-size: 2rem;
    color: #297B4D;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #2563eb;
}

.cta-button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background: #1d4ed8;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.nav-menu.active {
    display: flex !important;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: white;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-menu.active .nav-link {
    margin: 1rem 0;
    font-size: 1.2rem;
    width: 100%;
    text-align: center;
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.nav-menu.active .cta-button {
    margin-top: 2rem;
    width: 80%;
    max-width: 280px;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1e293b;
    margin-bottom: 1.5rem;
    word-wrap: break-word;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: #2563eb;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;    
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    min-height: 44px; /* Minimum touch target for mobile */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
    padding: 12px 26px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px; /* Minimum touch target for mobile */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-secondary:hover {
    background: #2563eb;
    color: white;
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #2563eb;
}

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.hero-image {
    position: relative;
}

.hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.icons-img {
    width: 150px;
    height: 50x;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: #ffffff;
}

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

.feature-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f1f5f9;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: #eff6ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon img {
    width: 30px;
    height: 30px;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.feature-description {
    color: #64748b;
    line-height: 1.6;
}

/* Demo Section */
.demo {
    padding: 80px 0;
    background: #f8fafc;
}

.demo-container {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    margin-top: 2rem;
}

.demo-header {
    text-align: center;
    margin-bottom: 2rem;
}

.demo-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.demo-header p {
    color: #64748b;
}

.calc-container {
    min-height: 600px;
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    position: relative;
}

.calc-container::before {    
    color: #64748b;
    font-style: italic;
}

/* Benefits Section */
.benefits {
    padding: 80px 0;
    background: #ffffff;
}

.benefits-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.benefit-item {
    margin-bottom: 2rem;
}

.benefit-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.benefit-item p {
    color: #64748b;
    line-height: 1.6;
}

.benefits-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* Analytics Section */
.analytics {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.analytics-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.analytics-item {
    margin-bottom: 2rem;
}

.analytics-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.analytics-item h4::before {
    content: "📊";
    font-size: 1rem;
}

.analytics-item p {
    color: #64748b;
    line-height: 1.6;
}

.analytics-image {
    position: relative;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border: 3px solid #ffffff;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.analytics-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.analytics-img:hover {
    transform: scale(1.02);
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px 15px 15px;
    font-size: 0.9rem;
    text-align: center;
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Carousel Dots */
.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background: white;
    transform: scale(1.2);
}

/* Popup Styles */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    cursor: pointer;
}

.popup-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    cursor: default;
}

.popup-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: transform 0.3s ease;
}

.popup-close:hover {
    transform: scale(1.2);
}

#popupImage {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.popup-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 -50px;
}

.popup-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 -25px;
}

.popup-btn:hover {
    background: white;
    transform: scale(1.1);
}

.analytics-caption {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.analytics-caption p {
    color: #475569;
    font-size: 0.9rem;
    font-style: italic;
    margin: 0;
    text-align: center;
}

.analytics-cta {
    margin-top: 2rem;
    text-align: center;
}

/* System Flow Section */
.system-flow {
    padding: 80px 0;
    background: #ffffff;
}

.flow-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.flow-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.flow-step {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 16px;
    border-left: 4px solid #2563eb;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 2rem;
    min-height: 400px;
}

.flow-step:hover {
    background: #f1f5f9;
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.1);
}

.flow-icon {
    width: 380px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.flow-icon img {
    width: 380px;
    height: 380px;
    object-fit: contain;
}

.flow-content-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.flow-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.flow-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.system-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.system-link:hover {
    text-decoration: underline;
}

.flow-benefits {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.benefit-tag {
    background: #e0e7ff;
    color: #3730a3;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Flow Diagram */
.flow-diagram {
    position: sticky;
    top: 2rem;
}

.flow-visual {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
}

.flow-box {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 1rem;
}

.flow-box.calculator {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    font-weight: 600;
}

.flow-arrow {
    font-size: 2rem;
    color: #2563eb;
    text-align: center;
    margin: 1rem 0;
    font-weight: bold;
}

.flow-destinations {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.flow-box.woocommerce {
    border-left: 4px solid #7c3aed;
}

.flow-box.rsdachy {
    border-left: 4px solid #059669;
}

.flow-box.email {
    border-left: 4px solid #dc2626;
}

.flow-label {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Integration Section */
.integration {
    padding: 80px 0;
    background: #f8fafc;
}

.integration-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.step p {
    color: #64748b;
}

.code-example {
    background: #1e293b;
    padding: 2rem;
    border-radius: 12px;
    color: #e2e8f0;
}

.code-example h4 {
    margin-bottom: 1rem;
    color: #ffffff;
}

.code-example pre {
    background: #0f172a;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.875rem;
}

.code-example code {
    color: #e2e8f0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-primary.large,
.btn-secondary.large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn-secondary.large {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary.large:hover {
    background: white;
    color: #2563eb;
}

/* Footer */
.footer {
    background: #1e293b;
    color: #e2e8f0;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: block;
}

.footer-section a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 2rem;
    text-align: center;
    color: #94a3b8;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .flow-content {
        grid-template-columns: 1fr;
    }
    
    .flow-icon {
        width: 300px;
        height: 300px;
    }
    
    .flow-icon img {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
        padding: 1rem 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-img {
        max-height: 300px;
        object-fit: cover;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .stat {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }
    
    .benefits-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .analytics-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .carousel-wrapper {
        height: 250px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .popup-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .popup-content {
        max-width: 95%;
        max-height: 80%;
    }
    
    .flow-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .flow-diagram {
        position: static;
        order: -1;
    }
    
    .flow-visual {
        padding: 1rem;
    }
    
    .flow-destinations {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .flow-step {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .flow-icon {
        width: 250px;
        height: 250px;
        align-self: center;
    }
    
    .flow-icon img {
        width: 250px;
        height: 250px;
    }
    
    .integration-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    .section-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    .demo-container {
        padding: 1rem;
    }
    
    .code-example pre {
        font-size: 0.8rem;
        padding: 1rem;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .nav-container {
        padding: 0 12px;
    }
    
    .logo-img {
        width: 60px;
        height: 60px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.85rem;
    }
    
    .feature-card {
        padding: 1rem;
    }
    
    .flow-step {
        padding: 1rem;
    }
    
    .flow-icon {
        width: 200px;
        height: 200px;
    }
    
    .flow-icon img {
        width: 200px;
        height: 200px;
    }
    
    .flow-title {
        font-size: 1.1rem;
    }
    
    .flow-description {
        font-size: 0.9rem;
    }
    
    .carousel-wrapper {
        height: 200px;
    }
    
    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .benefit-item h4,
    .analytics-item h4 {
        font-size: 1.1rem;
    }
    
    .benefit-item p,
    .analytics-item p {
        font-size: 0.9rem;
    }
    
    .step {
        padding: 1rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .cta {
        padding: 60px 0;
    }
    
    .cta h2 {
        font-size: 1.4rem;
    }
}