@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --bg: #f0f7ff;
  --bg-card: #ffffff;
  --bg-elevated: #f8fbff;
  --border: #e0eaf5;
  --border-light: #d4e4f5;
  --text: #2d3748;
  --text-muted: #5a6b7f;
  --text-dim: #8896a8;
  --accent: #4ecdc4;
  --accent-dim: #3bb8b0;
  --accent-glow: rgba(78, 205, 196, 0.15);
  --purple: #a78bfa;
  --pink: #f472b6;
  --orange: #fb923c;
  --green: #34d399;
  --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(--accent); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.gold { color: var(--accent); }

/* NAV */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(240, 247, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--border);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); font-family: var(--heading); font-size: 20px;
}
.nav-logo img { width: 36px; height: 36px; border-radius: 50%; }
.nav-logo:hover { opacity: 1; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--text-muted); font-size: 14px; font-weight: 700; }
.nav-links a:hover { color: var(--accent); opacity: 1; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-x {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 12px;
  color: var(--text-muted); border: 2px solid var(--border);
  background: var(--bg-card);
}
.nav-x:hover { color: var(--accent); border-color: var(--accent); opacity: 1; }
.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-muted); border-radius: 2px; }

/* BUTTONS */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 14px;
  background: var(--accent); color: #fff;
  font-family: var(--heading); font-size: 14px;
  border: none; box-shadow: 0 4px 16px var(--accent-glow);
  transition: transform 0.15s, box-shadow 0.3s;
}
.btn-primary:hover { opacity: 1; transform: translateY(-2px); box-shadow: 0 6px 24px var(--accent-glow); color: #fff; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 14px;
  border: 2px solid var(--border-light); color: var(--text);
  font-family: var(--heading); font-size: 14px;
  background: var(--bg-card);
  transition: border-color 0.2s, transform 0.15s;
}
.btn-outline:hover { border-color: var(--accent); opacity: 1; transform: translateY(-1px); }
.btn-live {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 14px;
  background: #ff4d4d; color: #fff;
  font-family: var(--heading); font-size: 14px;
  border: none; box-shadow: 0 4px 16px rgba(255, 77, 77, 0.2);
  transition: transform 0.15s, box-shadow 0.3s;
  animation: pulse-live 2s infinite;
}
.btn-live:hover { opacity: 1; transform: translateY(-2px); color: #fff; }
@keyframes pulse-live {
  0%, 100% { box-shadow: 0 4px 16px rgba(255, 77, 77, 0.2); }
  50% { box-shadow: 0 4px 24px rgba(255, 77, 77, 0.4); }
}
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 12px; }

/* HERO */
#hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 0 80px; overflow: hidden;
}
.hero-glow {
  position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 500px;
  background: radial-gradient(ellipse, rgba(78, 205, 196, 0.1) 0%, rgba(167, 139, 250, 0.05) 50%, transparent 70%);
  filter: blur(60px); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center; }
.hero-badge {
  display: inline-block; padding: 8px 16px; border-radius: 100px;
  background: var(--accent-glow); border: 2px solid rgba(78, 205, 196, 0.3);
  color: var(--accent-dim); font-family: var(--heading); font-size: 13px;
  margin-bottom: 24px;
}
#hero h1 {
  font-family: var(--heading);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 400; line-height: 1.2;
  letter-spacing: -0.01em; margin-bottom: 20px;
  color: var(--text);
}
.hero-sub { font-size: 16px; color: var(--text-muted); line-height: 1.8; max-width: 520px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 40px; }
.stat-val { display: block; font-family: var(--heading); font-size: 32px; color: var(--accent); }
.stat-label { display: block; font-size: 12px; font-weight: 700; color: var(--text-dim); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.05em; }

.hero-visual { display: flex; align-items: center; justify-content: center; }
.coin-wrapper { position: relative; }
.spinning-coin {
  width: 300px; height: 300px;
  animation: bounce 3s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(78, 205, 196, 0.2));
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

/* STOCKS PREVIEW */
.stocks-preview {
  display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap;
}
.stock-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 12px;
  background: var(--bg-card); border: 2px solid var(--border);
  font-family: var(--heading); font-size: 14px;
  color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.stock-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.stock-dot.anthr { background: var(--orange); }
.stock-dot.spacex { background: var(--purple); }
.stock-dot.openai { background: var(--green); }

/* SECTIONS */
section { padding: 100px 0; }
section:nth-child(even) { background: var(--bg-card); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block; font-family: var(--heading); font-size: 12px;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.section-header h2 { font-family: var(--heading); font-size: 30px; color: var(--text); margin-bottom: 8px; }
.section-sub { color: var(--text-muted); font-size: 15px; }

/* STEPS */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step-card {
  padding: 28px; border-radius: 18px;
  background: var(--bg-card); border: 2px solid var(--border);
  transition: border-color 0.3s, transform 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.step-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 8px 24px var(--accent-glow); }
.step-num { font-family: var(--heading); font-size: 28px; color: var(--accent); margin-bottom: 12px; }
.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-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: 2px solid var(--border); border-radius: 16px; background: var(--bg-card); }
.feed-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.feed-table th {
  text-align: left; padding: 14px 16px;
  border-bottom: 2px solid var(--border);
  font-family: var(--heading); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--text-dim);
  background: var(--bg-elevated);
}
.feed-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.feed-table tbody tr:hover { background: var(--bg-elevated); }
.feed-table .tx-link { color: var(--accent); font-weight: 700; }
.feed-empty { text-align: center; padding: 40px; color: var(--text-dim); }
.token-badge {
  display: inline-block; padding: 3px 10px; border-radius: 8px;
  font-family: var(--heading); font-size: 11px;
}
.token-anthr { background: rgba(251, 146, 60, 0.12); color: #e87b20; border: 2px solid rgba(251, 146, 60, 0.25); }
.token-spacex { background: rgba(167, 139, 250, 0.12); color: #7c5fd6; border: 2px solid rgba(167, 139, 250, 0.25); }
.token-openai { background: rgba(52, 211, 153, 0.12); color: #1fa06a; border: 2px solid rgba(52, 211, 153, 0.25); }

/* WHITEPAPER */
.wp-content { max-width: 700px; margin: 0 auto; }
.wp-section { margin-bottom: 40px; padding-bottom: 40px; border-bottom: 2px solid var(--border); }
.wp-section:last-child { border-bottom: none; }
.wp-section h3 { font-family: var(--heading); font-size: 18px; margin-bottom: 12px; }
.wp-section p { font-size: 15px; color: var(--text-muted); line-height: 1.8; margin-bottom: 12px; }
.wp-section code { background: var(--bg-elevated); padding: 2px 8px; border-radius: 6px; font-size: 13px; border: 1px solid var(--border); }
.wp-section ol, .wp-section ul { margin-bottom: 12px; padding-left: 20px; }
.wp-section li { font-size: 15px; color: var(--text-muted); line-height: 1.8; margin-bottom: 4px; }
.wp-section li strong { color: var(--text); }

/* FOOTER */
#footer { border-top: 2px 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; border-radius: 50%; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h5 { font-family: var(--heading); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; 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(--accent); opacity: 1; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 20px; border-top: 2px solid var(--border); font-size: 13px; color: var(--text-dim); font-weight: 700; }

/* PARTNERS */
.partners-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.partner-card {
  padding: 32px; border-radius: 20px;
  background: var(--bg-card); border: 2px solid var(--border);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.partner-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 12px 32px rgba(78,205,196,0.12); border-color: var(--accent); }
.partner-logo-wrap {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; border-radius: 18px; margin-bottom: 16px;
}
.anthr-bg { background: #fff3e8; }
.spacex-bg { background: #f3eeff; }
.openai-bg { background: #e8fff3; }
.partner-logo-img { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; }
.partner-card h3 { font-family: var(--heading); font-size: 18px; margin-bottom: 8px; }
.partner-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }
.partner-alloc {
  display: inline-block; padding: 4px 12px; border-radius: 8px;
  font-family: var(--heading); font-size: 13px;
  background: var(--accent-glow); color: var(--accent-dim);
  border: 1px solid rgba(78, 205, 196, 0.25);
}
.partner-link {
  display: inline-block; margin-top: 12px;
  padding: 6px 14px; border-radius: 8px;
  font-family: var(--heading); font-size: 12px;
  background: var(--bg-elevated); color: var(--accent);
  border: 2px solid var(--border);
  transition: border-color 0.2s, transform 0.15s;
}
.partner-link:hover { border-color: var(--accent); transform: translateY(-1px); opacity: 1; }

/* STOCK LOGOS */
.stock-logo { flex-shrink: 0; }
.stock-logo-img { width: 20px; height: 20px; object-fit: contain; border-radius: 4px; }

/* PARTICLES CANVAS */
#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(--accent);
  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(--accent);
  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; }
  .hero-stats { justify-content: center; }
  .stocks-preview { justify-content: center; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .partners-grid { grid-template-columns: 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: 68px; left: 0; right: 0;
    background: rgba(240, 247, 255, 0.97); backdrop-filter: blur(16px);
    padding: 16px 24px 24px; gap: 14px;
    border-bottom: 2px solid var(--border);
  }
  .steps-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
