@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg: #08080f;
  --bg2: #0f0f1a;
  --bg3: #13131f;
  --card: #0e0e1c;
  --border: rgba(153, 69, 255, 0.18);
  --border2: rgba(255,255,255,0.07);
  --sol-purple: #9945FF;
  --sol-green: #14F195;
  --sol-purple-dim: rgba(153, 69, 255, 0.15);
  --sol-green-dim: rgba(20, 241, 149, 0.12);
  --text: #e8e8f8;
  --text-dim: #7878a0;
  --text-dimmer: #4a4a6a;
  --danger: #ff6b6b;
  --warn: #ffb347;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.ambient-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(153,69,255,0.08) 0%, transparent 70%);
  top: -200px; right: -100px;
}
.ambient-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(20,241,149,0.05) 0%, transparent 70%);
  bottom: -100px; left: -100px;
}

/* ====== NAV ====== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 60px;
  background: rgba(8,8,15,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border2);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
}
.logo-diamond { width: 32px; height: 32px; }
.logo-diamond svg { width: 100%; height: 100%; }
.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.5px;
}
.logo-text span { color: var(--sol-green); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.3px;
  transition: color 0.2s;
  cursor: pointer;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active { color: var(--sol-green); }

.btn-connect {
  background: var(--text);
  color: var(--bg);
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-connect:hover { background: var(--sol-green); transform: translateY(-1px); }
.btn-connect.connected {
  background: var(--bg3);
  color: var(--text);
  border: 1px solid var(--border);
}
.wallet-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sol-green);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

/* ====== CARDS ====== */
.card {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
}

/* ====== BUTTONS ====== */
.btn-primary {
  background: var(--sol-green);
  color: #000;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary:hover {
  background: #0fd47f;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(20,241,149,0.25);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border2);
  padding: 12px 24px;
  border-radius: 10px;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover {
  border-color: var(--sol-purple);
  color: var(--sol-purple);
  transform: translateY(-2px);
}

/* ====== PAGE WRAPPER ====== */
.page-wrap {
  position: relative;
  z-index: 1;
  padding-top: 60px;
  min-height: 100vh;
}

/* ====== FOOTER ====== */
.site-footer {
  border-top: 1px solid var(--border2);
  padding: 24px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}
.footer-brand { font-size: 13px; color: var(--text-dim); }
.footer-brand strong { color: var(--text); }
.footer-copy { font-size: 11px; color: var(--text-dimmer); }
.footer-socials { display: flex; gap: 16px; }
.footer-socials a {
  color: var(--text-dimmer);
  font-size: 11px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.2s;
}
.footer-socials a:hover { color: var(--sol-green); }

/* ====== ANIMATIONS ====== */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes floatDiamond {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(2deg); }
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .site-footer { flex-direction: column; gap: 12px; text-align: center; padding: 20px; }
}
