/* ============================================================
   ACE Elite Poker Club - Indigo + Cyan Theme
   TYPE 5: PHP Multi-Page with Shared Header/Footer
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --indigo: #4338ca;
  --indigo-dark: #312e81;
  --indigo-light: #6366f1;
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --cyan-light: #22d3ee;
  --bg-dark: #0a0a1a;
  --bg-card: #111133;
  --bg-card-alt: #151540;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-subtle: rgba(99,102,241,0.15);
  --border-glow: rgba(6,182,212,0.4);
  --gradient-indigo-cyan: linear-gradient(135deg, #4338ca, #06b6d4);
  --gradient-card-border: linear-gradient(135deg, #4338ca, #06b6d4, #4338ca);
  --gradient-hero: linear-gradient(160deg, #0a0a1a 0%, #1a1040 40%, #0a2030 100%);
  --shadow-glow: 0 0 30px rgba(67,56,202,0.3);
  --shadow-cyan: 0 0 20px rgba(6,182,212,0.25);
  --font-heading: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
}

.gradient-text {
  background: var(--gradient-indigo-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.35s ease;
  padding: 1rem 0;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10,10,26,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.6rem 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.navbar .logo-img {
  height: 42px;
  width: auto;
  transition: height 0.3s ease;
}

.navbar.scrolled .logo-img {
  height: 36px;
}

.nav-link {
  position: relative;
  color: var(--text-secondary) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s ease;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  color: #fff !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient-indigo-cyan);
  border-radius: 1px;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 70%;
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

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

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

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  overflow: hidden;
  padding: 6rem 0 4rem;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(67,56,202,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(6,182,212,0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(67,56,202,0.08) 0%, transparent 50%);
  animation: heroBgPulse 8s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes heroBgPulse {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-2%, -2%) scale(1.05); }
}

.hero-section .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(67,56,202,0.15);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 50px;
  padding: 0.4rem 1.2rem;
  font-size: 0.875rem;
  color: var(--cyan-light);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-section .hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.8s 0.15s ease forwards;
  opacity: 0;
}

.hero-section .hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
  animation: fadeInUp 0.8s 0.3s ease forwards;
  opacity: 0;
}

.hero-section .hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 0.8s 0.45s ease forwards;
  opacity: 0;
}

.hero-floating-cards {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.floating-card {
  position: absolute;
  width: 120px;
  height: 170px;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-glow);
}

.floating-card:nth-child(1) {
  transform: rotate(-8deg) translateX(-40px);
  z-index: 1;
}

.floating-card:nth-child(2) {
  transform: rotate(5deg) translateX(40px);
  z-index: 2;
}

.floating-card .card-inner {
  padding: 1rem;
  text-align: center;
  font-size: 2rem;
  color: var(--indigo-light);
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient-indigo-cyan);
  color: #fff;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(67,56,202,0.4);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(67,56,202,0.55);
  color: #fff;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: #fff;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  border: 2px solid rgba(99,102,241,0.5);
  cursor: pointer;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-outline:hover {
  border-color: var(--cyan);
  background: rgba(6,182,212,0.1);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(6,182,212,0.2);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 0.65rem 1.4rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-download:hover {
  border-color: var(--cyan);
  box-shadow: var(--shadow-cyan);
  color: #fff;
  transform: translateY(-2px);
}

.btn-download i {
  color: var(--cyan);
}

/* --- Section Styles --- */
.section {
  padding: 5rem 0;
  position: relative;
}

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

.section-header .section-tag {
  display: inline-block;
  background: rgba(67,56,202,0.15);
  color: var(--cyan-light);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  border: 1px solid rgba(99,102,241,0.25);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.section-dark {
  background: #060618;
}

/* --- Feature Cards --- */
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-indigo-cyan);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(99,102,241,0.4);
  box-shadow: 0 20px 50px rgba(67,56,202,0.2);
}

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

/* Diamond Icon */
.diamond-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: rgba(67,56,202,0.1);
  border: 1px solid rgba(99,102,241,0.3);
  transform: rotate(45deg);
  border-radius: 16px;
  margin-bottom: 2rem;
  position: relative;
  transition: all 0.4s ease;
}

.diamond-icon::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 17px;
  background: var(--gradient-indigo-cyan);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.feature-card:hover .diamond-icon {
  border-color: var(--cyan);
  box-shadow: 0 0 30px rgba(6,182,212,0.3);
}

.feature-card:hover .diamond-icon::after {
  opacity: 0.15;
}

.diamond-icon i {
  transform: rotate(-45deg);
  font-size: 1.8rem;
  color: var(--cyan);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Stats Section --- */
.stats-section {
  background: var(--gradient-hero);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
}

.stat-item .stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  background: var(--gradient-indigo-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.3rem;
}

.stat-item .stat-label {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

/* --- Testimonials --- */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  transition: all 0.4s ease;
  height: 100%;
}

.testimonial-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--gradient-indigo-cyan);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99,102,241,0.4);
  box-shadow: 0 15px 40px rgba(67,56,202,0.15);
}

.testimonial-card:hover::after {
  opacity: 1;
}

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

.testimonial-card .quote {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
  font-style: italic;
}

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

.testimonial-card .author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-indigo-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-card .author-info .name {
  font-weight: 600;
  font-size: 0.95rem;
}

.testimonial-card .author-info .role {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* --- FAQ Accordion --- */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: all 0.35s ease;
}

.faq-item.active {
  border-color: rgba(99,102,241,0.5);
  box-shadow: 0 8px 30px rgba(67,56,202,0.15);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s ease;
}

.faq-question:hover {
  color: var(--cyan-light);
}

.faq-question .faq-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(99,102,241,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all 0.35s ease;
  color: var(--cyan);
}

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

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

.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.8;
}

/* Gradient expand: when active, reveal with a subtle gradient wipe */
.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-item.active .faq-question {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(67,56,202,0.06) 30%,
    rgba(6,182,212,0.04) 70%,
    transparent 100%
  );
}

/* --- CTA Banner --- */
.cta-section {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

.cta-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 3.5rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(67,56,202,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(6,182,212,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.cta-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: var(--gradient-indigo-cyan);
  opacity: 0.6;
}

.cta-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.cta-banner p {
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
}

.cta-banner .cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* --- Footer --- */
.site-footer {
  background: #060612;
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0 2rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.site-footer .footer-brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.site-footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer .footer-links li {
  margin-bottom: 0.5rem;
}

.site-footer .footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.site-footer .footer-links a:hover {
  color: var(--cyan-light);
}

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

.site-footer .footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(99,102,241,0.1);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.site-footer .footer-social a:hover {
  background: var(--indigo);
  color: #fff;
  border-color: var(--indigo);
  transform: translateY(-2px);
}

.site-footer .footer-divider {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 2rem 0 1.5rem;
}

.site-footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer .footer-bottom span {
  font-size: 0.85rem;
}

/* --- Contact Page Specific --- */
.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all 0.35s ease;
  height: 100%;
}

.contact-info-card:hover {
  border-color: rgba(99,102,241,0.5);
  box-shadow: 0 8px 25px rgba(67,56,202,0.15);
  transform: translateY(-4px);
}

.contact-info-card .contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(67,56,202,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-size: 1.2rem;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}

.contact-info-card h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.contact-info-card p,
.contact-info-card a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-decoration: none;
}

.contact-info-card a:hover {
  color: var(--cyan-light);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0.85rem 1.2rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--indigo-light);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

/* --- Download Page Specific --- */
.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.4s ease;
  height: 100%;
  position: relative;
}

.download-card.featured {
  border-color: rgba(99,102,241,0.5);
  box-shadow: 0 10px 40px rgba(67,56,202,0.2);
}

.download-card.featured::before {
  content: '推荐';
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--gradient-indigo-cyan);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
}

.download-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99,102,241,0.5);
  box-shadow: 0 20px 45px rgba(67,56,202,0.2);
}

.download-card .platform-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--cyan);
}

.download-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.download-card .version {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.download-card .features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  text-align: left;
  display: inline-block;
}

.download-card .features-list li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 0.3rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.download-card .features-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-size: 0.75rem;
  top: 0.4rem;
}

/* --- About Page Specific --- */
.about-image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.about-image-wrapper img {
  width: 100%;
  border-radius: 20px;
  display: block;
}

.about-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  pointer-events: none;
}

/* Timeline-style about points */
.about-point {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.about-point:last-child {
  border-bottom: none;
}

.about-point .point-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(67,56,202,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-size: 1.1rem;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}

.about-point h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.about-point p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

/* --- Scroll to top --- */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--indigo);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.35s ease;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(67,56,202,0.4);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--indigo-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(67,56,202,0.5);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Particles / floating orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
}

.orb-indigo {
  background: rgba(67,56,202,0.2);
  width: 400px;
  height: 400px;
}

.orb-cyan {
  background: rgba(6,182,212,0.15);
  width: 300px;
  height: 300px;
}

/* --- Responsive --- */
@media (max-width: 991px) {
  .hero-floating-cards {
    display: none;
  }

  .section {
    padding: 4rem 0;
  }
}

@media (max-width: 767px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10,10,26,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 0.5rem;
    transition: right 0.4s ease;
    border-left: 1px solid var(--border-subtle);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-link {
    display: block;
    padding: 0.75rem 0 !important;
    font-size: 1.05rem;
  }

  .hero-section {
    text-align: center;
    padding: 5rem 1rem 3rem;
  }

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

  .site-footer .footer-social {
    justify-content: center;
  }

  .cta-banner {
    padding: 2.5rem 1.5rem;
  }
}

@media (max-width: 575px) {
  .hero-section .hero-title {
    font-size: 2rem;
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
    justify-content: center;
  }

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