:root {
  --bg: #0a0a0a;
  --bg-soft: #111;
  --fg: #f5f5f4;
  --fg-muted: #a3a3a3;
  --fg-faint: #525252;
  --border: #1f1f1f;
  --border-strong: #2a2a2a;
  --accent: #d4ff00;          /* electric lime — Solana energy without being on-nose */
  --accent-dim: rgba(212, 255, 0, 0.15);
  --danger: #ff3d3d;

  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Subtle grid backdrop */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 75%);
  pointer-events: none;
}

/* Ambient glow */
body::before {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(212, 255, 0, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.08); }
}

.header, .hero, .footer {
  position: relative;
  z-index: 1;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.logo:hover { color: var(--accent); }
.socials { display: flex; gap: 8px; }
.social {
  width: 40px; height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.15s ease;
}
.social:hover {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* Hero */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 80px;
  text-align: center;
  gap: 32px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent), 0 0 4px var(--accent);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

.ticker {
  display: flex;
  align-items: baseline;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-size: clamp(64px, 15vw, 200px);
  color: var(--fg);
}
.ticker .dollar {
  color: var(--accent);
  margin-right: 0.02em;
}

.tagline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(18px, 3vw, 26px);
  color: var(--fg-muted);
  letter-spacing: -0.01em;
  max-width: 640px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  text-decoration: none;
}
.btn:disabled,
.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.65;
}
.btn:not(:disabled):hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:not(:disabled):hover {
  box-shadow: 0 8px 24px -8px var(--accent-dim), 0 0 0 3px var(--accent-dim);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--fg);
}
.btn-ghost:not(:disabled):hover {
  border-color: var(--fg-muted);
  color: var(--fg);
  background: var(--bg-soft);
}
.btn-icon {
  flex-shrink: 0;
  opacity: 0.9;
}
.btn .soon {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.25);
}
.btn-ghost .soon {
  background: var(--border-strong);
  color: var(--fg-muted);
}

/* Contract address */
.ca {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-soft);
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  margin-top: 16px;
  max-width: 100%;
}
.ca-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.ca-value {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 120ms ease;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.ca-value:hover { color: var(--accent); }
.ca-full { display: inline; }
.ca-short { display: none; }

.ca-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--fg-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 120ms ease, border-color 120ms ease, background 120ms ease;
  flex-shrink: 0;
}
.ca-copy:hover {
  color: var(--fg);
  border-color: var(--fg-faint);
}
.ca-copy.copied {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}

/* Footer */
.footer {
  padding: 24px 32px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-faint);
  letter-spacing: 0.02em;
}

/* Mobile */
@media (max-width: 640px) {
  .header { padding: 20px; }
  .logo span { display: none; }
  .hero { padding: 24px 20px 60px; gap: 24px; }
  .actions { width: 100%; flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .ca { padding: 10px 12px; gap: 8px; }
  .ca-full { display: none; }
  .ca-short { display: inline; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  body::before, .chip .dot { animation: none; }
}
