/* Nexus Specific Styles */

/* =====================================================
   SCI-FI CUSTOM CURSOR (mirrors main site style)
   ===================================================== */
*, *::before, *::after { cursor: none !important; }

#cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 5px;
  height: 5px;
  background: #00f5ff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(0,245,255,.95), 0 0 20px rgba(0,245,255,.35);
  transition: width .18s ease, height .18s ease, background .2s ease, box-shadow .2s ease;
  will-change: left, top;
}

#cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 30px;
  height: 30px;
  border: 1.5px solid rgba(0, 245, 255, 0.45);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999998;
  transform: translate(-50%, -50%);
  transition: width .32s ease, height .32s ease, border-color .32s ease, opacity .3s ease;
  will-change: left, top;
}

#cursor-dot.c-hover  { width: 7px; height: 7px; background: #fff; box-shadow: 0 0 10px rgba(0,245,255,1), 0 0 28px rgba(0,245,255,.5); }
#cursor-ring.c-hover { width: 44px; height: 44px; border-color: rgba(0,245,255,0.22); border-width: 1px; }
#cursor-dot.c-click  { width: 3px; height: 3px; transition: width .06s, height .06s; }
#cursor-ring.c-click { width: 18px; height: 18px; border-color: rgba(0,245,255,0.9); border-width: 2px; transition: width .06s, height .06s, border-width .06s; }
#cursor-dot.c-hidden, #cursor-ring.c-hidden { opacity: 0; }

@media (hover: none) and (pointer: coarse) {
  *, *::before, *::after { cursor: auto !important; }
  #cursor-dot, #cursor-ring { display: none; }
}

.nexus-body {
  background: var(--black);
  color: var(--white);
  min-height: 100vh;
  overflow: hidden; /* Prevent scrolling, it's a full screen experience */
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Base Canvas for Animations */
#nexus-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Overlay gradient for depth */
.nexus-body::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(5,5,8,0.8) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Navigation */
.nexus-nav {
  position: relative;
  z-index: 10;
  padding: 1.5rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.back-link {
  color: var(--dim);
  text-decoration: none;
  font-size: 0.85rem;
  font-family: var(--fd);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--tr);
}

.back-link:hover {
  color: var(--cyan);
  text-shadow: var(--glow-c);
}

/* Main Views */
.nexus-view {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
  pointer-events: none;
  position: absolute;
  inset: 0;
  top: 80px; /* Offset for nav */
}

.nexus-view.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.nexus-view.hidden {
  opacity: 0;
  transform: translateY(20px);
  visibility: hidden;
}

.content-wrapper {
  text-align: center;
  max-width: 600px;
  padding: 3rem;
  background: rgba(10, 10, 20, 0.4);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 245, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 245, 255, 0.05);
}

/* Typography & Elements */
.nexus-badge {
  display: inline-block;
  font-family: var(--fd);
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  padding: 0.3rem 1rem;
  border: 1px solid rgba(0, 245, 255, 0.2);
  border-radius: 50px;
  background: rgba(0, 245, 255, 0.05);
}

.nexus-title {
  font-family: var(--fd);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.1;
  letter-spacing: 2px;
}

.nexus-subtitle {
  font-size: 1.05rem;
  color: var(--dim);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.nexus-desc {
  font-size: 0.9rem;
  color: var(--dim);
  line-height: 1.6;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 1.5rem;
}

.nexus-btn {
  font-size: 1rem;
  padding: 1.2rem 3rem;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.2);
}

.nexus-btn:hover {
  box-shadow: 0 0 40px rgba(0, 245, 255, 0.5);
  transform: translateY(-3px);
}

.btn-icon {
  font-size: 1.3rem;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.wallet-error {
  margin-top: 1.5rem;
  color: #ff4040;
  font-size: 0.85rem;
  background: rgba(255, 64, 64, 0.1);
  border: 1px solid rgba(255, 64, 64, 0.3);
  padding: 0.8rem;
  border-radius: 6px;
  transition: opacity 0.3s ease;
}

.wallet-error.hidden {
  opacity: 0;
  pointer-events: none;
  display: none;
}

.highlight-address {
  font-family: monospace;
  color: var(--gold);
  background: rgba(255, 200, 55, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 1px;
}

/* Coming Soon Specifics */
#view-coming-soon .content-wrapper {
  border-color: rgba(255, 0, 229, 0.15);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 0, 229, 0.05);
}

#view-coming-soon .nexus-badge {
  color: var(--magenta);
  border-color: rgba(255, 0, 229, 0.3);
  background: rgba(255, 0, 229, 0.05);
}

.pulse-ring-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--magenta);
  animation: pulse-ring-anim 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring-anim {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

@media(max-width: 768px) {
  .nexus-nav { padding: 1.2rem 1.5rem; }
  .nexus-title { font-size: 2.2rem; }
  .content-wrapper { padding: 2rem 1.5rem; margin: 0 1.5rem; }
}
