:root {
    /* Startup Tech Palette - High Contrast & Vibrant */
    --color-navy: #0F172A;       /* Deep slate for depth */
    --color-slate-blue: #64748B; /* Professional slate */
    --color-accent: #0EA5E9;     /* Cyan for tech feel */
    --color-accent-glow: rgba(14, 165, 233, 0.4);
    --color-indigo: #6366F1;     /* Secondary accent */
    
    --bg-color: #030712;         /* Dark mode primary background */
    --bg-secondary: #0F172A;     /* Slightly lighter for sections */
    --card-bg: rgba(30, 41, 59, 0.7); /* Deep glass card */
    --card-border: rgba(255, 255, 255, 0.08);
    
    --text-primary: #F8FAFC;     /* Off-white for readability */
    --text-secondary: #94A3B8;   /* Muted slate text */
    
    --handwritten-font: 'Caveat', cursive;
    --body-font: 'Quicksand', sans-serif;
    
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-md: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px var(--color-accent-glow);
    
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--body-font);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* subtle tech grid */
    background-image: 
        radial-gradient(circle at 2px 2px, rgba(255,255,255,0.03) 1px, transparent 0);
    background-size: 40px 40px;
    background-attachment: fixed;
}

/* Background Gradients */
.bg-pattern {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
}

.glow-top-right {
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, rgba(255,255,255,0) 70%);
}

.glow-bottom-left {
    bottom: 20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(22,48,83,0.1) 0%, rgba(255,255,255,0) 70%);
}

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

/* Header & Nav */
header {
    background: rgba(3, 7, 18, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--card-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    height: 100px;
    transition: var(--transition-smooth);
}

.logo-link {
    flex: 0 0 auto;
    order: 2; /* Move to center */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    text-decoration: none;
}

.brand-logo {
    height: 70px; /* Proportional to buttons (~52px) but slightly larger as requested */
    width: auto;
    object-fit: contain;
    display: block;
    transition: var(--transition-smooth);
    mix-blend-mode: screen; 
    filter: brightness(1.1);
}

.brand-logo:hover {
    transform: scale(1.02);
}

nav {
    display: contents; 
}

.nav-links {
    flex: 1 1 0%; /* Equal width to balance the logo */
    order: 1; /* Left side */
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-cta {
    flex: 1 1 0%; /* Equal width to balance the logo */
    order: 3; /* Right side */
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.logo-fallback {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo-fallback span {
    color: var(--color-accent);
}

nav a:not(.cta-pill) {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-smooth);
    letter-spacing: 0.2px;
}

nav a:not(.cta-pill):hover {
    color: var(--color-accent);
}

.cta-pill {
    background: var(--color-accent);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-glow);
}

.cta-pill:hover {
    background: var(--color-indigo);
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.4);
}

.icon-sm { width: 16px; height: 16px; }

/* Hero Section */
.hero {
    padding: 100px 0 120px;
    text-align: center;
    position: relative;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--color-accent);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 30px;
    border: 1px solid rgba(14, 165, 233, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.icon-accent { width: 18px; color: var(--color-accent); }

.handwritten {
    font-family: var(--handwritten-font);
    color: var(--color-accent);
}

.hero .handwritten {
    font-size: 56px;
    margin-bottom: 24px;
    line-height: 1;
}

.hero h2 {
    font-size: 72px;
    line-height: 1;
    max-width: 900px;
    margin: 0 auto 30px;
    color: var(--text-primary);
    letter-spacing: -2px;
    font-weight: 800;
}

.hero .subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 750px;
    margin: 0 auto 40px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 80px;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    gap: 12px;
    padding: 18px 36px;
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    background: var(--color-indigo);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-accent);
    transform: translateY(-4px);
}

.pulse-effect {
    position: relative;
}
.pulse-effect::before {
    content: '';
    position: absolute;
    top: -5px; right: -5px; bottom: -5px; left: -5px;
    border-radius: 18px;
    background: var(--color-accent);
    z-index: -1;
    opacity: 0.3;
    filter: blur(12px);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.4; }
    50% { transform: scale(1.1); opacity: 0.2; }
    100% { transform: scale(0.95); opacity: 0.4; }
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding-top: 50px;
    border-top: 1px solid var(--card-border);
    max-width: 850px;
    margin: 0 auto;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.stat-icon {
    width: 36px;
    height: 36px;
    color: var(--color-accent);
}

.stat-value {
    display: block;
    font-size: 30px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Sections Global */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.eyebrow {
    font-family: var(--handwritten-font);
    font-size: 28px;
    color: var(--color-accent);
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-size: 48px;
    color: var(--text-primary);
    letter-spacing: -1px;
    font-weight: 800;
}

/* Features */
.features-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

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

.feature-card {
    background: var(--card-bg);
    padding: 50px 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-glow);
}

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    color: var(--color-accent);
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.feature-icon-wrapper svg { width: 32px; height: 32px; }

.feature-card h4 {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-weight: 700;
}

.feature-card p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Projects */
.projects {
    padding: 120px 0;
}

.projects-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 35px;
}

.glass-card {
    flex: 0 1 360px;
    background: var(--card-bg);
}

@media (max-width: 1100px) {
    .glass-card {
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .glass-card {
        max-width: 100%;
    }
}
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-glow);
}

.project-image-wrapper {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.project-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover .project-image-wrapper img {
    transform: scale(1.1);
}

.project-badges {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
}

.badge svg { width: 14px; height: 14px; }

.badge-success { background: rgba(34, 197, 94, 0.2); color: #4ade80; border-color: rgba(34, 197, 94, 0.3); }
.badge-highlight { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border-color: rgba(245, 158, 11, 0.3); }

.card-content {
    padding: 35px;
}

.project-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent);
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-meta svg { width: 16px; height: 16px; }

.card-content h4 {
    font-size: 26px;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 800;
}

.card-content p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.6;
}

    margin-bottom: 20px;
}

.case-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-accent);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.glass-card:hover .case-link {
    transform: translateX(5px);
    color: var(--color-navy);
}

.case-link svg { width: 16px; height: 16px; }

/* Case Study Pages */
.case-study-hero {
    padding: 60px 0 80px;
    background: var(--color-navy);
    color: white;
    text-align: center;
}

.case-study-hero .trust-badge {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}

.case-study-hero h2 {
    color: #fff;
    font-size: 48px;
    margin-top: 20px;
}

.case-content {
    padding: 80px 0;
}

.case-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.case-img-large {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.case-metrics {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.case-metric {
    flex: 1;
}

.case-metric-value {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--color-accent);
}

.case-metric-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.features-list {
    list-style: none;
}

.features-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 16px;
}

.features-list li svg {
    color: var(--color-accent);
    flex-shrink: 0;
}

/* Methodology */
.methodology-section {
    padding: 120px 0;
    background: var(--bg-color);
}

.glass-panel {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 80px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    position: relative;
    overflow: hidden;
    color: white;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
    border: 1px solid var(--card-border);
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.15), transparent 60%);
    pointer-events: none;
}

.methodology-text p {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 50px;
    line-height: 1.6;
}

.steps-list {
    list-style: none;
}

.steps-list li {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
}

.step-icon {
    width: 48px;
    height: 48px;
    background: var(--color-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.3);
}

.step-desc strong {
    display: block;
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.step-desc span {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.5;
}

.methodology-visual {
    position: relative;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.02);
    backdrop-filter: blur(10px);
    overflow: hidden;
    min-height: 400px;
}

.floating-element {
    position: absolute;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.3);
    padding: 15px 25px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--text-primary);
    backdrop-filter: blur(8px);
    animation: float 6s infinite ease-in-out;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.float-1 { top: 15%; left: 10%; animation-delay: 0s; }
.float-2 { top: 45%; right: 10%; animation-delay: 2s; background: rgba(99, 102, 241, 0.2); border-color: rgba(99, 102, 241, 0.4); }
.float-3 { bottom: 15%; left: 15%; animation-delay: 4s; }

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

/* CTA Section */
.cta-section {
    padding: 150px 0;
    text-align: center;
    background: var(--bg-secondary);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.bg-vector-lines {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.cta-icon-top {
    width: 70px; height: 70px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    color: var(--color-accent);
    border: 1px solid rgba(14, 165, 233, 0.3);
}

.cta-icon-top svg { width: 35px; height: 35px; }

.cta-section h3.handwritten {
    color: var(--color-accent);
    font-size: 56px;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 22px;
    margin-bottom: 50px;
    color: var(--text-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 22px 45px;
    font-size: 18px;
    font-weight: 800;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition-smooth);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
    background: #1EBE5D;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 50px rgba(37, 211, 102, 0.35);
}

.cta-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    font-size: 15px;
    color: var(--text-secondary);
}

.cta-guarantee svg { width: 18px; height: 18px; color: var(--color-accent); }

/* Footer */
footer {
    padding: 100px 0 40px;
    background: var(--bg-color);
    border-top: 1px solid var(--card-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 80px;
}

.footer-brand {
    max-width: 450px;
}


.footer-brand p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 40px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--color-accent);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--card-border);
    color: var(--text-secondary);
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* Responsiveness */
@media (max-width: 900px) {
    .glass-panel {
        grid-template-columns: 1fr;
    }
}

.footer-logo {
    height: 70px; /* Scaled up for better footer balance */
    width: auto;
    object-fit: contain;
    margin-bottom: 25px;
    display: block;
    mix-blend-mode: screen; 
}

@media (max-width: 992px) {
    .header-inner {
        height: 80px;
        padding: 0 20px;
    }
    .nav-links {
        display: none;
    }
    nav {
        display: flex;
        justify-content: flex-end;
    }
    .brand-logo {
        height: 54px;
    }
    .process-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    section {
        scroll-margin-top: 80px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        height: 70px;
    }
    .brand-logo {
        height: 48px;
    }
    .container {
        padding: 0 15px;
    }
    .hero h2 { 
        font-size: 32px; 
        line-height: 1.2;
    }
    .hero .handwritten {
        font-size: 30px;
    }
    .hero-actions { 
        flex-direction: column; 
        align-items: stretch;
        gap: 15px;
    }
    .hero-btn {
        width: 100%;
        justify-content: center;
    }
    .feature-card { padding: 30px 20px; }
    .features-grid { grid-template-columns: 1fr; }
    .hero-stats { 
        flex-direction: column; 
        align-items: center; 
        gap: 30px; 
    }
    .footer-content { flex-direction: column; gap: 40px; }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 28px;
    }
}
