/* ==========================================
   MAHSUP.XYZ — Dark Neon Red Theme
   ========================================== */

:root {
  --neon: #ff2d55;
  --neon-glow: rgba(255, 45, 85, 0.35);
  --neon-soft: rgba(255, 45, 85, 0.08);
  --bg-dark: #0a0a0f;
  --bg-card: #111118;
  --bg-card-hover: #16161f;
  --bg-surface: #0e0e15;
  --text-primary: #f1f1f5;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 45, 85, 0.2);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

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

@keyframes pulse-neon {
  0%, 100% { box-shadow: 0 0 8px var(--neon-glow); }
  50% { box-shadow: 0 0 20px var(--neon-glow), 0 0 40px rgba(255,45,85,0.15); }
}

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

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.gradient-text {
  background: linear-gradient(135deg, #ff2d55, #ff6b8a, #ff2d55);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease infinite;
}

/* ==========================================
   NAVIGATION
   ========================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s ease;
  background: transparent;
}

.nav.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff2d55, #ff6b8a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 15px;
  color: #fff;
  box-shadow: 0 4px 15px var(--neon-glow);
}

.logo-text {
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s;
  letter-spacing: 0.2px;
}

.nav-links a:hover {
  color: var(--neon);
}

.nav-cta {
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--neon);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  box-shadow: 0 2px 12px var(--neon-glow);
}

.nav-cta:hover {
  box-shadow: 0 4px 20px var(--neon-glow);
  transform: translateY(-1px);
}

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

.mobile-toggle span {
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

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

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

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

.mobile-menu {
  position: fixed;
  top: 66px;
  left: 0;
  right: 0;
  background: rgba(10, 10, 15, 0.97);
  backdrop-filter: blur(20px);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  display: flex;
  flex-direction: column;
}

.mobile-menu.open {
  max-height: 300px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}

.mobile-menu a {
  padding: 12px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.mobile-menu .mobile-cta {
  margin-top: 8px;
  padding: 12px;
  text-align: center;
  background: var(--neon);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  border: none;
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .mobile-toggle { display: flex; }
}

/* ==========================================
   HERO
   ========================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,45,85,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 50px;
  background: var(--neon-soft);
  border: 1px solid rgba(255,45,85,0.15);
  font-size: 12px;
  font-weight: 700;
  color: var(--neon);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 28px;
  animation: fadeInUp 0.6s ease forwards;
}

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

.hero-title {
  font-size: 60px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.7;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--neon);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: all 0.25s;
  box-shadow: 0 4px 20px var(--neon-glow);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  box-shadow: 0 6px 30px var(--neon-glow);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: all 0.25s;
  cursor: pointer;
}

.btn-ghost:hover {
  border-color: var(--border-hover);
  color: var(--neon);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  animation: fadeInUp 0.6s ease 0.4s both;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ==========================================
   PRODUCTS
   ========================================== */

.products {
  padding: 100px 0;
  background: var(--bg-surface);
  position: relative;
}

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

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: var(--neon);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.product-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

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

.product-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--neon-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--neon);
}

.product-icon i {
  width: 24px;
  height: 24px;
}

.product-card h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.product-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-tags span {
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  color: var(--neon);
  background: var(--neon-soft);
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================
   WHY US
   ========================================== */

.why {
  padding: 100px 0;
  background: var(--bg-dark);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.why-card {
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all 0.3s;
}

.why-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.why-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--neon-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon);
  margin-bottom: 16px;
}

.why-icon i {
  width: 20px;
  height: 20px;
}

.why-card h4 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 8px;
}

.why-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================
   CONTACT
   ========================================== */

.contact {
  padding: 100px 0;
  background: var(--bg-surface);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.25s;
}

.contact-card:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--neon-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon);
  flex-shrink: 0;
}

.contact-card-icon.telegram {
  background: rgba(0, 136, 204, 0.1);
  color: #0088cc;
}

.contact-card-icon.web {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}

.contact-card-icon i {
  width: 20px;
  height: 20px;
}

.contact-card-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-card-value {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-top: 2px;
}

.contact-cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,45,85,0.08) 0%, transparent 65%);
  pointer-events: none;
}

.contact-cta-box h3 {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 10px;
  position: relative;
}

.contact-cta-box p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  position: relative;
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
  padding: 24px 0;
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

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

.footer-links a {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  transition: color 0.2s;
}

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

/* ==========================================
   PARTICLES BG
   ========================================== */

.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,45,85,0.15) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 70%, rgba(255,255,255,0.04) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 40%, rgba(255,45,85,0.1) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 80%, rgba(255,255,255,0.03) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 10%, rgba(255,45,85,0.08) 0%, transparent 100%),
    radial-gradient(1px 1px at 15% 90%, rgba(255,255,255,0.03) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 50%, rgba(255,45,85,0.06) 0%, transparent 100%);
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 992px) {
  .hero-title {
    font-size: 42px;
  }

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

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 24px;
  }

  .stat-num {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .hero-title {
    font-size: 32px;
    letter-spacing: -1px;
  }

  .hero-desc {
    font-size: 14px;
  }

  .hero-stats {
    gap: 16px;
  }

  .stat-num {
    font-size: 20px;
  }

  .stat-label {
    font-size: 10px;
  }

  .stat-divider {
    height: 28px;
  }

  .section-title {
    font-size: 26px;
  }

  .products,
  .why,
  .contact {
    padding: 60px 0;
  }

  .products-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
    justify-content: center;
    max-width: 320px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 26px;
  }

  .hero-badge {
    font-size: 10px;
    padding: 6px 14px;
  }

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

/* All sections relative for z-index */
section, nav, footer {
  position: relative;
  z-index: 1;
}
