/* =====================================================
   AI Money Hub — Main Stylesheet
   ===================================================== */

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

:root {
  --primary: #7c3aed;
  --primary-dark: #5b21b6;
  --primary-light: #a78bfa;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --danger: #ef4444;
  --success: #10b981;
  --dark: #0f0f1a;
  --dark2: #1a1a2e;
  --dark3: #16213e;
  --card-bg: #1e1e35;
  --card-border: rgba(124,58,237,0.25);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.35);
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark2); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ===== CONTAINER ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: linear-gradient(135deg, #7c3aed, #f59e0b, #ec4899);
  -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;
  background: rgba(15,15,26,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(124,58,237,0.2);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(15,15,26,0.98);
  box-shadow: 0 2px 20px rgba(124,58,237,0.3);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}

.nav-logo i {
  color: var(--primary-light);
  font-size: 1.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(124,58,237,0.15);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.4rem;
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 1.5rem 60px;
  background: radial-gradient(ellipse at 20% 50%, rgba(124,58,237,0.18) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(245,158,11,0.12) 0%, transparent 50%),
              radial-gradient(ellipse at 60% 80%, rgba(236,72,153,0.1) 0%, transparent 50%),
              var(--dark);
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-content {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124,58,237,0.2);
  border: 1px solid rgba(124,58,237,0.4);
  color: var(--primary-light);
  padding: 0.45rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  width: fit-content;
  animation: pulse-glow 2.5s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124,58,237,0.3); }
  50% { box-shadow: 0 0 20px 4px rgba(124,58,237,0.4); }
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, #7c3aed, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Floating Cards (right side) */
.hero-visual {
  position: relative;
  height: 420px;
}

.floating-cards {
  position: relative;
  width: 100%;
  height: 100%;
}

.float-card {
  position: absolute;
  background: rgba(30,30,53,0.9);
  border: 1px solid rgba(124,58,237,0.35);
  border-radius: 14px;
  padding: 1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  animation: float 4s ease-in-out infinite;
}

.float-card i {
  font-size: 1.3rem;
}

.fc1 { top: 5%; left: 5%;  animation-delay: 0s;   } .fc1 i { color: #ff6b35; }
.fc2 { top: 20%; right: 0%; animation-delay: 0.7s; } .fc2 i { color: #f7971e; }
.fc3 { top: 42%; left: 10%; animation-delay: 1.4s; } .fc3 i { color: #38ef7d; }
.fc4 { top: 58%; right: 5%; animation-delay: 0.4s; } .fc4 i { color: #f59e0b; }
.fc5 { top: 74%; left: 0%;  animation-delay: 1.0s; } .fc5 i { color: #a29bfe; }
.fc6 { bottom: 2%; right: 10%; animation-delay: 1.8s; } .fc6 i { color: #f093fb; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* =====================================================
   TICKER
   ===================================================== */
.ticker-wrap {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--primary-dark));
  overflow: hidden;
  padding: 0.75rem 0;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  gap: 3rem;
  animation: ticker 30s linear infinite;
}

.ticker-track span {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.6rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
  justify-content: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: var(--white);
  border-color: rgba(124,58,237,0.5);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #6d28d9, #5b21b6);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124,58,237,0.45);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: var(--white);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(239,68,68,0.45);
}

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

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

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

.btn-white:hover {
  background: #f0e6ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,255,255,0.3);
}

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

.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
  margin-top: auto;
}

/* =====================================================
   SECTIONS
   ===================================================== */
.section {
  padding: 90px 0;
}

.section-alt {
  background: linear-gradient(180deg, #13131f 0%, #0f0f1a 100%);
}

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

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.35);
  color: var(--primary-light);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

/* =====================================================
   PRODUCT CARDS GRID
   ===================================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

/* =====================================================
   PRODUCT CARD
   ===================================================== */
.product-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124,58,237,0.55);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(124,58,237,0.2);
}

.product-card.featured {
  border-color: rgba(124,58,237,0.5);
  background: linear-gradient(145deg, #1e1e35 0%, #201828 100%);
}

.product-card.featured::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7c3aed, #f59e0b, #ec4899);
}

/* Card Badge */
.card-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(124,58,237,0.2);
  border: 1px solid rgba(124,58,237,0.4);
  color: var(--primary-light);
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  max-width: 130px;
  text-align: center;
  line-height: 1.4;
}

.badge-hot { background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.4); color: #fca5a5; }
.badge-new { background: rgba(16,185,129,0.15); border-color: rgba(16,185,129,0.4); color: #6ee7b7; }

/* Card Icon */
.card-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-icon i {
  font-size: 1.5rem;
  color: var(--white);
}

/* Card Title */
.card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.3;
  padding-right: 70px;
}

/* Card Desc */
.card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex-grow: 1;
}

/* Card Features */
.card-features {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.card-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text);
  font-weight: 500;
}

.card-features li i {
  color: var(--success);
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* Price Tag */
.price-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.6rem 0;
}

.price-old {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 500;
}

.price-new {
  font-size: 1.2rem;
  font-weight: 900;
  color: #fbbf24;
  background: rgba(251,191,36,0.1);
  border: 1px solid rgba(251,191,36,0.3);
  padding: 0.2rem 0.7rem;
  border-radius: 8px;
}

/* =====================================================
   TRUST SECTION
   ===================================================== */
.trust-section {
  background: linear-gradient(135deg, var(--dark2), var(--dark3));
  border-top: 1px solid rgba(124,58,237,0.2);
  border-bottom: 1px solid rgba(124,58,237,0.2);
  padding: 3.5rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.trust-item i {
  font-size: 2rem;
  color: var(--primary-light);
}

.trust-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
}

.trust-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta-section {
  padding: 80px 0;
  background: radial-gradient(ellipse at center, rgba(124,58,237,0.25) 0%, transparent 65%),
              linear-gradient(135deg, #0f0f1a 0%, #1a0a2e 50%, #0f0f1a 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: rgba(124,58,237,0.1);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: #080812;
  border-top: 1px solid rgba(124,58,237,0.2);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 1rem 0 1.5rem;
}

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

.footer-social a {
  width: 38px; height: 38px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-links-group h5 {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
}

.footer-links-group ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links-group a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-links-group a:hover {
  color: var(--primary-light);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.disclaimer {
  margin-top: 0.5rem;
  font-size: 0.75rem !important;
  color: #475569 !important;
}

/* =====================================================
   BACK TO TOP
   ===================================================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px; height: 46px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(124,58,237,0.5);
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(124,58,237,0.6);
}

/* =====================================================
   PARTICLE DOTS
   ===================================================== */
.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(124,58,237,0.4);
  animation: float-particle linear infinite;
  pointer-events: none;
}

@keyframes float-particle {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100px) scale(1); opacity: 0; }
}

/* =====================================================
   MOBILE MENU
   ===================================================== */
@media (max-width: 900px) {
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(10,10,20,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.25rem;
    border-bottom: 1px solid rgba(124,58,237,0.2);
    transform: translateY(-110%);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    z-index: 999;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-subtitle { max-width: 100%; }
  .hero-badge { margin: 0 auto 1.5rem; }
  .hero-stats { justify-content: center; }
  .hero-cta { justify-content: center; }

  .hero-visual {
    height: 260px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

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

  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }

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

  .hero-visual {
    display: none;
  }

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

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

@media (max-width: 480px) {
  .hero { padding: 90px 1rem 40px; }
  .hero-title { font-size: 2rem; }
  .hero-stats { gap: 1rem; }
  .stat-number { font-size: 1.5rem; }
  .btn { padding: 0.65rem 1.2rem; font-size: 0.9rem; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .back-to-top { bottom: 1.25rem; right: 1.25rem; }
}

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

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

/* Stagger children */
.cards-grid .product-card:nth-child(1) { transition-delay: 0.05s; }
.cards-grid .product-card:nth-child(2) { transition-delay: 0.1s; }
.cards-grid .product-card:nth-child(3) { transition-delay: 0.15s; }
.cards-grid .product-card:nth-child(4) { transition-delay: 0.2s; }
.cards-grid .product-card:nth-child(5) { transition-delay: 0.25s; }
.cards-grid .product-card:nth-child(6) { transition-delay: 0.3s; }
.cards-grid .product-card:nth-child(7) { transition-delay: 0.35s; }
.cards-grid .product-card:nth-child(8) { transition-delay: 0.4s; }
