/* ===== Concriz — Custom Styles ===== */

/* Alpine.js cloak — hide elements before Alpine loads */
[x-cloak] {
    display: none !important;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* ===== Contrast fixes — improve readability on dark backgrounds ===== */
/* gray-400 (#9ca3af) is too dim on dark-900/800. Override to lighter tones. */
.text-gray-400 {
    color: #c0c5ce !important;
}

.text-gray-500 {
    color: #9ca3af !important;
}

.text-gray-300 {
    color: #d4d8df !important;
}

/* Selection color */
::selection {
    background-color: #FF6B1A;
    color: #fff;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 26, 0.4);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(255, 107, 26, 0);
    }
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out both;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out both;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out both;
}

.animate-pulse-glow {
    animation: pulse-glow 2s infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Stagger delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }

/* ===== Scroll-triggered animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* ===== Gradient text ===== */
.text-gradient {
    background: linear-gradient(135deg, #FF6B1A, #FF8A47);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Hero background pattern ===== */
.hero-pattern {
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 107, 26, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 26, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 60% 80%, rgba(255, 138, 71, 0.06) 0%, transparent 45%);
}

.hero-pattern-dark {
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 107, 26, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 26, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 60% 80%, rgba(255, 138, 71, 0.08) 0%, transparent 45%);
}

/* ===== Card hover effects ===== */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* ===== CTA Button ===== */
.btn-cta {
    background: linear-gradient(135deg, #FF6B1A, #FF8A47);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-cta:hover::before {
    left: 100%;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 26, 0.4);
}

/* ===== Navbar ===== */
.navbar-scrolled {
    background-color: rgba(11, 11, 15, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* ===== Feature icon containers ===== */
.feature-icon {
    background: linear-gradient(135deg, rgba(255, 107, 26, 0.1), rgba(255, 138, 71, 0.05));
    border: 1px solid rgba(255, 107, 26, 0.15);
    transition: all 0.3s ease;
}

.feature-icon:hover {
    background: linear-gradient(135deg, rgba(255, 107, 26, 0.2), rgba(255, 138, 71, 0.1));
    border-color: rgba(255, 107, 26, 0.3);
}

/* ===== Pricing card highlight ===== */
.pricing-highlight {
    border: 2px solid #FF6B1A;
    position: relative;
}

.pricing-highlight::before {
    content: 'Mais popular';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FF6B1A, #FF8A47);
    color: white;
    padding: 4px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

/* ===== Chatbot widget ===== */
.chatbot-bubble {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
}

.chatbot-window {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 380px;
    max-height: 520px;
    z-index: 1000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@media (max-width: 480px) {
    .chatbot-window {
        width: calc(100vw - 32px);
        right: 16px;
        bottom: 80px;
        max-height: 70vh;
    }
}

/* ===== Lead capture modal ===== */
.modal-backdrop {
    background-color: rgba(11, 11, 15, 0.7);
    backdrop-filter: blur(4px);
}

/* ===== Blog article (dark theme — high contrast) ===== */
.prose h2 {
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1.5rem;
    margin-top: 2em;
    margin-bottom: 0.5em;
}

.prose p {
    color: #D0D4DC;
    line-height: 1.85;
    margin-bottom: 1.3em;
    font-size: 1rem;
}

.prose strong {
    color: #FFFFFF;
    font-weight: 600;
}

.prose ul, .prose ol {
    margin-left: 1.5em;
    margin-bottom: 1.3em;
}

.prose li {
    color: #D0D4DC;
    margin-bottom: 0.5em;
    line-height: 1.7;
}

.prose a {
    color: #FF8A47;
}

.prose a:hover {
    text-decoration: underline;
    color: #FF6B1A;
}

.prose em {
    color: #B0B8C4;
}

.prose blockquote {
    border-left: 3px solid #FF6B1A;
    padding-left: 1em;
    margin: 1.5em 0;
    color: #B0B8C4;
    font-style: italic;
}

/* ===== Scroll indicator ===== */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF6B1A, #FF8A47);
    z-index: 9999;
    transition: width 0.1s;
}

/* ===== Cookie banner ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.visible {
    transform: translateY(0);
}
