/* ===============================
   XPrivFi – FULL SITE STYLES
   Premium Desktop + Fullscreen Mobile Navigation
   CLICK-TO-OPEN Moonshot Dropdown
   =============================== */

/* ===== GLOBAL RESET ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

.nav-toggle {
  touch-action: manipulation !important;
}

body {
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at top, #101935 0%, #050711 60%, #02030a 100%);
  color: #dbe4ff;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Subtle grid overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: -2;
}

/* Particles container */
#particles {
  position: fixed;
  inset: 0;
  z-index: -1;
}

/* ===========================
   NAVIGATION – DESKTOP
   =========================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(3, 7, 24, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(88, 104, 220, 0.4);
}

#particles {
  pointer-events: none !important;
}

.logo {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* Desktop horizontal nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
  color: #c9d3ff;
  padding: 6px 8px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}



.nav-links a:hover {
  background: radial-gradient(circle at top, rgba(96, 165, 250, 0.18), rgba(15, 23, 42, 0.98));
  color: #e5ecff;
  box-shadow: 0 0 16px rgba(96, 165, 250, 0.4);
}

.contact-link {
  border: 1px solid rgba(129, 140, 248, 0.7);
  background: radial-gradient(circle at top, rgba(79, 70, 229, 0.35), rgba(15, 23, 42, 0.98));
}

/* Hamburger (hidden on desktop) */
.nav-toggle {
  display: none;          /* desktop hidden – mobile.css turns it on */
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.hamburger-icon {
  width: 30px;
  height: 30px;
  display: block;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #e5ecff;
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hide mobile nav on desktop (Chrome Mac fix) */

/* ===========================
   MOONSHOT ICON + DROPDOWN
   =========================== */

.nav-moonshot {
  position: relative;
  margin-left: 10px;
  z-index: 6000; /* Above nav + mobile */
}

.nav-moonshot-btn {
  border: none;
  background: transparent;
  padding: 4px;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-moonshot-btn:hover {
  box-shadow: 0 0 12px rgba(129, 140, 248, 0.7);
  background: radial-gradient(circle at top, rgba(79, 70, 229, 0.3), rgba(15, 23, 42, 0.98));
}

.nav-moonshot-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* Dropdown (hidden by default) */
.nav-moonshot-menu {
  position: absolute;
  right: 0;
  top: 125%;
  min-width: 210px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(10, 16, 40, 0.98);
  border: 1px solid rgba(129, 140, 248, 0.7);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  display: none;
  z-index: 6001;
}

/* CLICK-TO-OPEN MODE */
.nav-moonshot-menu.open {
  display: block;
}

.nav-moonshot-menu a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: #d1ddff;
  text-decoration: none;
}

.nav-moonshot-menu a:hover {
  background: rgba(37, 99, 235, 0.35);
}

/* ===========================
   FULLSCREEN MOBILE NAV
   (mobile.css handles panel layout)
   =========================== */
@media (max-width: 900px) {
  /* We use the separate fullscreen panel, so hide desktop links */
  .nav-links {
    display: none !important;
  }

  .nav-toggle {
    display: block;
  }

  .nav-moonshot-icon {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 18px;
  }
}

/* ===========================
   PAGE WRAPPER
   =========================== */

.page {
  padding: 120px 8vw 60px;
  animation: pageFade 0.7s ease;
}

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

/* ===========================
   HERO (HOME)
   =========================== */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(120,160,255,0.5);
  background: rgba(10,20,50,0.7);
  color: #9ab5ff;
  margin-bottom: 16px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #4cffea;
  box-shadow: 0 0 10px rgba(76,255,234,0.9);
}

.hero-title {
  font-size: 46px;
  line-height: 1.1;
  margin-bottom: 14px;
}

.hero-title span {
  color: #80a8ff;
  text-shadow: 0 0 20px rgba(120,160,255,0.7);
}

.hero-subtitle {
  font-size: 16px;
  color: #9eafd8;
  max-width: 460px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.btn-primary {
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 999px;
  border: none;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  background: linear-gradient(135deg, #3058ff, #a24aff);
  color: #fff;
  box-shadow: 0 0 18px rgba(110,150,255,0.8);
  transition: 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(130,170,255,0.95);
}

.btn-ghost {
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid rgba(130,160,255,0.7);
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  background: rgba(10,20,50,0.5);
  color: #c7d6ff;
  transition: 0.25s ease;
}

.btn-ghost:hover {
  background: rgba(80,110,200,0.35);
  box-shadow: 0 0 16px rgba(120,160,255,0.7);
}

/* Hero metrics under buttons */
.hero-metrics {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #7f92c5;
  margin-top: 10px;
}

.hero-metrics strong {
  display: block;
  color: #dbe4ff;
  font-size: 16px;
}

/* Hero card on the right (Shielded layer box) */
.hero-card {
  border-radius: 22px;
  padding: 22px 22px 20px;
  background: radial-gradient(circle at top, rgba(90,135,255,0.22), rgba(7,12,35,0.98));
  border: 1px solid rgba(150,170,255,0.4);
  box-shadow:
    0 0 25px rgba(0,0,0,0.8),
    0 0 40px rgba(80,120,255,0.3);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  width: 140%;
  height: 140%;
  top: -50%;
  left: -20%;
  background: conic-gradient(
    from 200deg,
    rgba(94,148,255,0.2),
    rgba(162,76,255,0.35),
    transparent 55%,
    transparent 100%
  );
  opacity: 0.7;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-card-inner {
  position: relative;
}

.hero-card-title {
  font-size: 15px;
  color: #b8c9ff;
  margin-bottom: 4px;
}

.hero-card-value {
  font-size: 26px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 14px;
}

.hero-card-tag {
  display: inline-block;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(9,185,163,0.15);
  color: #5cf5d9;
  border: 1px solid rgba(92,245,217,0.55);
  margin-bottom: 16px;
}

.hero-card-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #92a0d1;
  margin-bottom: 4px;
}

/* ===========================
   GENERIC SECTIONS
   =========================== */

.section {
  margin-top: 70px;
}

.section-header {
  margin-bottom: 26px;
}

.section-kicker {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #7f8fc2;
  margin-bottom: 4px;
}

.section-title {
  font-size: 26px;
  color: #dbe4ff;
  margin-bottom: 6px;
}

.section-subtitle {
  font-size: 14px;
  color: #94a3c5;
}

/* Features grid on home */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.feature-card {
  padding: 18px 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(130,150,255,0.4);
  background: radial-gradient(circle at top, rgba(120,150,255,0.25), rgba(5,10,30,0.98));
  box-shadow: 0 0 24px rgba(0,0,0,0.8);
  font-size: 14px;
}

.feature-title {
  font-size: 16px;
  margin-bottom: 8px;
  color: #e1e7ff;
}

/* ===========================
   INNER PAGE LAYOUTS
   =========================== */

.page-narrow {
  max-width: 780px;
  margin: 0 auto;
}

.page-narrow .section-title {
  font-size: 28px;
}

.page-narrow p {
  font-size: 15px;
  line-height: 1.7;
  color: #a4b2da;
  margin-bottom: 14px;
}

/* Roadmap / bullet timeline */
.timeline {
  border-left: 1px solid rgba(140,160,255,0.6);
  margin-top: 10px;
}

.timeline-item {
  padding-left: 18px;
  padding-bottom: 18px;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  left: -5px;
  top: 3px;
  background: radial-gradient(circle, #5bf0ff, #3055ff);
  box-shadow: 0 0 12px rgba(91,240,255,0.9);
}

.timeline-title {
  font-size: 15px;
  color: #dbe4ff;
  margin-bottom: 4px;
}

.timeline-desc {
  font-size: 14px;
  color: #9eaed6;
}

/* Tokenomics */
.token-grid {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,1fr);
  gap: 26px;
  margin-top: 16px;
}

.token-box {
  border-radius: 18px;
  border: 1px solid rgba(130,150,255,0.55);
  background: rgba(7,12,30,0.96);
  padding: 18px 18px 16px;
  font-size: 14px;
  color: #a3b3df;
}

.token-box h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #dbe4ff;
}

.token-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 18px;
}

.team-card {
  position: relative;
  padding: 26px 20px 22px;
  border-radius: 20px;
  background: radial-gradient(circle at top, rgba(120,150,255,0.23), rgba(3,8,24,0.98));
  border: 1px solid rgba(150,170,255,0.7);
  box-shadow: 0 0 26px rgba(0,0,0,0.9);
  text-align: center;
  overflow: hidden;
}

.team-card::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 160deg, rgba(84,136,255,0.5), rgba(164,74,255,0.4), transparent 65%, transparent 100%);
  opacity: 0.5;
  mix-blend-mode: screen;
  animation: spinGlow 18s linear infinite;
}

.team-inner {
  position: relative;
}

.team-avatar {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  margin: 0 auto 14px;
  background: radial-gradient(circle, #19294d, #050914);
  box-shadow:
    0 0 20px rgba(130,150,255,0.7),
    inset 0 0 20px rgba(35,60,140,0.8);
  border: 2px solid rgba(170,190,255,0.7);
}

.team-name {
  font-size: 18px;
  color: #e8edff;
  margin-bottom: 4px;
}

.team-role {
  font-size: 13px;
  color: #90a0d5;
  margin-bottom: 8px;
}

.team-tagline {
  font-size: 13px;
  color: #9eaed8;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,1fr);
  gap: 26px;
  margin-top: 18px;
}

.contact-card,
.contact-side {
  border-radius: 18px;
  border: 1px solid rgba(130,150,255,0.55);
  background: rgba(7,13,32,0.96);
  padding: 20px 18px 18px;
}

.contact-card h3,
.contact-side h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #dde6ff;
}

label {
  display: block;
  font-size: 13px;
  color: #9dadde;
  margin-bottom: 4px;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(130,150,255,0.7);
  background: rgba(3,8,24,0.95);
  color: #e3ebff;
  font-family: inherit;
  font-size: 14px;
  margin-bottom: 10px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #5e8eff;
  box-shadow: 0 0 12px rgba(94,142,255,0.8);
}

.contact-hint {
  font-size: 13px;
  color: #8896c7;
}

/* ===========================
   MINER PAGE
   =========================== */

.miner-section {
  max-width: 1100px;
  margin: 0 auto;
}

.miner-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.miner-card {
  border-radius: 22px;
  padding: 22px 20px 18px;
  background: radial-gradient(circle at top, rgba(90, 135, 255, 0.18), rgba(2, 6, 22, 0.98));
  border: 1px solid rgba(150, 170, 255, 0.55);
  box-shadow: 0 0 26px rgba(0, 0, 0, 0.9);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  margin-bottom: 14px;
  background: rgba(19, 31, 70, 0.9);
  border: 1px solid rgba(120, 160, 255, 0.6);
  color: #a7b8ff;
}
.status-pill--locked {
  border-color: rgba(255, 115, 155, 0.9);
  color: #ffd4e0;
  box-shadow: 0 0 16px rgba(255, 80, 120, 0.55);
}

.miner-input-row {
  margin-bottom: 14px;
}

.miner-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(130, 150, 255, 0.7);
  background: rgba(3, 8, 24, 0.95);
  color: #e3ebff;
  font-size: 14px;
}

.miner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.miner-btn {
  flex: 1;
  min-width: 150px;
}

.miner-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 16px;
  align-items: stretch;
}

.miner-countdown {
  border-radius: 18px;
  border: 1px solid rgba(130, 150, 255, 0.65);
  background: radial-gradient(circle at top, rgba(80, 110, 220, 0.35), rgba(3, 7, 24, 0.98));
  padding: 14px 12px;
  text-align: center;
}

.cd-value {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 4px;
}
.cd-separator {
  padding: 0 4px;
}
.cd-label {
  font-size: 12px;
  color: #9eaedd;
}

.miner-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stat-card {
  border-radius: 16px;
  border: 1px solid rgba(130, 150, 255, 0.55);
  background: rgba(7, 13, 32, 0.98);
  padding: 10px 12px;
  font-size: 13px;
}
.stat-label {
  color: #9aa9dd;
  margin-bottom: 4px;
}
.stat-value {
  font-size: 17px;
  font-weight: 600;
  color: #e5ecff;
  margin-bottom: 2px;
}
.stat-caption {
  font-size: 11px;
  color: #7f90c6;
}

.miner-footer {
  margin-top: 10px;
  font-size: 13px;
  color: #93a4dd;
}

/* Hex grid card */

.hex-card {
  border-radius: 22px;
  padding: 18px 18px 20px;
  background: radial-gradient(circle at top, rgba(90, 135, 255, 0.18), rgba(3, 8, 22, 0.98));
  border: 1px solid rgba(150, 170, 255, 0.6);
  box-shadow: 0 0 26px rgba(0, 0, 0, 0.9);
}

.hex-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 6px;
  max-width: 620px;
  margin: 0 auto 16px;
}

/* hex tiles reused from your working miner */
.hex-tile {
  position: relative;
  width: 64px;
  height: 56px;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid rgba(130, 150, 255, 0.6);
  background: radial-gradient(circle at top, rgba(120, 150, 255, 0.28), rgba(5, 8, 26, 0.98));
  color: #dbe4ff;
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hex-tile--disabled {
  opacity: 0.4;
  cursor: default;
}

.hex-tile:not(.hex-tile--disabled):hover {
  transform: translateY(-2px);
  background: radial-gradient(circle at top, rgba(70, 210, 160, 0.4), rgba(5, 9, 24, 0.98));
  border-color: rgba(70, 210, 160, 0.85);
  box-shadow: 0 0 12px rgba(70, 210, 160, 0.7);
}

.hex-tile--selected {
  background: linear-gradient(135deg, #44e394, #0b8f4e);
  border-color: rgba(245, 255, 245, 0.9);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(68, 227, 148, 0.9);
}

.hex-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  color: #96a5da;
  justify-content: center;
  margin-bottom: 10px;
}

.legend-dot {
  width: 14px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
  margin: 0 4px 0 10px;
}
.legend-dot--locked {
  background: #ff567a;
}
.legend-dot--hover {
  background: #44d19a;
}
.legend-dot--selected {
  background: #1f9c4f;
}

.last-winner {
  text-align: center;
  font-size: 12px;
  color: #9cadde;
}
.last-winner-label {
  margin-bottom: 2px;
}
.last-winner-value {
  font-size: 13px;
  color: #e3ecff;
}

/* ===========================
   FOOTER + ANIMATIONS
   =========================== */
.footer {
  text-align: center;
  padding: 40px 0 20px;
  font-size: 13px;
  color: #7e8ebd;
  margin-top: 40px;
}

@keyframes spinGlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ===========================
   RESPONSIVE LAYOUT
   =========================== */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-card {
    order: -1;
    margin-bottom: 24px;
  }

  .page {
    padding: 110px 16px 60px;
  }

  .token-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .miner-grid {
    grid-template-columns: 1fr;
  }

  .miner-stats {
    grid-template-columns: 1fr;
  }

  .hex-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ==========================
   Documentation Dropdown
   ========================== */

.nav-button-dropdown {
  position: relative;
  display: inline-block;
}

.nav-btn {
  background: transparent;
  border: none;
  color: #d0d9ff;
  font-size: 14px;
  padding: 6px 8px;
  cursor: pointer;
  font-family: inherit;
}

.nav-btn:hover {
  color: #ffffff;
}

.nav-dropdown-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(3, 7, 24, 0.98);
  border: 1px solid rgba(88, 104, 220, 0.4);
  border-radius: 12px;
  min-width: 180px;
  padding: 8px 0;
  z-index: 9999;
  box-shadow: 0 18px 40px rgba(0,0,0,0.6);
}

.nav-dropdown-panel a {
  display: block;
  padding: 10px 14px;
  color: #c9d3ff;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-dropdown-panel a:hover {
  background: rgba(79, 70, 229, 0.25);
  color: #ffffff;
}

.nav-dropdown-panel.open {
  display: block;
}

/* ==========================================
   Download Button Style
   ========================================== */
.download-btn {
  display: inline-block;
  background: rgba(88,104,220,0.20);
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid rgba(88,104,220,0.30);
  color: #cdd5ff;
  text-decoration: none;
  font-size: 15px;
  transition: background 0.25s ease, border 0.25s ease;
}

.download-btn:hover {
  background: rgba(88,104,220,0.35);
  border-color: rgba(88,104,220,0.50);
}
