/* ==========================================================================
   BEST MULTI PAYMENT - Ultra Premium Fintech Design System
   ========================================================================== */

/* --- Variables & Theme --- */
:root {
  /* Colors */
  --bg-dark: #f4f6f9;
  --bg-darker: #ffffff;
  --bg-panel: rgba(255, 255, 255, 0.8);
  --bg-panel-hover: rgba(255, 255, 255, 1);
  
  --neon-cyan: #00bfff;
  --neon-blue: #0055ff;
  --neon-purple: #8a2be2;
  
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;

  /* Typography */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Gradients */
  --grad-primary: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
  --grad-glass: linear-gradient(135deg, rgba(0,0,0,0.03), rgba(0,0,0,0.01));
  --grad-border: linear-gradient(135deg, rgba(0,0,0,0.1), rgba(0,0,0,0.0));
  
  /* Shadows & Glows */
  --glow-sm: 0 0 10px rgba(0, 85, 255, 0.15);
  --glow-md: 0 0 20px rgba(0, 85, 255, 0.2), 0 0 40px rgba(0, 85, 255, 0.1);
  --glow-lg: 0 0 30px rgba(0, 85, 255, 0.3), 0 0 60px rgba(0, 85, 255, 0.2);
  --shadow-drop: 0 10px 30px rgba(0,0,0,0.08);
  
  /* Borders */
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --border-radius-pill: 9999px;

  /* Transition */
  --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset & Base --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Background Noise Texture */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img, svg {
  max-width: 100%;
  display: block;
}

/* --- Layout Utilities --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.grid {
  display: grid;
  gap: 30px;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

h1 { font-size: clamp(3rem, 5vw, 5rem); margin-bottom: 24px; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 20px; }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); margin-bottom: 16px; }

p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 24px;
}

.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.text-center { text-align: center; }

/* --- Components --- */

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
  transition: var(--transition-smooth);
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 15px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--grad-primary);
  border-radius: 8px;
  box-shadow: var(--glow-sm);
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--neon-cyan);
  transition: var(--transition-fast);
  box-shadow: var(--glow-sm);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--border-radius-pill);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-bounce);
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-md);
}
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(0,0,0,0.1);
  backdrop-filter: blur(5px);
}
.btn-outline:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.1), var(--glow-sm);
}
.btn-nav {
  padding: 10px 24px;
  font-size: 0.9rem;
  margin-left: 10px;
}
@media (max-width: 768px) {
  .btn-nav {
    margin-left: 0;
    margin-top: 10px;
    width: 100%;
  }
}
.magnetic-wrap {
  display: inline-block;
}

/* Glass & Cards */
.glass-panel {
  background: var(--bg-panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-drop);
  transition: var(--transition-smooth);
}
.glass-panel:hover {
  background: var(--bg-panel-hover);
  border-color: rgba(0, 240, 255, 0.2);
  transform: translateY(-5px);
}

/* 3D Tilt Wrapper */
.tilt-card {
  transform-style: preserve-3d;
  transform: perspective(1000px);
}
.tilt-card-inner {
  transform: translateZ(30px);
}

/* Neon Separator */
.neon-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
  opacity: 0.3;
  margin: 40px 0;
}

/* Animated Grid Background */
.bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 50px 50px;
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
  animation: gridMove 20s linear infinite;
  z-index: 0;
  pointer-events: none;
}
.bg-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 80%);
}

/* Scroll Progress */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--grad-primary);
  width: 0%;
  z-index: 1001;
  box-shadow: var(--glow-sm);
}

/* Scroll Reveal Hidden States */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}
.hero-badges {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--border-radius-pill);
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: var(--neon-cyan);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 24px;
  box-shadow: inset 0 0 10px rgba(0,240,255,0.05);
}
.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--neon-cyan);
  border-radius: 50%;
  box-shadow: var(--glow-sm);
  animation: pulse 2s infinite;
}
.hero .btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
}

/* Floating Elements (Hero 3D) */
.hero-float-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  perspective: 1000px;
}
.float-card {
  position: absolute;
  width: 250px;
  height: 150px;
  border-radius: var(--border-radius-md);
  background: var(--bg-panel);
  border: 1px solid rgba(0,0,0,0.05);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  transform-style: preserve-3d;
}
.float-card.fc-1 { top: 20%; left: 10%; animation: float 6s ease-in-out infinite; }
.float-card.fc-2 { bottom: 20%; right: 10%; animation: float 8s ease-in-out infinite 1s; }
.float-card.fc-3 { top: 30%; right: 15%; width: 180px; height: 100px; animation: float 7s ease-in-out infinite 2s; }
.fc-header { display: flex; justify-content: space-between; align-items: center; }
.fc-icon { width: 30px; height: 30px; border-radius: 50%; background: rgba(0,240,255,0.2); }
.fc-line { width: 60px; height: 4px; background: rgba(0,0,0,0.1); border-radius: 2px; }
.fc-amount { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); }

/* Light Orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}
.orb-1 { width: 400px; height: 400px; background: rgba(0, 240, 255, 0.15); top: -100px; left: -100px; }
.orb-2 { width: 500px; height: 500px; background: rgba(0, 102, 255, 0.15); bottom: -200px; right: -100px; }

/* --- Footer --- */
.footer {
  padding: 60px 0 30px;
  border-top: 1px solid rgba(0,0,0,0.05);
  background: var(--bg-darker);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo { font-size: 1.5rem; font-weight: 800; color: var(--text-primary); margin-bottom: 20px; }
.footer-desc { color: var(--text-secondary); max-width: 300px; }
.footer h4 { color: var(--text-primary); margin-bottom: 20px; font-size: 1.1rem; }
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer a { color: var(--text-secondary); transition: var(--transition-fast); }
.footer a:hover { color: var(--neon-cyan); }
.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(0,0,0,0.05);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- Animations --- */
@keyframes float {
  0% { transform: translateY(0) rotateX(10deg) rotateY(-10deg); }
  50% { transform: translateY(-20px) rotateX(15deg) rotateY(-5deg); }
  100% { transform: translateY(0) rotateX(10deg) rotateY(-10deg); }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(0, 240, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); }
}
@keyframes gridMove {
  0% { background-position: 0 0; }
  100% { background-position: 0 50px; }
}
@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1002;
}
.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--text-primary);
  border-radius: 3px;
  transition: var(--transition-fast);
}
.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* --- Responsive --- */
@media (max-width: 992px) {
  h1 { font-size: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .float-card { display: none; } /* Reduce motion/load on smaller screens */
  .bg-grid { transform: perspective(500px) rotateX(45deg) translateY(-50px) translateZ(-100px); }
}
@media (max-width: 768px) {
  .mobile-menu-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-panel-hover);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 1001;
  }
  .nav-links.active {
    opacity: 1;
    visibility: visible;
  }
  .nav-link { font-size: 1.5rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer { padding: 40px 0 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
  .footer-grid > div:first-child { grid-column: span 2; margin-bottom: 10px; }
  .footer-logo img { height: 80px !important; }
  .footer h4 { margin-bottom: 15px; font-size: 1rem; }
  .footer ul { gap: 8px; }
  .footer a, .footer-desc { font-size: 0.9rem; }
  .footer-bottom { padding-top: 20px; font-size: 0.8rem; }
}

/* Floating Telegram Widget */
.floating-telegram {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #0088cc, #00aaff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 136, 204, 0.5);
  z-index: 9999;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  text-decoration: none;
}

.floating-telegram::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(0, 136, 204, 0.5);
  z-index: -1;
  animation: pulse-telegram 2s infinite;
}

.floating-telegram:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 15px 30px rgba(0, 136, 204, 0.7);
}

.floating-telegram svg {
  fill: white;
  width: 30px;
  height: 30px;
  margin-right: 2px;
  margin-top: 2px;
}

@keyframes pulse-telegram {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

@media (max-width: 768px) {
  .floating-telegram {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
  .floating-telegram svg {
    width: 24px;
    height: 24px;
  }
}
