/* ===== NightMare MC Launcher — Web Theme (derived from NightMare Hub) ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary-red: #ff0040;
  --primary-red-rgb: 255, 0, 64;
  --dark-red: #cc0033;
  --dark-red-rgb: 204, 0, 51;
  --accent-red: #ff1a55;
  --accent-red-rgb: 255, 26, 85;

  --black: #0a0a0a;
  --dark-gray: #1a1a1a;
  --light-gray: #2a2a2a;
  --accent-gray: #3a3a3a;

  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #808080;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 20px rgba(var(--primary-red-rgb), 0.3);
  --shadow-glow-strong: 0 0 30px rgba(var(--primary-red-rgb), 0.5);

  --spacing-md: 2rem;
  --spacing-xl: 6rem;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--black);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--spacing-md); }

/* ===== Background Orbs ===== */
.background-animation {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
}
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.15; animation: float 20s ease-in-out infinite; }
.orb-1 { width: 500px; height: 500px; background: radial-gradient(circle, var(--primary-red), transparent); top: -250px; left: -250px; }
.orb-2 { width: 400px; height: 400px; background: radial-gradient(circle, var(--dark-red), transparent); bottom: -200px; right: -200px; animation-delay: 7s; }
.orb-3 { width: 350px; height: 350px; background: radial-gradient(circle, var(--accent-red), transparent); top: 50%; left: 50%; transform: translate(-50%,-50%); animation-delay: 14s; }
@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  25% { transform: translate(50px,-50px) scale(1.1); }
  50% { transform: translate(-30px,30px) scale(0.9); }
  75% { transform: translate(30px,50px) scale(1.05); }
}

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%;
  background: rgba(10,10,10,0.8); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(var(--primary-red-rgb),0.2);
  z-index: 1000; transition: var(--transition);
}
.navbar.scrolled { background: rgba(10,10,10,0.95); box-shadow: var(--shadow-md); }
.nav-container { max-width: 1400px; margin: 0 auto; padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 0.75rem; font-size: 1.5rem; font-weight: 700; color: var(--text-primary); text-decoration: none; }
.logo img { filter: drop-shadow(0 0 8px var(--primary-red)); transition: var(--transition); }
.logo:hover img { filter: drop-shadow(0 0 16px var(--primary-red)); transform: rotate(5deg); }
.logo-accent { color: var(--primary-red); }
.nav-links { display: flex; list-style: none; gap: 2rem; align-items: center; }
.nav-link { color: var(--text-secondary); text-decoration: none; font-weight: 500; position: relative; transition: var(--transition); }
.nav-link::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--primary-red); transition: var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--text-primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.mobile-menu-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; }

/* ===== Hero ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; padding: var(--spacing-xl) var(--spacing-md); text-align: center;
}
#particle-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-content { position: relative; z-index: 1; max-width: 900px; }
.hero-logo { width: 120px; margin-bottom: 2rem; filter: drop-shadow(0 0 20px rgba(var(--primary-red-rgb),0.5)); animation: bob 4s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  background: rgba(var(--primary-red-rgb),0.08); border: 1px solid rgba(var(--primary-red-rgb),0.25);
  color: var(--accent-red); font-size: 13px; font-weight: 600; margin-bottom: 22px; backdrop-filter: blur(10px);
}
.hero-title { display: flex; flex-direction: column; margin-bottom: 1rem; }
.title-line { font-size: 1.5rem; color: var(--text-secondary); font-weight: 400; }
.title-main { font-size: clamp(3rem, 8vw, 6rem); font-weight: 800; background: linear-gradient(135deg,#fff,var(--primary-red)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; line-height: 1.05; }
.hero-subtitle { font-size: 1.5rem; color: var(--primary-red); margin-bottom: 1rem; font-weight: 600; }
.hero-description { color: var(--text-secondary); max-width: 700px; margin: 0 auto 2rem; font-size: 1.1rem; }
.hero-actions { display: flex; justify-content: center; gap: 1rem; margin-bottom: 4rem; flex-wrap: wrap; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; gap: 0.75rem; border: none; cursor: pointer; text-decoration: none; padding: 0.95rem 1.75rem; border-radius: 14px; font-weight: 600; transition: var(--transition); font-size: 1rem; }
.btn-primary { background: linear-gradient(135deg, var(--primary-red), var(--dark-red)); color: #fff; box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-glow-strong); }
.btn-secondary { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); color: #fff; }
.btn-secondary:hover { background: rgba(255,255,255,0.1); transform: translateY(-3px); }

/* ===== Hero Stats ===== */
.hero-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 1.5rem; }
.stat-item { padding: 1.5rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 18px; backdrop-filter: blur(10px); }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--primary-red); }
.stat-label { color: var(--text-secondary); }

/* ===== Sections ===== */
section { padding: 6rem 0; }
.section-title { text-align: center; margin-bottom: 4rem; font-size: clamp(2rem,5vw,3rem); font-weight: 800; }

/* ===== Features ===== */
.features-section { padding: 100px 20px; background: var(--black); position: relative; }
.features-section::after { content: ""; position: absolute; width: 500px; height: 500px; background: radial-gradient(circle, rgba(var(--primary-red-rgb),0.12), transparent 70%); top: -150px; right: -150px; z-index: 0; }
.features-section * { position: relative; z-index: 1; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 42px; margin-bottom: 15px; color: var(--primary-red); text-shadow: var(--shadow-glow); }
.section-header p { color: var(--text-muted); max-width: 700px; margin: auto; line-height: 1.7; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 30px; }
.feature-card { background: linear-gradient(145deg, rgba(20,20,20,0.95), rgba(10,10,10,0.95)); border: 1px solid rgba(var(--primary-red-rgb),0.15); border-radius: 20px; padding: 35px; transition: var(--transition); position: relative; overflow: hidden; box-shadow: 0 0 10px rgba(var(--primary-red-rgb),0.08), 0 0 30px rgba(0,0,0,0.6); }
.feature-card::before { content: ""; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(var(--primary-red-rgb),0.08), transparent); transition: 0.6s; }
.feature-card:hover::before { left: 100%; }
.feature-card:hover { transform: translateY(-10px) scale(1.02); border-color: rgba(var(--primary-red-rgb),0.6); box-shadow: 0 0 20px rgba(var(--primary-red-rgb),0.3), 0 0 40px rgba(var(--primary-red-rgb),0.15); }
.feature-icon { width: 75px; height: 75px; background: linear-gradient(135deg, var(--primary-red), var(--dark-red)); border-radius: 18px; display: flex; align-items: center; justify-content: center; margin-bottom: 25px; font-size: 30px; color: #fff; box-shadow: var(--shadow-glow); }
.feature-card h3 { margin-bottom: 15px; font-size: 24px; color: var(--text-primary); }
.feature-card p { color: var(--text-secondary); line-height: 1.7; }

/* ===== Screenshots / Preview ===== */
.preview-section { padding: 100px 20px; position: relative; }
.preview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 28px; margin-top: 20px; }
.preview-card { border-radius: 22px; overflow: hidden; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); transition: var(--transition); }
.preview-card:hover { transform: translateY(-8px); border-color: rgba(var(--primary-red-rgb),0.45); box-shadow: var(--shadow-glow); }
.preview-card img { width: 100%; display: block; }
.preview-card .cap { padding: 16px 20px; color: var(--text-secondary); font-size: 0.95rem; }

/* ===== Download ===== */
.download-section { position: relative; overflow: hidden; padding: 160px 24px;
  background: radial-gradient(circle at top left, rgba(var(--primary-red-rgb),0.15), transparent 30%),
              radial-gradient(circle at bottom right, rgba(var(--primary-red-rgb),0.12), transparent 35%),
              linear-gradient(180deg, var(--black) 0%, #080808 40%, #030303 100%); }
.download-bg-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(var(--primary-red-rgb),0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--primary-red-rgb),0.06) 1px, transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(circle, white 20%, transparent 85%); opacity: 0.3; animation: gridMove 16s linear infinite; }
@keyframes gridMove { from { transform: translateY(0); } to { transform: translateY(60px); } }
.download-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.45; }
.download-orb.orb-1 { width: 350px; height: 350px; background: var(--primary-red); top: -120px; left: -100px; }
.download-orb.orb-2 { width: 280px; height: 280px; background: var(--dark-red); bottom: -100px; right: -80px; }
.download-wrapper { position: relative; z-index: 2; max-width: 1300px; margin: auto; }
.download-header { text-align: center; margin-bottom: 90px; }
.download-badge { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; background: rgba(var(--primary-red-rgb),0.08); border: 1px solid rgba(var(--primary-red-rgb),0.25); color: var(--accent-red); font-size: 14px; font-weight: 600; margin-bottom: 28px; backdrop-filter: blur(10px); }
.download-header h2 { font-size: clamp(46px,7vw,76px); font-weight: 900; color: #fff; line-height: 1.05; margin-bottom: 24px; letter-spacing: -2px; }
.download-header h2 span { background: linear-gradient(135deg, #ff4b4b, var(--primary-red), #ff7a7a); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.download-header p { max-width: 780px; margin: auto; color: var(--text-secondary); font-size: 19px; line-height: 1.9; }
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px,1fr)); gap: 40px; }
.download-card { position: relative; overflow: hidden; padding: 40px; border-radius: 32px; background: linear-gradient(145deg, rgba(22,22,22,0.96), rgba(8,8,8,0.98)); border: 1px solid rgba(255,255,255,0.08); backdrop-filter: blur(18px); transition: var(--transition-slow); }
.download-card:hover { transform: translateY(-14px) scale(1.02); border-color: rgba(var(--primary-red-rgb),0.45); box-shadow: 0 20px 60px rgba(var(--primary-red-rgb),0.18), 0 0 80px rgba(var(--primary-red-rgb),0.10); }
.card-glow { position: absolute; width: 220px; height: 220px; background: radial-gradient(circle, rgba(var(--primary-red-rgb),0.25), transparent 70%); top: -80px; right: -80px; opacity: 0; transition: var(--transition-slow); }
.download-card:hover .card-glow { opacity: 1; }
.platform-icon { width: 90px; height: 90px; display: flex; align-items: center; justify-content: center; border-radius: 24px; margin-bottom: 32px; font-size: 42px; color: #fff; }
.platform-icon.windows { background: linear-gradient(135deg, rgba(var(--primary-red-rgb),0.22), rgba(var(--primary-red-rgb),0.08)); box-shadow: 0 0 30px rgba(var(--primary-red-rgb),0.25); }
.platform-icon.linux { background: linear-gradient(135deg, rgba(var(--accent-red-rgb),0.22), rgba(var(--primary-red-rgb),0.08)); box-shadow: 0 0 30px rgba(var(--primary-red-rgb),0.20); }
.platform-icon.apple { background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(var(--primary-red-rgb),0.08)); box-shadow: 0 0 30px rgba(var(--primary-red-rgb),0.18); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.download-card h3 { font-size: 30px; color: #fff; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.status span { width: 8px; height: 8px; border-radius: 50%; }
.status.online { background: rgba(0,255,100,0.08); color: #7dffb0; }
.status.online span { background: #00ff66; }
.status.beta { background: rgba(var(--primary-red-rgb),0.08); color: var(--accent-red); }
.status.beta span { background: var(--primary-red); }
.download-card p { color: var(--text-secondary); line-height: 1.9; margin-bottom: 28px; }
.features { display: flex; flex-direction: column; gap: 14px; margin-bottom: 34px; }
.feature { display: flex; align-items: center; gap: 12px; color: #d6d6d6; font-size: 15px; }
.feature i { color: var(--primary-red); }
.download-footer { display: flex; flex-direction: column; gap: 20px; }
.download-meta { display: flex; align-items: center; gap: 10px; color: var(--accent-red); font-size: 14px; font-weight: 600; }
.download-btn { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; padding: 18px 22px; border-radius: 18px; text-decoration: none; color: #fff; font-weight: 700; font-size: 16px; background: linear-gradient(135deg, var(--primary-red), var(--dark-red)); transition: var(--transition); }
.download-btn:hover { transform: scale(1.03); box-shadow: var(--shadow-glow-strong); }
.btn-bg { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent); transform: translateX(-120%); }
.download-btn:hover .btn-bg { transform: translateX(120%); transition: 0.8s; }

/* ===== Server / How to connect ===== */
.server-box { max-width: 720px; margin: 0 auto; text-align: center; padding: 3rem; background: rgba(var(--dark-red-rgb),0.1); border: 2px solid var(--primary-red); border-radius: 16px; }
.server-box h3 { font-size: 1.6rem; margin-bottom: 1rem; }
.server-ip { display: inline-flex; align-items: center; gap: 14px; margin: 1rem 0; padding: 14px 22px; border-radius: 12px; background: rgba(0,0,0,0.5); border: 1px solid rgba(var(--primary-red-rgb),0.4); font-family: 'Orbitron', monospace; font-size: 1.3rem; font-weight: 700; color: #fff; }
.copy-btn { background: var(--primary-red); border: none; color: #fff; padding: 8px 14px; border-radius: 8px; cursor: pointer; font-weight: 600; transition: var(--transition); }
.copy-btn:hover { background: var(--dark-red); transform: translateY(-2px); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 24px; margin-top: 40px; }
.step { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 16px; padding: 28px; text-align: left; }
.step .num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--primary-red), var(--dark-red)); font-weight: 800; margin-bottom: 14px; }
.step h4 { margin-bottom: 8px; }
.step p { color: var(--text-secondary); font-size: 0.95rem; }

/* ===== Footer ===== */
.footer { border-top: 1px solid rgba(255,255,255,0.06); padding: 4rem 0 2rem; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 3rem; margin-bottom: 2rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a, .footer-brand p { color: var(--text-secondary); text-decoration: none; }
.social-links { display: flex; gap: 1rem; }
.social-links a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,0.04); color: #fff; transition: var(--transition); }
.social-links a:hover { background: var(--primary-red); transform: translateY(-4px); }
.footer-bottom { text-align: center; color: var(--text-muted); border-top: 1px solid rgba(255,255,255,0.06); padding-top: 2rem; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav-links { position: fixed; top: 72px; right: -100%; width: 280px; height: calc(100vh - 72px); background: rgba(10,10,10,0.98); flex-direction: column; padding: 2rem; transition: var(--transition); }
  .nav-links.active { right: 0; }
  .mobile-menu-toggle { display: block; }
}
@media (max-width: 640px) {
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .hero-stats { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .download-grid { grid-template-columns: 1fr; } }
