/* ============================================================
   Uniplex Host — Custom Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --primary:   #6366f1;   /* indigo-500  */
  --primary-d: #4f46e5;   /* indigo-600  */
  --primary-l: #a5b4fc;   /* indigo-300  */
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--slate-900);
  color: var(--slate-200);
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ─────────────────────────────────────────── */
.font-display { font-family: 'Space Grotesk', sans-serif; }

/* ── Minecraft mob icons ─────────────────────────────────── */
.mc-mob-icon {
  width: 56px;
  height: 56px;
  image-rendering: pixelated;
}

/* ── Gradient text ──────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #a5b4fc 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-blue {
  background: linear-gradient(135deg, #a5b4fc 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Glow ───────────────────────────────────────────────── */
.glow-emerald    { box-shadow: 0 0 30px rgba(99,102,241,0.20), 0 0 60px rgba(99,102,241,0.08); }
.glow-emerald-sm { box-shadow: 0 0 15px rgba(99,102,241,0.15); }

/* ── Background ─────────────────────────────────────────── */
.hero-bg {
  background-color: var(--slate-900);
  background-image:
    radial-gradient(ellipse 70% 45% at 50% -10%, rgba(99, 102, 241, 0.14) 0%, transparent 65%),
    radial-gradient(ellipse 40% 30% at 90% 15%,  rgba(99, 102, 241, 0.06) 0%, transparent 55%);
}

.grid-bg {
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: rgba(30, 41, 59, 0.80);
  border: 1px solid rgba(148, 163, 184, 0.10);
  border-radius: 16px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(8px);
}

.card:hover {
  border-color: rgba(99, 102, 241, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(99, 102, 241, 0.10);
}

.card-featured {
  background: rgba(99, 102, 241, 0.07);
  border-color: rgba(99, 102, 241, 0.35);
  position: relative;
}

.card-featured::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--primary);
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  background: var(--primary-d);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: rgba(30, 41, 59, 0.9);
  color: var(--slate-200);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(51, 65, 85, 0.9);
  border-color: rgba(99, 102, 241, 0.40);
  color: var(--primary-l);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: transparent;
  color: var(--primary-l);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 10px;
  border: 1.5px solid rgba(99, 102, 241, 0.50);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  background: rgba(99, 102, 241, 0.10);
  border-color: var(--primary);
}

/* ── Navigation ─────────────────────────────────────────── */
.nav-link {
  color: var(--slate-400);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-l);
  background: rgba(99, 102, 241, 0.08);
}

.navbar {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ── Dropdown ───────────────────────────────────────────── */
.dropdown { position: relative; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 12px;
  padding: 8px;
  padding-top: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  backdrop-filter: blur(16px);
  z-index: 200;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover { display: block; }

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--slate-400);
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s;
}

.dropdown-item:hover {
  background: rgba(99, 102, 241, 0.10);
  color: var(--primary-l);
}

.dropdown-item .icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

/* ── Badges ─────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-violet, .badge-purple {
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary-l);
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.badge-cyan {
  background: rgba(99, 102, 241, 0.08);
  color: #c7d2fe;
  border: 1px solid rgba(99, 102, 241, 0.18);
}

.badge-green {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-orange {
  background: rgba(251, 146, 60, 0.15);
  color: #fb923c;
  border: 1px solid rgba(251, 146, 60, 0.25);
}

.badge-blue {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

/* ── Feature list ───────────────────────────────────────── */
.feature-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--slate-400);
  margin-bottom: 8px;
}

.feature-check::before {
  content: '✓';
  color: var(--primary-l);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Stat cards ─────────────────────────────────────────── */
.stat-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: border-color 0.2s;
}

.stat-card:hover { border-color: rgba(99, 102, 241, 0.25); }

/* ── Price display ──────────────────────────────────────── */
.price-amount {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  line-height: 1;
}

.price-period {
  font-size: 0.875rem;
  color: var(--slate-400);
  font-weight: 400;
}

/* ── Section divider ────────────────────────────────────── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.12), transparent);
  margin: 0;
}

/* ── FAQ ────────────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--slate-200);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  gap: 16px;
}

.faq-question:hover { color: var(--primary-l); }

.faq-icon {
  width: 24px;
  height: 24px;
  border: 1.5px solid rgba(148, 163, 184, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-400);
  flex-shrink: 0;
  transition: all 0.2s;
}

.faq-item.open .faq-icon {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--primary);
  color: var(--primary-l);
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding-bottom: 20px;
  color: var(--slate-400);
  font-size: 0.875rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer { display: block; }

/* ── Mobile nav ─────────────────────────────────────────── */
.mobile-menu {
  display: none;
  background: rgba(15, 23, 42, 0.98);
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  padding: 16px;
}

.mobile-menu.open { display: block; }

/* ── Animations ─────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.20); }
  50%       { box-shadow: 0 0 40px rgba(99, 102, 241, 0.35); }
}

.animate-fade-up    { animation: fadeInUp 0.6s ease forwards; }
.animate-float      { animation: float 4s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 3s ease-in-out infinite; }

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 390px) {
  .desktop-nav { display: none; }
  .mobile-toggle { display: flex; }
  .price-amount { font-size: 2rem; }
  .notice-bar { display: none; }
}

@media (min-width: 391px) {
  .mobile-toggle { display: none; }
}

/* ── Footer ─────────────────────────────────────────────── */
.footer-link {
  color: var(--slate-400);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
  display: inline-block;
  margin-bottom: 8px;
}

.footer-link:hover { color: var(--primary-l); }

/* ── Notice bar ─────────────────────────────────────────── */
.notice-bar {
  background: rgba(99, 102, 241, 0.07);
  border-bottom: 1px solid rgba(99, 102, 241, 0.15);
  text-align: center;
  padding: 10px 16px;
  font-size: 0.8rem;
  color: var(--slate-400);
}

.notice-bar strong { color: #a5b4fc; }
.notice-bar a { color: #c7d2fe; text-decoration: none; font-weight: 600; }
.notice-bar a:hover { color: white; }

/* ── Popular ribbon ─────────────────────────────────────── */
.popular-ribbon {
  position: absolute;
  top: 16px;
  right: -1px;
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 14px 4px 10px;
  border-radius: 4px 0 0 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: -2px 2px 8px rgba(0,0,0,0.3);
}

/* ── Minecraft card accent ───────────────────────────────── */
.mc-card { position: relative; overflow: hidden; }
.mc-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), transparent);
  pointer-events: none;
}

/* ── Configurator ────────────────────────────────────────── */
.configurator-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(148, 163, 184, 0.15);
  outline: none;
  cursor: pointer;
}

.configurator-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
  transition: box-shadow 0.2s;
}

.configurator-slider::-webkit-slider-thumb:hover {
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.7);
}

.configurator-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
}

.cycle-btn {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.12);
  color: #64748b;
  cursor: pointer;
}

.cycle-btn:hover {
  border-color: rgba(99, 102, 241, 0.40);
  color: var(--primary-l);
}

.cycle-btn.active-cycle {
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(99, 102, 241, 0.45);
  color: var(--primary-l);
}

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--slate-900); }
::-webkit-scrollbar-thumb { background: var(--slate-700); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--slate-600); }
