:root {
    --font-display: 'Syne', ui-sans-serif, system-ui, sans-serif;
    --font-sans: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
    --color-kaizen-red: #e30613;
    --color-kaizen-yellow: #ffc20e;
    --color-kaizen-cyan: #00aeef;
    --color-kaizen-black: #0a0a0a;
    --color-kaizen-dark: #111111;
    --color-kaizen-muted: #8b95a5;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--color-kaizen-black);
    color: #f8fafc;
    overflow-x: hidden;
    margin: 0;
}

::selection {
    background: rgba(0, 174, 239, 0.35);
    color: #fff;
}

.brand-stripe {
    height: 4px;
    background: linear-gradient(90deg, #e30613 0%, #e30613 25%, #ffc20e 25%, #ffc20e 50%, #00aeef 50%, #00aeef 75%, #0a0a0a 75%);
}

.glass-nav {
    background: rgba(10, 10, 10, 0.72);
    backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 45%, #00aeef 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-gradient-accent {
    background: linear-gradient(90deg, #00aeef, #ffc20e);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 1.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    color: #fff;
    background: #e30613;
    border-radius: 999px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
    box-shadow: 0 8px 32px rgba(227, 6, 19, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.6s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(227, 6, 19, 0.5);
}

.btn-primary:hover::before { transform: translateX(120%); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 1.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 174, 239, 0.5);
    transform: translateY(-2px);
}

.section-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #00aeef;
}

.service-card {
    position: relative;
    padding: 2rem;
    border-radius: 1.25rem;
    background: linear-gradient(160deg, #141414 0%, #0d0d0d 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s ease;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: auto -30% -60% -30%;
    height: 120px;
    background: radial-gradient(ellipse, rgba(0, 174, 239, 0.18), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 174, 239, 0.35);
}

.service-card:hover::after { opacity: 1; }

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 32s linear infinite;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

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

@keyframes pulse-ring {
    0% { transform: scale(0.95); opacity: 0.6; }
    70% { transform: scale(1.15); opacity: 0; }
    100% { transform: scale(1.15); opacity: 0; }
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.process-line {
    position: absolute;
    left: 1.15rem;
    top: 2.5rem;
    bottom: 2.5rem;
    width: 2px;
    background: linear-gradient(180deg, #e30613, #ffc20e, #00aeef);
    transform-origin: top;
    transform: scaleY(0);
    transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.process-line.is-visible { transform: scaleY(1); }

.process-step-card {
    padding: 2rem 2rem 2rem 1.75rem;
    border-radius: 1.25rem;
    background: linear-gradient(160deg, #161616 0%, #101010 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.process-step-card:hover {
    border-color: rgba(0, 174, 239, 0.3);
    transform: translateY(-3px);
}

.process-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 800;
    color: #00aeef;
    background: rgba(0, 174, 239, 0.1);
    border: 1px solid rgba(0, 174, 239, 0.35);
}

.philosophy-banner blockquote { text-wrap: balance; }

.map-frame {
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    line-height: 0;
}

.map-frame iframe {
    filter: grayscale(0.15) contrast(1.05);
    display: block;
}

.whatsapp-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.btn-whatsapp {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.95rem 1.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    color: #fff;
    background: #25d366;
    border-radius: 999px;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, background 0.3s ease;
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
    background: #1ebe57;
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(37, 211, 102, 0.45);
}

.btn-whatsapp-lg {
    padding: 1.05rem 2rem;
    font-size: 1.05rem;
}

.btn-whatsapp-lg .whatsapp-icon {
    width: 1.4rem;
    height: 1.4rem;
}

.footer-wa-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1.25rem;
    padding: 0.7rem 1rem;
    color: #25d366;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(37, 211, 102, 0.35);
    border-radius: 999px;
    background: rgba(37, 211, 102, 0.08);
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.footer-wa-link:hover {
    background: rgba(37, 211, 102, 0.16);
    border-color: rgba(37, 211, 102, 0.55);
    transform: translateY(-1px);
}

.footer-wa-link .whatsapp-icon {
    width: 1.15rem;
    height: 1.15rem;
}

.whatsapp-float {
    position: fixed;
    right: 1.1rem;
    bottom: 1.1rem;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.65rem;
    height: 3.65rem;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 14px 36px rgba(37, 211, 102, 0.55);
}

.whatsapp-float-icon {
    width: 1.75rem;
    height: 1.75rem;
    position: relative;
    z-index: 1;
}

.whatsapp-float-pulse {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #25d366;
    animation: wa-pulse 2s ease-out infinite;
    z-index: 0;
}

@keyframes wa-pulse {
    0% { transform: scale(1); opacity: 0.7; }
    70% { transform: scale(1.45); opacity: 0; }
    100% { transform: scale(1.45); opacity: 0; }
}

.mobile-menu {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 10, 10, 0.96);
}

.mobile-nav-link {
    display: block;
    padding: 0.85rem 0.75rem;
    color: #e2e8f0;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 0.75rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.stat-value {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

.cursor-glow {
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 174, 239, 0.12), transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.4s ease;
    opacity: 0;
}

#site-nav.nav-scrolled nav { background: rgba(10, 10, 10, 0.92); }

@media (prefers-reduced-motion: reduce) {
    .reveal, .marquee-track, .process-line, .whatsapp-float-pulse {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .cursor-glow { display: none; }
}

@media (max-width: 640px) {
    .btn-primary,
    .btn-ghost,
    .btn-whatsapp {
        width: 100%;
        justify-content: center;
    }

    .service-card { padding: 1.5rem; }
    .process-step-card { padding: 1.5rem; }

    .whatsapp-float {
        right: 1rem;
        bottom: 1rem;
        width: 3.4rem;
        height: 3.4rem;
    }

    .section-label { letter-spacing: 0.2em; }
    .marquee-track span { font-size: 0.7rem; }
}
