* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #6c63ff;
  --primary-dark: #4e46e5;
  --bg: #0d0d1a;
  --bg2: #13131f;
  --bg3: #1a1a2e;
  --text: #e8e8f0;
  --text-muted: #8888aa;
  --border: #2a2a40;
  --accent: #00d4ff;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 4rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 2rem;
  font-size: 0.95rem;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--text);
}

/* HERO */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6rem 4rem;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-content {
  flex: 1;
}

.badge {
  display: inline-block;
  background: rgba(108, 99, 255, 0.15);
  color: var(--primary);
  border: 1px solid rgba(108, 99, 255, 0.3);
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.symbol {
  color: var(--primary);
}

.tagline {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

button, .btn-outline {
  padding: 0.75rem 1.8rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

button {
  background: var(--primary);
  color: white;
  border: none;
}

button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* HERO CARD */
.hero-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  min-width: 260px;
  text-align: center;
}

.card-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
}

.balance {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.card-sub {
  color: var(--text-muted);
  font-size: 0.8rem;
  word-break: break-all;
}

/* STATS */
.stats {
  display: flex;
  justify-content: center;
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}

.stat {
  flex: 1;
  text-align: center;
  padding: 2.5rem 1rem;
  border-right: 1px solid var(--border);
}

.stat:last-child {
  border-right: none;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ABOUT */
.about {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 4rem;
}

.about h2, .contract h2, .wallet-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  letter-spacing: -0.5px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.feature {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: border-color 0.2s;
}

.feature:hover {
  border-color: var(--primary);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* CONTRACT */
.contract {
  background: var(--bg2);
  padding: 6rem 4rem;
}

.contract > * {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.contract h2 {
  max-width: 1100px;
  margin: 0 auto 2.5rem;
}

.contract-card {
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.contract-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}

.contract-row:last-child {
  border-bottom: none;
}

.contract-key {
  color: var(--text-muted);
  font-size: 0.9rem;
  min-width: 140px;
}

.contract-val {
  font-weight: 600;
  text-align: right;
}

.contract-val.address {
  font-size: 0.82rem;
  word-break: break-all;
}

.contract-val a {
  color: var(--primary);
  text-decoration: none;
}

.contract-val a:hover {
  text-decoration: underline;
}

/* WALLET SECTION */
.wallet-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 4rem;
  text-align: center;
}

.wallet-section p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.connect-large {
  padding: 1rem 3rem;
  font-size: 1.05rem;
}

.wallet-info {
  margin-top: 2rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  display: inline-block;
  min-width: 360px;
}

.wallet-info p {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.wallet-info strong {
  color: var(--accent);
  font-size: 1.2rem;
}

.hidden {
  display: none !important;
}

/* FOOTER */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

footer a {
  color: var(--primary);
  text-decoration: none;
  margin-top: 0.5rem;
  display: inline-block;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  header {
    padding: 1rem 1.5rem;
  }

  nav a {
    margin-left: 1rem;
    font-size: 0.85rem;
  }

  .hero {
    flex-direction: column;
    padding: 3rem 1.5rem;
    text-align: center;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-card {
    width: 100%;
  }

  .stats {
    flex-wrap: wrap;
  }

  .stat {
    flex: 1 1 45%;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .about, .wallet-section {
    padding: 3rem 1.5rem;
  }

  .contract {
    padding: 3rem 1.5rem;
  }

  .contract-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .contract-val {
    text-align: left;
  }

  .wallet-info {
    min-width: unset;
    width: 100%;
  }
}
