/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-dark: #0f172a;       /* Slate 900 - Deep, modern dark */
    --primary-dark-light: #1e293b; /* Slate 800 */
    --primary-orange: #3dbfe8;     /* Fettback Orange */
    --primary-orange-hover: #22a7d3;
    --primary-orange-light: rgba(61, 191, 232, 0.1);
    
    --bg-light: #f8fafc;           /* Slate 50 - Very clean, modern background */
    --bg-white: #ffffff;
    
    --text-main: #334155;          /* Slate 700 */
    --text-light: #64748b;         /* Slate 500 */
    --text-white: #f8fafc;
    
    --border-color: #e2e8f0;       /* Slate 200 */
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-orange: 0 10px 25px -5px rgba(61, 191, 232, 0.4);
    
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-dark);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--primary-orange);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-orange-hover);
}

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    transition: all var(--transition-fast);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.contact-info {
    display: flex;
    gap: 24px;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--primary-dark);
}

.contact-item i {
    color: var(--primary-orange);
    font-size: 1.1rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    padding: 100px 0 140px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #ffffff 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-orange-light) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
}

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

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-content h1 span {
    color: var(--primary-orange);
    position: relative;
    display: inline-block;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-benefits {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--primary-dark);
}

.benefit-item i {
    color: #10b981; /* Success green */
    font-size: 1.25rem;
    background: rgba(16, 185, 129, 0.1);
    padding: 4px;
    border-radius: 50%;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--primary-orange);
    color: var(--text-white);
    padding: 18px 40px;
    border-radius: var(--radius-full);
    font-size: 1.125rem;
    font-weight: 700;
    box-shadow: var(--shadow-orange);
    transition: all var(--transition-smooth);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px -5px rgba(61, 191, 232, 0.5);
    color: var(--text-white);
}

.hero-visual {
    position: relative;
}

.trust-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--bg-white);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.trust-badge-icon {
    background: var(--primary-orange-light);
    color: var(--primary-orange);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.trust-badge-text h4 {
    font-size: 1.25rem;
    margin-bottom: 2px;
}

.trust-badge-text p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features {
    padding: 100px 0;
    background: var(--bg-white);
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: var(--bg-light);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-smooth);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-color);
    background: var(--bg-white);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--primary-dark);
    color: var(--bg-white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    transform: rotate(-5deg);
    transition: all var(--transition-smooth);
}

.feature-card:hover .feature-icon {
    transform: rotate(0) scale(1.1);
    background: var(--primary-orange);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--text-light);
}

/* ==========================================================================
   Process Section
   ========================================================================== */
.process {
    padding: 100px 0;
    background: var(--primary-dark);
    color: var(--text-white);
}

.process .section-header h2, .process .section-header p {
    color: var(--text-white);
}

.process .section-header p {
    opacity: 0.8;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.step-item {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 30%;
}

.step-number {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--primary-dark-light);
    border: 2px solid var(--primary-orange);
    color: var(--primary-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    box-shadow: 0 0 0 10px var(--primary-dark);
}

.step-item h3 {
    color: var(--text-white);
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.step-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* ==========================================================================
   Samples Section
   ========================================================================== */
.samples {
    padding: 100px 0;
    background: var(--bg-light);
}

.samples-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.sample-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-smooth);
}

.sample-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.sample-img {
    height: 200px;
    background: var(--border-color);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sample-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.sample-card:hover .sample-img img {
    transform: scale(1.05);
}

.sample-img::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.5));
}

.sample-content {
    padding: 32px;
    text-align: center;
}

.sample-content h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.sample-content p {
    color: var(--text-light);
    margin-bottom: 24px;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-main);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.btn-outline:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
    background: var(--primary-orange-light);
}

/* ==========================================================================
   Funnel/Calculator Modal
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.funnel-container {
    background-color: var(--bg-white);
    max-width: 700px;
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all var(--transition-smooth);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .funnel-container {
    transform: translateY(0) scale(1);
}

.close-modal {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    transition: color var(--transition-fast);
    z-index: 10;
}

.close-modal:hover {
    color: var(--primary-orange);
}

/* Progress Bar */
.progress-bar-container {
    width: 100%;
    background-color: var(--border-color);
    height: 8px;
    border-radius: var(--radius-full);
    margin-bottom: 40px;
    overflow: hidden;
    display: none;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-orange), #ff8e42);
    width: 0%;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: var(--radius-full);
}

/* Steps */
.step {
    display: none;
    animation: fadeIn 0.5s ease-out forwards;
    text-align: center;
}

.step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.step h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.step p.subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.step-label {
    display: inline-block;
    color: var(--primary-orange);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    background: var(--primary-orange-light);
    padding: 6px 16px;
    border-radius: var(--radius-full);
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.option-card {
    background-color: var(--bg-white);
    color: var(--primary-dark);
    border-radius: var(--radius-md);
    padding: 32px 20px;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid var(--border-color);
}

.option-card i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--text-light);
    transition: all var(--transition-fast);
}

.option-card strong {
    font-size: 1.125rem;
}

.option-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-orange);
    background-color: var(--primary-orange-light);
}

.option-card:hover i {
    color: var(--primary-orange);
    transform: scale(1.1);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-fast);
    background: var(--bg-light);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-orange);
    background: var(--bg-white);
    box-shadow: 0 0 0 4px var(--primary-orange-light);
}

.form-control::placeholder {
    color: #94a3b8;
}

.guarantee {
    color: #10b981;
    font-weight: 600;
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 24px;
    border: 4px solid var(--bg-white);
    box-shadow: var(--shadow-md);
}

.btn-block {
    width: 100%;
    padding: 20px;
    font-size: 1.25rem;
    margin-top: 24px;
}

/* Loading & Success States */
.loading-spinner {
    display: none;
    border: 4px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top: 4px solid #fff;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.success-icon {
    font-size: 5rem;
    color: #10b981;
    margin-bottom: 24px;
    animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background: var(--primary-dark);
    color: var(--text-white);
    padding: 40px 0;
    text-align: center;
}

footer p {
    opacity: 0.6;
    font-size: 0.875rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }
    
    .hero-content h1 {
        font-size: 2.75rem;
    }
    
    .hero-content p {
        margin: 0 auto 32px;
    }
    
    .hero-benefits {
        align-items: center;
    }
    
    .trust-badge {
        position: relative;
        bottom: auto;
        left: auto;
        margin: -30px auto 0;
        max-width: 300px;
    }
    
    .features-grid, .samples-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .contact-item span {
        display: none;
    }
    
    .features-grid, .samples-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        flex-direction: column;
        gap: 48px;
    }
    
    .process-steps::before {
        display: none;
    }
    
    .step-item {
        width: 100%;
    }
    
    .funnel-container {
        padding: 32px 20px;
    }
    
    .step h2 {
        font-size: 1.5rem;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   WhatsApp Floating Button
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: #FFF;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .urgency-bar { font-size: 0.8rem !important; padding: 6px 10px !important; }
    .header-actions { flex-direction: column; gap: 10px !important; width: 100%; }
    .header-actions .contact-info { justify-content: center; }
    .header-actions button { width: 100%; }
    .comparison-box { min-width: 100% !important; }
}


@media (max-width: 768px) {
    /* General safety against horizontal scroll and overlapping */
    html, body { overflow-x: hidden; width: 100%; }
    
    /* Make sure long text wraps */
    * { word-wrap: break-word; }

    /* Fix header actions overlapping */
    .header-inner { flex-direction: column; text-align: center; gap: 15px !important; padding-top: 10px !important; padding-bottom: 10px !important; }
    .header-actions { flex-direction: column; width: 100%; gap: 10px !important; }
    .header-actions .contact-info { flex-wrap: wrap; justify-content: center; gap: 15px; }
    
    /* Fix the Guarantee shield overlapping */
    .hero-content div[style*="inline-flex"] { flex-direction: column; align-items: center; text-align: center; }
    
    /* Ensure features and comparisons don't overflow */
    .comparison-box { width: 100% !important; min-width: 0 !important; box-sizing: border-box; }
    .feature-card { width: 100% !important; min-width: 0 !important; box-sizing: border-box; }
    
    /* Ensure references don't overlap */
    .references div[style*="flex-wrap: wrap"] { justify-content: center; gap: 20px !important; }
    .references img { height: 40px !important; }
}

