/* ==========================================================================
   BLACK TREE HOSTING - OPTICORE & DIGITALPRO DESIGN SYSTEM
   Deep void black, neon magenta/violet into electric sapphire blue,
   futuristic geometric typography, ghost outline text, and dual pill buttons.
   ========================================================================== */

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

:root {
  /* Pitch Black with Deep Cosmic Violet Undertone */
  --bg-primary: #04010a;
  --bg-secondary: #080312;
  --bg-card: rgba(16, 10, 28, 0.75);
  --bg-card-hover: rgba(24, 15, 42, 0.9);

  /* Neon Magenta, Electric Violet & Sapphire Blue */
  --neon-pink: #ec4899;
  --neon-magenta: #d946ef;
  --neon-purple: #a855f7;
  --neon-blue: #3b82f6;
  --neon-cyan: #38bdf8;
  --neon-gradient: linear-gradient(90deg, #38bdf8 0%, #a855f7 50%, #ec4899 100%);
  --neon-gradient-reverse: linear-gradient(90deg, #ec4899 0%, #a855f7 50%, #38bdf8 100%);

  /* Text & Borders */
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(168, 85, 247, 0.4);
  --border-pink: rgba(236, 72, 153, 0.4);

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-tech: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-display);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: #04010a;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3b82f6, #a855f7, #ec4899);
  border-radius: 9999px;
}

/* Minimal Custom Cursor */
#cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 5px;
  height: 5px;
  background-color: #ffffff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

#cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(236, 72, 153, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out, width 0.3s ease, height 0.3s ease;
  box-shadow: 0 0 15px rgba(217, 70, 239, 0.3);
}

body.cursor-hover #cursor-ring {
  width: 54px;
  height: 54px;
  border-color: rgba(56, 189, 248, 0.8);
  background: rgba(168, 85, 247, 0.08);
}

@media (max-width: 1024px) {
  #cursor-dot, #cursor-ring { display: none; }
}

.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }
}

/* ──────────────────────────────────────────────────────────
   LUNARCLOUD SYSTEM BOOT PRELOADER
   ────────────────────────────────────────────────────────── */
#system-boot-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #04010a;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem;
  user-select: none;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#system-boot-preloader.dismissed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.preloader-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.preloader-counter {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 12vw, 9.5rem);
  font-weight: 900;
  background: var(--neon-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  letter-spacing: -0.05em;
}

.preloader-status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-top: 1.5rem;
}

.preloader-bottom-bar {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* ──────────────────────────────────────────────────────────
   OPTICORE FLOATING GLASS NAVBAR
   ────────────────────────────────────────────────────────── */
.navbar-wrapper {
  position: fixed;
  top: 1.5rem;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 2rem;
  pointer-events: none;
}

.navbar-glass-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  background: rgba(15, 10, 28, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 0.5rem 0.75rem 0.5rem 1.25rem;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(168, 85, 247, 0.15);
}

.nav-left-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
  padding: 0;
  transition: all var(--transition-fast);
}

.nav-hamburger-btn:hover {
  background: rgba(236, 72, 153, 0.15);
  border-color: var(--neon-pink);
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.35);
}

.nav-hamburger-btn span {
  display: block;
  width: 16px;
  height: 1.5px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: #ffffff;
}

.nav-brand-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(236, 72, 153, 0.6));
}

.nav-brand-title {
  font-family: var(--font-tech);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffffff;
}

.nav-brand-title span {
  color: var(--neon-pink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-link {
  text-decoration: none;
  font-family: var(--font-tech);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.05em;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 2px;
  background: var(--neon-pink);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--neon-pink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-sfx-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
  cursor: pointer;
  letter-spacing: 0.1em;
  transition: all var(--transition-fast);
}

.nav-sfx-btn:hover {
  color: #ffffff;
  border-color: rgba(236, 72, 153, 0.5);
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.25);
}

/* ──────────────────────────────────────────────────────────
   DISTINCTIVE OPTICORE DUAL PILL BUTTON
   Capsule container with embedded white circular arrow icon
   ────────────────────────────────────────────────────────── */
.btn-opticore {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  padding: 0.35rem 0.35rem 0.35rem 1.45rem;
  color: #ffffff;
  font-family: var(--font-tech);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: all var(--transition-fast);
}

.btn-opticore:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(217, 70, 239, 0.6);
  box-shadow: 0 0 25px rgba(217, 70, 239, 0.35);
  transform: translateY(-2px);
}

.btn-opticore .btn-icon-circle {
  width: 32px;
  height: 32px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #04010a;
  transition: transform var(--transition-fast);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.btn-opticore:hover .btn-icon-circle {
  transform: rotate(45deg);
  background: var(--neon-pink);
  color: #ffffff;
  box-shadow: 0 0 15px var(--neon-pink);
}

/* Giant Ghost Outline Background Text */
.ghost-outline-text {
  font-family: var(--font-tech);
  font-size: clamp(4rem, 15vw, 13rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.07);
  user-select: none;
  pointer-events: none;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .navbar-wrapper { padding: 0 1rem; }
}

/* Mobile Nav Drawer Overlay */
#mobile-nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(4, 1, 10, 0.95);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-nav-drawer.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mobile-drawer-close:hover {
  background: var(--neon-pink);
  box-shadow: 0 0 15px var(--neon-pink);
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color var(--transition-fast);
}

.mobile-nav-link:hover {
  color: var(--neon-pink);
}

