/**
 * Vellao Style — CSS de base
 * v2.0
 */

:root {
  --bg: #0A0A0B;
  --surface: #131316;
  --surface-2: #1A1A1F;
  --border: #2A2A2E;
  --border-bright: #3F3F46;
  --text: #FAFAFA;
  --text-muted: #A1A1AA;
  --text-dim: #71717A;
  --yellow: #FFD400;
  --green: #4ADE80;
  --red: #EF4444;
  --orange: #FB923C;
  --cyan: #22D3EE;
}

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

/* RESET */
.vellao-page * { box-sizing: border-box; margin: 0; padding: 0; }
.vellao-page { font-family: 'Inter', -apple-system, sans-serif; font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.vellao-page .mono { font-family: 'IBM Plex Mono', monospace; font-feature-settings: 'tnum'; }
.vellao-page ::selection { background: var(--yellow); color: var(--bg); }
.vellao-page a { color: inherit; text-decoration: none; }
.vellao-page img { max-width: 100%; height: auto; }

/* SCROLL BEHAVIOR */
html { scroll-behavior: smooth; }

/* HEADER */
.vellao-page .site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,11,0.85);
  backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 50;
}
.vellao-page .site-header-inner {
  max-width: 1240px; margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.vellao-page .vellao-logo {
  font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: 18px;
  color: var(--text); display: flex; align-items: center; gap: 6px;
  text-transform: lowercase; letter-spacing: -0.01em;
}
.vellao-page .vellao-logo::before {
  content: "▲"; color: var(--yellow); font-size: 14px;
}
.vellao-page .vellao-logo--large { font-size: 24px; }
.vellao-page .site-nav { display: flex; gap: 28px; font-size: 13px; font-weight: 500; font-family: 'IBM Plex Mono', monospace; }
.vellao-page .site-nav a { color: var(--text-muted); transition: color 0.15s; }
.vellao-page .site-nav a:hover, .vellao-page .site-nav a.active { color: var(--yellow); }
.vellao-page .cta-header {
  background: var(--yellow); color: var(--bg);
  padding: 8px 14px; font-weight: 600; font-size: 13px;
  font-family: 'IBM Plex Mono', monospace;
  border-radius: 2px; transition: all 0.15s;
}
.vellao-page .cta-header:hover { background: var(--text); }
@media (max-width: 768px) { .vellao-page .site-nav { display: none; } }

/* TOP META */
.vellao-page .top-meta {
  max-width: 1240px; margin: 0 auto; padding: 16px 24px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--text-dim);
  flex-wrap: wrap; gap: 12px;
}
.vellao-page .top-meta a { color: var(--text-dim); }
.vellao-page .top-meta a:hover { color: var(--yellow); }
.vellao-page .last-updated { display: flex; align-items: center; gap: 8px; }
.vellao-page .last-updated::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
  animation: vellaoPulseLive 2s infinite;
}
@keyframes vellaoPulseLive { 0%,100% {opacity:1} 50% {opacity:0.4} }

/* SECTIONS */
.vellao-page .section { max-width: 1240px; margin: 0 auto; padding: 64px 24px; }
.vellao-page .section-header { margin-bottom: 28px; }
.vellao-page .section-eyebrow {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600;
  color: var(--yellow); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 12px;
}
.vellao-page .section-eyebrow::before { content: "// "; }
.vellao-page .section-title {
  font-family: 'Inter', sans-serif; font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.15; letter-spacing: -0.025em; font-weight: 800; max-width: 720px;
}
.vellao-page .section-title em { font-style: normal; color: var(--yellow); }
.vellao-page .section-intro {
  font-size: 15.5px; color: var(--text-muted); margin-top: 14px;
  max-width: 720px; line-height: 1.55;
}
.vellao-page .section-intro strong { color: var(--text); font-weight: 600; }

/* HERO HUB */
.vellao-page .hero-hub {
  max-width: 1240px; margin: 0 auto; padding: 48px 24px 56px;
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.vellao-page .hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 500;
  color: var(--yellow); text-transform: uppercase; letter-spacing: 0.15em;
  padding: 6px 12px; background: rgba(255,212,0,0.08);
  border: 1px solid rgba(255,212,0,0.2); border-radius: 2px; margin-bottom: 20px;
}
.vellao-page .hero-eyebrow::before { content: "$"; color: var(--yellow); }

.vellao-page .hub-title, .vellao-page .token-title, .vellao-page .home-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05; letter-spacing: -0.035em; font-weight: 800;
  margin-bottom: 18px; max-width: 920px;
}
.vellao-page .hub-title em, .vellao-page .token-title em, .vellao-page .home-title em {
  font-style: normal; color: var(--yellow);
  background: linear-gradient(180deg, transparent 60%, rgba(255,212,0,0.2) 60%);
  padding: 0 4px; position: relative; display: inline-block;
}

.vellao-page .hub-lede, .vellao-page .token-lede, .vellao-page .home-lede {
  font-size: 18px; color: var(--text-muted); line-height: 1.55;
  max-width: 720px; margin-bottom: 28px;
}
.vellao-page .hub-lede strong, .vellao-page .token-lede strong, .vellao-page .home-lede strong {
  color: var(--text); font-weight: 600;
}
.vellao-page .hub-lede .accent { color: var(--yellow); font-weight: 500; }

.vellao-page .hub-stats {
  display: flex; gap: 32px; flex-wrap: wrap;
  padding: 18px 0; border-top: 1px solid var(--border);
  font-family: 'IBM Plex Mono', monospace;
}
.vellao-page .hub-stat-num { font-size: 22px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; line-height: 1; }
.vellao-page .hub-stat-num.accent { color: var(--yellow); }
.vellao-page .hub-stat-label { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }

/* FEES TABLE — partagée hub + token-page */
.vellao-page .fees-table {
  margin: 28px 0; border: 1px solid var(--border); border-radius: 2px; overflow: hidden;
}
.vellao-page .fees-row {
  display: grid; grid-template-columns: 50px 1.4fr 0.8fr 1.5fr 1.4fr 0.8fr 1.4fr;
  border-bottom: 1px solid var(--border); background: var(--surface);
}
.vellao-page .fees-row:last-child { border: 0; }
.vellao-page .fees-row.head { background: var(--surface-2); }
.vellao-page .fees-row.head .fees-cell {
  color: var(--text); font-weight: 600; font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
}
.vellao-page .fees-row.winner { background: linear-gradient(90deg, rgba(74,222,128,0.10), transparent 80%); box-shadow: inset 2px 0 0 rgba(74,222,128,0.6); }
.vellao-page .fees-row.loser { background: linear-gradient(90deg, rgba(239,68,68,0.08), transparent 80%); box-shadow: inset 2px 0 0 rgba(239,68,68,0.5); }
.vellao-page .fees-cell { padding: 14px 16px; font-size: 14px; line-height: 1.4; display: flex; align-items: center; }
.vellao-page .fees-cell.platform { font-family: 'IBM Plex Mono', monospace; font-weight: 600; color: var(--text); font-size: 14.5px; gap: 8px; flex-wrap: wrap; }
.vellao-page .fees-cell.platform .badge { font-size: 10px; padding: 2px 6px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 2px; color: var(--text-dim); font-weight: 400; }
.vellao-page .fees-cell.platform .badge.psan { color: var(--green); border-color: rgba(74,222,128,0.3); }
.vellao-page .fees-cell.num { font-family: 'IBM Plex Mono', monospace; font-weight: 600; }
.vellao-page .fees-cell.num.good { color: var(--green); }
.vellao-page .fees-cell.num.bad { color: var(--red); }
.vellao-page .fees-cell.num.meh { color: var(--orange); }
.vellao-page .fees-cell.rank {
  font-family: 'IBM Plex Mono', monospace; font-size: 22px; font-weight: 700;
  color: var(--text-dim); letter-spacing: -0.02em; justify-content: center;
}
.vellao-page .fees-row.winner .fees-cell.rank { color: var(--green); }
.vellao-page .fees-row.loser .fees-cell.rank { color: var(--red); }
.vellao-page .fees-cell.cost-cell { display: flex; flex-direction: column; gap: 6px; align-items: stretch; padding: 14px 16px; }
.vellao-page .cost-line { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.vellao-page .cost-amount { font-family: 'IBM Plex Mono', monospace; font-weight: 700; font-size: 15px; }
.vellao-page .cost-amount.good { color: var(--green); }
.vellao-page .cost-amount.bad { color: var(--red); }
.vellao-page .cost-amount.meh { color: var(--orange); }
.vellao-page .cost-bar-track { width: 100%; height: 6px; background: rgba(255,255,255,0.04); border-radius: 1px; overflow: hidden; }
.vellao-page .cost-bar-fill { height: 100%; border-radius: 1px; transition: width 0.3s ease-out; }
.vellao-page .cost-bar-fill.good { background: var(--green); box-shadow: inset 0 0 0 1px rgba(74,222,128,0.4); }
.vellao-page .cost-bar-fill.meh { background: var(--orange); }
.vellao-page .cost-bar-fill.bad { background: var(--red); box-shadow: inset 0 0 0 1px rgba(239,68,68,0.5); }
.vellao-page .verdict-badge { display: inline-block; font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; padding: 3px 8px; border-radius: 2px; margin-bottom: 4px; }
.vellao-page .verdict-badge.top { background: rgba(74,222,128,0.15); color: var(--green); border: 1px solid rgba(74,222,128,0.4); }
.vellao-page .verdict-badge.avoid { background: rgba(239,68,68,0.15); color: var(--red); border: 1px solid rgba(239,68,68,0.5); }
.vellao-page .verdict-badge.neutral { background: rgba(255,255,255,0.06); color: var(--text-muted); border: 1px solid var(--border-bright); }
.vellao-page .verdict-text { font-size: 13px; color: var(--text); font-weight: 500; }
.vellao-page .fees-cell .cta-mini { background: var(--yellow); color: var(--bg); padding: 6px 12px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600; border-radius: 2px; transition: all 0.15s; white-space: nowrap; display: inline-block; }
.vellao-page .fees-cell .cta-mini:hover { background: var(--text); transform: translateX(2px); }
.vellao-page .fees-note { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--text-dim); line-height: 1.6; margin-top: 16px; }
.vellao-page .fees-note span { color: var(--text); }

/* TOKENS GRID DENSE — partagée */
.vellao-page .tokens-grid-dense {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 2px; overflow: hidden;
}
.vellao-page .token-card-mini {
  background: var(--surface); padding: 16px 18px;
  display: flex; flex-direction: column; gap: 10px;
  color: inherit; border: 1px solid transparent;
  transition: all 0.18s;
}
.vellao-page .token-card-mini.hidden { display: none; }
.vellao-page .token-card-mini:hover {
  background: var(--surface-2);
  border-color: rgba(255,212,0,0.6);
  box-shadow: 0 0 0 1px rgba(255,212,0,0.15), 0 0 20px -4px rgba(255,212,0,0.25);
}
.vellao-page .tcm-head { display: flex; justify-content: space-between; align-items: start; }
.vellao-page .tcm-symbol { font-family: 'IBM Plex Mono', monospace; font-weight: 700; font-size: 16px; color: var(--text); letter-spacing: -0.01em; }
.vellao-page .tcm-name { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.vellao-page .tcm-sector { font-family: 'IBM Plex Mono', monospace; font-size: 9px; padding: 2px 6px; border-radius: 2px; background: rgba(255,212,0,0.08); color: var(--yellow); border: 1px solid rgba(255,212,0,0.2); white-space: nowrap; }
.vellao-page .tcm-price-row { display: flex; align-items: baseline; gap: 8px; font-family: 'IBM Plex Mono', monospace; }
.vellao-page .tcm-price { font-size: 16px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.vellao-page .tcm-change { font-size: 11px; font-weight: 500; display: inline-flex; align-items: center; gap: 3px; }
.vellao-page .tcm-change.up { color: var(--green); }
.vellao-page .tcm-change.down { color: var(--red); }
.vellao-page .vellao-spark, .vellao-page .tcm-spark { height: 22px; width: 100%; display: block; margin-top: 4px; }
.vellao-page .vellao-spark path, .vellao-page .tcm-spark path { fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.vellao-page .vellao-spark.up path, .vellao-page .tcm-spark.up path { stroke: var(--green); }
.vellao-page .vellao-spark.down path, .vellao-page .tcm-spark.down path { stroke: var(--red); }
.vellao-page .vellao-spark.up .area, .vellao-page .tcm-spark.up .area { fill: rgba(74,222,128,0.10); stroke: none; }
.vellao-page .vellao-spark.down .area, .vellao-page .tcm-spark.down .area { fill: rgba(239,68,68,0.08); stroke: none; }
.vellao-page .tcm-cta { font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 500; color: var(--text-dim); margin-top: 2px; transition: color 0.15s; }
.vellao-page .tcm-cta::after { content: " →"; }
.vellao-page .token-card-mini:hover .tcm-cta { color: var(--yellow); }

/* TIER BADGES */
.vellao-page .tier-badge { font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 2px; letter-spacing: 0.1em; }
.vellao-page .tier-badge.s { background: rgba(74,222,128,0.12); color: var(--green); border: 1px solid rgba(74,222,128,0.3); }
.vellao-page .tier-badge.a { background: rgba(251,146,60,0.12); color: var(--orange); border: 1px solid rgba(251,146,60,0.3); }
.vellao-page .tier-badge.b { background: rgba(113,113,122,0.15); color: var(--text-muted); border: 1px solid var(--border-bright); }

/* SEPARATOR */
.vellao-page .vellao-separator { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--text-dim); text-align: center; padding: 24px 0; letter-spacing: 0.2em; user-select: none; max-width: 1240px; margin: 0 auto; }
.vellao-page .vellao-separator .dots { color: var(--border-bright); }
.vellao-page .vellao-separator .label { color: var(--yellow); display: inline-block; padding: 0 12px; }

/* CTA */
.vellao-page .cta-primary { display: inline-flex; align-items: center; gap: 10px; background: var(--yellow); color: var(--bg); padding: 14px 26px; font-weight: 600; font-size: 14px; font-family: 'IBM Plex Mono', monospace; border-radius: 2px; transition: all 0.15s; }
.vellao-page .cta-primary:hover { background: var(--text); transform: translateY(-2px); }
.vellao-page .cta-secondary { display: inline-flex; align-items: center; gap: 10px; background: transparent; color: var(--text); padding: 14px 26px; font-weight: 500; font-size: 14px; font-family: 'IBM Plex Mono', monospace; border-radius: 2px; border: 1px solid var(--border-bright); transition: all 0.15s; }
.vellao-page .cta-secondary:hover { border-color: var(--yellow); color: var(--yellow); }

/* FOOTER */
.vellao-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 56px 24px 28px; }
.vellao-footer .footer-inner { max-width: 1240px; margin: 0 auto; }
.vellao-footer .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--border); }
@media (max-width: 900px) { .vellao-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.vellao-footer .footer-grid h4 { font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600; color: var(--yellow); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.1em; }
.vellao-footer .footer-grid ul { list-style: none; }
.vellao-footer .footer-grid li { margin-bottom: 7px; font-size: 13px; }
.vellao-footer .footer-grid a { color: var(--text-muted); }
.vellao-footer .footer-grid a:hover { color: var(--yellow); }
.vellao-footer .footer-brand p { font-size: 13.5px; color: var(--text-muted); line-height: 1.55; max-width: 360px; margin-top: 12px; }
.vellao-footer .footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--text-dim); }
.vellao-footer .footer-bottom a { color: var(--text-dim); }
.vellao-footer .footer-bottom a:hover { color: var(--yellow); }

/* RESPONSIVE TABLE */
@media (max-width: 900px) {
  .vellao-page .fees-row { grid-template-columns: 1fr; }
  .vellao-page .fees-cell { padding: 8px 16px; border-bottom: 1px solid var(--border); }
  .vellao-page .fees-cell::before { content: attr(data-label); font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: var(--text-dim); text-transform: uppercase; margin-right: 8px; min-width: 70px; }
  .vellao-page .fees-row.head { display: none; }
  .vellao-page .fees-row { padding: 12px 0; }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  .vellao-page *, .vellao-page *::before, .vellao-page *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
