/* ========== ROOT & RESET ========== */

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

:root {
  --mdv-cyan: #00e5ff;
  --mdv-purple: #8a2be2;
  --mdv-pink: #ff1493;
  --mdv-bg: #050512;
  --mdv-surface: #101020;
  --mdv-border-soft: rgba(255,255,255,0.08);
  --mdv-text: #e5e7eb;
  --mdv-text-muted: #9ca3af;
}

html {
  font-size: 18px;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #050512 0%, #020109 60%, #000000 100%);
  color: var(--mdv-text);
  text-align: left;
  overflow-x: hidden;
  line-height: 1.7;
}

/* ========== GENERAL LAYOUT ========== */

main {
  width: 100%;
}

.section {
  padding: 96px 20px;
}

.section-light {
  background: radial-gradient(circle at top, #070716 0%, #050512 60%);
}

.section-dark {
  background: radial-gradient(circle at top, #0b0b18 0%, #050512 60%);
}

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.section-header {
  max-width: 720px;
  margin-bottom: 40px;
  position: relative;
  padding-top: 16px;
}

.section-header h2 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 2.3rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* Gradient bar above section headings */
.section-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 96px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--mdv-cyan), var(--mdv-purple), var(--mdv-pink));
}

.section-kicker {
  color: var(--mdv-text-muted);
}

/* GRID HELPERS */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 900px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* CARDS */

.card {
  background: rgba(16,16,32,0.85);
  border-radius: 16px;
  border: 1px solid var(--mdv-border-soft);
  padding: 24px 24px 26px;
}

.glass {
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(0,0,0,0.6));
  backdrop-filter: blur(14px);
}

.glass-strong {
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(0,0,0,0.75));
  backdrop-filter: blur(18px);
}

/* TYPOGRAPHY */

h1, h2, h3, h4 {
  font-family: "Space Grotesk", system-ui, sans-serif;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

p, li {
  font-size: 1.05rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--mdv-text-muted);
  margin-bottom: 12px;
}

/* LINKS & TEXT ELEMENTS */

.text-link {
  color: var(--mdv-cyan);
  text-decoration: none;
  font-size: 0.95rem;
}

.text-link:hover {
  text-decoration: underline;
}

/* ========== HERO (MAIN PAGE) ========== */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top,
    rgba(0,229,255,0.45),
    rgba(138,43,226,0.35),
    rgba(255,20,147,0.25),
    var(--mdv-bg) 80%
  );
}

/* animated diagonal energy layer */
.hero::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: linear-gradient(
    135deg,
    rgba(0,229,255,0.2),
    rgba(138,43,226,0.24),
    rgba(255,20,147,0.2)
  );
  background-size: 260% 260%;
  animation: mdvFlow 18s ease-in-out infinite;
  filter: blur(40px);
  opacity: 0.9;
  z-index: 0;
}

@keyframes mdvFlow {
  0%   { background-position: 0% 100%; }
  50%  { background-position: 100% 0%; }
  100% { background-position: 0% 100%; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 60px;
  max-width: 1080px;
  width: 100%;
  padding: 90px 20px 80px;
}

.hero-content {
  text-align: left;
}

/* Gradient text for main logo heading */
.hero h1 {
  font-size: 3rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
  background: linear-gradient(to right, var(--mdv-cyan), var(--mdv-purple), var(--mdv-pink));
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  color: var(--mdv-text-muted);
  margin-bottom: 26px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  font-size: 0.78rem;
  color: var(--mdv-text-muted);
}

/* hero visual */

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-orbit {
  position: relative;
  width: 260px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo {
  width: 160px;
  border-radius: 50%;
}

/* orbit rings */

.hero-orbit-ring {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(0,229,255,0.3);
  box-shadow: 0 0 24px rgba(0,229,255,0.4);
}

.ring-1 {
  width: 260px;
  height: 260px;
  animation: orbitPulse 9s ease-in-out infinite;
}

.ring-2 {
  width: 210px;
  height: 210px;
  border-color: rgba(138,43,226,0.5);
  box-shadow: 0 0 24px rgba(138,43,226,0.6);
  animation: orbitPulse 11s ease-in-out infinite reverse;
}

.ring-3 {
  width: 170px;
  height: 170px;
  border-color: rgba(255,20,147,0.5);
  box-shadow: 0 0 24px rgba(255,20,147,0.6);
  animation: orbitPulse 13s ease-in-out infinite;
}

@keyframes orbitPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50%      { transform: scale(1.08); opacity: 0.6; }
}

/* logo glow */

.glow {
  animation: glowPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {
  0%   { filter: drop-shadow(0 0 10px rgba(0,229,255,0.5)); }
  50%  { filter: drop-shadow(0 0 24px rgba(124,255,203,0.8)); }
  100% { filter: drop-shadow(0 0 10px rgba(0,229,255,0.5)); }
}

/* hero responsive */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero {
    min-height: unset;
  }
}

/* ========== LISTS & FEATURES ========== */

.feature-list {
  list-style: none;
  padding-left: 0;
}

.feature-list li {
  margin-bottom: 10px;
}

.feature-list strong {
  color: var(--mdv-cyan);
}

/* ========== TOKENOMICS (MAIN PAGE) ========== */

.tokenomics-section {
  position: relative;
  overflow: hidden;
}

.tokenomics-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center,
    rgba(0,229,255,0.22),
    rgba(138,43,226,0.18),
    rgba(255,20,147,0.16),
    var(--mdv-bg) 85%
  );
  opacity: 0.9;
  z-index: 0;
}

.tokenomics-section .section-inner {
  position: relative;
  z-index: 1;
}

.tokenomics-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 28px;
}

@media (max-width: 900px) {
  .tokenomics-layout {
    grid-template-columns: 1fr;
  }
}

.tokenomics-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#pie-chart {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: conic-gradient(
    var(--mdv-cyan) 0% 40%,
    #7cffcb 40% 70%,
    #ff8fa3 70% 90%,
    #ffd36a 90% 100%
  );
  box-shadow:
    0 0 30px rgba(0,229,255,0.5),
    0 0 60px rgba(255,20,147,0.4);
  margin-bottom: 18px;
}

.legend {
  list-style: none;
  text-align: left;
  font-size: 0.98rem;
}

.legend li {
  margin-bottom: 8px;
}

.color {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 10px;
  border-radius: 3px;
}

.liquidity { background: var(--mdv-cyan); }
.community { background: #7cffcb; }
.dev { background: #ff8fa3; }
.marketing { background: #ffd36a; }

.tokenomics-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.token-meta {
  margin-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 12px;
}

.token-meta h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.token-meta ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 6px;
}

.token-meta li {
  font-size: 0.98rem;
}

/* ========== ROADMAP (MAIN PAGE) ========== */

.roadmap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.roadmap-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.phase-list {
  margin-top: 10px;
  padding-left: 18px;
}

.phase-list li {
  font-size: 0.98rem;
  color: var(--mdv-text-muted);
}

@media (max-width: 900px) {
  .roadmap {
    grid-template-columns: 1fr;
  }
}

/* ========== BUTTONS ========== */

.btn-primary {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mdv-cyan), var(--mdv-purple), var(--mdv-pink));
  color: #050512;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 0 18px rgba(0,229,255,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  font-size: 0.95rem;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 26px rgba(0,229,255,0.7);
  filter: saturate(1.1);
}

.btn-ghost {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.28);
  color: var(--mdv-text);
  text-decoration: none;
  background: rgba(0,0,0,0.3);
  font-size: 0.95rem;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.45);
  transform: translateY(-1px);
}

/* ========== MARKET SECTION (MAIN PAGE) ========== */

.market-note {
  color: var(--mdv-text-muted);
  margin-bottom: 18px;
}

.tradingview-widget-container {
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 28px rgba(0,229,255,0.35),
    0 0 42px rgba(138,43,226,0.25);
}

/* ========== FOOTER (MAIN PAGE) ========== */

.footer {
  padding: 32px 20px 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: radial-gradient(circle at top, #050512 0%, #020109 60%);
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.footer p {
  font-size: 0.9rem;
  color: var(--mdv-text-muted);
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--mdv-text-muted);
  text-decoration: none;
}

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

/* ========== LITEPAPER PAGE (if present) ========== */

.lp-body {
  background: radial-gradient(circle at top, #050512 0%, #020109 60%, #000000 100%);
  color: var(--mdv-text);
}

/* litepaper hero */

.lp-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 20px 56px;
  background: radial-gradient(circle at top,
    rgba(0,229,255,0.45),
    rgba(138,43,226,0.35),
    rgba(255,20,147,0.25),
    var(--mdv-bg) 80%
  );
}

.lp-hero::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: linear-gradient(
    135deg,
    rgba(0,229,255,0.2),
    rgba(138,43,226,0.24),
    rgba(255,20,147,0.2)
  );
  background-size: 260% 260%;
  animation: mdvFlow 20s ease-in-out infinite;
  filter: blur(40px);
  opacity: 0.9;
  z-index: 0;
}

.lp-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.lp-title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 2.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 18px 0 12px;
  background: linear-gradient(to right, var(--mdv-cyan), var(--mdv-purple), var(--mdv-pink));
  -webkit-background-clip: text;
  color: transparent;
}

.lp-subtitle {
  color: var(--mdv-text-muted);
  font-size: 1.05rem;
  max-width: 640px;
  line-height: 1.8;
  margin-bottom: 10px;
}

.lp-date {
  font-size: 0.9rem;
  color: var(--mdv-text-muted);
  margin-bottom: 18px;
}

.lp-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lp-hero-actions {
  margin-top: 8px;
}

/* litepaper main */

.lp-main {
  max-width: 840px;
  margin: 0 auto;
  padding: 56px 20px 80px;
}

/* litepaper sections */

.lp-section {
  margin-bottom: 40px;
}

.lp-section-narrow {
  max-width: 720px;
}

.lp-section-title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  position: relative;
  padding-top: 14px;
}

.lp-section-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 72px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--mdv-cyan), var(--mdv-purple), var(--mdv-pink));
}

.lp-subheading {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.1rem;
  margin-top: 18px;
  margin-bottom: 6px;
}

.lp-section p {
  margin-bottom: 10px;
  font-size: 1rem;
}

.lp-list {
  margin: 6px 0 10px 20px;
}

.lp-list li {
  margin-bottom: 4px;
  font-size: 1rem;
}

/* litepaper table */

.lp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 16px;
  font-size: 0.98rem;
}

.lp-table th,
.lp-table td {
  border: 1px solid rgba(255,255,255,0.14);
  padding: 8px 10px;
}

.lp-table th {
  background: rgba(255,255,255,0.04);
  text-align: left;
  font-weight: 600;
}

/* litepaper TOC */

.lp-toc {
  list-style: decimal;
  margin-left: 20px;
  font-size: 0.98rem;
}

.lp-toc li {
  margin-bottom: 4px;
}

.lp-toc a {
  color: var(--mdv-cyan);
  text-decoration: none;
}

.lp-toc a:hover {
  text-decoration: underline;
}

/* litepaper footer */

.lp-footer {
  padding: 24px 20px 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: radial-gradient(circle at top, #050512 0%, #020109 60%);
}

.lp-footer-inner {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.lp-footer p {
  font-size: 0.85rem;
  color: var(--mdv-text-muted);
}

.lp-footer-links {
  display: flex;
  gap: 12px;
}

.lp-footer-links a {
  font-size: 0.85rem;
  color: var(--mdv-text-muted);
  text-decoration: none;
}

.lp-footer-links a:hover {
  color: var(--mdv-cyan);
}

/* ========== SCROLL REVEAL ANIMATIONS ========== */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== PRINT (PDF EXPORT FOR LITEPAPER) ========== */

@media print {
  body,
  .lp-body {
    background: #ffffff !important;
    color: #111827 !important;
  }

  .lp-hero,
  .footer,
  .lp-footer,
  .hero {
    background: #ffffff !important;
    border: none;
  }

  .lp-hero::before,
  .hero::before {
    display: none !important;
  }

  a {
    color: #111827 !important;
    text-decoration: none;
  }

  .btn-primary,
  .btn-ghost,
  .pill {
    border: 1px solid #d1d5db !important;
    background: #ffffff !important;
    color: #111827 !important;
    box-shadow: none !important;
  }

  .lp-section {
    page-break-inside: avoid;
  }

  .lp-main {
    padding: 24px 24px 40px;
    max-width: 100%;
  }
}
