/* ===================================
   SYNAPSE — Main Stylesheet
   Dark Cyberpunk + Futuristic Theme
=================================== */

:root {
  --bg-primary: #030811;
  --bg-secondary: #060d1a;
  --bg-card: #0a1628;
  --bg-card-hover: #0f1f38;
  --cyan: #00d4ff;
  --cyan-dark: #0099cc;
  --purple: #7c3aed;
  --purple-light: #a855f7;
  --gold: #f59e0b;
  --green: #10b981;
  --red: #ef4444;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #475569;
  --border: rgba(0, 212, 255, 0.15);
  --border-hover: rgba(0, 212, 255, 0.4);
  --glow-cyan: 0 0 20px rgba(0, 212, 255, 0.3);
  --glow-purple: 0 0 20px rgba(124, 58, 237, 0.4);
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===================================
   LOADING SCREEN
=================================== */
#loader {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  text-align: center;
}

.loader-logo {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: 0.3em;
  background: linear-gradient(135deg, var(--cyan), var(--purple-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  animation: pulse-glow 1.5s ease-in-out infinite;
}

.loader-subtitle {
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  letter-spacing: 0.1em;
}

.loader-bar {
  width: 300px;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  margin: 0 auto 1rem;
  overflow: hidden;
}

.loader-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--purple-light));
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px var(--cyan);
}

.loader-percent {
  font-family: var(--font-mono);
  color: var(--cyan);
  font-size: 0.85rem;
}

/* ===================================
   NAVIGATION
=================================== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1rem 2rem;
  background: rgba(3, 8, 17, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}

#navbar.scrolled {
  padding: 0.7rem 2rem;
  background: rgba(3, 8, 17, 0.97);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-icon {
  font-size: 1.4rem;
  color: var(--cyan);
  animation: spin-slow 8s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}

/* Legacy fallback */
.brand-text {
  font-size: 1.3rem;
  color: var(--cyan);
  letter-spacing: 0.15em;
}

/* Dual-brand layout */
.brand-primary {
  font-size: 1.15rem;
  color: var(--cyan);
  letter-spacing: 0.15em;
  text-shadow: 0 0 12px rgba(0, 212, 255, 0.5);
}

.brand-divider {
  font-size: 0.85rem;
  color: rgba(0, 212, 255, 0.4);
  font-weight: 400;
  letter-spacing: 0;
  padding: 0 0.1rem;
  line-height: 1;
  align-self: center;
}

.brand-secondary {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, var(--gold), #ff9d00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.5));
}

.brand-secondary i {
  font-size: 0.8rem;
  -webkit-text-fill-color: initial;
  color: var(--gold);
  filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.6));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex: 1;
  justify-content: center;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  transition: all 0.2s;
  text-transform: uppercase;
}

.nav-link:hover, .nav-link.active {
  color: var(--cyan);
  background: rgba(0,212,255,0.08);
}

.nav-wallet {
  background: linear-gradient(135deg, var(--cyan-dark), var(--purple));
  color: white !important;
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  font-weight: 700;
}

.nav-wallet:hover {
  background: linear-gradient(135deg, var(--cyan), var(--purple-light)) !important;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: var(--glow-cyan);
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: blink 1.5s ease infinite;
  box-shadow: 0 0 8px var(--green);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--cyan);
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
}

/* ===================================
   LANGUAGE SWITCHER
=================================== */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 20px;
  padding: 0.2rem 0.5rem;
  margin-right: 0.5rem;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  padding: 0.2rem 0.45rem;
  border-radius: 12px;
  transition: all 0.25s ease;
  line-height: 1;
}

.lang-btn:hover {
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.12);
}

.lang-btn.active {
  color: var(--bg-primary);
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.lang-divider {
  color: rgba(0, 212, 255, 0.3);
  font-size: 0.7rem;
  user-select: none;
  line-height: 1;
}

/* ===================================
   HERO SECTION
=================================== */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* ── Hero Background Video ── */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.72;
  z-index: 0;
  /* Remove default controls */
  pointer-events: none;
}

/* Fallback image – only shown when video fails / before it loads */
.hero-img-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.6;
  z-index: -1;   /* behind the video */
}

/* Keep the old .hero-img rule harmless (for any other usage) */
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.6;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(3,8,17,0.35) 0%,
    rgba(3,8,17,0.05) 30%,
    rgba(3,8,17,0.05) 55%,
    rgba(3,8,17,0.72) 78%,
    rgba(3,8,17,1) 100%
  );
  /* subtle radial vignette for cinematic feel */
  -webkit-mask-image: none;
}

/* Cinematic vignette overlay on top of the gradient */
.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 40%,
    transparent 40%,
    rgba(3,8,17,0.55) 100%
  );
}

#particleCanvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1rem;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.3);
  color: var(--cyan);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  animation: blink 1.5s ease infinite;
}

.hero-title {
  margin-bottom: 1rem;
}

.title-line1 {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 300;
  letter-spacing: 0.5em;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
}

.title-line2 {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  letter-spacing: 0.2em;
  background: linear-gradient(135deg, #fff 0%, var(--cyan) 50%, var(--purple-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  line-height: 1;
  animation: glow-text 3s ease-in-out infinite alternate;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--cyan-dark), var(--purple));
  color: white;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--cyan), var(--purple-light));
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,212,255,0.4);
}

.btn-primary span { position: relative; z-index: 1; }
.btn-primary > * { position: relative; z-index: 1; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--cyan);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  border: 1px solid var(--border-hover);
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
}

.btn-secondary:hover {
  background: rgba(0,212,255,0.1);
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: var(--glow-cyan);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  margin: 0.5rem auto 0;
  animation: scroll-pulse 1.5s ease-in-out infinite;
}

/* ===================================
   TICKER
=================================== */
.ticker-wrap {
  background: rgba(0,212,255,0.05);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker {
  display: inline-block;
  animation: ticker-scroll 30s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  gap: 0;
}

.t-item {
  color: var(--cyan);
  font-weight: 600;
  margin: 0 1rem;
}

.t-sep {
  color: var(--purple-light);
  margin: 0 1rem;
}

/* ===================================
   SECTIONS COMMON
=================================== */
.section {
  padding: 6rem 1rem;
}

.section-dark {
  background: var(--bg-secondary);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-sub {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 600px;
}

/* ===================================
   ABOUT SECTION
=================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-lead {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-lead strong {
  color: var(--cyan);
}

.about-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  color: var(--cyan);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  transition: all 0.2s;
}

.feature-tag:hover {
  background: rgba(0,212,255,0.15);
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.tech-flow {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.tech-flow::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, var(--cyan), var(--purple));
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s;
}

.flow-step:hover {
  background: rgba(0,212,255,0.05);
  border-color: var(--border);
  transform: translateX(5px);
}

.flow-icon {
  font-size: 1.5rem;
  width: 40px;
  text-align: center;
}

.flow-text {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 600;
}

.flow-text small {
  display: block;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

.flow-arrow {
  text-align: center;
  color: var(--cyan);
  font-size: 0.8rem;
  opacity: 0.5;
}

/* ===================================
   WORLDS SECTION
=================================== */
.worlds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.world-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 300px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: var(--bg-card);
}

.world-card:hover {
  border-color: var(--cyan);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), var(--glow-cyan);
}

.world-card.featured {
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: 0 0 30px rgba(124,58,237,0.2);
}

.world-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.world-card:hover .world-bg {
  transform: scale(1.08);
}

.world-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 20%,
    rgba(3,8,17,0.7) 60%,
    rgba(3,8,17,0.97) 100%
  );
}

.world-number {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.2em;
}

.world-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #ff6b35, #ff4444);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
  letter-spacing: 0.05em;
}

.world-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
}

.world-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.world-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: white;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.world-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

.world-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.world-tags span {
  background: rgba(0,212,255,0.15);
  color: var(--cyan);
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.world-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.world-enter {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: rgba(0,212,255,0.15);
  border: 1px solid rgba(0,212,255,0.3);
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-display);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.3s;
}

.world-card:hover .world-enter {
  opacity: 1;
  transform: translateY(0);
}

.worlds-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ===================================
   AGENT SECTION
=================================== */
.agent-demo {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

.agent-card-main {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.agent-portrait {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}

.agent-info {
  padding: 1.5rem;
}

.agent-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.3rem;
}

.agent-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.1em;
}

.agent-rank {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.agent-rank.legendary {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white;
}

.agent-level {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 1.2rem;
}

.personality-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.p-row {
  display: grid;
  grid-template-columns: 60px 1fr 30px;
  align-items: center;
  gap: 0.5rem;
}

.p-name {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.p-bar {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.p-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 1.5s ease;
  box-shadow: 0 0 6px currentColor;
}

.p-val {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-align: right;
}

.agent-earnings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.earn-item {
  background: rgba(0,212,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
  text-align: center;
}

.earn-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.earn-val {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold);
  font-weight: 700;
}

.agent-features h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: white;
  margin-bottom: 1.5rem;
}

.income-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.income-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: all 0.2s;
}

.income-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateX(5px);
}

.inc-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.income-item > div {
  flex: 1;
}

.income-item strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.income-item p {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin: 0;
}

.inc-val {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-align: right;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ===================================
   TOKENOMICS SECTION
=================================== */
.token-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 3rem;
}

.token-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.token-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--glow-cyan);
}

.synapse-card {
  border-top: 3px solid var(--cyan);
}

.vpoint-card {
  border-top: 3px solid var(--purple-light);
}

.token-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.synapse-card .token-logo {
  background: linear-gradient(135deg, var(--cyan-dark), var(--cyan));
  color: var(--bg-primary);
  box-shadow: 0 0 20px rgba(0,212,255,0.5);
}

.vpoint-card .token-logo {
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  color: white;
  box-shadow: 0 0 20px rgba(124,58,237,0.5);
}

.token-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: white;
  margin-bottom: 0.2rem;
}

.token-role {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.token-supply {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.token-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.token-uses {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.use-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.use-item i {
  color: var(--cyan);
  width: 16px;
}

.token-bridge {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  min-width: 200px;
  align-self: center;
}

.bridge-icon {
  font-size: 2rem;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}

.bridge-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: white;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
}

.bridge-flows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.bf-item {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(0,212,255,0.05);
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  text-align: left;
  line-height: 1.4;
}

.bridge-ltv {
  background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(124,58,237,0.1));
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
}

.ltv-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.ltv-val {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.ltv-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin: 0.2rem 0 0.5rem;
}

.ltv-total {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan);
  font-weight: 600;
}

.token-chart-wrap {
  position: relative;
}

.market-data {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.md-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all 0.3s;
}

.md-item:hover, .md-item.highlight {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.md-item.highlight {
  border-color: rgba(0,212,255,0.4);
  box-shadow: var(--glow-cyan);
}

.md-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.md-val {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cyan);
}

/* ===================================
   ROADMAP SECTION
=================================== */
.roadmap-line {
  position: relative;
  padding-left: 3rem;
}

.roadmap-line::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: linear-gradient(to bottom, var(--cyan), var(--purple), transparent);
}

.rm-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 2rem;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.rm-item.active {
  opacity: 1;
}

.rm-item:hover {
  opacity: 1;
}

.rm-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: -1.5rem;
  position: relative;
  z-index: 1;
  transition: all 0.3s;
}

.rm-item.active .rm-dot {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 15px rgba(0,212,255,0.4);
  background: rgba(0,212,255,0.1);
}

.rm-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s;
}

.rm-item:hover .rm-content, .rm-item.active .rm-content {
  border-color: var(--border-hover);
}

.rm-phase {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  margin-bottom: 0.3rem;
}

.rm-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: white;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.rm-content ul {
  list-style: none;
  padding: 0;
}

.rm-content ul li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
}

.rm-content ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-size: 0.7rem;
}

/* ===================================
   WALLET PROMO SECTION
=================================== */
.wallet-promo-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.wp-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: white;
  margin-bottom: 1rem;
}

.wp-text p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
  font-size: 1rem;
}

.wp-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.wpf-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  transition: all 0.2s;
}

.wpf-item i {
  color: var(--cyan);
}

.wpf-item:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.wp-visual {
  position: relative;
}

.wp-img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.wp-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(ellipse, rgba(0,212,255,0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ===================================
   FOOTER
=================================== */
.footer {
  background: #000;
  border-top: 1px solid var(--border);
  padding: 4rem 1rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .brand-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--cyan);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.footer-social a:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0,212,255,0.1);
}

.footer-links h4 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-links a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--cyan);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ===================================
   ANIMATIONS
=================================== */
@keyframes pulse-glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes glow-text {
  from { filter: drop-shadow(0 0 10px rgba(0,212,255,0.3)); }
  to { filter: drop-shadow(0 0 30px rgba(0,212,255,0.8)) drop-shadow(0 0 60px rgba(124,58,237,0.4)); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.5; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

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

@keyframes videoFadeIn {
  from { opacity: 0; }
  to   { opacity: 0.72; }
}

.hero-video.loaded {
  animation: videoFadeIn 1.2s ease forwards;
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* ===================================
   RESPONSIVE
=================================== */
@media (max-width: 1024px) {
  .token-grid {
    grid-template-columns: 1fr;
  }
  .token-bridge {
    display: none;
  }
  .market-data {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .wallet-promo-inner {
    grid-template-columns: 1fr;
  }
  .agent-demo {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* On mobile, scale down video opacity slightly to keep text legible */
  .hero-video {
    opacity: 0.55;
    object-position: 65% center; /* keep action area visible */
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(3,8,17,0.98);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-status {
    display: none;
  }
  .lang-switcher {
    margin-right: 0.3rem;
  }
  .lang-btn {
    font-size: 0.6rem;
    padding: 0.15rem 0.35rem;
  }
  .brand-primary {
    font-size: 0.95rem;
  }
  .brand-secondary {
    font-size: 0.72rem;
  }
  .brand-divider {
    font-size: 0.7rem;
  }
  .brand-icon {
    font-size: 1.1rem;
  }
  .worlds-grid {
    grid-template-columns: 1fr;
  }
  .market-data {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  .hero-stats {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .section { padding: 4rem 1rem; }
  .market-data { grid-template-columns: repeat(2, 1fr); }
}

/* ===================================
   WALLET GATE MODAL
=================================== */
.wg-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  padding: 1rem;
}

.wg-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.wg-overlay.active .wg-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.wg-modal {
  position: relative;
  width: 100%;
  max-width: 500px;
  background: linear-gradient(145deg, #060d1a, #0a1628, #060d1a);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 20px;
  padding: 2.2rem 2rem 1.8rem;
  overflow: hidden;
  transform: translateY(30px) scale(0.96);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175,0.885,0.32,1.275), opacity 0.35s ease;
  box-shadow:
    0 0 60px rgba(0,212,255,0.1),
    0 0 120px rgba(124,58,237,0.08),
    0 30px 80px rgba(0,0,0,0.6);
  text-align: center;
}

/* 背景光晕 */
.wg-glow-bg {
  position: absolute;
  inset: -50%;
  background: radial-gradient(ellipse at 30% 20%, rgba(0,212,255,0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(124,58,237,0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* 关闭按钮 */
.wg-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 2;
}
.wg-close:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(0,212,255,0.1);
}

/* 顶部徽章 */
.wg-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 20px;
  padding: 0.25rem 0.9rem;
  margin-bottom: 1rem;
}

/* Logo 行 */
.wg-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}
.wg-hex {
  font-size: 1.8rem;
  color: var(--cyan);
  animation: spin-slow 8s linear infinite;
  display: inline-block;
  text-shadow: 0 0 15px rgba(0,212,255,0.6);
}
.wg-logo-text {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--cyan);
}
.wg-amp {
  color: rgba(0,212,255,0.4);
  font-weight: 400;
  font-size: 0.85rem;
  margin: 0 0.2rem;
}
.wg-wallet-v {
  background: linear-gradient(135deg, var(--gold), #ff9d00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 主标题 */
.wg-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #fff 40%, var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

/* 钱包插图 */
.wg-visual {
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}
.wg-wallet-icon {
  position: relative;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wg-wallet-icon i {
  font-size: 2.2rem;
  background: linear-gradient(135deg, var(--gold), #ff9d00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 8px rgba(245,158,11,0.6));
}
.wg-pulse-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  opacity: 0;
  animation: wg-pulse 2.4s ease-out infinite;
}
.wg-pulse-ring.r1 { width: 52px;  height: 52px;  animation-delay: 0s;    }
.wg-pulse-ring.r2 { width: 68px;  height: 68px;  animation-delay: 0.6s;  }
.wg-pulse-ring.r3 { width: 84px;  height: 84px;  animation-delay: 1.2s;  }

@keyframes wg-pulse {
  0%   { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0;   }
}

.wg-chain-dots {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
}
.wg-chain-dots span {
  font-size: 0.62rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
  letter-spacing: 0.05em;
}

/* 描述文字 */
.wg-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.wg-desc strong {
  color: var(--cyan);
}

/* 特性列表 */
.wg-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 0.8rem;
  margin: 0 0 1.4rem;
  text-align: left;
}
.wg-features li {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  background: rgba(0,212,255,0.04);
  border: 1px solid rgba(0,212,255,0.1);
  border-radius: 6px;
  padding: 0.35rem 0.6rem;
  transition: border-color 0.2s;
}
.wg-features li:hover {
  border-color: rgba(0,212,255,0.3);
  color: var(--cyan);
}

/* 操作按钮 */
.wg-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.wg-btn-primary {
  display: block;
  background: linear-gradient(135deg, var(--gold), #e8860a);
  color: #000;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(245,158,11,0.4);
  text-align: center;
}
.wg-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245,158,11,0.55);
  filter: brightness(1.1);
}
.wg-btn-primary:active {
  transform: translateY(0);
}

.wg-btn-already {
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.3);
  color: var(--cyan);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.wg-btn-already:hover {
  background: rgba(0,212,255,0.15);
  border-color: var(--cyan);
}

.wg-btn-cancel {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  cursor: pointer;
  padding: 0.3rem;
  transition: color 0.2s;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.wg-btn-cancel:hover {
  color: var(--text-secondary);
}

/* 注释 */
.wg-note {
  margin-top: 1rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* 移动端适配 */
@media (max-width: 540px) {
  .wg-modal {
    padding: 1.8rem 1.4rem 1.4rem;
    border-radius: 16px;
  }
  .wg-title { font-size: 1.25rem; }
  .wg-features { grid-template-columns: 1fr; }
  .wg-chain-dots span { font-size: 0.58rem; }
}

