/* =========================================
   1. CORE VARIABLES & BASE STYLES
   ========================================= */
:root {
    --bg-color: #FBFBFD;
    --text-primary: #1D1D1F;
    --text-secondary: #86868B;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.5);
    --accent-black: #000000;
    --section-spacing: 120px;
}

/* GLOBAL RESET */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    background-image: radial-gradient(circle at 20% 30%, rgba(230, 230, 250, 0.4) 0%, transparent 60%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* =========================================
   2. UTILITY CLASSES
   ========================================= */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
    border-radius: 24px;
}

/* =========================================
   3. NAVIGATION (UPDATED FOR LOGO)
   ========================================= */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    width: 100%;
    position: relative; 
    z-index: 100;
}

.logo { 
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 101; 
}

/* Logo Image Styling */
.logo img {
    height: 40px; 
    width: auto;
    display: block;
}

/* Desktop Nav Links */
.nav-links { display: flex; align-items: center; }
.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    margin-left: 24px;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
}
.nav-links a:hover { color: var(--text-primary); }
.cta-link { color: var(--accent-black) !important; font-weight: 600; }

/* Hamburger Icon (Hidden on Desktop) */
.hamburger {
    display: none; 
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 18px;
    cursor: pointer;
    z-index: 101;
}
.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--accent-black);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    width: 100%;
}
.hero-content-left { max-width: 580px; z-index: 2; width: 100%; }

h1 {
    font-size: 64px;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.05;
    margin-bottom: 20px;
}
.hero-subtext {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
}

/* Hero Interface */
.hero-interface-wrapper { position: relative; z-index: 3; width: 100%; }
.hero-interface {
    padding: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
}
.url-input {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 12px;
    font-size: 16px;
    outline: none;
    color: var(--text-primary);
}
.primary-btn {
    background: var(--accent-black);
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.2s;
}
.primary-btn:hover { transform: translateY(-2px); }

/* Hero Visual (Desktop 3D Style) */
.hero-visual-right {
    position: absolute;
    right: -5%;
    top: 100px;
    width: 55%;
    z-index: 1;
    pointer-events: none;
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    filter: drop-shadow(20px 30px 50px rgba(0,0,0,0.1));
}
.hero-animation { width: 100%; height: auto; border-radius: 30px; }

.trust-note {
    margin-top: 24px;
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}
.trust-icon { color: #34C759; }

/* =========================================
   5. HOW IT WORKS
   ========================================= */
.section-spacing { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 80px; }
.section-header h2 { font-size: 42px; font-weight: 800; letter-spacing: -1px; margin-bottom: 16px; }
.section-header p { color: var(--text-secondary); font-size: 20px; max-width: 600px; margin: 0 auto; }

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}
.step-card {
    padding: 48px 36px;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}
.step-card:hover { 
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}
.step-icon-wrapper {
    width: 64px;
    height: 64px;
    background: rgba(0,0,0,0.04);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
}
.step-icon { font-size: 28px; }
.step-number {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: block;
    font-weight: 700;
}
.step-title { margin: 0 0 10px 0; font-size: 20px; font-weight: 700; }
.step-desc { color: var(--text-secondary); margin: 0; line-height: 1.5; font-size: 16px; }

/* =========================================
   6. FORMS
   ========================================= */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    width: 100%;
}
.form-header { text-align: center; margin-bottom: 30px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #E5E5E5;
    border-radius: 10px;
    font-size: 16px;
    box-sizing: border-box; 
    transition: all 0.2s;
}
.form-group input:focus { outline: none; border-color: #000; box-shadow: 0 0 0 4px rgba(0,0,0,0.05); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.full-width { width: 100%; margin-top: 10px; }
.info-card { max-width: 600px; width: 100%; margin-bottom: 30px; padding: 30px; text-align: center; }
.info-card h2 { margin-bottom: 15px; font-size: 24px; }
.highlight { color: #1D1D1F; font-weight: 600; }

/* =========================================
   7. CONTACT & FOOTER
   ========================================= */
.zapnix-social-section { padding: 60px 20px; text-align: center; background-color: transparent; }
.zapnix-social-header h2 { font-size: 28px; font-weight: 700; margin: 0 0 10px 0; color: #1D1D1F; letter-spacing: -0.5px; }
.zapnix-social-header p { color: #86868B; margin: 0 auto 40px; max-width: 400px; font-size: 16px; line-height: 1.5; }
.zapnix-grid { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.z-card { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 150px; height: 150px; background: rgba(255, 255, 255, 0.65); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.8); border-radius: 24px; text-decoration: none; transition: all 0.3s; box-shadow: 0 10px 30px rgba(0,0,0,0.05); cursor: pointer; position: relative; overflow: hidden; }
.z-card:hover { transform: translateY(-8px); background: rgba(255, 255, 255, 0.9); box-shadow: 0 20px 40px rgba(0,0,0,0.12); }
.z-icon { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; transition: transform 0.3s ease; }
.z-card:hover .z-icon { transform: scale(1.1); }
.z-icon svg { width: 28px; height: 28px; }
.z-label { font-size: 14px; font-weight: 600; color: #1D1D1F; }
.whatsapp .z-icon { background: rgba(37, 211, 102, 0.1); color: #25D366; }
.instagram .z-icon { background: rgba(225, 48, 108, 0.1); color: #E1306C; }
.phone .z-icon { background: rgba(29, 29, 31, 0.1); color: #1D1D1F; }
.email .z-icon { background: rgba(0, 120, 212, 0.1); color: #0078D4; }

footer { text-align: center; padding: 40px; color: var(--text-secondary); font-size: 14px; margin-top: auto; }
.footer-links h3 { font-size: 16px; margin-bottom: 12px; color: var(--text-primary); }
.policy-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.policy-links a { font-size: 14px; color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.policy-links a:hover { color: var(--text-primary); text-decoration: underline; }

/* =========================================
   8. POLICY PAGES
   ========================================= */
.policy-container { 
    padding: 60px 50px; 
    max-width: 800px; 
    margin: 40px auto; 
    background: rgba(255, 255, 255, 0.85); 
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}
.policy-container h1 { font-size: 42px; margin-bottom: 10px; text-align: center; color: #000; }
.last-updated { text-align: center; color: var(--text-secondary); margin-bottom: 60px; font-style: italic; font-size: 14px; border-bottom: 1px solid rgba(0,0,0,0.05); padding-bottom: 40px; }
.policy-container h2 { font-size: 24px; margin-top: 50px; margin-bottom: 20px; color: #000; font-weight: 700; padding-bottom: 15px; border-bottom: 1px solid rgba(0,0,0,0.1); }
.policy-container h3 { font-size: 18px; margin-top: 30px; margin-bottom: 12px; color: #1D1D1F; font-weight: 600; }
.policy-container p { font-size: 16px; line-height: 1.8; color: #444; margin-bottom: 16px; }
.policy-container ul { margin-bottom: 24px; padding: 25px 25px 25px 45px; background: rgba(0,0,0,0.03); border-radius: 16px; border: 1px solid rgba(0,0,0,0.05); }
.policy-container li { font-size: 16px; line-height: 1.7; color: #333; margin-bottom: 10px; }
.policy-container a { color: #000; text-decoration: underline; font-weight: 500; }

/* =========================================
   9. CUSTOMER REVIEWS (SLIDER LOGIC)
   ========================================= */
.reviews-slider-wrapper {
    width: 100%;
    overflow: hidden; /* ESSENTIAL: Hides the other cards */
}

.reviews-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

.review-card {
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.08); }
.review-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.review-avatar { width: 48px; height: 48px; background: #000; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; }
.review-name { display: block; font-weight: 700; color: #1D1D1F; font-size: 16px; }
.review-date { display: block; font-size: 13px; color: #86868B; margin-top: 2px; }
.review-text { font-size: 15px; line-height: 1.6; color: #424245; margin-bottom: 20px; font-style: italic; }
.review-stars { color: #FFB800; font-size: 18px; letter-spacing: 2px; }

/* Hide the 4th child (Clone) on Desktop */
.reviews-track .review-card:nth-child(4) {
    display: none !important;
}

/* =========================================
   10. MOBILE RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    html, body { overflow-x: hidden; position: relative; }
    .container { padding: 0 20px; width: 100%; box-sizing: border-box; }
    
    /* Nav */
    nav { padding: 15px 0; justify-content: space-between; align-items: center; }
    .logo { font-size: 22px; }
    .hamburger { display: flex; }
    .nav-links { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; width: 100%; background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 30px 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); border-bottom: 1px solid rgba(0,0,0,0.05); z-index: 100; align-items: center; gap: 25px; }
    .nav-links.active { display: flex; animation: fadeIn 0.3s ease; }
    .nav-links a { margin-left: 0; font-size: 18px; color: #1D1D1F; }
    .nav-links .cta-link { width: auto; text-align: center; background: transparent; color: #000; padding: 0; border-radius: 0; margin-top: 0; display: inline-block; font-weight: 700; }

    /* Hero */
    .hero { flex-direction: column; text-align: center; padding-top: 20px; padding-bottom: 60px; min-height: auto; }
    .hero-content-left { width: 100%; margin: 0 auto; }
    .hero-visual-right { display: block; position: relative; order: -1; width: 100%; max-width: 300px; margin: 0 auto 20px; right: auto; top: auto; transform: none; } 
    h1 { font-size: 40px; line-height: 1.1; margin-bottom: 16px; }
    .hero-subtext { font-size: 16px; margin-bottom: 32px; padding: 0 10px; }
    .hero-interface-wrapper { width: 100%; }
    .hero-interface { flex-direction: column; gap: 12px; padding: 16px; }
    .url-input { width: 100%; text-align: center; border-bottom: 1px solid rgba(0,0,0,0.05); }
    .hero-interface .primary-btn { width: 100%; padding: 14px; }
    
    /* Center Trust Note on Mobile */
    .trust-note {
        justify-content: center;
        width: 100%;
    }
    
    /* Sections */
    .section-spacing { padding: 60px 0; }
    .steps-grid { grid-template-columns: 1fr; gap: 20px; }
    .step-card { padding: 30px 24px; }
    
    /* REVIEWS SLIDER MOBILE (FIXED) */
    .reviews-track {
        display: flex; /* Makes them a row */
        flex-wrap: nowrap; /* FORCES single line, prevents wrapping */
        grid-template-columns: none;
        gap: 0;
    }
    .review-card {
        min-width: 100%; /* Forces 1 card per slide */
        flex: 0 0 100%;
        margin: 0;
    }
    
    /* Force Show the Clone Card on Mobile for Loop */
    .reviews-track .review-card:nth-child(4) {
        display: flex !important;
    }

    /* Footer/Pages */
    .form-container { padding: 24px; width: 100%; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .zapnix-grid { gap: 12px; }
    .z-card { width: 46%; height: 130px; }
    .policy-container { padding: 30px 20px; margin-top: 20px; }
    .policy-container h1 { font-size: 32px; }
    .policy-container h2 { font-size: 22px; margin-top: 40px; }
    .policy-container ul { padding: 20px 20px 20px 40px; }
    
    /* Floating WhatsApp Mobile */
    .floating-whatsapp {
        bottom: 40px; /* Moved higher */
        right: 20px;
        width: 55px;
        height: 55px;
    }
    .floating-whatsapp svg {
        width: 28px;
        height: 28px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   12. FLOATING WHATSAPP BUTTON (DESKTOP)
   ========================================= */
.floating-whatsapp {
    position: fixed;
    bottom: 50px; /* Moved higher */
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    z-index: 1000; /* Ensures it stays on top of everything */
    transition: all 0.3s ease;
    text-decoration: none;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.floating-whatsapp svg {
    width: 32px;
    height: 32px;
}
/* =========================================
   13. HERO LOGOS (Reduced Size)
   ========================================= */
.hero-logos {
    display: flex;
    align-items: center;
    gap: 20px; /* Reduced gap */
    margin-bottom: 25px; /* Slightly tighter spacing */
}

.hero-logo-img {
    height: 18px; /* Reduced from 24px -> 18px */
    width: auto;
    opacity: 0.85; /* Slightly more subtle */
    object-fit: contain;
    transition: transform 0.2s;
}

/* Specific size for Temu because it is a square icon */
.hero-logo-img[alt="Temu"] {
    height: 24px; /* Reduced from 32px -> 24px */
}

.hero-logo-img:hover {
    transform: scale(1.1);
    opacity: 1;
}

/* Mobile: Center the logos */
@media (max-width: 768px) {
    .hero-logos {
        justify-content: center;
        margin-bottom: 20px;
    }
}
/* =========================================
   14. SUCCESS PAGE STYLES (WITH CSS ANIMATION)
   ========================================= */
.success-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.success-card {
    max-width: 500px;
    width: 100%;
    padding: 50px 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.success-card h1 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #1D1D1F;
}

.success-message {
    font-size: 16px;
    color: #86868B;
    margin-bottom: 40px;
    line-height: 1.5;
}

/* --- THE NEW ANIMATED CHECKMARK --- */
.animation-container {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #fff;
    stroke-miterlimit: 10;
    margin: 10% auto;
    box-shadow: inset 0px 0px 0px #34C759;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #34C759;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: #34C759; /* Green Tick */
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% { stroke-dashoffset: 0; }
}
@keyframes scale {
    0%, 100% { transform: none; }
    50% { transform: scale3d(1.1, 1.1, 1); }
}
@keyframes fill {
    100% { box-shadow: inset 0px 0px 0px 50px #fff; } /* Fills White inside */
}

/* Timeline Styles */
.next-steps {
    text-align: left;
    margin-bottom: 40px;
    position: relative;
    padding-left: 10px;
}

.next-steps::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 10px;
    bottom: 30px;
    width: 2px;
    background: #E5E5E5;
    z-index: 1;
}

.step-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.step-dot {
    width: 12px;
    height: 12px;
    background: #34C759;
    border-radius: 50%;
    margin-top: 5px;
    box-shadow: 0 0 0 4px #E8F5E9;
}

.step-dot.pending {
    background: #D1D1D6;
    box-shadow: 0 0 0 4px #F5F5F7;
}

.step-text strong {
    display: block;
    font-size: 15px;
    color: #1D1D1F;
    margin-bottom: 4px;
}

.step-text span {
    font-size: 13px;
    color: #86868B;
}

.full-width-btn {
    width: 100%;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}