/* =========================================
   Variables & Reset (White Dotted Theme)
   ========================================= */
   :root {
    --clr-bg-main: #ffffff;      
    --clr-bg-alt: #f8fafc;       /* Slate-50 */
    --clr-bg-card: rgba(255, 255, 255, 0.8); 
    --clr-text: #475569;         /* Slate-600 */
    --clr-text-light: #64748b;   /* Slate-500 */
    --clr-secondary: #0f172a;    /* Slate-900 for headings */
    --clr-primary: #2563eb;      /* Blue-600 */
    --clr-primary-dark: #1d4ed8; /* Blue-700 */
    --clr-border: #e2e8f0;       /* Slate-200 */
    --clr-dot: #cbd5e1;          /* Slate-300 for dots */
    
    --font-main: 'Inter', sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --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);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--clr-text);
    background-color: var(--clr-bg-main);
    line-height: 1.6;
    font-size: 1.05rem;
    overflow-x: hidden;
}

/* Background Effects */
.dotted-bg {
    background-color: var(--clr-bg-main);
    background-image: radial-gradient(var(--clr-dot) 1px, transparent 1px);
    background-size: 24px 24px;
}
.mesh-bg {
    position: absolute;
    top: -20%; left: -10%; width: 50vw; height: 50vh;
    background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, rgba(255,255,255,0) 70%);
    z-index: 0; pointer-events: none;
}
.mesh-bg-right {
    position: absolute;
    bottom: -10%; right: -10%; width: 60vw; height: 60vh;
    background: radial-gradient(circle, rgba(16,185,129,0.05) 0%, rgba(255,255,255,0) 70%);
    z-index: 0; pointer-events: none;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--clr-secondary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; }

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.text-primary { color: var(--clr-primary); }
.text-center { text-align: center; }
.text-bold { font-weight: 600; color: var(--clr-secondary); }

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.section { padding: 8rem 0; position: relative; }
.bg-alt { background-color: var(--clr-bg-alt); }

.section-label {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--clr-primary);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.section-title { margin-bottom: 3rem; }
.subtitle {
    font-size: 1.25rem;
    color: var(--clr-text-light);
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

/* Glassmorphism & Cards (Light Mode) */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.03);
}

.card {
    background: #ffffff;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-sm);
}

.card:hover {
    border-color: var(--clr-primary);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* Buttons & Elements */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.05rem;
}

.btn-primary {
    background-color: var(--clr-secondary); /* Dark button on light theme looks premium */
    color: #fff;
    box-shadow: 0 4px 14px 0 rgba(15, 23, 42, 0.2);
}

.btn-primary:hover {
    background-color: var(--clr-primary);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
    transform: translateY(-2px) scale(1.02);
}

.btn-secondary {
    background-color: #ffffff;
    color: var(--clr-secondary);
    border: 1px solid var(--clr-border);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: var(--clr-secondary);
    transform: translateY(-2px);
}

/* Trusted Brands / We Automate */
.trusted-brands {
    margin-top: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.trusted-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 0;
    white-space: nowrap;
}

.brand-logos {
    display: contents;
}

.brand-icon {
    width: auto;
    height: 28px;
    max-width: 50px;
    color: #94a3b8; /* Slate-400 */
    transition: all 0.3s ease;
    cursor: default;
}

.brand-icon:hover {
    transform: scale(1.1);
}

.brand-icon.whatsapp:hover { color: #25D366; }
.brand-icon.instagram:hover { color: #E1306C; }
.brand-icon.messenger:hover { color: #00B2FF; }
.brand-icon.calls:hover { color: #10b981; }
.brand-icon.sms:hover { color: #3b82f6; }
.brand-icon.email:hover { color: #f59e0b; }

/* Header */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--clr-border);
}

.nav-container {
    display: flex; justify-content: space-between; align-items: center;
    height: 80px;
}

.logo {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 1.25rem; font-weight: 700; color: var(--clr-secondary);
}

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

.nav-list { display: flex; list-style: none; gap: 2rem; align-items: center; }
.nav-list a:not(.btn) { color: var(--clr-text); font-weight: 500; }
.nav-list a:not(.btn):hover { color: var(--clr-primary); }

.lang-selector {
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--clr-border);
    background: var(--clr-bg-alt);
    color: var(--clr-secondary);
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    outline: none;
}
.lang-selector:focus {
    border-color: var(--clr-primary);
}

/* Base Animation Utilities */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.icon-pulse:hover svg {
    animation: pulse 1s infinite alternate;
}
@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

/* =========================================
   Specific Sections
   ========================================= */

/* Hero */
.hero {
    padding-top: 180px;
    padding-bottom: 8rem;
}
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
    align-items: flex-start;
}
.hero-media {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--clr-border);
    box-shadow: var(--shadow-lg);
    background: #ffffff;
    animation: floating 6s ease-in-out infinite;
}
@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}
.hero-media video, .hero-media img {
    width: 100%; height: auto; object-fit: cover; display: block;
}

/* The Problem */
.problem-image {
    width: 100%;
    max-width: 1000px;
    height: auto;
    margin: 0 auto;
    display: block;
    mix-blend-mode: multiply;
    -webkit-mask-image: radial-gradient(55% 55% at 50% 50%, black 85%, transparent 100%), 
                        linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: radial-gradient(55% 55% at 50% 50%, black 85%, transparent 100%), 
                linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-composite: intersect;
}
.pull-quote {
    font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; line-height: 1.2;
    color: var(--clr-secondary); text-align: center;
    font-weight: 700; background: var(--clr-bg-main);
    padding: 2.5rem; border-radius: var(--radius-lg); border: 1px solid var(--clr-border);
    box-shadow: var(--shadow-sm);
}

/* What We Solve */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }


/* Before / After */
.ba-split { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--clr-border); box-shadow: var(--shadow-md); }
.ba-panel { padding: 4rem; }
.ba-before { background: #fafafa; } 
.ba-before h3 { color: #ef4444; } 
.ba-after { background: #f0fdf4; } 
.ba-after h3 { color: #10b981; } 
.ba-list { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem;}
.ba-list li { display: flex; align-items: center; gap: 1rem; color: var(--clr-secondary); font-size: 1.125rem; font-weight: 500;}
.ba-list.before-list svg { color: #ef4444; }
.ba-list.after-list svg { color: #10b981; }


/* Final CTA */
.cta-section { text-align: center; padding: 10rem 0; position: relative; background: var(--clr-secondary); color: #ffffff;}
.cta-section h1, .cta-section .subtitle { color: #ffffff; }
.cta-section .subtitle { opacity: 0.8; }
.cta-content { position: relative; z-index: 1; }

/* Footer */
.footer { background: #ffffff; border-top: 1px solid var(--clr-border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; padding: 5rem 0 4rem 0; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.footer-links a { color: var(--clr-text); font-weight: 500;}
.footer-links a:hover { color: var(--clr-primary); }
.footer-bottom { background: var(--clr-secondary); color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; padding-bottom: 1.5rem; }
.footer-bottom a { color: rgba(255, 255, 255, 0.9); font-weight: 500; transition: var(--transition); }
.footer-bottom a:hover { color: var(--clr-primary); }

/* Responsive */
@media (max-width: 992px) {
    .hero-content, .problem-grid, .ba-split {
        grid-template-columns: 1fr;
    }
    .hero-media { order: -1; aspect-ratio: 16/9; }
    h1 { font-size: 3rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

}
@media (max-width: 768px) {
    .nav-list { display: none; }
    .section { padding: 5rem 0; }
    .container { padding: 0 1.5rem; }

    .ba-panel { padding: 2.5rem; }
}
