/* ============================================
   HHpoker - 极简卡片风 Minimal Card Theme
   Primary: indigo-500 with subtle gray tones
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --primary-50: #eef2ff;
  --primary-100: #e0e7ff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --radius-sm: 0.5rem;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}

/* --- Global Reset & Base --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--gray-800);
  background: #fafafa;
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- Smooth section transitions --- */
section {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* --- Navbar --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--gray-900);
  letter-spacing: -0.025em;
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray-600);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--primary);
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.25s;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}

.nav-cta:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(99,102,241,0.4);
  transform: translateY(-1px);
}

/* Mobile menu toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gray-700);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* --- Hero Section --- */
.hero-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-50);
  color: var(--primary);
  border: 1px solid var(--primary-100);
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-badge .badge-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--gray-900);
  margin-bottom: 1.25rem;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary) 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--gray-500);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(99,102,241,0.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(99,102,241,0.45);
  transform: translateY(-2px);
}

.btn-outline {
  background: #fff;
  color: var(--gray-700);
  border: 1.5px solid var(--gray-200);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-50);
  transform: translateY(-2px);
}

/* --- Floating Card Mockup --- */
.floating-card-mockup {
  max-width: 720px;
  margin: 2rem auto 0;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 1.5rem;
  position: relative;
}

.floating-card-mockup::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 6px;
  background: var(--gray-200);
  border-radius: 3px;
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 1rem;
}

.mockup-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary) 0%, #a855f7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.875rem;
}

.mockup-info .mockup-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--gray-800);
}

.mockup-info .mockup-status {
  font-size: 0.8125rem;
  color: #10b981;
  font-weight: 500;
}

.mockup-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.mockup-card-mini {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}

.mockup-card-mini .mini-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.mockup-card-mini .mini-label {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

/* --- Section Common --- */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  background: var(--primary-50);
  padding: 0.25rem 0.875rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--gray-500);
  max-width: 560px;
  margin: 0 auto;
}

/* --- Feature Showcase (image moved below hero) --- */
.feature-showcase {
  max-width: 1000px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
}

.showcase-image {
  width: 100%;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  display: block;
}

.showcase-placeholder {
  width: 100%;
  aspect-ratio: 16 / 7;
  background: linear-gradient(135deg, var(--primary-50) 0%, #f5f3ff 50%, #fdf2f8 100%);
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
}

.showcase-placeholder i {
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.3;
}

/* --- Features Section (3 rows of 2 = 6 large 2-col cards) --- */
.features-section {
  padding: 5rem 0;
}

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

.feature-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 2rem 2rem 1.75rem;
  border: 1px solid var(--gray-100);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #a855f7);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-50);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

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

.feature-card p {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.feature-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-50);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

/* --- Stats Section --- */
.stats-section {
  padding: 4rem 0;
}

.stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  background: #fff;
  border: 1.5px solid var(--gray-100);
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

.stat-pill:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-pill .stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1rem;
}

.stat-pill .stat-value {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1;
}

.stat-pill .stat-label {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

/* --- Testimonials Section --- */
.testimonials-section {
  padding: 5rem 0;
  background: #fff;
}

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

.testimonial-card {
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 1px solid var(--gray-100);
  transition: all 0.3s;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.testimonial-quote {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
  line-height: 1;
}

.testimonial-text {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--gray-200);
}

.testimonial-author .author-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--gray-800);
}

.testimonial-author .author-role {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

/* --- FAQ Section --- */
.faq-section {
  padding: 5rem 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s;
}

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

.faq-item.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.08);
}

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

.faq-question .faq-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: var(--gray-500);
  transition: all 0.3s;
}

.faq-item.active .faq-question .faq-icon {
  background: var(--primary);
  color: #fff;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.faq-answer-inner {
  padding: 0 1.5rem 1.5rem;
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* --- CTA Section --- */
.cta-section {
  padding: 5rem 0;
  text-align: center;
}

.cta-card {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-2xl);
  padding: 3rem 2rem;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 20%, rgba(99,102,241,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.cta-card h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
}

.cta-card p {
  font-size: 1.0625rem;
  color: var(--gray-500);
  margin-bottom: 2rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.cta-card .btn-primary {
  font-size: 1rem;
  padding: 0.875rem 2.25rem;
}

/* --- Footer --- */
.footer {
  background: #fff;
  border-top: 1px solid var(--gray-100);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.footer-brand {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--gray-500);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--gray-400);
}

/* --- Download Page --- */
.download-section {
  padding: 5rem 0;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.download-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 2.5rem 1.5rem;
  text-align: center;
  border: 1px solid var(--gray-100);
  transition: all 0.3s;
  position: relative;
}

.download-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.08);
}

.download-card.featured::after {
  content: '推荐';
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.75rem;
  border-radius: 9999px;
}

.download-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.download-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  background: var(--primary-50);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
}

.download-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.download-card .version {
  font-size: 0.8125rem;
  color: var(--gray-400);
  margin-bottom: 1.25rem;
}

.qr-placeholder {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.25rem;
  background: var(--gray-50);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--gray-200);
}

.qr-placeholder i {
  font-size: 2rem;
  color: var(--gray-300);
}

.download-card .btn {
  width: 100%;
  justify-content: center;
}

.download-note {
  text-align: center;
  margin-top: 2.5rem;
  padding: 1rem 1.5rem;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.download-note p {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.download-note i {
  color: var(--primary);
  margin-right: 0.375rem;
}

/* --- Clubs Page --- */
.clubs-section {
  padding: 5rem 0;
}

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

.club-card {
  background: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  transition: all 0.3s;
}

.club-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}

.club-card-header {
  padding: 1.5rem 1.5rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.club-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary) 0%, #a855f7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}

.club-info h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.club-id {
  font-size: 0.8125rem;
  color: var(--gray-400);
  font-family: monospace;
}

.club-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.375rem;
}

.club-rating .stars {
  color: #f59e0b;
  font-size: 0.8125rem;
}

.club-rating .rating-num {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-600);
}

.club-card-body {
  padding: 0 1.5rem 1.5rem;
}

.club-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1rem;
}

.club-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.625rem;
  background: var(--gray-50);
  color: var(--gray-600);
  border-radius: 9999px;
  font-weight: 500;
}

.club-card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.club-players {
  font-size: 0.8125rem;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.club-players .online-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
}

.club-join-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
}

.club-join-btn:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(99,102,241,0.35);
  transform: translateY(-1px);
}

.clubs-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  background: #fff;
  border: 1.5px solid var(--gray-200);
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* --- Customer Service Floating Button --- */
.cs-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
}

.cs-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  box-shadow: 0 4px 16px rgba(99,102,241,0.4);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

.cs-popup {
  position: absolute;
  bottom: 68px;
  right: 0;
  width: 280px;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 1.5rem;
  display: none;
  border: 1px solid var(--gray-100);
}

.cs-popup.show {
  display: block;
  animation: fadeInUp 0.3s ease;
}

.cs-popup h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.cs-popup p {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.cs-popup .cs-contact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.875rem;
  background: var(--gray-50);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: background 0.2s;
  margin-bottom: 0.5rem;
}

.cs-popup .cs-contact:hover {
  background: var(--primary-50);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    gap: 1rem;
  }
  .mobile-toggle { display: block; }

  .hero-title { font-size: 2rem; }
  .hero-desc { font-size: 1rem; }

  .features-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  .clubs-grid { grid-template-columns: 1fr; }
  .mockup-body { grid-template-columns: 1fr; }
  .section-title { font-size: 1.75rem; }

  .stats-row { gap: 0.75rem; }
  .stat-pill { padding: 0.625rem 1.125rem; }
  .stat-pill .stat-value { font-size: 1.125rem; }

  .cta-card { padding: 2rem 1.25rem; }
  .cta-card h2 { font-size: 1.5rem; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
  .clubs-grid { grid-template-columns: repeat(2, 1fr); }
  .download-grid { grid-template-columns: repeat(3, 1fr); }
}
