/* ===== Premium ambient layer ===== */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  mix-blend-mode: screen;
}

/* ===== Layout z-index ===== */
.navbar { z-index: 1000; }
.floating-discord, .back-to-top { z-index: 999; }
section, footer { position: relative; z-index: 1; }

/* ===== Navbar premium ===== */
.navbar {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(5, 8, 10, 0.88);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom-color: rgba(56, 189, 248, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(56, 189, 248, 0.05);
}

/* ===== Hero premium ===== */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, rgba(56, 189, 248, 0.015) 50%);
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  animation: floatOrb 12s ease-in-out infinite;
}

.glow-orb-1 {
  width: 600px;
  height: 600px;
  background: rgba(56, 189, 248, 0.15);
  top: -15%;
  left: 15%;
}

.glow-orb-2 {
  width: 500px;
  height: 500px;
  background: rgba(99, 102, 241, 0.1);
  bottom: 5%;
  right: 5%;
  animation-delay: -4s;
}

.glow-orb-3 {
  width: 350px;
  height: 350px;
  background: rgba(14, 165, 233, 0.08);
  top: 40%;
  left: 55%;
  animation-delay: -7s;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.8; }
  33% { transform: translate(40px, -30px) scale(1.08); opacity: 1; }
  66% { transform: translate(-30px, 25px) scale(0.95); opacity: 0.9; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  margin-bottom: 28px;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: badgePulse 3s ease-in-out infinite;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 12px #22c55e;
  animation: dotBlink 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 30px rgba(56, 189, 248, 0.1); }
  50% { box-shadow: 0 0 45px rgba(56, 189, 248, 0.2); }
}

@keyframes dotBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeUp 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.hero h1 {
  letter-spacing: -0.03em;
}

.hero h1 em {
  font-style: italic;
  background: linear-gradient(135deg, #38bdf8, #7dd3fc, #38bdf8);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerText 4s linear infinite, textGlow 3s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(56, 189, 248, 0.4));
}

@keyframes shimmerText {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

@keyframes textGlow {
  0%, 100% { filter: drop-shadow(0 0 25px rgba(56, 189, 248, 0.35)); }
  50% { filter: drop-shadow(0 0 45px rgba(56, 189, 248, 0.6)); }
}

/* ===== Section headers ===== */
.section-label {
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  opacity: 0.9;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 0 auto 40px;
  border-radius: 2px;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

/* ===== Glass cards ===== */
.glass-card {
  background: linear-gradient(135deg, rgba(17, 21, 28, 0.9), rgba(17, 21, 28, 0.6));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.3), transparent);
}

.feature-card,
.setup-card,
.pricing-card,
.stats-bar,
.faq-item,
.video-card {
  background: linear-gradient(160deg, rgba(17, 21, 28, 0.95), rgba(13, 17, 23, 0.85));
  backdrop-filter: blur(10px);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.5s ease,
              border-color 0.4s ease;
}

.feature-card::after,
.pricing-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0), rgba(56, 189, 248, 0.15), rgba(56, 189, 248, 0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.feature-card:hover::after,
.pricing-card:hover::after {
  opacity: 1;
}

.feature-card:hover,
.setup-card:hover,
.video-card:hover,
.stats-bar:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 40px rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.25);
}

/* ===== Buttons premium ===== */
.btn-primary {
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.35), 0 4px 15px rgba(56, 189, 248, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.btn-primary:hover {
  box-shadow: 0 0 50px rgba(56, 189, 248, 0.55), 0 8px 30px rgba(56, 189, 248, 0.3);
  transform: translateY(-3px) scale(1.02);
}

.btn-discord {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-discord:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(88, 101, 242, 0.25);
  border-color: rgba(88, 101, 242, 0.4);
}

.btn-pricing.featured-btn {
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.3);
}

/* ===== Featured pricing ring ===== */
.pricing-card.featured {
  position: relative;
  animation: cardGlow 4s ease-in-out infinite;
}

.pricing-card.featured::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius) + 2px);
  background: conic-gradient(from var(--ring-angle, 0deg), #38bdf8, #6366f1, #38bdf8, #0ea5e9, #38bdf8);
  z-index: -1;
  animation: spinRing 6s linear infinite;
  opacity: 0.6;
}

.pricing-card.featured::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(17, 21, 28, 0.98), rgba(13, 17, 23, 0.95));
  z-index: -1;
}

@property --ring-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes spinRing {
  to { --ring-angle: 360deg; }
}

@keyframes cardGlow {
  0%, 100% { box-shadow: 0 0 40px rgba(56, 189, 248, 0.15); }
  50% { box-shadow: 0 0 70px rgba(56, 189, 248, 0.28); }
}

.pricing-card.featured:hover {
  transform: translateY(-10px) scale(1.02);
}

/* ===== Stats glow ===== */
.stat-item {
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: scale(1.05);
}

.stat-value {
  transition: all 0.3s ease;
  font-variant-numeric: tabular-nums;
}

.stat-item:hover .stat-value {
  color: var(--accent);
  text-shadow: 0 0 30px rgba(56, 189, 248, 0.5);
}

.stat-icon {
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.4));
}

.accent {
  background: linear-gradient(135deg, #38bdf8, #7dd3fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.3));
}

/* ===== Feature icons ===== */
.feature-icon {
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .feature-icon {
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.45);
  transform: scale(1.12) rotate(-3deg);
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1),
              transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ===== Nav ===== */
.nav-links a {
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 10px var(--accent);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
}

.nav-links a:hover {
  color: var(--text);
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

.nav-links a:hover::after {
  width: 100%;
}

.logo-img {
  transition: all 0.4s ease;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.1);
}

.nav-logo:hover .logo-img {
  box-shadow: 0 0 25px rgba(251, 191, 36, 0.5), 0 0 0 2px rgba(251, 191, 36, 0.3);
  transform: scale(1.08);
}

/* ===== FAQ ===== */
.faq-item {
  transition: all 0.35s ease;
}

.faq-item:hover {
  border-color: rgba(56, 189, 248, 0.2);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.05);
}

.faq-item.active {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.1);
}

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

/* ===== Floating buttons ===== */
.floating-discord {
  animation: discordPulse 3s ease-in-out infinite;
}

@keyframes discordPulse {
  0%, 100% { box-shadow: 0 4px 25px rgba(88, 101, 242, 0.45); transform: scale(1); }
  50% { box-shadow: 0 8px 45px rgba(88, 101, 242, 0.7), 0 0 30px rgba(88, 101, 242, 0.3); transform: scale(1.05); }
}

.back-to-top.visible {
  animation: fadeUp 0.4s ease;
}

/* ===== Video cards ===== */
.video-card {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.video-card:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(56, 189, 248, 0.12);
}

/* ===== Tilt on cards ===== */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
