:root {
  --bg: #020814;
  --bg-elev: #0a1225;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --primary: #3b82f6; /* electric blue */
  --primary-strong: #1d4ed8;
  --accent: #00d9ff; /* cyan neon */
  --accent-secondary: #7c3aed; /* purple */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --border: #1e293b;
  --border-glow: #334155;
  --shadow: 0 10px 30px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.15);
  --grid-color: rgba(59, 130, 246, 0.1);
}

/* Tech animations */
@keyframes pulse-glow {
  0%, 100% { 
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.5);
    transform: scale(1.02);
  }
}

@keyframes float-up {
  0% { transform: translateY(0px); opacity: 0.7; }
  50% { transform: translateY(-10px); opacity: 1; }
  100% { transform: translateY(0px); opacity: 0.7; }
}

@keyframes matrix-flow {
  0% { transform: translateY(-100%); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(100vh); opacity: 0; }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes border-dance {
  0% { border-color: var(--primary); }
  25% { border-color: var(--accent); }
  50% { border-color: var(--accent-secondary); }
  75% { border-color: var(--accent); }
  100% { border-color: var(--primary); }
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: 
    /* Tech grid pattern */
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    /* Animated gradients */
    radial-gradient(1400px 900px at 80% -10%, rgba(0, 217, 255, 0.15), transparent 60%),
    radial-gradient(1000px 700px at -10% 30%, rgba(124, 58, 237, 0.12), transparent 50%),
    radial-gradient(800px 600px at 50% 50%, rgba(59, 130, 246, 0.08), transparent 70%),
    var(--bg);
  background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  background-attachment: fixed, fixed, fixed, fixed, fixed, fixed;
  color: var(--text);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  overflow-x: hidden;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Mobile Header */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(2, 8, 20, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-glow);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.mobile-menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 24px;
  height: 24px;
  padding: 0;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Sidebar Navigation */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: rgba(2, 8, 20, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  border-right: 1px solid var(--border-glow);
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3), 
              0 0 40px rgba(59, 130, 246, 0.1);
  z-index: 100;
  overflow-y: auto;
  transition: transform 0.3s ease;
}

.sidebar-content {
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 20px;
  line-height: 1;
}

.brand-tagline {
  font-size: 10px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.8;
  font-family: 'Space Mono', monospace;
  margin-top: 2px;
}

.brand .logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent), var(--accent-secondary));
  background-size: 200% 200%;
  animation: gradient-shift 3s ease-in-out infinite;
  box-shadow: 0 8px 25px rgba(59,130,246,0.4), 
              0 0 20px rgba(0, 217, 255, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  transition: all 0.3s ease;
}

.brand .logo:hover {
  animation: pulse-glow 2s ease-in-out infinite;
  transform: rotate(5deg) scale(1.1);
}

.brand .logo::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Sidebar Navigation */
.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* SIMPLIFIED NAVIGATION LINK STYLES */
/* Comments are in ENGLISH per user rule */
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--text);
  border-left-color: var(--accent);
  padding-left: 16px;
  text-decoration: none;
}

.nav-link.active {
  color: var(--accent);
  border-left-color: var(--accent);
  padding-left: 16px;
}

.nav-icon {
  width: 18px;
  height: 18px;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.nav-link:hover .nav-icon,
.nav-link.active .nav-icon {
  opacity: 1;
}

.sidebar-actions {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.sidebar-btn {
  width: 100%;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border: 1px solid var(--border-glow);
  background: linear-gradient(135deg, rgba(10, 18, 37, 0.9), rgba(20, 32, 60, 0.8));
  color: var(--text);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.025em;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.2), 
              0 0 20px rgba(0, 217, 255, 0.15);
  border-color: var(--accent);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: 1px solid rgba(0, 217, 255, 0.3);
  color: #0a1225;
  font-weight: 600;
}

.btn-primary:hover {
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4),
              0 0 25px rgba(0, 217, 255, 0.3);
  transform: translateY(-2px) scale(1.05);
}

.btn-cta {
  background: linear-gradient(135deg, var(--success), var(--accent));
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #0a1225;
  font-weight: 600;
  animation: pulse-glow 3s ease-in-out infinite;
}

.btn-cta:hover {
  animation: none;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4),
              0 0 25px rgba(0, 217, 255, 0.3);
}

.btn-ghost {
  background: rgba(30, 41, 59, 0.3);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.btn-ghost:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--primary);
}

/* Sidebar Decorative Elements */
.sidebar-frieze {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.sidebar-bottom-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(59, 130, 246, 0.3) 20%,
    rgba(0, 217, 255, 0.6) 50%,
    rgba(59, 130, 246, 0.3) 80%,
    transparent 100%
  );
  animation: header-line-pulse 4s ease-in-out infinite;
}

/* Sidebar Overlay */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Main Content Layout */
.main-content {
  margin-left: 280px;
  min-height: 100vh;
  transition: margin-left 0.3s ease;
  position: relative; /* Ensure z-index is respected */
  z-index: 10;      /* Sit above background elements */
}

.footer-content {
  margin-left: 280px;
  transition: margin-left 0.3s ease;
}

/* Hero */
.hero {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
  /* z-index is inherited from main-content now */
}


.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 200%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  transform: translateX(-50%);
  animation: float-up 6s ease-in-out infinite;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 128px;
  line-height: 1.1;
  margin: 0 0 16px 0;
  background: linear-gradient(135deg, var(--text), var(--accent), var(--primary));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradient-shift 4s ease-in-out infinite;
  text-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

h2 {
 z-index: 10;
}

.hero p.lead {
  color: var(--muted);
  font-size: 20px;
  margin: 0 0 32px 0;
  line-height: 1.6;
  max-width: 600px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--text);
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.2), rgba(59, 130, 246, 0.2), rgba(124, 58, 237, 0.2));
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 13px;
  text-transform: uppercase;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 217, 255, 0.2), 
              inset 0 1px 0 rgba(255,255,255,0.1);
  border: 1px solid rgba(0, 217, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.pill::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: matrix-flow 3s linear infinite;
}

.pill.pill-soft {
  color: var(--text);
  background: linear-gradient(135deg, rgba(34,211,238,0.15), rgba(96,165,250,0.15));
  border: 1px solid rgba(96,165,250,0.25);
}

/* Sections */
section {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

section .section-title {
  font-size: 26px;
  margin: 0 0 18px 0;
}

section .section-desc {
  color: var(--muted);
  margin: 0 0 24px 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.card {
  background: rgba(10, 18, 37, 0.2);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  padding: 24px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
}

/* Card effects (before and after) removed */

/* Card hover effects removed */

.muted {
  color: var(--muted);
}

/* Mint form */
.form {
  display: grid;
  gap: 12px;
}

.form label {
  font-weight: 600;
}

.form input[type="text"],
.form input[type="url"],
.form textarea {
  width: 100%;
  background: #0b1118;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}

.form textarea {
  min-height: 110px;
  resize: vertical;
}

.inline {
  display: flex;
  gap: 12px;
  align-items: center;
}

.helper {
  font-size: 12px;
  color: var(--muted);
}

.status {
  margin-top: 10px;
  font-size: 14px;
}

.status.success { color: var(--success); }
.status.error { color: var(--danger); }
.status.warning { color: var(--warning); }

/* Footer */
footer {
  padding: 40px 0 60px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-social-link:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--primary);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.footer-social-link svg {
  width: 20px;
  height: 20px;
}

/* Tech elements with monospace font */
code, .code, .tech-text {
  font-family: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 400;
  letter-spacing: 0.025em;
}

/* Enhanced section titles */
.section-title {
  font-weight: 800;
  letter-spacing: -0.025em;
}

/* Enhanced pill animation */
.pill {
  animation: float-up 4s ease-in-out infinite;
}

/* Add glow to interactive elements */
.btn:focus,
.card:focus-within {
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.4);
}

/* Responsive */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.active {
    transform: translateX(0);
  }
  
  .mobile-header {
    display: flex;
  }
  
  .main-content {
    margin-left: 0;
    padding-top: 60px;
  }
  
  .hero h1 { font-size: 36px; }

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

  .grid > .card[style*="grid-column"] {
    grid-column: 1 / -1 !important;
  }

  .token-stats-widget {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 720px) {
  .hero h1 { font-size: 28px; }
  .hero { padding: 60px 0 40px; }
  .card { padding: 20px; }
  
  .footer-content .inline {
    justify-content: center;
    text-align: center;
  }
  
  .footer-social-link {
    width: 32px;
    height: 32px;
  }
  
  .footer-social-link svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 24px; }
  .hero p.lead { font-size: 18px; }
  .inline { flex-direction: column; align-items: stretch; gap: 10px; }
  .inline .btn { width: 100%; }
  .container { padding: 0 15px; }
  .roadmap { padding-left: 28px; }
  .roadmap-marker { left: -24px; width: 24px; height: 24px; top: 20px; }
  .roadmap-marker span { width: 18px; height: 18px; line-height: 18px; font-size: 10px; }
}



/* Roadmap (vertical timeline) */
#roadmap .section-title {
  margin-bottom: 6px;
}

#roadmap .section-desc {
  margin-bottom: 22px;
}

.roadmap {
  position: relative;
  display: grid;
  gap: 22px;
  padding-left: 44px;
}

.roadmap-line {
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--primary));
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.35);
  opacity: 0.9;
}

.roadmap-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.roadmap-marker {
  position: absolute;
  left: -32px;
  top: 24px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent), var(--primary));
  border: 2px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 20px rgba(59,130,246,0.45), 0 0 0 6px rgba(59,130,246,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a1225;
  font-weight: 800;
}

.roadmap-marker span {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e2e8f0;
  text-align: center;
  line-height: 24px;
  font-size: 12px;
}

.roadmap-card {
  padding: 18px;
}

.roadmap-card h3 {
  margin: 8px 0 8px 0;
}

.roadmap-card .pill {
  font-size: 11px;
  padding: 6px 10px;
}

@media (max-width: 720px) {
  .roadmap { padding-left: 36px; }
  .roadmap-marker { left: -28px; width: 28px; height: 28px; }
  .roadmap-marker span { width: 20px; height: 20px; line-height: 20px; font-size: 11px; }
}

/* Token Stats Widget */
.token-stats-widget {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  background: linear-gradient(135deg, rgba(10, 18, 37, 0.6), rgba(15, 23, 42, 0.8));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 40px;
  backdrop-filter: blur(10px);
  box-shadow: 
    0 10px 30px rgba(0,0,0,0.3), 
    0 0 0 1px rgba(59, 130, 246, 0.1),
    0 0 20px rgba(0, 217, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  animation: tokencard-glow 6s ease-in-out infinite;
}

.token-stats-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(59, 130, 246, 0.1),
    rgba(0, 217, 255, 0.15),
    rgba(59, 130, 246, 0.1),
    transparent
  );
  animation: tokencard-shine 8s ease-in-out infinite;
}

.token-stats-widget::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    rgba(59, 130, 246, 0.3),
    rgba(0, 217, 255, 0.4),
    rgba(168, 85, 247, 0.3),
    rgba(59, 130, 246, 0.3)
  );
  border-radius: 18px;
  z-index: -1;
  opacity: 0;
  animation: tokencard-border-glow 4s ease-in-out infinite;
}

@keyframes tokencard-glow {
  0%, 100% {
    box-shadow: 
      0 10px 30px rgba(0,0,0,0.3), 
      0 0 0 1px rgba(59, 130, 246, 0.1),
      0 0 20px rgba(0, 217, 255, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow: 
      0 15px 40px rgba(0,0,0,0.4), 
      0 0 0 1px rgba(59, 130, 246, 0.2),
      0 0 30px rgba(0, 217, 255, 0.25),
      inset 0 1px 0 rgba(255, 255, 255, 0.15);
  }
}

@keyframes tokencard-shine {
  0% {
    left: -100%;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  50% {
    left: 100%;
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

@keyframes tokencard-border-glow {
  0%, 100% {
    opacity: 0;
  }
  50% {
    opacity: 0.6;
  }
}

.token-chart-container {
  flex: 1 1 250px; /* Flex-grow, flex-shrink, basis */
  min-width: 250px;
  height: auto;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.token-details {
  flex: 2 1 300px; /* Take more space */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.token-stats-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  gap: 10px;
}

.token-title {
  font-size: 28px;
  font-weight: 800;
  margin: 0;
  background: linear-gradient(135deg, var(--text), var(--accent));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
  letter-spacing: -0.02em;
}

.token-stats-grid {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-bottom: 24px;
  padding: 20px 0;
  flex-wrap: wrap;
  gap: 20px;
}

.token-distribution {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
}

.distribution-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.distribution-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  font-family: 'Space Mono', monospace;
}

.distribution-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

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

.stat-value {
  font-size: 42px;
  font-weight: 900;
  font-family: 'Space Mono', monospace;
  background: linear-gradient(135deg, var(--accent), var(--primary), var(--accent-secondary));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradient-shift 3s ease-in-out infinite;
  text-shadow: 0 0 40px rgba(59, 130, 246, 0.4);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stat-divider {
  width: 2px;
  height: 60px;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

.token-progress {
  margin-top: 20px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(30, 41, 59, 0.6);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  border-radius: 20px;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.6);
  animation: pulse-glow 3s ease-in-out infinite;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: matrix-flow 2s linear infinite;
}

.progress-label {
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.token-timer {
  margin-top: 20px;
  text-align: center;
  padding: 16px;
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid rgba(0, 217, 255, 0.3);
  border-radius: 12px;
}

.timer-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.timer-display {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  font-family: 'Space Mono', monospace;
  text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

/* Responsive adjustments for token widget */
@media (max-width: 720px) {
  .token-stats-widget {
    padding: 20px;
    gap: 24px;
  }

  .token-stats-grid {
    flex-direction: column;
    gap: 20px;
    width: 100%;
    align-items: center;
    padding: 10px 0;
  }

  .stat-divider {
    width: 80%;
    height: 1px;
  }

  .token-title {
    font-size: 24px;
  }

  .stat-value {
    font-size: 36px;
  }
}

@media (max-width: 480px) {
  .token-stats-header {
    justify-content: center;
  }

  .token-title {
    font-size: 22px;
  }

  .stat-value {
    font-size: 32px;
  }
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
  display: none; /* Hidden by default */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(10, 18, 37, 0.85);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-glow);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  z-index: 100;
}

.mobile-bottom-nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.3s ease;
}

.mobile-bottom-nav__link:hover,
.mobile-bottom-nav__link.active {
  color: var(--accent);
}

.mobile-bottom-nav__icon {
  width: 24px;
  height: 24px;
  margin-bottom: 2px;
}

@media (max-width: 1024px) {
  .mobile-bottom-nav {
    display: none; /* Hidden when sidebar is used */
  }
  
  body {
    padding-bottom: 0;
  }
}

/* Sidebar Frieze Decorative Elements - REMOVED */


/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 32px 0;
  padding: 24px;
  background: rgba(10, 18, 37, 0.3);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.hero-stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.1), transparent);
  animation: stats-shine 6s ease-in-out infinite;
}

@keyframes stats-shine {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

.hero-stat {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-stat .stat-number {
  font-size: 36px;
  font-weight: 900;
  font-family: 'Space Mono', monospace;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
}

.hero-stat .stat-text {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Contract Address Styles */
.hero-contract {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contract-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
}

.contract-address-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  padding: 12px 20px;
  transition: all 0.3s ease;
  width: 100%;
}

.contract-address-wrapper:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.contract-address {
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  transition: color 0.3s ease;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  user-select: all;
}

.contract-address:hover {
  color: var(--accent);
}

.copy-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border-radius: 6px;
  flex-shrink: 0;
}

.copy-btn:hover {
  color: var(--accent);
  background: rgba(59, 130, 246, 0.1);
}

.copy-btn svg {
  width: 18px;
  height: 18px;
}


/* Responsive adjustments for new elements */
@media (max-width: 900px) {
  .hero-stats {
    gap: 20px;
    padding: 20px;
    margin: 24px 0;
  }
  
  .hero-stat .stat-number {
    font-size: 28px;
  }
  
  .sidebar-frieze .frieze-element {
    opacity: 0.4;
  }
  
  .hero-contract {
    max-width: 500px;
  }
}

@media (max-width: 720px) {
  .hero-stats {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .hero-stat .stat-number {
    font-size: 32px;
  }
  
  .hero-contract {
    margin-top: 20px;
    max-width: 100%;
  }
  
  .contract-address-wrapper {
    padding: 10px 12px;
  }
  
  .contract-address {
    font-size: 11px;
  }
  
  .copy-btn svg {
    width: 16px;
    height: 16px;
  }
}

/* Features Section */
#features {
  padding: 60px 0;
  background: rgba(10, 18, 37, 0.1);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

#features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
  animation: float-up 8s ease-in-out infinite;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  position: relative;
  z-index: 2;
}

.feature-card {
  background: rgba(10, 18, 37, 0.4);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  transition: left 0.6s ease;
}

.feature-card:hover::before {
  left: 100%;
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(59, 130, 246, 0.2),
    0 0 30px rgba(0, 217, 255, 0.2);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(0, 217, 255, 0.2));
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%) skewX(-45deg);
  transition: transform 0.6s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  border-color: var(--accent);
  box-shadow: 0 10px 25px rgba(0, 217, 255, 0.3);
}

.feature-card:hover .feature-icon::before {
  transform: translateX(100%) skewX(-45deg);
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: var(--text);
  letter-spacing: -0.02em;
}

.feature-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  font-weight: 500;
}

/* Responsive adjustments for features */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .feature-card {
    padding: 28px 20px;
  }
  
  .feature-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
  }
}

@media (max-width: 720px) {
  #features {
    padding: 40px 0;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .feature-card {
    padding: 24px 20px;
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
  }
  
  .feature-card h3 {
    font-size: 18px;
  }
  
  .feature-card p {
    font-size: 14px;
  }
}

/* Spinner Animation for loading states */
.spinner {
  animation: rotate 2s linear infinite;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: middle; /* Align spinner with text */
}

.spinner .path {
  stroke: currentColor;
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

button[type="submit"] > span {
  vertical-align: middle;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

/* ==================== INTERNATIONALIZATION STYLES ==================== */

/* Language Selector Styles */
.language-selector {
  margin: 1.5rem 0;
  padding: 0 1.5rem;
}

.language-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  font-weight: 500;
}

.language-toggle:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--primary);
}

.language-toggle svg:first-child {
  color: var(--muted);
}

.language-toggle #current-language {
  margin-left: auto;
  font-weight: 600;
  color: var(--primary);
}

.language-toggle .chevron {
  color: var(--muted);
  transition: transform 0.2s ease;
}

.language-toggle[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 1.5rem;
  right: 1.5rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.language-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  border-radius: 0.375rem;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  font-size: 0.875rem;
}

.language-option:hover {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
}

.language-flag {
  font-size: 1.25rem;
  line-height: 1;
}

.language-name {
  font-weight: 500;
}

/* Chinese language-specific typography adjustments */
:lang(zh-CN) {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", 
               "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 
               "Noto Sans CJK SC", sans-serif;
  line-height: 1.8;
}

:lang(zh-CN) h1,
:lang(zh-CN) h2,
:lang(zh-CN) h3,
:lang(zh-CN) h4,
:lang(zh-CN) h5,
:lang(zh-CN) h6 {
  line-height: 1.6;
  font-weight: 700;
}

:lang(zh-CN) p,
:lang(zh-CN) li,
:lang(zh-CN) span {
  line-height: 1.8;
}

:lang(zh-CN) .btn,
:lang(zh-CN) button {
  letter-spacing: 0.02em;
}

/* Adjust spacing for Chinese characters */
:lang(zh-CN) .feature-card h3 {
  letter-spacing: 0.02em;
}

:lang(zh-CN) .section-title {
  letter-spacing: 0.02em;
}

:lang(zh-CN) .modal-title-group h3 {
  letter-spacing: 0.02em;
}

/* Better text rendering for Chinese */
:lang(zh-CN) {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Responsive language selector */
@media (max-width: 1024px) {
  .language-selector {
    padding: 0 1rem;
  }
  
  .language-dropdown {
    left: 1rem;
    right: 1rem;
  }
}

/* Language selector positioning fix */
.sidebar-content {
  position: relative;
}

.language-selector {
  position: relative;
}