/* ==========================================================================
   HHPOKER Landing Page - Custom Styles
   Apple-style Minimalism with Indigo Branding
   ========================================================================== */

/* --- Smooth Scrolling --- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Selection --- */
::selection {
    background-color: rgba(79, 70, 229, 0.18);
    color: #4F46E5;
}

::-moz-selection {
    background-color: rgba(79, 70, 229, 0.18);
    color: #4F46E5;
}

/* --- Focus Ring --- */
*:focus-visible {
    outline: 2px solid rgba(79, 70, 229, 0.4);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ==========================================================================
   Navbar
   ========================================================================== */

#navbar {
    will-change: transform, box-shadow;
}

#navbar.scrolled {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* ==========================================================================
   Fade-In Animations
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

.animate-fadeIn {
    animation: fadeIn 0.6s ease-out both;
}

/* ==========================================================================
   Feature Cards Hover - Apple-style lift
   ========================================================================== */

.feature-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
    transform: translateY(-6px);
}

/* ==========================================================================
   FAQ Accordion - Apple-style
   ========================================================================== */

.faq-item {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active {
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.06);
    border-color: rgba(79, 70, 229, 0.15);
}

.faq-toggle {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.faq-content {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-content {
    max-height: 300px;
    opacity: 1;
}

.faq-item.active .faq-icon {
    background-color: #4F46E5;
}

.faq-item.active .faq-icon i {
    color: #FFFFFF;
    transform: rotate(180deg);
}

/* ==========================================================================
   Mobile Menu
   ========================================================================== */

#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ==========================================================================
   Button Hover Effects
   ========================================================================== */

.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::after {
    opacity: 1;
}

/* ==========================================================================
   Stats Count-up Numbers
   ========================================================================== */

.stat-number {
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

/* ==========================================================================
   Testimonial Stars
   ========================================================================== */

.star-rating i {
    filter: drop-shadow(0 1px 1px rgba(251, 191, 36, 0.3));
}

/* ==========================================================================
   Gradient Text
   ========================================================================== */

.text-gradient {
    background: linear-gradient(135deg, #4F46E5 0%, #818CF8 50%, #6366F1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   Pulse Dot
   ========================================================================== */

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

.pulse-dot {
    animation: pulse-dot 2s ease-in-out infinite;
}

/* ==========================================================================
   CTA Section Decorative Blob
   ========================================================================== */

.cta-blob {
    animation: blob-float 8s ease-in-out infinite;
}

@keyframes blob-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ==========================================================================
   Scroll Reveal
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Stagger delays */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ==========================================================================
   Form Focus Effects
   ========================================================================== */

input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* ==========================================================================
   Custom Scrollbar (WebKit)
   ========================================================================== */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(79, 70, 229, 0.2);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(79, 70, 229, 0.35);
}

/* ==========================================================================
   Responsive Typography Tweaks
   ========================================================================== */

@media (max-width: 640px) {
    h1 {
        letter-spacing: -0.02em;
    }
}

/* ==========================================================================
   Loading / Performance
   ========================================================================== */

img {
    content-visibility: auto;
}

/* Reduce motion for accessibility */
@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;
    }
}
