/* ============================================================
   HHpoker Nordic Minimal — Custom Styles
   北欧简约风: warm gray + natural wood + extreme whitespace
   ============================================================ */

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

body {
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
    background-color: #e5d5c0;
    color: #3d3929;
}

/* ---------- Navigation ---------- */
#navbar.scrolled {
    background: rgba(250, 250, 249, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: #c4a882;
    transition: width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-link:hover::after {
    width: 100%;
}

/* ---------- Geometric Accent Shapes (Hero) ---------- */
.geometric-shape {
    animation: floatShape 12s ease-in-out infinite;
}

.geometric-shape:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 14s;
}

.geometric-shape:nth-child(3) {
    animation-delay: -6s;
    animation-duration: 10s;
}

.geometric-shape:nth-child(4) {
    animation-delay: -9s;
    animation-duration: 16s;
}

.geometric-shape:nth-child(5) {
    animation-delay: -2s;
    animation-duration: 11s;
}

@keyframes floatShape {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-12px) rotate(2deg);
    }
    50% {
        transform: translateY(-6px) rotate(0deg);
    }
    75% {
        transform: translateY(-18px) rotate(-2deg);
    }
}

/* ---------- Feature Cards ---------- */
.feature-card {
    padding: 3rem 2.5rem;
    border-radius: 1.5rem;
    transition: all 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: default;
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    border: 1px solid transparent;
    transition: border-color 0.45s ease;
}

.feature-card:hover::before {
    border-color: #e8e4df;
}

.feature-card:hover {
    background-color: #fafaf9;
    transform: translateY(-2px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 1.25rem;
    background-color: #f2ebe0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.75rem;
    color: #b8956e;
    transition: all 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature-card:hover .feature-icon {
    background-color: #c4a882;
    color: #ffffff;
    transform: scale(1.05);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #3d3929;
    margin-bottom: 0.875rem;
    letter-spacing: 0.02em;
}

.feature-desc {
    font-size: 0.9375rem;
    color: #8c8279;
    line-height: 1.75;
}

/* ---------- Stats ---------- */
.stat-item {
    position: relative;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: #3d3929;
    line-height: 1.1;
    font-family: 'Playfair Display', Georgia, serif;
    letter-spacing: -0.02em;
    display: inline;
}

.stat-suffix {
    font-size: 1.75rem;
    font-weight: 600;
    color: #c4a882;
    display: inline;
    margin-left: 0.15em;
    font-family: 'Playfair Display', Georgia, serif;
}

.stat-label {
    font-size: 0.9375rem;
    color: #a89f96;
    margin-top: 0.625rem;
    letter-spacing: 0.05em;
    font-weight: 400;
}

/* ---------- Download Cards ---------- */
.download-card {
    background: #ffffff;
    border-radius: 2rem;
    padding: 3rem 2.5rem;
    border: 1px solid #f5f3f0;
    transition: all 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.download-card:hover {
    box-shadow: 0 20px 60px -20px rgba(61, 57, 41, 0.08);
    border-color: #e8e4df;
    transform: translateY(-2px);
}

/* ---------- Testimonial Cards ---------- */
.testimonial-card {
    background: #fafaf9;
    border-radius: 1.5rem;
    padding: 2.5rem;
    border: 1px solid #f5f3f0;
    transition: all 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.testimonial-card:hover {
    background: #ffffff;
    box-shadow: 0 12px 40px -16px rgba(61, 57, 41, 0.06);
    border-color: #e8e4df;
}

/* ---------- CTA Section ---------- */
.cta-section {
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(196, 168, 130, 0.92) 0%, rgba(212, 165, 116, 0.72) 100%);
    z-index: 0;
}

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

/* ---------- Customer Service Floating Button ---------- */
#csFloatingBtn {
    animation: fadeInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1s both;
}

#csPopup {
    animation: scaleIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: bottom right;
}

#csPopup.hidden {
    display: none;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* ---------- Scroll-triggered reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Stagger delays for feature cards */
.feature-card.reveal:nth-child(1) { transition-delay: 0.05s; }
.feature-card.reveal:nth-child(2) { transition-delay: 0.15s; }
.feature-card.reveal:nth-child(3) { transition-delay: 0.25s; }
.feature-card.reveal:nth-child(4) { transition-delay: 0.35s; }
.feature-card.reveal:nth-child(5) { transition-delay: 0.45s; }
.feature-card.reveal:nth-child(6) { transition-delay: 0.55s; }

/* Stagger delays for stat items */
.stat-item.reveal:nth-child(1) { transition-delay: 0.05s; }
.stat-item.reveal:nth-child(2) { transition-delay: 0.15s; }
.stat-item.reveal:nth-child(3) { transition-delay: 0.25s; }
.stat-item.reveal:nth-child(4) { transition-delay: 0.35s; }

/* Stagger delays for testimonial cards */
.testimonial-card.reveal:nth-child(1) { transition-delay: 0.05s; }
.testimonial-card.reveal:nth-child(2) { transition-delay: 0.20s; }
.testimonial-card.reveal:nth-child(3) { transition-delay: 0.35s; }

/* ---------- Mobile Menu Animation ---------- */
#mobileMenu {
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.3s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobileMenu:not(.hidden) {
    max-height: 500px;
    opacity: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
    .stat-number {
        font-size: 2.5rem;
    }
    .stat-suffix {
        font-size: 1.25rem;
    }
    .feature-card {
        padding: 2rem 1.75rem;
    }
    .download-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 639px) {
    .stat-number {
        font-size: 2rem;
    }
    .stat-suffix {
        font-size: 1.1rem;
    }
    .feature-card {
        padding: 1.75rem 1.5rem;
    }
    .testimonial-card {
        padding: 1.75rem;
    }
    h1 {
        font-size: 2.25rem !important;
    }
    h2 {
        font-size: 2rem !important;
    }
}
