@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --bg: #fffaf5;
  --bg-card: #ffffff;
  --bg-pink: #fff0ed;
  --bg-yellow: #fff9e6;
  --bg-green: #edfff5;
  --border: #2d2d2d;
  --border-light: #e8e8e8;
  --text: #1a1a1a;
  --text-muted: #555555;
  --text-dim: #888888;
  --mango: #f5a623;
  --mango-dark: #d4891a;
  --mango-glow: rgba(245, 166, 35, 0.2);
  --red: #e74c3c;
  --blue: #3b82f6;
  --green: #22c55e;
  --purple: #8b5cf6;
  --pink: #ec4899;
  --heading: 'Fredoka One', cursive;
  --body: 'Nunito', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: var(--mango-dark); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* NAV */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--bg);
  border-bottom: 3px solid var(--border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); font-family: var(--heading); font-size: 22px;
}
.nav-logo img { width: 38px; height: 38px; }
.nav-logo:hover { opacity: 1; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--text); font-size: 15px; font-weight: 700; }
.nav-links a:hover { color: var(--mango); opacity: 1; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; width: 36px; height: 36px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; width: 20px; height: 3px; background: var(--text); border-radius: 2px; }

/* BUTTONS */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 12px;
  background: var(--mango); color: #fff;
  font-family: var(--heading); font-size: 15px;
  border: 3px solid var(--border);
  box-shadow: 4px 4px 0 var(--border);
  transition: transform 0.1s, box-shadow 0.1s;
  cursor: pointer;
}
.btn-primary:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--border); opacity: 1; color: #fff; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 12px;
  border: 3px solid var(--border); color: var(--text);
  font-family: var(--heading); font-size: 15px;
  background: var(--bg-card);
  box-shadow: 4px 4px 0 var(--border);
  transition: transform 0.1s, box-shadow 0.1s;
  cursor: pointer;
}
.btn-outline:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--border); opacity: 1; }
.btn-live {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 12px;
  background: var(--red); color: #fff;
  font-family: var(--heading); font-size: 15px;
  border: 3px solid var(--border);
  box-shadow: 4px 4px 0 var(--border);
  transition: transform 0.1s, box-shadow 0.1s;
  animation: pulse-live 2s infinite;
  cursor: pointer;
}
.btn-live:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--border); opacity: 1; color: #fff; }
@keyframes pulse-live {
  0%, 100% { box-shadow: 4px 4px 0 var(--border); }
  50% { box-shadow: 4px 4px 0 var(--border), 0 0 20px rgba(231, 76, 60, 0.3); }
}
.btn-sm { padding: 8px 16px; font-size: 13px; box-shadow: 3px 3px 0 var(--border); }

/* HERO */
#hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 0 80px; overflow: hidden;
  background: var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.hero-badge {
  display: inline-block; padding: 8px 18px; border-radius: 8px;
  background: var(--pink); color: #fff;
  font-family: var(--heading); font-size: 13px;
  border: 2px solid var(--border);
  box-shadow: 3px 3px 0 var(--border);
  margin-bottom: 24px;
}
#hero h1 {
  font-family: var(--heading);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 400; line-height: 1.15;
  margin-bottom: 12px;
  color: var(--text);
}
#hero h1 .rainbow {
  background: linear-gradient(90deg, var(--red), var(--mango), #22c55e, var(--blue), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-tagline {
  font-family: var(--heading); font-size: 20px; color: var(--text);
  margin-bottom: 8px;
}
.hero-tagline .mango-color { color: var(--mango); }
.hero-sub { font-size: 16px; color: var(--text-muted); line-height: 1.8; max-width: 520px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-visual { display: flex; align-items: center; justify-content: center; position: relative; }
.coin-wrapper { position: relative; }
.spinning-coin {
  width: 320px; height: 320px;
  animation: orbit-spin 5s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(245, 166, 35, 0.4));
}
@keyframes orbit-spin {
  0% { transform: rotate(0deg) scale(1); filter: drop-shadow(0 0 30px rgba(245, 166, 35, 0.4)); }
  25% { transform: rotate(90deg) scale(1.05); filter: drop-shadow(0 0 45px rgba(245, 166, 35, 0.6)); }
  50% { transform: rotate(180deg) scale(1); filter: drop-shadow(0 0 50px rgba(245, 166, 35, 0.7)); }
  75% { transform: rotate(270deg) scale(1.05); filter: drop-shadow(0 0 45px rgba(245, 166, 35, 0.6)); }
  100% { transform: rotate(360deg) scale(1); filter: drop-shadow(0 0 30px rgba(245, 166, 35, 0.4)); }
}

/* MANGO ACRONYM */
.mango-letters {
  display: flex; gap: 0; margin-bottom: 32px;
}
.mango-letter {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 16px; border-radius: 10px;
  border: 2px solid var(--border-light);
  background: var(--bg-card);
  min-width: 64px;
}
.mango-letter .letter {
  font-family: var(--heading); font-size: 28px; line-height: 1;
}
.mango-letter .name { font-size: 10px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; }
.letter-m { color: var(--blue); }
.letter-a { color: var(--mango); }
.letter-n { color: var(--green); }
.letter-g { color: var(--red); }
.letter-o { color: var(--purple); }

/* ABOUT SECTION */
#about {
  padding: 80px 0;
  background: var(--bg-pink);
  border-top: 3px solid var(--border);
  border-bottom: 3px solid var(--border);
}
.about-content { max-width: 700px; margin: 0 auto; text-align: center; }
.about-content h2 { font-family: var(--heading); font-size: 32px; margin-bottom: 20px; }
.about-content p { font-size: 16px; color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; }
.backed-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px;
  background: var(--bg-card); border: 2px solid var(--border-light);
  font-size: 14px; font-weight: 700; color: var(--text);
  margin-top: 16px;
}
.backed-badge svg { color: var(--green); }

/* STOCKS SECTION */
#stocks {
  padding: 100px 0;
  background: var(--bg);
}
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-family: var(--heading); font-size: 30px; margin-bottom: 8px; }
.section-sub { color: var(--text-muted); font-size: 15px; }
.stocks-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.stock-card {
  padding: 24px 16px; border-radius: 16px;
  background: var(--bg-card); border: 3px solid var(--border);
  text-align: center;
  box-shadow: 4px 4px 0 var(--border);
  transition: transform 0.15s, box-shadow 0.15s;
}
.stock-card:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--border); }
.stock-card-logo { width: 40px; height: 40px; margin: 0 auto 12px; object-fit: contain; }
.stock-card h3 { font-family: var(--heading); font-size: 15px; margin-bottom: 4px; }
.stock-card .stock-full { font-size: 11px; color: var(--text-dim); font-weight: 700; }
.stock-card .stock-alloc {
  display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 6px;
  font-family: var(--heading); font-size: 12px;
  background: var(--mango-glow); color: var(--mango-dark);
}

/* HOW IT WORKS */
#how {
  padding: 100px 0;
  background: var(--bg-yellow);
  border-top: 3px solid var(--border);
  border-bottom: 3px solid var(--border);
}
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step-card {
  padding: 28px 20px; border-radius: 16px;
  background: var(--bg-card); border: 3px solid var(--border);
  box-shadow: 4px 4px 0 var(--border);
  transition: transform 0.15s, box-shadow 0.15s;
}
.step-card:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--border); }
.step-num { font-family: var(--heading); font-size: 32px; color: var(--mango); margin-bottom: 10px; }
.step-card h3 { font-family: var(--heading); font-size: 16px; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* FEED */
#feed { padding: 100px 0; background: var(--bg); }
.feed-controls { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.feed-status { font-size: 13px; color: var(--text-dim); font-weight: 700; }
.feed-table-wrap {
  overflow-x: auto; border: 3px solid var(--border); border-radius: 16px;
  background: var(--bg-card); box-shadow: 4px 4px 0 var(--border);
}
.feed-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.feed-table th {
  text-align: left; padding: 14px 16px;
  border-bottom: 3px solid var(--border);
  font-family: var(--heading); font-size: 12px; text-transform: uppercase;
  color: var(--text-dim); background: var(--bg-yellow);
}
.feed-table td { padding: 14px 16px; border-bottom: 1px solid var(--border-light); }
.feed-table tbody tr:hover { background: var(--bg-yellow); }
.feed-table .tx-link { color: var(--mango-dark); font-weight: 700; }
.feed-empty { text-align: center; padding: 40px; color: var(--text-dim); }
.token-badge {
  display: inline-block; padding: 3px 10px; border-radius: 6px;
  font-family: var(--heading); font-size: 11px;
  border: 2px solid;
}
.token-meta { background: #e8f4ff; color: #2563eb; border-color: #93c5fd; }
.token-anthr { background: #fff3e8; color: #e87b20; border-color: #fdba74; }
.token-nvda { background: #e8fff3; color: #16a34a; border-color: #86efac; }
.token-googl { background: #fee2e2; color: #dc2626; border-color: #fca5a5; }
.token-openai { background: #f3e8ff; color: #7c3aed; border-color: #c4b5fd; }

/* FOOTER */
#footer { border-top: 3px solid var(--border); padding: 56px 0 28px; background: var(--bg-card); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: var(--text-dim); font-size: 14px; margin-top: 10px; }
.footer-logo { width: 40px; height: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h5 { font-family: var(--heading); font-size: 13px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 4px; }
.footer-col a { color: var(--text-muted); font-size: 14px; font-weight: 600; }
.footer-col a:hover { color: var(--mango); opacity: 1; }
.footer-bottom {
  display: flex; justify-content: space-between; padding-top: 20px;
  border-top: 3px solid var(--border); font-size: 13px; color: var(--text-dim);
  font-family: var(--heading);
}

/* PARTICLES */
#particles {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 9999;
}

/* CLICK RIPPLE */
.click-ripple {
  position: fixed; pointer-events: none;
  width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid var(--mango);
  transform: translate(-50%, -50%) scale(0);
  animation: ripple-expand 0.6s ease-out forwards;
  z-index: 99999;
}
@keyframes ripple-expand {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(4); opacity: 0; }
}

/* MOUSE TRAIL */
.mouse-trail {
  position: fixed; pointer-events: none;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mango);
  transform: translate(-50%, -50%);
  opacity: 0.5;
  animation: trail-fade 0.5s ease-out forwards;
  z-index: 99998;
}
@keyframes trail-fade {
  0% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.2); }
}

/* MOBILE */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { order: -1; margin-bottom: 32px; }
  .spinning-coin { width: 200px; height: 200px; }
  .hero-sub { margin: 0 auto 32px; }
  .hero-actions { justify-content: center; }
  .mango-letters { justify-content: center; flex-wrap: wrap; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .stocks-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 70px; left: 0; right: 0;
    background: var(--bg); padding: 16px 24px 24px; gap: 14px;
    border-bottom: 3px solid var(--border);
  }
  .steps-grid { grid-template-columns: 1fr; }
  .stocks-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
