:root {
  --accent-purple: #7c3aed;
  --accent-blue: #2563eb;
  --accent-pink: #ec4899;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  
  --bg-purple: var(--accent-purple);
  --bg-blue: var(--accent-blue);
  --bg-pink: var(--accent-pink);
  
  --glass-bg: rgba(15, 15, 30, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.15);
  
  --text-primary: rgba(255, 255, 255, 0.95);
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-muted: rgba(255, 255, 255, 0.35);
  
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --radius-full: 999px;
}

/* ====================== */
/* CUSTOM SCROLLBAR */
/* ====================== */

::-webkit-scrollbar {
  width: 18px;
  height: 18px;
}

::-webkit-scrollbar-track {
  background: linear-gradient(135deg, #2a0f5f, #1a5cff, #ff2d75);
  border-radius: 12px;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.15);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
  border-radius: 12px;
  border: 3px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 3px 10px rgba(255,45,117,0.4),
              inset 0 2px 0 rgba(255, 255, 255, 0.4),
              inset 0 -2px 0 rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #ffffff, rgba(255,255,255,0.9));
  box-shadow: 0 4px 15px rgba(26,92,255,0.6),
              inset 0 2px 0 rgba(255, 255, 255, 0.5),
              inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

/* Firefox Support */
* {
  scrollbar-width: auto;
  scrollbar-color: var(--bg-pink) var(--bg-purple);
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-y: scroll;
  scrollbar-gutter: stable both-edges;
  background: #050510;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  margin: 0;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(37, 99, 235, 0.1) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ====================== */
/* FIXED HEADER ANIMATIONS */
/* ====================== */

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 25, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: backdrop-filter 0.3s ease, background 0.3s ease;
  padding: 5px 0;
}

header.scrolled {
  background: rgba(10, 10, 25, 0.95);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  height: 48px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(90deg, #fff, var(--bg-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.5px;
}

.nav-center {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.nav-center a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 10px 16px 18px 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  position: relative;
}

.nav-center a i {
  font-size: 1.1rem;
  color: var(--bg-pink);
  transition: all 0.3s ease;
}

/* ONLY UNDERLINE ANIMATION - NO BACKGROUND */
.nav-center a::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--bg-pink);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  opacity: 0;
  box-shadow: 0 0 10px var(--bg-pink);
}

.nav-center a:hover::after {
  width: 60%;
  opacity: 1;
}

.nav-center a:hover {
  background: transparent;
}

.nav-center a:hover i {
  transform: scale(1.1);
  color: var(--bg-pink);
}

/* NO UNDERLINE WHEN ACTIVE/SELECTED */
.nav-center a.active::after {
  width: 0;
  opacity: 0;
}

.nav-center a.active {
  background: transparent;
}

.nav-center a.active i {
  color: white;
}

#installContainer {
  display: none;
}

#installBtn {
  background: linear-gradient(90deg, var(--bg-blue), var(--bg-pink));
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
  box-shadow: 0 0 15px rgba(255,45,117,0.3);
}

#installBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255,45,117,0.6);
}

#installBtn i {
  color: white;
}

/* ====================== */
/* BUTTONS */
/* ====================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 30px;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  background: linear-gradient(90deg, var(--bg-blue), var(--bg-pink));
  color: white;
  box-shadow: 0 0 20px rgba(255,45,117,0.4);
  font-size: 1rem;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(255,45,117,0.8);
}

.btn i {
  color: white;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.9rem;
}

.mt-4 {
  margin-top: 16px;
}

/* ====================== */
/* FLASH MESSAGES */
/* ====================== */

.flash-messages {
  max-width: 600px;
  margin: 20px auto;
  padding: 0 20px;
}

.flash-message {
  padding: 15px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 15px;
  animation: slideDown 0.3s ease;
  backdrop-filter: blur(12px);
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
}

.flash-message.success {
  border-left: 4px solid #00c851;
}

.flash-message.error {
  border-left: 4px solid #ff4444;
}

.flash-message.warning {
  border-left: 4px solid #ffbb33;
}

.flash-message.info {
  border-left: 4px solid #33b5e5;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ====================== */
/* HERO SECTION */
/* ====================== */

.hero {
  text-align: center;
  padding: 80px 20px;
  color: white;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 30px;
  opacity: 0.8;
}

/* ====================== */
/* FEATURE CARDS */
/* ====================== */

.feature-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 30px rgba(26,92,255,0.5);
  border-color: rgba(255,255,255,0.2);
}

.feature-icon {
  font-size: 3rem;
  color: white;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
  color: var(--bg-pink);
}

.feature-card h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
  color: white;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.features-heading {
    position: relative;
    top: -30px;
    margin-bottom: 0;
}

/* ====================== */
/* FOOTER */
/* ====================== */

footer {
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 30px 0 20px;
  margin-top: 40px;
}

.footer-bottom {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ====================== */
/* RESPONSIVE */
/* ====================== */

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 15px;
  }
  
  .nav-center {
    justify-content: center;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .nav-center {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .nav-center a {
    padding: 8px 12px 16px 12px;
    font-size: 0.95rem;
  }
}