/**
 * Pay2Pix Landing Page Styles
 * Estilos customizados da pagina inicial
 */

/* ========================================
   Base & Layout
   ======================================== */
body {
    background: linear-gradient(180deg, #0f0f17 0%, #12121c 50%, #0a0a10 100%);
}

/* ========================================
   Logo
   ======================================== */
.logo-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-style: italic;
    letter-spacing: -0.02em;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-glow {
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 210, 106, 0.15), transparent);
}

/* ========================================
   Card Effects
   ======================================== */
.card-glow {
    box-shadow: 0 0 60px rgba(0, 210, 106, 0.08), 0 0 100px rgba(50, 188, 173, 0.04);
}

/* ========================================
   Buttons
   ======================================== */
.btn-primary {
    background: linear-gradient(135deg, #00D26A 0%, #32BCAD 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 210, 106, 0.3);
}

/* ========================================
   Feature Cards
   ======================================== */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(50, 188, 173, 0.3);
}

/* ========================================
   Stats Gradient Text
   ======================================== */
.stat-number {
    background: linear-gradient(135deg, #00D26A, #32BCAD);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Form Inputs
   ======================================== */
.input-field {
    transition: all 0.2s ease;
}

.input-field:focus {
    border-color: rgba(50, 188, 173, 0.5);
    box-shadow: 0 0 0 3px rgba(50, 188, 173, 0.1);
}

/* ========================================
   Animations
   ======================================== */
.floating {
    animation: floating 3s ease-in-out infinite;
}

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

.pulse-ring {
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.9); opacity: 1; }
    100% { transform: scale(1.3); opacity: 0; }
}

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ========================================
   Helper Text
   ======================================== */
.helper-error {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.helper-success {
    color: #22c55e;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* ========================================
   Scrollbar
   ======================================== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #1a1a27;
}

::-webkit-scrollbar-thumb {
    background: #2a2a3e;
    border-radius: 3px;
}

/* ========================================
   Alpine.js Cloak
   ======================================== */
[x-cloak] {
    display: none !important;
}

/* ========================================
   PIX Key Type Modal
   ======================================== */
.pix-type-modal-backdrop {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.pix-type-card {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.pix-type-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, transparent, transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: background 0.25s ease;
}

.pix-type-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.pix-type-card:hover::before {
    background: linear-gradient(135deg, rgba(50, 188, 173, 0.5), rgba(0, 210, 106, 0.5));
}

.pix-type-card.selected {
    border-color: #32BCAD;
    background: linear-gradient(135deg, rgba(50, 188, 173, 0.1), rgba(0, 210, 106, 0.05));
}

.pix-type-card.selected::before {
    background: linear-gradient(135deg, #32BCAD, #00D26A);
}

.pix-type-card:active {
    transform: scale(0.98);
}

.pix-type-icon {
    transition: all 0.25s ease;
}

.pix-type-card:hover .pix-type-icon,
.pix-type-card.selected .pix-type-icon {
    transform: scale(1.1);
}

.pix-type-radio {
    transition: all 0.2s ease;
}

.pix-type-card.selected .pix-type-radio {
    background: linear-gradient(135deg, #32BCAD, #00D26A);
    border-color: transparent;
}

.pix-type-card.selected .pix-type-radio::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ========================================
   Partners Infinite Scroll
   ======================================== */
.partners-scroll-container {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(
        to right,
        transparent,
        black 10%,
        black 90%,
        transparent
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        black 10%,
        black 90%,
        transparent
    );
}

.partners-scroll-track {
    animation: partners-scroll 35s linear infinite;
    width: max-content;
}

.partners-scroll-track:hover {
    animation-play-state: paused;
}

@keyframes partners-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.partner-logo {
    min-width: max-content;
}

.partner-logo img {
    filter: brightness(0.7);
    transition: filter 0.3s ease;
}

.partner-logo:hover img {
    filter: brightness(1);
}

/* ========================================
   Responsive - Mobile
   ======================================== */
@media (max-width: 640px) {
    .pix-type-card {
        padding: 16px !important;
    }

    .pix-type-modal-content {
        margin: 16px;
        max-height: calc(100vh - 32px);
    }

    .partners-scroll-track {
        animation-duration: 25s;
    }
}
