/* ============================================================
   HHPoker — Tech Minimalist Style
   Ice Blue-200 (#BFDBFE) + Silver Gray-300 (#D1D5DB)
   Apple-like ultra-minimal design system
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
    --blue-200: #BFDBFE;
    --blue-300: #93C5FD;
    --blue-400: #60A5FA;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-50:  #F9FAFB;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
                 "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-weight: 300;
}

/* ---- Selection ---- */
::selection {
    background: var(--blue-200);
    color: #1e293b;
}

/* ---- Navbar: Frosted Glass ---- */
.navbar-glass {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(209, 213, 219, 0.3);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.navbar-glass.scrolled {
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(209, 213, 219, 0.5);
}

/* Nav Links */
.nav-link {
    font-size: 0.8125rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    color: #6b7280;
    text-decoration: none;
    position: relative;
    transition: color 0.25s ease;
    padding-bottom: 2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--blue-400);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #374151;
}

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

.logo-hover {
    transition: opacity 0.3s ease;
}

.logo-hover:hover {
    opacity: 0.7;
}

/* Mobile menu link */
.mobile-nav-link {
    transition: background 0.2s ease, color 0.2s ease;
}

.mobile-nav-link:hover {
    background: rgba(191, 219, 254, 0.15);
    color: #374151;
}

/* ---- Glass Cards (Features) ---- */
.glass-card {
    background: rgba(249, 250, 251, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(209, 213, 219, 0.35);
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    cursor: default;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(191, 219, 254, 0.55);
    box-shadow: 0 8px 32px rgba(191, 219, 254, 0.18),
                0 2px 8px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

/* ---- Stats Section ---- */
.stats-section {
    background-color: #f3f4f6; /* silver gray / gray-100 */
    /* ultra-minimal: no shadows, no borders, no decorations */
}

/* ---- CTA Section ---- */
.cta-section {
    background: linear-gradient(135deg, #BFDBFE 0%, #93C5FD 40%, #60A5FA 100%);
    /* ice blue to blue gradient */
}

/* ---- Footer ---- */
.footer-section {
    background-color: #e5e7eb; /* gray-200, close to silver gray-300 */
}

/* ---- FAQ Accordion ---- */
.faq-toggle {
    cursor: pointer;
}

.faq-toggle:hover .faq-icon {
    color: #60A5FA;
}

.faq-icon {
    font-weight: 100;
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1), color 0.25s ease;
}

.faq-icon.open {
    transform: rotate(45deg);
    color: #60A5FA;
}

.faq-answer {
    overflow: hidden;
    animation: faqFadeIn 0.35s ease forwards;
}

@keyframes faqFadeIn {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 300px;
    }
}

/* ---- Scroll Reveal Animation ---- */
.reveal-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
                transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

/* Staggered delays */
.delay-50  { transition-delay: 0.05s; }
.delay-100 { transition-delay: 0.10s; }
.delay-150 { transition-delay: 0.15s; }
.delay-200 { transition-delay: 0.20s; }
.delay-300 { transition-delay: 0.30s; }

/* ---- Parallax glow orb (hero) —— subtle on scroll ---- */
@media (prefers-reduced-motion: no-preference) {
    .hero-glow {
        will-change: transform;
    }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .glass-card {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .navbar-glass {
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }
}

/* ---- Focus styles for accessibility ---- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--blue-300);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---- Utility: hide mobile menu ---- */
#mobileMenu.hidden {
    display: none;
}

#mobileMenu:not(.hidden) {
    display: block;
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
