/* ============================================
   HHpoker - 德扑圈 Landing Page Styles
   Project 0058 - Type 2 (External CSS + JS)
   ============================================ */

/* ----- Base & Smooth Scroll ----- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    overflow-x: hidden;
}

/* ----- Navbar Glass Effect ----- */
#navbar {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

#navbar.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* ----- Hero Gradient Text ----- */
.hero-gradient-text {
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 50%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ----- Feature Cards ----- */
.feature-card {
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    border-color: rgba(99, 102, 241, 0.2);
}

/* ----- FAQ Accordion ----- */
.faq-item {
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.faq-item[open] {
    border-color: rgba(99, 102, 241, 0.15);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.08);
}

.faq-item summary {
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::marker {
    display: none;
    content: "";
}

.faq-item[open] summary {
    color: #4f46e5;
}

.faq-arrow {
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-arrow {
    transform: rotate(180deg);
}

/* ----- CTA Gradient ----- */
.cta-section {
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 50%, #6366f1 100%);
}

/* ----- Footer ----- */
footer a {
    transition: color 0.2s ease;
}

footer .social-icon {
    transition: background-color 0.3s ease, transform 0.3s ease;
}

footer .social-icon:hover {
    transform: translateY(-2px);
}

/* ----- Stats Counter Animation ----- */
.stat-counter {
    transition: all 0.3s ease;
    font-variant-numeric: tabular-nums;
}

/* ----- Testimonial Cards ----- */
.testimonial-card {
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: rgba(99, 102, 241, 0.15);
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.7s ease forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.7s ease forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.7s ease forwards;
}

.animate-delay-100 {
    animation-delay: 0.1s;
    opacity: 0;
}

.animate-delay-200 {
    animation-delay: 0.2s;
    opacity: 0;
}

.animate-delay-300 {
    animation-delay: 0.3s;
    opacity: 0;
}

.animate-delay-400 {
    animation-delay: 0.4s;
    opacity: 0;
}

.animate-delay-500 {
    animation-delay: 0.5s;
    opacity: 0;
}

/* ----- Mobile Menu ----- */
#mobile-menu {
    transition: all 0.3s ease;
}

#mobile-menu.show {
    display: block !important;
    animation: fadeInUp 0.3s ease;
}

/* ----- Section Reveal on Scroll ----- */
.section-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ----- Responsive Breakpoints ----- */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.25rem;
        line-height: 1.2;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-card .w-14 {
        width: 3rem;
        height: 3rem;
    }

    .feature-card .w-14 i {
        font-size: 1.25rem;
    }

    #stats .text-4xl {
        font-size: 2rem;
    }

    #testimonials .grid {
        gap: 1rem;
    }

    footer .grid {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    #navbar .text-xl {
        font-size: 1.125rem;
    }

    #hero {
        padding-top: 5rem;
    }

    #hero h1 {
        font-size: 1.75rem;
    }

    #hero p {
        font-size: 0.95rem;
    }

    #hero .flex-col {
        width: 100%;
    }

    #hero a {
        width: 100%;
        justify-content: center;
    }

    #stats .text-4xl {
        font-size: 1.5rem;
    }

    #stats .text-lg {
        font-size: 0.875rem;
    }
}
