/* =============================================
   DEMON HUB — Global Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Orbitron:wght@400;700;900&family=Exo+2:wght@300;400;600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --blue-bright:   #00aaff;
  --blue-mid:      #0066cc;
  --blue-deep:     #003580;
  --blue-glow:     #1a8fff55;
  --neon-cyan:     #00e5ff;
  --silver:        #c8d8f0;
  --silver-dim:    #7a90b0;
  --white:         #ffffff;
  --bg-dark:       #020509;
  --bg-panel:      #060d18;
  --bg-card:       #0a1526;
  --border-glow:   #1155aa66;
  --accent-gold:   #ffd700;
  --font-display:  'Orbitron', sans-serif;
  --font-body:     'Rajdhani', sans-serif;
  --font-ui:       'Exo 2', sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-dark);
  color: var(--silver);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  cursor: default;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--blue-mid); border-radius: 3px; }

/* ---- Background Stars/Particles ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, #003580 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 80% 80%, #001a4d 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ---- Nav ---- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 70px;
  background: rgba(2, 5, 9, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glow);
  box-shadow: 0 0 30px #0066cc22;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img {
  height: 46px;
  width: 46px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--blue-mid);
  box-shadow: 0 0 14px var(--blue-mid);
}

.nav-logo span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  color: var(--white);
  text-shadow: 0 0 12px var(--blue-bright);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0.45rem 1.1rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver-dim);
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s, text-shadow 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%; right: 50%;
  height: 2px;
  background: var(--blue-bright);
  border-radius: 2px;
  transition: left 0.25s, right 0.25s;
  box-shadow: 0 0 8px var(--blue-bright);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue-bright);
  background: rgba(0, 170, 255, 0.07);
  text-shadow: 0 0 10px var(--blue-bright);
}

.nav-links a:hover::after,
.nav-links a.active::after { left: 20%; right: 20%; }

.nav-discord {
  background: var(--blue-mid) !important;
  color: var(--white) !important;
  border-radius: 8px !important;
  padding: 0.45rem 1.2rem !important;
  box-shadow: 0 0 16px #0066cc88;
  transition: background 0.2s, box-shadow 0.2s !important;
}

.nav-discord:hover {
  background: var(--blue-bright) !important;
  box-shadow: 0 0 26px var(--blue-bright) !important;
}

/* ---- Page Wrapper ---- */
.page {
  position: relative;
  z-index: 1;
  padding-top: 70px;
  min-height: 100vh;
}

/* ---- Section Hero ---- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 2rem 4rem;
  overflow: hidden;
}

.hero-banner {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: saturate(1.4);
  z-index: 0;
}

.hero > * { position: relative; z-index: 1; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow:
    0 0 20px var(--blue-bright),
    0 0 50px var(--blue-mid),
    0 2px 0 rgba(0,0,0,0.8);
  animation: fadeDown 0.7s ease both;
}

.hero-subtitle {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--silver-dim);
  margin-top: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: fadeDown 0.9s ease both;
}

.glow-line {
  width: 160px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue-bright), transparent);
  border-radius: 2px;
  margin: 1.5rem auto;
  box-shadow: 0 0 14px var(--blue-bright);
  animation: fadeDown 1s ease both;
}

/* ---- Button ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.7rem 2rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-bright));
  color: var(--white);
  box-shadow: 0 0 20px var(--blue-mid);
}

.btn-primary:hover {
  box-shadow: 0 0 34px var(--blue-bright);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--blue-bright);
  border: 1px solid var(--blue-mid);
  box-shadow: inset 0 0 10px #00aaff11;
}

.btn-outline:hover {
  background: rgba(0, 170, 255, 0.1);
  border-color: var(--blue-bright);
  box-shadow: 0 0 16px var(--blue-mid);
  transform: translateY(-2px);
}

/* ---- Section ---- */
.section {
  padding: 4rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 0 14px var(--blue-bright);
  margin-bottom: 0.5rem;
}

.section-sub {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--silver-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

/* ---- Card ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 14px;
  padding: 1.8rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

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

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 100, 200, 0.25);
  border-color: var(--blue-mid);
}

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

/* ---- Grid ---- */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }

/* ---- Footer ---- */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border-glow);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--silver-dim);
  letter-spacing: 0.1em;
}

footer a {
  color: var(--blue-bright);
  text-decoration: none;
}

footer a:hover { text-shadow: 0 0 8px var(--blue-bright); }

/* ---- Badge/Tag ---- */
.badge {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 20px;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.badge-blue   { background: rgba(0, 170, 255, 0.15); color: var(--blue-bright); border: 1px solid #00aaff44; }
.badge-gold   { background: rgba(255, 215, 0, 0.12); color: var(--accent-gold); border: 1px solid #ffd70044; }
.badge-red    { background: rgba(255, 60, 60, 0.12); color: #ff5555; border: 1px solid #ff333344; }
.badge-purple { background: rgba(160, 60, 255, 0.12); color: #cc88ff; border: 1px solid #aa44ff44; }

/* ---- Price Tag ---- */
.price {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--blue-bright);
  text-shadow: 0 0 12px var(--blue-bright);
}

.price sup { font-size: 0.9rem; vertical-align: super; margin-right: 2px; }
.price-period { font-family: var(--font-ui); font-size: 0.8rem; color: var(--silver-dim); margin-top: -4px; }

/* ---- Divider ---- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
  margin: 0.8rem 0;
}

/* ---- Animations ---- */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 10px var(--blue-mid); }
  50%       { box-shadow: 0 0 30px var(--blue-bright), 0 0 60px var(--blue-mid); }
}

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

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

.anim-fade-up { animation: fadeUp 0.6s ease both; }
.anim-float   { animation: float 4s ease-in-out infinite; }
.anim-pulse   { animation: pulse-glow 2.5s ease-in-out infinite; }

/* ---- Feature List ---- */
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--silver);
}

.feature-list li::before {
  content: '✦';
  color: var(--blue-bright);
  font-size: 0.65rem;
  flex-shrink: 0;
  text-shadow: 0 0 8px var(--blue-bright);
}

/* ---- Owner Card ---- */
.owner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 2.5rem 2rem;
}

.owner-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid var(--blue-bright);
  box-shadow: 0 0 20px var(--blue-mid), 0 0 40px #0066cc44;
  background: var(--bg-panel);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--blue-bright);
  text-shadow: 0 0 12px var(--blue-bright);
  animation: pulse-glow 3s ease-in-out infinite;
}

.owner-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.06em;
}

.owner-role {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-bright);
}

/* ---- Tier Card ---- */
.tier-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
}

.tier-icon {
  font-size: 2.2rem;
  filter: drop-shadow(0 0 8px currentColor);
}

.tier-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}

/* ---- Glow Text ---- */
.glow-blue   { color: var(--blue-bright); text-shadow: 0 0 10px var(--blue-bright); }
.glow-gold   { color: var(--accent-gold); text-shadow: 0 0 10px var(--accent-gold); }
.glow-purple { color: #cc88ff; text-shadow: 0 0 10px #cc88ff; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  nav { padding: 0 1.2rem; }
  .nav-links { display: none; }
  .hero { padding: 3rem 1.2rem; }
  .section { padding: 2.5rem 1.2rem; }
}

/* ---- NSFW Blur Overlay ---- */
.nsfw-blur {
  filter: blur(14px);
  transition: filter 0.4s;
  border-radius: 10px;
  pointer-events: none;
  user-select: none;
}

.nsfw-card.revealed .nsfw-blur { filter: none; pointer-events: auto; }

.nsfw-reveal-btn {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 2;
  background: rgba(2, 5, 9, 0.6);
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--silver-dim);
  transition: background 0.3s;
}

.nsfw-reveal-btn:hover { background: rgba(2, 5, 9, 0.4); }
.nsfw-card.revealed .nsfw-reveal-btn { display: none; }

.lock-icon { font-size: 2rem; }

/* ---- Nav Mobile Hamburger ---- */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue-bright);
  border-radius: 2px;
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .nav-hamburger { display: flex; }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: rgba(2, 5, 9, 0.97);
    border-bottom: 1px solid var(--border-glow);
    padding: 1rem;
    gap: 0.2rem;
    transform: translateY(-120%);
    transition: transform 0.35s ease;
    z-index: 999;
  }

  .nav-links.open { transform: translateY(0); }
}

/* ---- Shimmer Effect ---- */
.shimmer-text {
  background: linear-gradient(90deg, var(--blue-bright) 0%, #fff 40%, var(--blue-bright) 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

/* ---- Stats Bar ---- */
.stats-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem;
  background: var(--bg-panel);
  border-top: 1px solid var(--border-glow);
  border-bottom: 1px solid var(--border-glow);
}

.stat-item {
  text-align: center;
  font-family: var(--font-display);
}

.stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue-bright);
  text-shadow: 0 0 12px var(--blue-bright);
}

.stat-label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--silver-dim);
  margin-top: 2px;
}
