/* ============================================
   HHPoker - Dark Professional Theme
   Color: Slate (#475569) + Indigo + high contrast
   ============================================ */

:root {
    --bg: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #273449;
    --bg-section: #131d2e;
    --border: #334155;
    --border-light: #3b4f6b;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --accent: #475569;
    --white: #ffffff;
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --shadow-card: 0 4px 24px rgba(0,0,0,0.3);
    --shadow-hover: 0 20px 50px rgba(0,0,0,0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* ============ NAVBAR - Dark glass ============ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(15,23,42,0.9);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(99,102,241,0.15);
    transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 4px 32px rgba(0,0,0,0.5); }
.nav-inner {
    max-width: 1280px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 68px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo .logo-icon {
    width: 40px; height: 40px; border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(99,102,241,0.3);
}
.nav-logo .logo-icon i { color: white; font-size: 17px; }
.nav-logo .logo-text {
    font-size: 1.2rem; font-weight: 800; color: var(--white);
    letter-spacing: -0.02em;
}
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
    text-decoration: none; font-size: 0.875rem; font-weight: 600;
    color: var(--text-muted); transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary-light); }
.nav-cta {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white; text-decoration: none; padding: 10px 22px;
    border-radius: 999px; font-size: 0.8rem; font-weight: 700;
    transition: all 0.3s; box-shadow: 0 4px 16px rgba(99,102,241,0.35);
    display: inline-flex; align-items: center; gap: 6px;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(99,102,241,0.5); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--text); cursor: pointer; }
.mobile-menu { display: none; flex-direction: column; padding: 0 24px 16px; gap: 6px; }
.mobile-menu a { text-decoration: none; font-size: 0.875rem; font-weight: 600; color: var(--text-muted); padding: 8px 0; }
.mobile-menu a:hover { color: var(--primary-light); }
.mobile-menu .nav-cta { text-align: center; margin-top: 8px; display: block; }

@media (max-width: 768px) {
    .nav-links, .nav-cta-desktop { display: none; }
    .nav-toggle { display: block; }
    .mobile-menu.open { display: flex; }
}

/* ============ HERO ============ */
.hero {
    padding: 130px 24px 80px;
    position: relative; overflow: hidden;
    background: linear-gradient(180deg, #0f172a 0%, #131d2e 50%, #0f172a 100%);
}
.hero-glow {
    position: absolute; width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(99,102,241,0.12), transparent 70%);
    top: -50px; right: -60px; border-radius: 50%; z-index: 0;
}
.hero-glow-2 {
    position: absolute; width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(71,85,105,0.08), transparent 70%);
    bottom: -30px; left: -50px; border-radius: 50%; z-index: 0;
}
.hero-inner {
    max-width: 1280px; margin: 0 auto; display: grid;
    grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
    position: relative; z-index: 1;
}
.hero-tag {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.25);
    border-radius: 999px; padding: 6px 16px; font-size: 0.75rem;
    font-weight: 700; color: var(--primary-light); margin-bottom: 24px;
}
.hero-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: #818cf8; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:0.3} }
.hero h1 { font-size: 3rem; font-weight: 900; line-height: 1.12; margin-bottom: 20px; color: var(--white); }
.hero h1 .hl {
    background: linear-gradient(135deg, #818cf8, #a5b4fc);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.75; margin-bottom: 28px; max-width: 480px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px; border-radius: 999px; font-size: 0.875rem;
    font-weight: 700; text-decoration: none; transition: all 0.3s; cursor: pointer; border: none;
}
.btn-primary { background: linear-gradient(135deg, #6366f1, #4f46e5); color: white; box-shadow: 0 8px 28px rgba(99,102,241,0.3); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(99,102,241,0.45); }
.btn-outline { border: 2px solid var(--border); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--primary-light); color: var(--primary-light); background: rgba(99,102,241,0.05); }
.hero-img-wrap { position: relative; display: flex; justify-content: center; }
.hero-img-wrap img {
    border-radius: var(--radius-xl); width: 100%; max-width: 480px;
    box-shadow: 0 30px 60px -20px rgba(99,102,241,0.25);
    object-fit: cover; border: 1px solid var(--border);
}
.hero-img-wrap .img-accent {
    position: absolute; inset: -8px; border-radius: var(--radius-xl);
    border: 2px solid rgba(99,102,241,0.2); z-index: 0; transform: rotate(3deg);
}

@media (max-width: 768px) {
    .hero-inner { grid-template-columns: 1fr; gap: 36px; text-align: center; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { max-width: 100%; margin-left: auto; margin-right: auto; }
    .hero-btns { justify-content: center; }
}

/* ============ FEATURES ============ */
.features { padding: 80px 24px; background: var(--bg-section); }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-tag {
    display: inline-block; background: rgba(99,102,241,0.1); color: var(--primary-light);
    font-size: 0.75rem; font-weight: 800; padding: 6px 16px;
    border-radius: 999px; text-transform: uppercase; letter-spacing: 0.1em;
    border: 1px solid rgba(99,102,241,0.2); margin-bottom: 16px;
}
.section-header h2 { font-size: 2.25rem; font-weight: 900; color: var(--white); margin-bottom: 12px; }
.section-header p { color: var(--text-muted); font-size: 1rem; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feat-card {
    background: var(--bg-card); border-radius: var(--radius-lg);
    padding: 36px 28px; box-shadow: var(--shadow-card);
    border: 1px solid var(--border); transition: all 0.35s ease;
}
.feat-card:hover { background: var(--bg-card-hover); border-color: var(--primary); transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.feat-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px; font-size: 1.3rem;
    background: rgba(99,102,241,0.12); color: var(--primary-light);
}
.feat-card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; color: var(--white); }
.feat-card p { color: var(--text-muted); font-size: 0.875rem; line-height: 1.7; }
@media (max-width: 768px) {
    .features-grid { grid-template-columns: 1fr; }
}

/* ============ STATS (Horizontal gradient bar) ============ */
.stats { padding: 80px 24px; background: var(--bg); }
.stats-bar {
    background: linear-gradient(135deg, #1e293b, #1a2555, #1e293b);
    border-radius: var(--radius-xl); border: 1px solid var(--border);
    padding: 44px 48px; display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 20px; text-align: center;
}
.stat-num { font-size: 2.8rem; font-weight: 900; color: var(--primary-light); }
.stat-label { color: var(--text-muted); font-size: 0.875rem; font-weight: 600; margin-top: 4px; }
@media (max-width: 768px) {
    .stats-bar { grid-template-columns: repeat(2, 1fr); padding: 32px 24px; gap: 28px; }
}

/* ============ TESTIMONIALS (Minimal dark cards) ============ */
.testimonials { padding: 80px 24px; background: var(--bg-section); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.testi-card {
    background: var(--bg-card); border-radius: var(--radius-lg);
    padding: 32px 28px; box-shadow: var(--shadow-card);
    border: 1px solid var(--border); transition: all 0.35s ease;
}
.testi-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.testi-stars { color: #f59e0b; margin-bottom: 16px; font-size: 0.8rem; }
.testi-text { color: var(--text-muted); font-size: 0.875rem; line-height: 1.75; margin-bottom: 20px; }
.testi-author { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.testi-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #334155; }
.testi-name { font-weight: 800; font-size: 0.875rem; color: var(--text); }
.testi-role { color: var(--text-dim); font-size: 0.75rem; }
@media (max-width: 768px) {
    .testi-grid { grid-template-columns: 1fr; }
}

/* ============ FAQ (Dark accordion) ============ */
.faq { padding: 80px 24px; background: var(--bg); }
.faq-inner { max-width: 780px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; transition: all 0.3s; }
.faq-item.open { border-color: var(--primary); background: rgba(99,102,241,0.04); }
.faq-q {
    padding: 16px 24px; display: flex; align-items: center; justify-content: space-between;
    cursor: pointer; font-weight: 700; font-size: 0.95rem; color: var(--text);
    user-select: none;
}
.faq-q i { color: var(--primary-light); transition: transform 0.35s ease; font-size: 0.8rem; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; }
.faq-item.open .faq-a { max-height: 260px; }
.faq-a p { padding: 0 24px 18px; color: var(--text-muted); font-size: 0.875rem; line-height: 1.75; }

/* ============ CTA BANNER ============ */
.cta-banner { padding: 60px 24px; }
.cta-inner {
    max-width: 960px; margin: 0 auto; padding: 56px 48px;
    background: linear-gradient(135deg, #1e293b, #1a1f3a);
    border-radius: var(--radius-xl); text-align: center;
    border: 1px solid var(--border); position: relative; overflow: hidden;
}
.cta-inner::after {
    content: ''; position: absolute; width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(99,102,241,0.1), transparent 70%);
    top: -40px; right: -40px; border-radius: 50%; z-index: 0;
}
.cta-inner h2 { font-size: 2rem; font-weight: 900; color: var(--white); margin-bottom: 12px; position: relative; z-index: 1; }
.cta-inner p { color: var(--text-muted); margin-bottom: 28px; position: relative; z-index: 1; font-size: 1.05rem; }
.cta-inner .cta-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; position: relative; z-index: 1; }
.btn-white { background: white; color: #1e293b; padding: 13px 28px; border-radius: 999px; font-weight: 800; font-size: 0.875rem; text-decoration: none; transition: all 0.3s; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 8px 28px rgba(0,0,0,0.3); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(0,0,0,0.4); }
.btn-indigo-glass { background: rgba(99,102,241,0.15); background-filter: blur(10px); color: var(--primary-light); border: 2px solid rgba(99,102,241,0.3); padding: 13px 28px; border-radius: 999px; font-weight: 800; font-size: 0.875rem; text-decoration: none; transition: all 0.3s; display: inline-flex; align-items: center; gap: 8px; }
.btn-indigo-glass:hover { background: rgba(99,102,241,0.25); transform: translateY(-2px); }

/* ============ FOOTER ============ */
.footer {
    background: #0a0f1a;
    padding: 56px 24px 28px; color: var(--text-dim);
    border-top: 1px solid var(--border);
}
.footer-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-brand-text { color: var(--text-dim); font-size: 0.875rem; line-height: 1.7; margin-top: 12px; }
.footer h4 { color: var(--white); font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer a { color: var(--text-dim); text-decoration: none; font-size: 0.875rem; display: block; margin-bottom: 10px; transition: color 0.2s; }
.footer a:hover { color: var(--primary-light); }
.footer-bottom { max-width: 1280px; margin: 0 auto; padding-top: 24px; border-top: 1px solid var(--border); text-align: center; font-size: 0.8rem; color: #4b5563; }
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ============ PAGE HEADER ============ */
.page-header {
    padding: 120px 24px 48px;
    background: linear-gradient(180deg, #131d2e 0%, var(--bg) 100%);
    text-align: center;
}
.page-header h1 { font-size: 2.5rem; font-weight: 900; color: var(--white); margin-bottom: 12px; }
.page-header p { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* ============ DOWNLOAD PAGE ============ */
.dl-section { padding: 40px 24px 80px; }
.dl-grid { max-width: 800px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.dl-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl);
    padding: 40px 28px; text-align: center; transition: all 0.35s ease;
}
.dl-card:hover { border-color: var(--primary); box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.dl-card i { font-size: 2.5rem; margin-bottom: 16px; color: var(--primary-light); }
.dl-card h3 { font-weight: 900; font-size: 1.25rem; margin-bottom: 8px; color: var(--white); }
.dl-card p { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 20px; }
@media (max-width: 768px) {
    .dl-grid { grid-template-columns: 1fr; }
}

/* ============ ABOUT PAGE ============ */
.about-section { padding: 40px 24px 80px; }
.about-content { max-width: 800px; margin: 0 auto; }
.about-content h2 { font-size: 1.5rem; font-weight: 900; color: var(--white); margin-bottom: 12px; margin-top: 32px; }
.about-content h2:first-child { margin-top: 0; }
.about-content p { color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; }
.about-content ul { padding-left: 20px; margin-bottom: 16px; }
.about-content li { color: var(--text-muted); line-height: 1.8; margin-bottom: 6px; }

/* ============ CONTACT PAGE ============ */
.contact-section { padding: 40px 24px 80px; }
.contact-inner { max-width: 640px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 20px; }
.contact-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 28px; display: flex; align-items: center; gap: 20px; transition: all 0.3s;
}
.contact-card:hover { border-color: var(--primary); box-shadow: var(--shadow-hover); }
.contact-icon {
    width: 52px; height: 52px; min-width: 52px; border-radius: 14px;
    background: rgba(99,102,241,0.12); display: flex; align-items: center; justify-content: center;
    color: var(--primary-light); font-size: 1.3rem;
}
.contact-info h4 { font-weight: 800; color: var(--white); margin-bottom: 2px; }
.contact-info p { color: var(--text-muted); font-size: 0.875rem; }
