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

:root {
  --gold: #f0c060;
  --gold-dim: rgba(240, 192, 96, 0.15);
  --blue: #a8c4ff;
  --blue-dim: rgba(168, 196, 255, 0.12);
  --fg: #e8eeff;
  --muted: rgba(168, 196, 255, 0.5);
  --border: rgba(168, 196, 255, 0.12);
  --nav-h: 64px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #000;
  color: var(--fg);
  font-family: 'Space Grotesk', 'Georgia', serif;
  cursor: none;
  overflow-x: hidden;
}

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

/* ── canvas ── */
canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── custom cursor ── */
#cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(240, 192, 96, 0.8), 0 0 28px rgba(240, 192, 96, 0.35);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.15s, height 0.15s, opacity 0.2s;
}

/* ── nav ── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(240, 192, 96, 0.5);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

.nav-links a {
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--fg); }

.nav-buy {
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: 4px;
  color: var(--gold) !important;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  transition: background 0.2s, box-shadow 0.2s !important;
}

.nav-buy:hover {
  background: var(--gold-dim) !important;
  box-shadow: 0 0 20px rgba(240, 192, 96, 0.2);
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--fg);
  font-size: 1.4rem;
  cursor: pointer;
}

#mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(0, 0, 0, 0.95);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 2rem;
  gap: 1.2rem;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

#mobile-menu a { color: var(--muted); }
#mobile-menu a:hover { color: var(--fg); }
#mobile-menu.hidden { display: none; }

/* ── sections base ── */
section {
  position: relative;
  z-index: 10;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.2rem;
  text-align: center;
}

/* ── buttons ── */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: #000;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s;
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(240, 192, 96, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--blue);
  font-family: inherit;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-secondary:hover {
  border-color: rgba(168, 196, 255, 0.35);
  color: var(--fg);
}

/* ── hero ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 2rem) 2rem 4rem;
}

.hero-content {
  max-width: 700px;
  animation: fade-up 1.2s ease both;
}

.hero-ticker {
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
  margin-bottom: 1.2rem;
}

.hero-title {
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-shadow: 0 0 80px rgba(120, 160, 255, 0.35);
  margin-bottom: 1.5rem;
}

.hero-title span {
  color: var(--gold);
  text-shadow: 0 0 50px rgba(240, 192, 96, 0.5), 0 0 100px rgba(240, 192, 96, 0.2);
}

.hero-sub {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

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

/* ── contract address ── */
#ca-section {
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}

.ca-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}

#ca-text {
  font-family: 'Space Mono', 'Courier New', monospace;
  font-size: clamp(0.6rem, 2vw, 0.85rem);
  color: var(--blue);
  letter-spacing: 0.04em;
  word-break: break-all;
}

#ca-copy {
  background: var(--gold-dim);
  border: 1px solid rgba(240, 192, 96, 0.3);
  border-radius: 4px;
  color: var(--gold);
  font-family: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}

#ca-copy:hover { background: rgba(240, 192, 96, 0.2); }
#ca-copy.copied { color: #7fff9a; border-color: rgba(127, 255, 154, 0.4); background: rgba(127, 255, 154, 0.08); }

.ca-note {
  margin-top: 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.6;
}

/* ── about ── */
#about {
  padding: 6rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.about-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem 1.75rem;
  transition: border-color 0.2s, background 0.2s;
}

.about-card:hover {
  border-color: rgba(168, 196, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
}

.about-icon {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(240, 192, 96, 0.5);
}

.about-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: lowercase;
  margin-bottom: 0.75rem;
  color: var(--fg);
}

.about-card p {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--muted);
}

/* ── stats ── */
#stats {
  padding: 5rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: border-color 0.2s;
}

.stat-card:hover {
  border-color: rgba(168, 196, 255, 0.22);
}

.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.stat-value {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.01em;
  transition: color 0.3s;
}

.stat-value.positive { color: #7fff9a; }
.stat-value.negative { color: #ff7b7b; }

.stat-value.loading {
  opacity: 0.3;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.stats-refresh {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  opacity: 0.45;
  text-align: center;
  margin-bottom: 1.75rem;
  min-height: 1em;
}

.chart-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── footer ── */
#footer {
  position: relative;
  z-index: 10;
  padding: 4rem 2rem 3rem;
  text-align: center;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.4);
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-shadow: 0 0 20px rgba(240, 192, 96, 0.4);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links a {
  color: var(--muted);
  transition: color 0.2s;
}

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

.footer-disclaimer {
  font-size: 0.7rem;
  color: rgba(168, 196, 255, 0.25);
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── animations ── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── responsive ── */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }

  #ca-text { font-size: 0.55rem; }

  .chart-container { height: 360px; }

  body { cursor: auto; }
  #cursor { display: none; }
}
