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

:root {
  --bg-primary: #06070b;
  --bg-secondary: #0c0e17;
  --bg-card: rgba(18, 22, 34, 0.75);
  --bg-card-hover: rgba(28, 34, 52, 0.85);
  --bg-modal: #0d101c;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-glow: rgba(0, 191, 255, 0.4);
  
  --neon-cyan: #02FFB3;
  --neon-blue: #00BFFF;
  --neon-purple: #5B00F8;
  --neon-magenta: #FF04C9;
  
  --gradient-primary: linear-gradient(90deg, #00BFFF 0%, #02FFB3 100%);
  --gradient-purple-pink: linear-gradient(90deg, #5B00F8 0%, #FF04C9 100%);
  --gradient-card-border: linear-gradient(135deg, rgba(2, 255, 179, 0.2), rgba(0, 191, 255, 0.05));

  --text-white: #f8fafc;
  --text-white-90: rgba(248, 250, 252, 0.9);
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --green-positive: #10b981;
  --red-negative: #f43f5e;
  
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  
  --glow-shadow: 0 0 25px rgba(0, 191, 255, 0.15);
}

/* Light Theme Variables Override */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --bg-modal: #ffffff;
  
  --border-color: rgba(0, 0, 0, 0.08);
  --border-color-glow: rgba(0, 191, 255, 0.5);
  
  --text-white: #0f172a;
  --text-white-90: #1e293b;
  --text-muted: #475569;
  --text-dim: #64748b;
}

/* Reset & Global */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-white);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  background-color: var(--bg-primary);
}

/* Background Ambient Glow FX */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 600px;
  background: radial-gradient(circle at 50% -100px, rgba(2, 255, 179, 0.12) 0%, rgba(0, 191, 255, 0.08) 35%, rgba(91, 0, 248, 0.04) 60%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

button {
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

/* Glassmorphism Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  padding: 16px 24px;
  display: flex;
  justify-content: center;
}

.navbar-container {
  width: 100%;
  max-width: 1440px;
  height: 72px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-beta {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  background: var(--gradient-purple-pink);
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  text-transform: uppercase;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-item {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item:hover, .nav-item.active {
  color: var(--text-white);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Buttons */
.btn-primary {
  background: var(--gradient-primary);
  color: #06070b;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(2, 255, 179, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 191, 255, 0.4);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-white);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Mobile Hamburger Toggle */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px;
}

.mobile-menu-btn span {
  width: 100%;
  height: 2px;
  background: var(--text-white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 90px;
  left: 16px;
  right: 16px;
  background: var(--bg-modal);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 24px;
  z-index: 99;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  flex-direction: column;
  gap: 16px;
}

.mobile-drawer.active {
  display: flex;
}

/* Main Container */
.main-content {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px 24px 80px 24px;
  position: relative;
  z-index: 1;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 60px 0 40px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.referral-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(91, 0, 248, 0.15);
  border: 1px solid rgba(255, 4, 201, 0.3);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--neon-cyan);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  animation: pulseGlow 3s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(2, 255, 179, 0.2); }
  50% { box-shadow: 0 0 25px rgba(255, 4, 201, 0.4); }
}

.hero-title {
  font-size: 56px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 900px;
  margin-bottom: 20px;
}

.hero-title span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 36px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Mindshare Market Stats Grid */
.market-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 60px 0;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  backdrop-filter: blur(12px);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-color-glow);
  box-shadow: var(--glow-shadow);
}

.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.token-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.token-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: #06070b;
}

.token-name {
  font-weight: 700;
  font-size: 16px;
}

.token-symbol {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.stat-price {
  font-size: 24px;
  font-weight: 800;
  font-family: var(--font-mono);
  margin-bottom: 6px;
}

.stat-change {
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-change.positive { color: var(--green-positive); }
.stat-change.negative { color: var(--red-negative); }

/* Feature Cards Section */
.section-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  margin-bottom: 80px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  transition: all 0.3s ease;
  position: relative;
}

.feature-card:hover {
  border-color: rgba(2, 255, 179, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.feature-badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(2, 255, 179, 0.12);
  color: var(--neon-cyan);
  border: 1px solid rgba(2, 255, 179, 0.3);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.feature-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.feature-link {
  font-weight: 700;
  font-size: 14px;
  color: var(--neon-cyan);
  display: flex;
  align-items: center;
  gap: 6px;
}

.feature-link:hover {
  gap: 10px;
}

/* Signals & Whale Tracker Section */
.signals-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 80px;
  backdrop-filter: blur(16px);
}

.signals-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.signals-tabs {
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
}

.tab-btn {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: var(--gradient-primary);
  color: #06070b;
  font-weight: 700;
}

.signals-table {
  width: 100%;
  border-collapse: collapse;
}

.signals-table th {
  text-align: left;
  padding: 14px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-color);
}

.signals-table td {
  padding: 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border-color);
}

.signals-table tr:last-child td {
  border-bottom: none;
}

.signals-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

/* Modal Popup */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--bg-modal);
  border: 1px solid var(--border-color-glow);
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 100%;
  padding: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 20px;
  color: var(--text-muted);
}

.wallet-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
}

.wallet-option:hover {
  background: rgba(2, 255, 179, 0.08);
  border-color: var(--neon-cyan);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 60px 24px;
  background: var(--bg-secondary);
}

.footer-container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-col a:hover {
  color: var(--neon-cyan);
}

/* Responsive Breakpoints */
@media screen and (max-width: 991px) {
  .hero-title { font-size: 40px; }
  .navbar-menu { display: none; }
  .mobile-menu-btn { display: flex; }
}

@media screen and (max-width: 640px) {
  .hero-title { font-size: 32px; }
  .hero-subtitle { font-size: 15px; }
  .ecosystem-grid { grid-template-columns: 1fr; }
  .signals-table th:nth-child(4), .signals-table td:nth-child(4) { display: none; }
}
