@import "tailwindcss";

@theme {
    --font-inter: "Inter", sans-serif;
    --font-bebas: "Bebas Neue", sans-serif;
}

:root {
    /* Fluid typography system */
    --fluid-h1: clamp(3.5rem, 10vw + 1rem, 9rem);
    --fluid-h2: clamp(2.5rem, 8vw + 0.5rem, 7rem);
    --fluid-h3: clamp(1.75rem, 4vw + 0.25rem, 3.5rem);
    --fluid-body: clamp(1rem, 0.5vw + 0.8rem, 1.25rem);

    /* Fluid spacing system */
    --fluid-space-xs: clamp(0.75rem, 0.5vw + 0.5rem, 1rem);
    --fluid-space-s: clamp(1rem, 1vw + 0.5rem, 1.5rem);
    --fluid-space-m: clamp(1.5rem, 2vw + 1rem, 2.5rem);
    --fluid-space-l: clamp(2rem, 3vw + 1rem, 4rem);
    --fluid-space-xl: clamp(3rem, 5vw + 2rem, 7rem);
}

body {
    font-family: var(--font-inter);
    background-color: #F9FAFB;
    color: #111827;
    margin: 0;
    overflow-x: hidden;
    font-size: var(--fluid-body);
    line-height: 1.5;
}

.font-bebas {
    font-family: var(--font-bebas);
}

/* Typography Utility Classes */
.text-fluid-h1 {
    font-size: var(--fluid-h1);
    line-height: 1;
}

.text-fluid-h2 {
    font-size: var(--fluid-h2);
    line-height: 1.1;
}

/* Container principal do fundo - Removido blur do container para ganho de SI */
.mesh-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    mix-blend-mode: multiply;
    /* Aplica o blur individualmente e usa will-change para otimização do compositor */
    filter: blur(80px);
    will-change: transform;
    animation: float 20s infinite alternate ease-in-out;
}

.blob-1 {
    width: min(60vw, 600px);
    height: min(60vw, 600px);
    background: #3b82f6;
    top: -100px;
    left: -100px;
    animation-duration: 25s;
}

.blob-2 {
    width: min(50vw, 500px);
    height: min(50vw, 500px);
    background: #8b5cf6;
    bottom: -50px;
    right: -50px;
    animation-duration: 30s;
    animation-delay: -5s;
}

.blob-3 {
    width: min(40vw, 400px);
    height: min(40vw, 400px);
    background: #fbbf24;
    top: 40%;
    left: 30%;
    animation-duration: 22s;
    animation-delay: -2s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    33% {
        transform: translate(100px, 50px) scale(1.1) rotate(10deg);
    }

    66% {
        transform: translate(-50px, 100px) scale(0.9) rotate(-10deg);
    }

    100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background-image: linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
    pointer-events: none;
}

.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    opacity: 0.04;
    pointer-events: none;
    background-image: url('https://grainy-gradients.vercel.app/noise.svg');
}

/* EFEITO BLUR-FADE-SLIDE */
.reveal-premium-text {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(10px);
    will-change: transform, opacity, filter;
    animation: blur-fade-in 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes blur-fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.reveal-fade-in {
    opacity: 0;
    transform: translateY(15px);
    will-change: transform, opacity;
    animation: fade-simple 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fade-simple {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delays Escalonados */
.stagger-1 {
    animation-delay: 0.2s;
}

.stagger-2 {
    animation-delay: 0.4s;
}

.stagger-3 {
    animation-delay: 0.6s;
}

.stagger-4 {
    animation-delay: 0.8s;
}

/* Título com profundidade */
.text-premium-main {
    background: linear-gradient(to bottom, #111827 0%, #374151 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-premium-highlight {
    background: linear-gradient(135deg, #2563EB 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 9999px;
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.1);
    color: #2563EB;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}

.btn-premium {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #2563EB;
    color: white;
    padding: 0.9rem 2.2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.25);
    text-decoration: none;
    overflow: hidden;
}

.btn-premium:hover {
    background-color: #1d4ed8;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(37, 99, 235, 0.35);
}

.subtitle-premium {
    color: #4b5563;
    font-weight: 400;
    line-height: 1.5;
    max-width: 720px;
}

@media (max-width: 640px) {
    .btn-premium {
        padding: 0.75rem 1.75rem;
        font-size: 1rem;
    }
}