/* ============================================
   ACE Official Website Classic Style
   Color Scheme: ACE Red (#dc2626) + Platinum (#e5e7eb)
   Dark/Red Theme - Classic Poker Aesthetic
   ============================================ */

/* === CSS Variables === */
:root {
  --ace-red: #dc2626;
  --ace-red-dark: #991b1b;
  --ace-red-light: #ef4444;
  --ace-red-deeper: #7f1d1d;
  --ace-gold: #d4a843;
  --ace-gold-light: #f0c96d;
  --ace-gold-dark: #b8922e;
  --ace-platinum: #e5e7eb;
  --ace-platinum-dark: #9ca3af;
  --ace-dark: #111111;
  --ace-dark-2: #1a1a1a;
  --ace-dark-3: #222222;
  --ace-dark-4: #2a2a2a;

  --gradient-red-h: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  --gradient-red-v: linear-gradient(180deg, #dc2626 0%, #7f1d1d 100%);
  --gradient-red-black: linear-gradient(135deg, #dc2626 0%, #991b1b 30%, #111111 100%);
  --gradient-hero: linear-gradient(135deg, #1a1a1a 0%, #7f1d1d 40%, #dc2626 70%, #111111 100%);
  --gradient-card: linear-gradient(160deg, #dc2626 0%, #991b1b 60%, #7f1d1d 100%);
  --gradient-gold: linear-gradient(135deg, #f0c96d 0%, #d4a843 50%, #b8922e 100%);
  --gradient-cta: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #991b1b 100%);
  --gradient-footer: linear-gradient(180deg, #1a1a1a 0%, #111111 50%, #0a0a0a 100%);

  --shadow-red: 0 4px 20px rgba(220, 38, 38, 0.3);
  --shadow-red-lg: 0 8px 40px rgba(220, 38, 38, 0.4);
  --shadow-gold: 0 4px 20px rgba(212, 168, 67, 0.3);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);

  --border-red: 1px solid rgba(220, 38, 38, 0.5);
  --border-gold: 1px solid rgba(212, 168, 67, 0.5);
  --border-platinum: 1px solid rgba(229, 231, 235, 0.15);

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background-color: var(--ace-dark);
  color: var(--ace-platinum);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
}

/* === Scrollbar === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--ace-dark-2); }
::-webkit-scrollbar-thumb { background: var(--ace-red); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--ace-red-light); }

/* ==========================================
   SECTION 1: NAVBAR
   ========================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(17, 17, 17, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--ace-red);
  box-shadow: 0 2px 20px rgba(220, 38, 38, 0.15);
  transition: all var(--transition-smooth);
}

.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(220, 38, 38, 0.25);
  border-bottom-color: var(--ace-red-light);
}

.navbar-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1px;
  white-space: nowrap;
}

.navbar-logo .ace-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--gradient-red-h);
  border-radius: 8px;
  border: 2px solid var(--ace-gold);
  font-weight: 900;
  font-size: 0.85rem;
  color: var(--ace-gold);
  box-shadow: var(--shadow-red);
  position: relative;
}

.navbar-logo .ace-icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 10px;
  border: 1px solid rgba(212, 168, 67, 0.3);
}

.navbar-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
  align-items: center;
}

.navbar-links a {
  color: var(--ace-platinum);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all var(--transition-fast);
  position: relative;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: #ffffff;
  background: rgba(220, 38, 38, 0.15);
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--ace-red);
  transition: transform var(--transition-smooth);
}

.navbar-links a:hover::after,
.navbar-links a.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--ace-platinum);
  border-radius: 2px;
  transition: all var(--transition-smooth);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  background: var(--ace-red);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  background: var(--ace-red);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: rgba(17, 17, 17, 0.98);
  backdrop-filter: blur(20px);
  padding: 100px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: right var(--transition-smooth);
  z-index: 999;
  border-left: 2px solid var(--ace-red);
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.5);
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu a {
  color: var(--ace-platinum);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  border: var(--border-platinum);
}

.mobile-menu a:hover {
  background: rgba(220, 38, 38, 0.15);
  color: #fff;
  border-color: var(--ace-red);
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.mobile-overlay.active {
  opacity: 1;
  pointer-events: all;
}

@media (max-width: 768px) {
  .navbar-links { display: none; }
  .hamburger { display: flex; }
  .navbar-container { height: 64px; }
}

/* ==========================================
   SECTION 2: HERO
   ========================================== */
.hero {
  position: relative;
  min-height: 90vh;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 168, 67, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 100px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-content {
  text-align: left;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(220, 38, 38, 0.2);
  border: 1px solid rgba(220, 38, 38, 0.4);
  border-radius: 50px;
  padding: 8px 20px;
  margin-bottom: 24px;
}

.hero-badge i {
  color: var(--ace-gold);
  font-size: 0.85rem;
}

.hero-badge span {
  color: var(--ace-platinum);
  font-size: 0.85rem;
  letter-spacing: 2px;
  font-weight: 600;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 20px;
  color: #ffffff;
  letter-spacing: 1px;
}

.hero-title .highlight {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--ace-platinum);
  margin: 0 0 16px;
  font-weight: 600;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--ace-platinum-dark);
  margin: 0 0 36px;
  line-height: 1.8;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--gradient-red-h);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-red);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-red-lg);
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: transparent;
  color: var(--ace-platinum);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 8px;
  border: 2px solid var(--ace-platinum);
  cursor: pointer;
  transition: all var(--transition-smooth);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.btn-outline:hover {
  border-color: var(--ace-red);
  background: rgba(220, 38, 38, 0.1);
  transform: translateY(-2px);
  color: #fff;
}

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

.hero-image-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(220, 38, 38, 0.3);
  box-shadow: var(--shadow-red-lg);
}

.hero-image-wrap img {
  display: block;
  width: 100%;
  max-width: 500px;
  border-radius: 14px;
  filter: brightness(0.9) saturate(1.1);
}

/* ACE Badge/Emblem (CSS-drawn) */
.ace-emblem {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 80px;
  height: 80px;
  background: var(--gradient-red-h);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--ace-gold);
  box-shadow: var(--shadow-red-lg);
  z-index: 2;
  animation: emblemPulse 2.5s ease-in-out infinite;
}

.ace-emblem-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.ace-emblem-text {
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1px;
}

.ace-emblem-star {
  font-size: 0.7rem;
  color: var(--ace-gold);
}

@keyframes emblemPulse {
  0%, 100% { box-shadow: var(--shadow-red-lg); }
  50% { box-shadow: 0 8px 35px rgba(220, 38, 38, 0.6), 0 0 0 12px rgba(220, 38, 38, 0.08); }
}

.hero-float-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: rgba(26, 26, 26, 0.95);
  border: var(--border-red);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(8px);
  z-index: 2;
}

.hero-float-card .card-icon {
  width: 44px;
  height: 44px;
  background: var(--gradient-red-h);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
}

.hero-float-card .card-info .card-num {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.hero-float-card .card-info .card-label {
  font-size: 0.75rem;
  color: var(--ace-platinum-dark);
}

@media (max-width: 968px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    padding: 60px 24px;
  }
  .hero-content { text-align: center; }
  .hero-buttons { justify-content: center; }
  .hero-desc { max-width: 100%; }
  .hero-title { font-size: 2.4rem; }
  .hero-image-wrap img { max-width: 360px; }
  .hero-float-card { left: 10px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  .hero-subtitle { font-size: 1.05rem; }
  .hero-buttons { flex-direction: column; width: 100%; }
  .btn-primary, .btn-outline { justify-content: center; width: 100%; }
}

/* ==========================================
   SECTION 3: FEATURES (Red background cards)
   ========================================== */
.features {
  background: var(--ace-dark-2);
  padding: 100px 24px;
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ace-red), transparent);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-tag {
  display: inline-block;
  color: var(--ace-gold);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  margin: 0 0 12px;
  letter-spacing: 1px;
}

.section-header p {
  color: var(--ace-platinum-dark);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: var(--gradient-card);
  border-radius: 16px;
  padding: 40px 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-red);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-gold);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-red-lg);
}

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

.feature-card-icon {
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 1.5rem;
  color: var(--ace-gold);
  position: relative;
}

/* Gold ACE badge on card */
.feature-card-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #d4a843 0%, #f0c96d 50%, #b8922e 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 900;
  color: #1a1a1a;
  box-shadow: var(--shadow-gold);
  letter-spacing: 1px;
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
}

.feature-card p {
  font-size: 0.95rem;
  color: rgba(229, 231, 235, 0.85);
  margin: 0;
  line-height: 1.8;
}

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-header h2 { font-size: 2rem; }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .features { padding: 60px 20px; }
}

/* ==========================================
   SECTION 4: STATS (Red-gold large digits)
   ========================================== */
.stats {
  background: var(--ace-dark);
  padding: 100px 24px;
  position: relative;
  background-image:
    radial-gradient(ellipse at 30% 50%, rgba(220, 38, 38, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(212, 168, 67, 0.04) 0%, transparent 60%);
}

.stats-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  text-align: center;
  padding: 36px 20px;
  border-radius: 16px;
  background: rgba(26, 26, 26, 0.8);
  border: var(--border-platinum);
  transition: all var(--transition-smooth);
  position: relative;
}

.stat-item:hover {
  border-color: var(--ace-red);
  box-shadow: var(--shadow-red);
  transform: translateY(-4px);
}

.stat-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  background: var(--gradient-gold);
  border-radius: 2px;
}

.stat-icon {
  font-size: 1.8rem;
  color: var(--ace-gold);
  margin-bottom: 12px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(180deg, #ef4444 0%, #d4a843 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-suffix {
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(180deg, #ef4444 0%, #d4a843 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--ace-platinum-dark);
  font-weight: 500;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-number { font-size: 2.4rem; }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   SECTION 5: TESTIMONIALS
   ========================================== */
.testimonials {
  background: var(--ace-dark-2);
  padding: 100px 24px;
  position: relative;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.4), transparent);
}

.testimonials-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  background: rgba(26, 26, 26, 0.9);
  border: var(--border-platinum);
  border-radius: 16px;
  padding: 36px 28px;
  transition: all var(--transition-smooth);
  position: relative;
}

.testimonial-card:hover {
  border-color: var(--ace-red);
  box-shadow: var(--shadow-red);
  transform: translateY(-4px);
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 20px;
  left: 24px;
  font-size: 4rem;
  line-height: 1;
  color: var(--ace-red);
  opacity: 0.15;
  font-family: Georgia, serif;
  pointer-events: none;
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.testimonial-stars i {
  color: var(--ace-gold);
  font-size: 0.9rem;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--ace-platinum);
  line-height: 1.8;
  margin: 0 0 24px;
  position: relative;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: var(--border-platinum);
  padding-top: 18px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-red-h);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  font-weight: 700;
  border: 2px solid var(--ace-gold);
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
}

.testimonial-role {
  color: var(--ace-platinum-dark);
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ==========================================
   SECTION 6: FAQ (Red bar expand animation)
   ========================================== */
.faq {
  background: var(--ace-dark);
  padding: 100px 24px;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

/* Red bar animation */
.faq-red-bar {
  width: 100%;
  height: 4px;
  background: var(--ace-dark-3);
  border-radius: 2px;
  margin-bottom: 48px;
  overflow: hidden;
  position: relative;
}

.faq-red-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 30%;
  background: var(--gradient-red-h);
  border-radius: 2px;
  animation: redBarSlide 3s ease-in-out infinite;
}

@keyframes redBarSlide {
  0% { left: -30%; }
  100% { left: 100%; }
}

.faq-item {
  margin-bottom: 12px;
  border-radius: 12px;
  background: rgba(26, 26, 26, 0.8);
  border: var(--border-platinum);
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.faq-item:hover {
  border-color: rgba(220, 38, 38, 0.3);
}

.faq-item.active {
  border-color: var(--ace-red);
  box-shadow: var(--shadow-red);
}

/* Red expand strip */
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.faq-question::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-red-v);
  transform: scaleY(0);
  transition: transform var(--transition-smooth);
  transform-origin: top;
}

.faq-item.active .faq-question::before {
  transform: scaleY(1);
}

.faq-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 8px;
  background: rgba(220, 38, 38, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-smooth);
  font-size: 0.75rem;
  color: var(--ace-red);
}

.faq-item.active .faq-icon {
  background: var(--ace-red);
  color: #fff;
  transform: rotate(180deg);
}

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

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

.faq-answer-inner {
  padding: 0 24px 24px;
  color: var(--ace-platinum);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* Red bar expand animation on active FAQ */
.faq-item.active .faq-answer {
  border-top: 2px solid var(--ace-red);
  animation: faqRedExpand 0.4s ease-out;
}

@keyframes faqRedExpand {
  0% { border-top-color: transparent; }
  100% { border-top-color: var(--ace-red); }
}

@media (max-width: 480px) {
  .faq-question { padding: 16px 18px; font-size: 0.95rem; }
  .faq-answer-inner { padding: 0 18px 20px; }
}

/* ==========================================
   SECTION 7: CTA BANNER
   ========================================== */
.cta {
  background: var(--gradient-cta);
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.cta::after {
  content: '';
  position: absolute;
  bottom: -40%;
  right: -5%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.cta h2 {
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  margin: 0 0 16px;
  letter-spacing: 1px;
}

.cta p {
  font-size: 1.15rem;
  color: rgba(229, 231, 235, 0.9);
  margin: 0 0 36px;
}

.btn-platinum {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: #fff;
  color: var(--ace-red);
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-smooth);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.btn-platinum:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  background: var(--ace-platinum);
}

@media (max-width: 600px) {
  .cta h2 { font-size: 1.8rem; }
  .cta p { font-size: 1rem; }
}

/* ==========================================
   SECTION 8: FOOTER
   ========================================== */
.footer {
  background: var(--gradient-footer);
  padding: 72px 24px 32px;
  border-top: 3px solid var(--ace-red);
  position: relative;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}

.footer-col h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 20px;
  position: relative;
  display: inline-block;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--ace-red);
  border-radius: 1px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo .ace-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--gradient-red-h);
  border-radius: 8px;
  border: 2px solid var(--ace-gold);
  font-weight: 900;
  font-size: 0.75rem;
  color: var(--ace-gold);
}

.footer-logo-text {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}

.footer-desc {
  color: var(--ace-platinum-dark);
  font-size: 0.9rem;
  line-height: 1.8;
  margin: 0;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  color: var(--ace-platinum-dark);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  display: inline-block;
  position: relative;
}

.footer-col ul a::before {
  content: '\f105';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-right: 8px;
  color: var(--ace-red);
  font-size: 0.75rem;
}

.footer-col ul a:hover {
  color: var(--ace-red);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-contact-item i {
  color: var(--ace-red);
  font-size: 0.9rem;
  margin-top: 3px;
}

.footer-contact-item span {
  color: var(--ace-platinum-dark);
  font-size: 0.9rem;
}

.footer-bottom {
  max-width: 1200px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: var(--border-platinum);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  color: var(--ace-platinum-dark);
  font-size: 0.85rem;
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: var(--ace-platinum-dark);
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: var(--ace-red);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================
   ANIMATIONS
   ========================================== */

/* Fade in up */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Stagger animation for cards */
.stagger-item { opacity: 0; transform: translateY(30px); }
.stagger-item.visible { animation: staggerIn 0.6s ease forwards; }

.stagger-item:nth-child(1).visible { animation-delay: 0s; }
.stagger-item:nth-child(2).visible { animation-delay: 0.15s; }
.stagger-item:nth-child(3).visible { animation-delay: 0.3s; }
.stagger-item:nth-child(4).visible { animation-delay: 0.45s; }

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

/* Count up animation (handled by JS) */

/* Glow pulse for CTA */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(220, 38, 38, 0.3); }
  50% { box-shadow: 0 0 40px rgba(220, 38, 38, 0.6); }
}

/* Red shimmer */
@keyframes redShimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.shimmer-text {
  background: linear-gradient(90deg, #dc2626, #f0c96d, #dc2626);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: redShimmer 3s linear infinite;
}

/* === Utility === */
.container {
  max-width: 1280px;
  margin: 0 auto;
}

.text-center { text-align: center; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
