/* ============================================
   KLEVERPEPE REDESIGN - DESIGN SYSTEM
   ============================================ */

/* CSS Variables - Design System */
:root {
  /* Brand Colors */
  --klever-green: #2ECC71;
  --klever-green-dark: #27AE60;
  --klever-green-glow: rgba(46, 204, 113, 0.5);
  
  /* Purple Accent (Klever brand link) */
  --klever-purple: #9B59B6;
  --klever-purple-dark: #8E44AD;
  
  /* Neutrals */
  --bg-dark: #0A0A0F;
  --bg-card: #14141F;
  --bg-card-hover: #1A1A2E;
  --text-primary: #FFFFFF;
  --text-secondary: #B0B0C0;
  --text-muted: #6B6B80;
  --border-color: #2A2A3E;
  
  /* Status Colors */
  --success: #00E676;
  --warning: #FFB74D;
  --danger: #FF5252;
  
  /* Spacing */
  --section-padding: 80px 20px;
  --container-max: 1200px;
  
  /* Typography */
  --font-primary: 'Urbanist', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Effects */
  --glow-green: 0 0 30px rgba(46, 204, 113, 0.4);
  --glow-purple: 0 0 30px rgba(155, 89, 182, 0.4);
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --border-radius: 16px;
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p { color: var(--text-secondary); }

a {
  text-decoration: none;
  color: inherit;
}

/* ============================================
   BACKGROUND ANIMATION
   ============================================ */
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(46, 204, 113, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(155, 89, 182, 0.08) 0%, transparent 50%),
    var(--bg-dark);
  z-index: -1;
}

.floating-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--klever-green);
  border-radius: 50%;
  opacity: 0.3;
  animation: floatParticle 15s infinite linear;
}

.particle:nth-child(2) { left: 20%; animation-delay: -2s; background: var(--klever-purple); }
.particle:nth-child(3) { left: 40%; animation-delay: -4s; }
.particle:nth-child(4) { left: 60%; animation-delay: -6s; background: var(--klever-purple); }
.particle:nth-child(5) { left: 80%; animation-delay: -8s; }
.particle:nth-child(6) { left: 10%; animation-delay: -10s; background: var(--klever-purple); }
.particle:nth-child(7) { left: 30%; animation-delay: -12s; }
.particle:nth-child(8) { left: 50%; animation-delay: -14s; background: var(--klever-purple); }

@keyframes floatParticle {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% { opacity: 0.3; }
  90% { opacity: 0.3; }
  100% {
    transform: translateY(-100px) rotate(720deg);
    opacity: 0;
  }
}

/* ============================================
   HEADER & NAV
   ============================================ */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 15px 30px;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-medium);
}

header.scrolled {
  padding: 10px 30px;
  background: rgba(10, 10, 15, 0.98);
}

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

.header-logo video,
.header-logo img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--klever-green), var(--klever-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav {
  display: flex;
  gap: 30px;
}

nav a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--klever-green);
  transition: var(--transition-fast);
}

nav a:hover {
  color: var(--text-primary);
}

nav a:hover::after {
  width: 100%;
}

.nav-cta {
  background: linear-gradient(135deg, var(--klever-green), var(--klever-green-dark));
  padding: 10px 24px;
  border-radius: 30px;
  color: var(--bg-dark) !important;
  font-weight: 600;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-green);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn span {
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-fast);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 80px;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 800px;
  animation: fadeInUp 1s ease;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid var(--klever-green);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  color: var(--klever-green);
  margin-bottom: 24px;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--klever-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--klever-green), var(--klever-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--klever-green);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-medium);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--klever-green), var(--klever-green-dark));
  color: var(--bg-dark);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow-green);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  border-color: var(--klever-green);
  color: var(--klever-green);
}

.btn-large {
  padding: 20px 40px;
  font-size: 1.1rem;
}

/* ============================================
   CONTRACT ADDRESS SECTION
   ============================================ */
.contract-section {
  padding: var(--section-padding);
  background: var(--bg-card);
}

.contract-card {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 30px;
  max-width: 600px;
  margin: 0 auto;
}

.contract-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.contract-address {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.contract-address code {
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 1rem;
  color: var(--klever-green);
  word-break: break-all;
}

.copy-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: var(--transition-fast);
}

.copy-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.contract-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.contract-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-card);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.contract-link:hover {
  background: var(--bg-card-hover);
  color: var(--klever-green);
}

/* ============================================
   SECTIONS COMMON
   ============================================ */
.section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   TOKENOMICS
   ============================================ */
.tokenomics {
  background: var(--bg-card);
}

.tokenomics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.tokenomic-card {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 30px;
  text-align: center;
  transition: var(--transition-medium);
}

.tokenomic-card:hover {
  border-color: var(--klever-green);
  transform: translateY(-5px);
  box-shadow: var(--glow-green);
}

.tokenomic-icon {
  width: 60px;
  height: 60px;
  background: rgba(46, 204, 113, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
}

.tokenomic-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--klever-green);
  margin-bottom: 8px;
}

.tokenomic-label {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Chart */
.tokenomics-chart {
  margin-top: 60px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.chart-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chart-bar {
  display: flex;
  align-items: center;
  gap: 16px;
}

.chart-label {
  width: 140px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.chart-fill-container {
  flex: 1;
  height: 24px;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
}

.chart-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--klever-green), var(--klever-purple));
  border-radius: 12px;
  transition: width 1s ease;
}

.chart-percent {
  width: 60px;
  text-align: right;
  font-weight: 600;
  color: var(--klever-green);
}

/* ============================================
   STAKING
   ============================================ */
.staking {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-card) 100%);
}

.staking-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.staking-highlight {
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(155, 89, 182, 0.1));
  border: 1px solid var(--klever-green);
  border-radius: var(--border-radius);
  padding: 40px;
  margin: 40px 0;
}

.apr-value {
  font-size: 4rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--klever-green), var(--klever-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.apr-label {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.staking-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.feature {
  padding: 20px;
  background: var(--bg-card);
  border-radius: 12px;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.feature-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ============================================
   ROADMAP
   ============================================ */
.roadmap {
  background: var(--bg-card);
}

.roadmap-timeline {
  max-width: 900px;
  margin: 0 auto;
}

.roadmap-phase {
  margin-bottom: 40px;
}

.phase-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.phase-number {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--klever-green), var(--klever-green-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--bg-dark);
}

.phase-title {
  font-size: 1.5rem;
}

.phase-items {
  display: grid;
  gap: 12px;
  margin-left: 64px;
}

.roadmap-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: var(--transition-fast);
}

.roadmap-item:hover {
  border-color: var(--klever-green);
}

.roadmap-item.completed {
  border-left: 3px solid var(--success);
}

.roadmap-item.in-progress {
  border-left: 3px solid var(--warning);
}

.roadmap-item.pending {
  border-left: 3px solid var(--text-muted);
}

.item-status {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.completed .item-status {
  background: var(--success);
  color: var(--bg-dark);
}

.in-progress .item-status {
  background: var(--warning);
  color: var(--bg-dark);
}

.pending .item-status {
  background: var(--text-muted);
  color: var(--bg-dark);
}

/* ============================================
   LIVE PRICE
   ============================================ */
.price-section {
  text-align: center;
}

.price-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.price-value {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--klever-green);
}

.price-change {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(46, 204, 113, 0.1);
  border-radius: 8px;
  color: var(--klever-green);
  font-weight: 600;
}

.price-chart {
  margin-top: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   TRADING SECTION
   ============================================ */
.trading-section {
  background: var(--bg-card);
}

.trading-platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.trading-card {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 30px;
  text-align: center;
  transition: var(--transition-medium);
}

.trading-card:hover {
  border-color: var(--klever-green);
  transform: translateY(-5px);
}

.trading-logo {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.trading-type {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ============================================
   GAMING SECTION
   ============================================ */
.gaming {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-dark) 100%);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.game-card {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition-medium);
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--glow-green);
}

.game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.game-content {
  padding: 24px;
}

.game-title {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.game-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.game-store-buttons {
  display: flex;
  gap: 12px;
}

.store-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: var(--bg-card);
  border-radius: 8px;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.store-btn:hover {
  background: var(--bg-card-hover);
}

/* ============================================
   SWAP SECTION
   ============================================ */
.swap-section {
  background: var(--bg-card);
}

.swap-widget {
  max-width: 500px;
  margin: 0 auto;
  border-radius: var(--border-radius);
  overflow: hidden;
}

/* ============================================
   COMMUNITY SECTION
   ============================================ */
.community {
  text-align: center;
}

.social-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 120px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: var(--transition-medium);
}

.social-link:hover {
  border-color: var(--klever-green);
  transform: translateY(-5px);
}

.social-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(46, 204, 113, 0.1);
  border-radius: 50%;
  font-size: 1.5rem;
}

.social-name {
  font-weight: 600;
}

.social-followers {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--bg-dark);
  padding: 60px 20px 30px;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

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

.footer-bottom {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-legal a:hover {
  color: var(--text-primary);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  header {
    padding: 12px 20px;
  }

  nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    display: none;
  }

  nav.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero-stats {
    gap: 24px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .contract-address {
    flex-direction: column;
    text-align: center;
  }

  .phase-items {
    margin-left: 0;
  }

  .roadmap-item {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

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

  .game-store-buttons {
    flex-direction: column;
  }

  .social-grid {
    gap: 12px;
  }

  .social-link {
    width: 100px;
    padding: 16px;
  }
}
