/* ───────────────────────────────────────────
   RESET & BASE
─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0b0f1a;
  --bg2:       #111827;
  --bg3:       #1a2235;
  --accent:    #6366f1;
  --accent2:   #818cf8;
  --green:     #10b981;
  --text:      #f1f5f9;
  --muted:     #94a3b8;
  --border:    #1e293b;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 4px 24px rgba(0,0,0,.45);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ───────────────────────────────────────────
   BUTTONS
─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s, box-shadow .15s, background .15s;
}

.btn:hover  { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent2); }

.btn-outline {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent2);
}
.btn-outline:hover { background: rgba(99,102,241,.15); }

.btn-lg { padding: 14px 30px; font-size: 1rem; }

.icon-btn {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 8px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 1rem;
  transition: color .15s, background .15s;
}
.icon-btn:hover { color: var(--text); background: var(--accent); }

/* ───────────────────────────────────────────
   NAVBAR
─────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  background: rgba(11,15,26,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
}

.logo-icon { font-size: 1.5rem; color: var(--accent); }
.logo-text  { color: var(--text); }

/* ───────────────────────────────────────────
   HERO
─────────────────────────────────────────── */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 80px 64px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content { flex: 1; }

.token-badge {
  display: inline-block;
  background: rgba(99,102,241,.2);
  color: var(--accent2);
  border: 1px solid rgba(99,102,241,.4);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.ticker {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-left: 12px;
}

.hero-desc {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 32px;
}

/* Address card */
.address-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 32px;
  max-width: 520px;
}

.address-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}

.address-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.address-row code {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: var(--text);
  word-break: break-all;
}

.etherscan-link {
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 600;
}
.etherscan-link:hover { color: #34d399; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.token-circle {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a1f35, #2d1f6e);
  border: 3px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 60px rgba(99,102,241,.35), 0 0 120px rgba(99,102,241,.15);
  animation: pulse 3s ease-in-out infinite;
}

.token-symbol-big {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, #fff, var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 60px rgba(99,102,241,.35), 0 0 120px rgba(99,102,241,.15); }
  50%       { box-shadow: 0 0 80px rgba(99,102,241,.55), 0 0 160px rgba(99,102,241,.25); }
}

/* ───────────────────────────────────────────
   BALANCE CARD
─────────────────────────────────────────── */
.balance-card {
  max-width: 480px;
  margin: 0 auto 40px;
  background: linear-gradient(135deg, #0d1d3a, #1a1f4e);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: 0 0 40px rgba(99,102,241,.25);
  transition: opacity .3s, transform .3s;
}

.balance-card.hidden { display: none; }

.balance-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: var(--muted);
}

.wallet-addr {
  font-family: monospace;
  font-size: 0.78rem;
  color: var(--accent2);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.balance-amount {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}

#tokenBalance {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text);
}

.balance-symbol {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent2);
}

.balance-note {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ───────────────────────────────────────────
   STATS BAR
─────────────────────────────────────────── */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 48px;
  border-right: 1px solid var(--border);
}

.stat:last-child { border-right: none; }

.stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent2);
}

.stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-top: 4px;
}

/* ───────────────────────────────────────────
   SECTIONS
─────────────────────────────────────────── */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 32px;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 48px;
  text-align: center;
}

/* Features grid */
.about { background: var(--bg); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color .2s, transform .2s;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* How-to section */
.how-to { background: var(--bg2); }

.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 680px;
  margin: 0 auto;
}

.steps-list li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}

.steps-list li div strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}

.steps-list li div p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ───────────────────────────────────────────
   FOOTER
─────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 32px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ───────────────────────────────────────────
   TOAST
─────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #fff;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  transition: opacity .3s;
}

.toast.hidden { display: none; }

/* ───────────────────────────────────────────
   RESPONSIVE
─────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    padding: 48px 24px;
    text-align: center;
  }

  .hero-desc { margin: 0 auto 32px; }
  .hero-actions { justify-content: center; }
  .address-card { max-width: 100%; }

  .stat { padding: 20px 24px; }
  .stat-value { font-size: 1.3rem; }

  .navbar { padding: 14px 20px; }

  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
}
