/* ============================================================
   HHPoker Landing Page 0034 — Minimalist Navy Theme
   Palette: #0f172a, #1e3a5f, #1e40af, #3b82f6
   Design: generous whitespace, subtle borders, no heavy shadows
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --navy-900: #0f172a;
  --navy-800: #1e3a5f;
  --navy-700: #1e40af;
  --navy-500: #3b82f6;
  --navy-400: #60a5fa;
  --navy-300: #93bbfd;
  --navy-100: #dbeafe;
  --navy-50:  #eff6ff;
  --white:   #ffffff;
  --gray-50: #f8fafc;
  --gray-100:#f1f5f9;
  --gray-200:#e2e8f0;
  --gray-300:#cbd5e1;
  --gray-400:#94a3b8;
  --gray-500:#64748b;
  --gray-600:#475569;
  --gray-700:#334155;
  --gray-800:#1e293b;
  --gray-900:#0f172a;
  --font-sans: 'Inter', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  --font-numbers: 'Inter', 'PingFang SC', sans-serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --section-padding: 6rem 0;
  --container-max: 1200px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

/* --- Utility --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-500);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 560px;
  line-height: 1.7;
}

/* ============================================================
   1. NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background var(--transition), border var(--transition);
}

.navbar.scrolled {
  background: rgba(15, 23, 42, 0.98);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.navbar-logo i {
  color: var(--navy-500);
  font-size: 1.5rem;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  transition: color var(--transition);
  position: relative;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--navy-500);
  transition: width var(--transition);
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--white);
}

.navbar-links a:hover::after,
.navbar-links a.active::after {
  width: 100%;
}

.navbar-cta {
  display: inline-block;
  padding: 0.55rem 1.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  background: var(--navy-700);
  border: 1px solid var(--navy-700);
  border-radius: 6px;
  transition: background var(--transition), border-color var(--transition);
}

.navbar-cta:hover {
  background: var(--navy-500);
  border-color: var(--navy-500);
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.navbar-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav */
.navbar-mobile {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(20px);
  padding: 1.5rem;
  flex-direction: column;
  gap: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.navbar-mobile.open {
  display: flex;
}

.navbar-mobile a {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color var(--transition);
}

.navbar-mobile a:hover {
  color: var(--white);
}

.navbar-mobile .navbar-cta {
  text-align: center;
  margin-top: 0.5rem;
}

/* ============================================================
   2. HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 8rem 0 6rem;
  background: linear-gradient(160deg, #0a0f1e 0%, #1e3a5f 50%, #1e40af 100%);
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(30,64,175,0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 540px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy-300);
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero-badge i {
  font-size: 0.7rem;
}

.hero-content h1 {
  font-size: 2.9rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}

.hero-content h1 span {
  background: linear-gradient(135deg, var(--navy-400), var(--navy-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 460px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  line-height: 1.4;
}

.btn-primary {
  background: var(--navy-500);
  color: var(--white);
  border-color: var(--navy-500);
}

.btn-primary:hover {
  background: var(--navy-400);
  border-color: var(--navy-400);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.55);
}

.hero-image-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-wrap img {
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  width: 100%;
  max-width: 520px;
  object-fit: cover;
}

.hero-image-wrap::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(59,130,246,0.4), rgba(255,255,255,0.08));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-dots {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background-image: radial-gradient(rgba(59,130,246,0.25) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  pointer-events: none;
}

/* ============================================================
   3. FEATURES
   ============================================================ */
.features {
  padding: var(--section-padding);
  background: var(--white);
}

.features .section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.features .section-header .section-subtitle {
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  padding: 2.25rem 2rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  transition: border-color var(--transition), transform var(--transition);
}

.feature-card:hover {
  border-color: var(--navy-300);
  transform: translateY(-2px);
}

.feature-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--navy-50);
  color: var(--navy-700);
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--navy-100);
}

.feature-card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.6rem;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--gray-500);
  line-height: 1.65;
}

/* ============================================================
   4. STATS
   ============================================================ */
.stats {
  padding: var(--section-padding);
  background: var(--navy-900);
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.3), transparent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 2;
  text-align: center;
}

.stat-item {
  padding: 1.5rem 1rem;
}

.stat-number {
  font-family: var(--font-numbers);
  font-size: 3.5rem;
  font-weight: 200;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.stat-suffix {
  font-weight: 200;
  color: var(--navy-400);
}

.stat-label {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.55);
  font-weight: 400;
}

.stat-divider {
  width: 40px;
  height: 2px;
  background: var(--navy-700);
  margin: 0.85rem auto;
  border-radius: 1px;
}

/* ============================================================
   5. TESTIMONIALS
   ============================================================ */
.testimonials {
  padding: var(--section-padding);
  background: var(--gray-50);
}

.testimonials .section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.testimonials .section-header .section-subtitle {
  margin: 0 auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  padding: 2rem 1.75rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  transition: border-color var(--transition);
}

.testimonial-card:hover {
  border-color: var(--gray-300);
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.testimonial-text {
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
}

.testimonial-author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.1rem;
}

.testimonial-author-info span {
  font-size: 0.8rem;
  color: var(--gray-400);
}

/* ============================================================
   6. FAQ
   ============================================================ */
.faq {
  padding: var(--section-padding);
  background: var(--white);
}

.faq .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.faq .section-header .section-subtitle {
  margin: 0 auto;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  margin-bottom: 0.7rem;
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item:hover {
  border-color: var(--gray-300);
}

.faq-item.active {
  border-color: var(--navy-200);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.2rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--gray-800);
  text-align: left;
  line-height: 1.5;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--navy-700);
}

.faq-icon {
  font-size: 0.85rem;
  color: var(--gray-400);
  transition: transform var(--transition), color var(--transition);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--navy-500);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.2rem;
  font-size: 0.92rem;
  color: var(--gray-500);
  line-height: 1.75;
}

/* ============================================================
   7. CTA
   ============================================================ */
.cta {
  padding: var(--section-padding);
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-700) 100%);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(59,130,246,0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta .container {
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta h2 {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.85rem;
}

.cta p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.cta .btn-primary {
  background: var(--white);
  color: var(--navy-700);
  border-color: var(--white);
  font-size: 1rem;
  padding: 0.85rem 2.2rem;
}

.cta .btn-primary:hover {
  background: var(--gray-100);
  border-color: var(--gray-100);
  transform: translateY(-2px);
}

/* ============================================================
   8. FOOTER
   ============================================================ */
.footer {
  padding: 3.5rem 0 2rem;
  background: var(--gray-900);
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  margin-top: 0.85rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-brand .navbar-logo {
  font-size: 1.25rem;
  margin-bottom: 0;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.1rem;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
  font-size: 0.88rem;
}

.footer-col ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.4);
  font-size: 0.82rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  transition: all var(--transition);
}

.footer-social a:hover {
  border-color: var(--navy-500);
  color: var(--navy-400);
  background: rgba(59,130,246,0.1);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 4rem 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .navbar-links {
    display: none;
  }

  .navbar-toggle {
    display: flex;
  }

  .hero {
    padding: 7rem 0 4rem;
    min-height: auto;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-content p {
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: 2.1rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image-wrap img {
    max-width: 340px;
  }

  .hero-dots {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.75rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}
