/* ============================================================================
   Inguiri Landing Page - Custom Styles
   ============================================================================ */

/* ========================================
   CSS Variables
======================================== */
:root {
    --primary-500: #F5B800;
    --transition-base: 300ms ease;
}

/* ========================================
   Base Styles
======================================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background-color: var(--primary-500);
    color: #1a1a1a;
}

/* ========================================
   Header Styles
======================================== */
#header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.dark #header {
    background: rgba(15, 23, 42, 0.8);
}

#header.scrolled {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dark #header.scrolled {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ========================================
   Feature Cards
======================================== */
.feature-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    transition: all var(--transition-base);
}

.dark .feature-card {
    background: #1e293b;
    border-color: #334155;
}

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

.dark .feature-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
}

.dark .feature-icon {
    background: linear-gradient(135deg, rgba(245, 184, 0, 0.2), rgba(245, 184, 0, 0.1));
}

/* ========================================
   Pricing Cards
======================================== */
.pricing-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    border: 2px solid #e2e8f0;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.dark .pricing-card {
    background: #1e293b;
    border-color: #334155;
}

.pricing-card.popular {
    border-color: var(--primary-500);
}

.pricing-card.popular::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-500);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.dark .pricing-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.pricing-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-500);
    color: #1a1a1a;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.pricing-currency {
    font-size: 1.5rem;
    font-weight: 600;
    vertical-align: top;
}

.pricing-period {
    font-size: 1rem;
    font-weight: 400;
    color: #64748b;
}

.dark .pricing-period {
    color: #94a3b8;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.pricing-features li svg {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    color: #22c55e;
}

.pricing-features li.disabled {
    color: #94a3b8;
}

.pricing-features li.disabled svg {
    color: #cbd5e1;
}

.dark .pricing-features li.disabled svg {
    color: #475569;
}

/* ========================================
   Testimonial Cards
======================================== */
.testimonial-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

.dark .testimonial-card {
    background: #1e293b;
    border-color: #334155;
}

.testimonial-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.testimonial-stars svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary-500);
}

.testimonial-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 1.5rem;
}

.dark .testimonial-content {
    color: #94a3b8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #92400e;
}

.testimonial-name {
    font-weight: 600;
}

.testimonial-role {
    font-size: 0.875rem;
    color: #64748b;
}

.dark .testimonial-role {
    color: #94a3b8;
}

/* ========================================
   FAQ Accordion
======================================== */
.faq-item {
    background: white;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.dark .faq-item {
    background: #1e293b;
    border-color: #334155;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    border: none;
    color: inherit;
}

.faq-question:hover {
    background: #f8fafc;
}

.dark .faq-question:hover {
    background: #334155;
}

.faq-icon {
    width: 1.5rem;
    height: 1.5rem;
    transition: transform var(--transition-base);
    color: #64748b;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.faq-item.open .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 1.5rem 1.25rem;
    color: #475569;
    line-height: 1.6;
}

.dark .faq-answer-content {
    color: #94a3b8;
}

/* ========================================
   Billing Toggle
======================================== */
#billing-toggle.annual {
    background: var(--primary-500);
}

#billing-toggle.annual #billing-toggle-dot {
    transform: translateX(1.5rem);
}

/* ========================================
   WhatsApp Button Animation
======================================== */
#whatsapp-btn {
    animation: pulse-whatsapp 2s infinite;
}

@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(34, 197, 94, 0);
    }
}

/* ========================================
   Scroll Animations
======================================== */
.animate-fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Mobile Menu Animation
======================================== */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

#mobile-menu.open {
    max-height: 400px;
}

/* ========================================
   Custom Scrollbar
======================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.dark ::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.dark ::-webkit-scrollbar-thumb {
    background: #475569;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ========================================
   Focus States (Accessibility)
======================================== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

/* ========================================
   Print Styles
======================================== */
@media print {
    #header,
    #whatsapp-btn,
    .no-print {
        display: none !important;
    }
}

/* ========================================
   Responsive Adjustments
======================================== */
@media (max-width: 640px) {
    .pricing-price {
        font-size: 2.5rem;
    }

    .feature-card {
        padding: 1.25rem;
    }
}

/* ========================================
   Reduced Motion
======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ========================================
   Legal Modal
======================================== */
#legal-modal.open {
    display: flex;
}

body.modal-open {
    overflow: hidden;
}

.prose-legal {
    color: inherit;
    line-height: 1.65;
    font-size: 0.95rem;
}

.prose-legal h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 1.25rem 0 0.5rem;
    color: var(--primary-500);
}

.prose-legal h4:first-child {
    margin-top: 0;
}

.prose-legal p {
    margin: 0 0 0.75rem;
}

.prose-legal ul {
    margin: 0 0 0.75rem 1.25rem;
    list-style: disc;
}

.prose-legal ul li {
    margin-bottom: 0.35rem;
}

.prose-legal .legal-note {
    margin-top: 1.5rem;
    padding: 0.75rem 1rem;
    border-left: 3px solid var(--primary-500);
    background: rgba(245, 184, 0, 0.08);
    font-size: 0.85rem;
    border-radius: 0 0.5rem 0.5rem 0;
}
