/**
 * SYSWP Brasil — CSS customizado
 * Complementa Tailwind com utilitários, animações e efeitos não cobertos.
 */

/* Inter Variable Font (self-hosted) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/assets/fonts/InterVariable.woff2') format('woff2-variations'),
         url('/assets/fonts/InterVariable.woff2') format('woff2');
}

/* Reset/base */
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #ec4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.gradient-text-blue {
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Mesh gradient backgrounds */
.bg-mesh-dark {
    background:
        radial-gradient(at 20% 20%, rgba(37,99,235,0.30) 0px, transparent 50%),
        radial-gradient(at 80% 0%,  rgba(124,58,237,0.30) 0px, transparent 50%),
        radial-gradient(at 0% 80%,  rgba(236,72,153,0.20) 0px, transparent 50%),
        #0f172a;
}

.bg-mesh-light {
    background:
        radial-gradient(at 20% 20%, rgba(37,99,235,0.08) 0px, transparent 50%),
        radial-gradient(at 80% 0%,  rgba(124,58,237,0.08) 0px, transparent 50%),
        #ffffff;
}

.bg-dot-grid {
    background-image: radial-gradient(rgba(15,23,42,0.07) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Glass card */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Reveal-on-scroll */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.reveal[data-delay="100"] { transition-delay: 100ms; }
.reveal[data-delay="200"] { transition-delay: 200ms; }
.reveal[data-delay="300"] { transition-delay: 300ms; }
.reveal[data-delay="400"] { transition-delay: 400ms; }
.reveal[data-delay="500"] { transition-delay: 500ms; }

/* Animated blobs */
.blob {
    position: absolute;
    border-radius: 9999px;
    filter: blur(80px);
    opacity: 0.5;
    animation: blobMove 16s ease-in-out infinite;
    pointer-events: none;
}

@keyframes blobMove {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(40px, -50px) scale(1.1); }
    66%      { transform: translate(-30px, 30px) scale(0.95); }
}

/* Card hover lift */
.lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.15);
}

/* Code block (mock screenshots) */
.mock-code {
    font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
    font-size: 13px;
    line-height: 1.6;
}

/* Glow effect */
.glow-blue {
    box-shadow: 0 0 50px -10px rgba(37, 99, 235, 0.5);
}
.glow-violet {
    box-shadow: 0 0 50px -10px rgba(124, 58, 237, 0.5);
}

/* FAQ accordion */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details[open] > summary .icon-plus { transform: rotate(45deg); }
.icon-plus { transition: transform 0.2s ease; }

/* Pricing scale */
.price-card.is-featured {
    transform: scale(1.03);
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.25);
}

/* Marquee (logo strip) */
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.marquee-track {
    animation: marquee 30s linear infinite;
}

/* ─── Cursor spotlight ──────────────────────────────────── */
.spotlight {
    position: relative;
    overflow: hidden;
}
.spotlight::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        600px circle at var(--mx, 50%) var(--my, 50%),
        rgba(99, 102, 241, 0.18),
        transparent 40%
    );
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 1;
}
.spotlight > * { position: relative; z-index: 2; }

/* ─── Magnetic buttons ──────────────────────────────────── */
.magnetic {
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
}

/* ─── Tilt cards ───────────────────────────────────────── */
.tilt {
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform-style: preserve-3d;
    will-change: transform;
}

/* ─── Animated gradient text shimmer ───────────────────── */
.gradient-shimmer {
    background: linear-gradient(90deg, #2563eb, #7c3aed, #ec4899, #2563eb);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: shimmer 6s linear infinite;
}
@keyframes shimmer {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* ─── Shine on hover (featured pricing card) ───────────── */
.shine {
    position: relative;
    overflow: hidden;
}
.shine::after {
    content: "";
    position: absolute;
    top: 0; left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.18) 50%,
        rgba(255,255,255,0) 100%
    );
    transform: skewX(-25deg);
    transition: left 0.7s;
    pointer-events: none;
}
.shine:hover::after { left: 130%; }

/* ─── Sticky CTA bar (appears on scroll) ───────────────── */
.sticky-cta {
    position: fixed;
    bottom: -80px;
    left: 0; right: 0;
    z-index: 40;
    transition: bottom 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
}
.sticky-cta.is-visible { bottom: 0; pointer-events: auto; }
.sticky-cta-inner {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
}

/* ─── Social proof bar ─────────────────────────────────── */
.proof-pulse {
    animation: proofPulse 2s ease-in-out infinite;
}
@keyframes proofPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.05); opacity: 0.92; }
}

/* ─── Animated grid background (hero) ──────────────────── */
.grid-bg {
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.07) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 100%);
}

/* ─── Floating particles (subtle) ──────────────────────── */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.5);
    animation: floatUp 10s linear infinite;
}
@keyframes floatUp {
    from { transform: translateY(100vh); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    to   { transform: translateY(-10vh); opacity: 0; }
}

/* ─── Underline link animation ─────────────────────────── */
.link-underline {
    position: relative;
}
.link-underline::after {
    content: "";
    position: absolute;
    left: 0; bottom: -2px;
    width: 0; height: 2px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    transition: width 0.3s ease;
}
.link-underline:hover::after { width: 100%; }

/* ─── Number badge bounce ──────────────────────────────── */
.badge-bounce {
    animation: badgeBounce 0.6s ease-in-out;
}
@keyframes badgeBounce {
    0%   { transform: scale(0); }
    60%  { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* ─── Reduce motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    .gradient-shimmer { animation: none; }
    .particle { display: none; }
}
