/* MZN Web3 Ecosystem Main CSS v3.5.6 */
:root {
  --bg-primary: #070b14;
  --bg-secondary: #0d1527;
  --bg-card: rgba(15, 23, 42, 0.75);
  --border-color: rgba(0, 242, 254, 0.18);
  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --accent-green: #00e676;
  --accent-gold: #ffb300;
  --accent-purple: #c084fc;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(79, 172, 254, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(0, 242, 254, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
}

a { color: var(--accent-cyan); text-decoration: none; transition: all 0.2s ease; }
a:hover { color: var(--accent-blue); }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* Navbar - Fixed Spacing & Flex Harmony */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 11, 20, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.5px;
  flex-shrink: 0;
}
.brand-badge {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-pill {
  font-size: 0.65rem; padding: 2px 8px; border-radius: 999px;
  background: rgba(0, 242, 254, 0.15); color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan); text-transform: uppercase; font-weight: 700;
  letter-spacing: 0.5px;
}
.nav-links {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.nav-links a {
  color: var(--text-muted); font-size: 0.88rem; font-weight: 600; transition: color 0.2s ease;
  white-space: nowrap;
}
.nav-links a:hover { color: #ffffff; }
.nav-actions {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 18px; border-radius: 8px; font-weight: 600; font-size: 0.88rem;
  cursor: pointer; border: none; transition: all 0.2s ease; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #070b14; font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 242, 254, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 242, 254, 0.45); }
.btn-outline {
  background: transparent; border: 1px solid var(--border-color); color: var(--text-main);
}
.btn-outline:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }

/* Hero Section */
.hero { padding: 64px 0 48px; text-align: center; }
.hero-tag {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(0, 242, 254, 0.1); border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--accent-cyan); font-size: 0.85rem; font-weight: 700; margin-bottom: 20px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.hero h1 { font-size: 3.2rem; font-weight: 900; line-height: 1.15; margin-bottom: 20px; letter-spacing: -1px; }
.gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-cyan) 80%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p { max-width: 820px; margin: 0 auto 32px; font-size: 1.15rem; color: var(--text-muted); line-height: 1.7; }
.hero-cta { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 40px; }

/* Token Grid (Live Protocols) */
.section { padding: 56px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 12px; }
.section-header p { color: var(--text-muted); font-size: 1rem; max-width: 740px; margin: 0 auto; }

.token-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-bottom: 32px; }
.token-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 24px;
  backdrop-filter: blur(10px);
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.token-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  box-shadow: 0 12px 30px rgba(0, 242, 254, 0.15);
}
.token-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.token-chain-badge {
  font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.08); color: var(--text-main);
}
.token-status { font-size: 0.75rem; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.status-dot.active { background: var(--accent-green); box-shadow: 0 0 8px var(--accent-green); }
.status-dot.draft { background: var(--accent-gold); }
.token-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 6px; }
.token-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; min-height: 40px; }
.token-meta { background: var(--bg-secondary); border-radius: 8px; padding: 12px; margin-bottom: 18px; font-size: 0.8rem; }
.token-meta-row { display: flex; justify-content: space-between; margin-bottom: 6px; }
.token-meta-row:last-child { margin-bottom: 0; }
.token-actions { display: flex; gap: 8px; }

/* 100+ DEX Directory & Search */
.dex-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 24px;
  overflow-x: auto;
}
.dex-filter-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.search-box {
  flex: 1; min-width: 260px; max-width: 420px; position: relative;
}
.search-input {
  width: 100%; background: var(--bg-secondary); border: 1px solid var(--border-color);
  border-radius: 8px; padding: 10px 16px; color: var(--text-main); font-size: 0.9rem; outline: none;
}
.search-input:focus { border-color: var(--accent-cyan); }
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-pill {
  padding: 8px 14px; border-radius: 6px; background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08); color: var(--text-muted);
  font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all 0.2s ease;
}
.filter-pill.active, .filter-pill:hover {
  background: rgba(0, 242, 254, 0.15); border-color: var(--accent-cyan); color: var(--accent-cyan);
}
.table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.9rem; }
.table th { padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); color: var(--text-muted); font-weight: 600; }
.table td { padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.table tr:hover td { background: rgba(0, 242, 254, 0.03); }

/* Comprehensive About Us Section */
.about-section { background: rgba(13, 21, 39, 0.45); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 48px; }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 12px; padding: 24px; text-align: center;
}
.stat-value { font-size: 2.2rem; font-weight: 900; color: var(--accent-cyan); margin-bottom: 6px; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; font-weight: 600; }

.pillars-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-bottom: 40px; }
.pillar-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 14px; padding: 28px; position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
}
.pillar-num {
  font-size: 0.85rem; font-weight: 800; color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.12); border-radius: 6px; padding: 4px 10px;
  display: inline-block; margin-bottom: 14px;
}
.pillar-title { font-size: 1.25rem; font-weight: 800; margin-bottom: 12px; }
.pillar-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }

/* Interactive Pillar Action Badges */
.pillar-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.pillar-tag {
  font-size: 0.78rem; font-weight: 600; background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.25); padding: 6px 12px; border-radius: 6px;
  color: var(--accent-cyan); cursor: pointer; transition: all 0.2s ease;
  display: inline-flex; align-items: center; gap: 6px; user-select: none;
}
.pillar-tag:hover {
  background: rgba(0, 242, 254, 0.25); border-color: var(--accent-cyan);
  color: #ffffff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 242, 254, 0.3);
}
.pillar-tag::after { content: '↗'; font-size: 0.75rem; opacity: 0.7; }

/* Institutional Incubation Pipeline Section */
.pipeline-section { padding: 56px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.pipeline-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin-top: 32px; }
.pipeline-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 12px; padding: 22px; transition: transform 0.2s ease, border-color 0.2s ease;
  display: flex; flex-direction: column; justify-content: space-between;
}
.pipeline-card:hover { transform: translateY(-3px); border-color: var(--accent-cyan); }
.pipeline-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pipeline-tag {
  font-size: 0.7rem; font-weight: 800; padding: 3px 8px; border-radius: 4px;
  background: rgba(192, 132, 252, 0.15); color: var(--accent-purple); border: 1px solid rgba(192, 132, 252, 0.3);
  text-transform: uppercase;
}
.pipeline-badge {
  font-size: 0.7rem; font-weight: 700; padding: 3px 8px; border-radius: 4px;
  background: rgba(255, 179, 0, 0.12); color: var(--accent-gold);
}
.pipeline-name { font-size: 1.15rem; font-weight: 800; margin-bottom: 6px; }
.pipeline-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }
.pipeline-meta { display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; color: var(--text-muted); border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 12px; }

/* Comparison Table */
.comparison-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 14px; padding: 28px;
}
.check-icon { color: var(--accent-green); font-weight: 800; }
.cross-icon { color: #f43f5e; font-weight: 800; }

/* Pricing Cards */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.pricing-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 14px; padding: 32px 24px; text-align: center;
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
}
.pricing-card.featured {
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.2);
  transform: scale(1.03);
}
.featured-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #070b14; font-size: 0.75rem; font-weight: 800; padding: 4px 14px;
  border-radius: 999px; text-transform: uppercase;
}
.pricing-title { font-size: 1.35rem; font-weight: 800; margin-bottom: 8px; }
.pricing-price { font-size: 2.4rem; font-weight: 900; margin-bottom: 16px; color: var(--accent-cyan); }
.pricing-features { text-align: left; list-style: none; margin: 24px 0; font-size: 0.85rem; }
.pricing-features li { padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); display: flex; align-items: center; gap: 8px; color: var(--text-muted); }

/* Treasury Vault Card */
.treasury-box {
  background: linear-gradient(135deg, rgba(13, 21, 39, 0.9), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(0, 242, 254, 0.3); border-radius: 14px; padding: 32px;
  text-align: center; max-width: 860px; margin: 0 auto;
}
.treasury-addr {
  font-family: monospace; font-size: 1.05rem; background: #070b14;
  padding: 12px 18px; border-radius: 8px; border: 1px solid var(--border-color);
  display: inline-block; margin: 16px 0; word-break: break-all; color: var(--accent-cyan);
  cursor: pointer; transition: border-color 0.2s ease;
}
.treasury-addr:hover { border-color: var(--accent-cyan); }

/* Sleek Web3 Notification Toast */
.mzn-toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  background: #0d1527; border: 1px solid var(--accent-cyan);
  color: #ffffff; padding: 14px 20px; border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.35); font-size: 0.9rem;
  display: flex; align-items: center; gap: 12px;
  transform: translateY(100px); opacity: 0; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mzn-toast.show { transform: translateY(0); opacity: 1; }

/* Floating MZNAI Copilot Widget */
.ai-widget-btn {
  position: fixed; bottom: 24px; left: 24px; z-index: 999;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #070b14; font-weight: 800; font-size: 0.9rem;
  padding: 12px 22px; border-radius: 999px; cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 242, 254, 0.4);
  display: flex; align-items: center; gap: 10px; border: none;
  transition: all 0.25s ease;
}
.ai-widget-btn:hover { transform: scale(1.05); box-shadow: 0 8px 30px rgba(0, 242, 254, 0.6); }

.ai-chat-window {
  display: none; position: fixed; bottom: 84px; left: 24px; z-index: 1000;
  width: 400px; max-width: 92vw; height: 530px;
  background: var(--bg-secondary); border: 1px solid var(--accent-cyan);
  border-radius: 16px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
  flex-direction: column; overflow: hidden; backdrop-filter: blur(16px);
}
.ai-chat-window.open { display: flex; }
.ai-chat-header {
  background: #070b14; padding: 14px 18px; border-bottom: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: space-between;
}
.ai-chat-header-title { font-weight: 900; font-size: 1.05rem; color: var(--accent-cyan); display: flex; align-items: center; gap: 8px; letter-spacing: 0.5px; }
.ai-chat-header-close { background: transparent; border: none; color: var(--text-muted); font-size: 1.4rem; cursor: pointer; }
.ai-chat-messages {
  flex: 1; padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px;
  font-size: 0.88rem;
}
.chat-msg { padding: 10px 14px; border-radius: 10px; line-height: 1.5; max-width: 88%; }
.chat-msg.bot { background: rgba(0, 242, 254, 0.1); border: 1px solid rgba(0, 242, 254, 0.2); align-self: flex-start; color: var(--text-main); }
.chat-msg.user { background: var(--accent-blue); color: #070b14; font-weight: 700; align-self: flex-end; }
.ai-chat-input-bar {
  padding: 12px; background: #070b14; border-top: 1px solid var(--border-color);
  display: flex; gap: 8px;
}
.ai-input {
  flex: 1; background: var(--bg-secondary); border: 1px solid var(--border-color);
  border-radius: 8px; padding: 10px 14px; color: #ffffff; font-size: 0.88rem; outline: none;
}
.ai-input:focus { border-color: var(--accent-cyan); }

/* Modal */
.modal {
  display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px); z-index: 1000; align-items: center; justify-content: center;
}
.modal.open { display: flex; }
.modal-content {
  background: var(--bg-secondary); border: 1px solid var(--border-color);
  border-radius: 16px; width: 90%; max-width: 520px; padding: 32px; position: relative;
}
.modal-close {
  position: absolute; top: 16px; right: 16px; background: transparent;
  border: none; color: var(--text-muted); font-size: 1.4rem; cursor: pointer;
}

/* Footer */
.footer { padding: 48px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.85rem; color: var(--text-muted); text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
}
