:root {
  --navy: #0b1c3d;
  --navy-dark: #071227;
  --navy-mid: #142c5c;
  --blue: #0f6fde;
  --cyan: #17b6d4;
  --green: #0aa860;
  --green-bg: #e7f8ef;
  --red: #e0333f;
  --red-bg: #fdeaec;
  --yellow: #ffc93c;
  --ink: #101828;
  --muted: #6b7688;
  --line: #e4e8ef;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.muted { color: var(--muted); }

/* Utility bar */
.utility-bar {
  background: var(--navy-dark);
  color: #b9c4d8;
  font-size: 12px;
}
.utility-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 32px;
}
.status-open { color: var(--yellow); font-weight: 700; letter-spacing: .03em; }
.sep { margin: 0 8px; opacity: .5; }
.utility-right a { margin-left: 16px; opacity: .85; }
.utility-right a:hover { opacity: 1; text-decoration: underline; }

/* Header */
.main-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: .02em;
  flex-shrink: 0;
}
.logo-mark {
  background: var(--yellow);
  color: var(--navy-dark);
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}
.search-bar {
  flex: 1;
  display: flex;
  max-width: 480px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 6px;
  overflow: hidden;
}
.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  padding: 10px 12px;
  font-size: 14px;
}
.search-bar input::placeholder { color: #9fb0cc; }
.search-bar button {
  background: transparent;
  border: none;
  color: #fff;
  padding: 0 14px;
  cursor: pointer;
}
.cta-btn {
  background: var(--yellow);
  color: var(--navy-dark);
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.cta-btn:hover { filter: brightness(1.05); }

.main-nav { background: var(--navy-mid); }
.nav-inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
}
.nav-inner a {
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #cfd9ec;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.nav-inner a:hover {
  color: #fff;
  border-bottom-color: var(--cyan);
}

/* Ticker tape */
.ticker-tape {
  background: var(--navy-dark);
  border-top: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  padding: 8px 0;
  animation: scroll-left 40s linear infinite;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 600;
  color: #dbe3f2;
  border-right: 1px solid rgba(255,255,255,.08);
}
.ticker-item .sym { color: #fff; font-weight: 800; }
.ticker-item .up { color: #4ee08a; }
.ticker-item .down { color: #ff6b76; }
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Contract Address banner */
.ca-banner {
  background: var(--yellow);
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.ca-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px 20px;
  text-align: center;
}
.ca-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--navy-dark);
  opacity: .75;
}
.ca-address {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 20px;
  font-weight: 800;
  color: var(--navy-dark);
  background: rgba(11,28,61,.08);
  padding: 6px 14px;
  border-radius: 6px;
  letter-spacing: .02em;
  word-break: break-all;
}
.ca-copy {
  background: var(--navy);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 18px;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
}
.ca-copy:hover { background: var(--navy-mid); }
.ca-copy.copied { background: var(--green); }

@media (max-width: 640px) {
  .ca-address { font-size: 14px; padding: 6px 10px; }
}

/* Meme banner */
.meme-banner {
  background: repeating-linear-gradient(135deg, var(--navy-dark), var(--navy-dark) 14px, var(--navy) 14px, var(--navy) 28px);
  color: #fff;
  padding: 48px 0;
  text-align: center;
}
.meme-kicker {
  display: inline-block;
  background: rgba(255,201,60,.15);
  color: var(--yellow);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 6px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.meme-title {
  font-size: 34px;
  font-weight: 900;
  margin: 0 0 28px;
}
.meme-proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}
.meme-proof {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 22px;
}
.meme-flip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 14px;
}
.meme-before {
  font-size: 20px;
  font-weight: 700;
  color: #8695b8;
  text-decoration: line-through;
  letter-spacing: .04em;
}
.meme-arrow {
  font-size: 11px;
  font-weight: 700;
  color: #8695b8;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.meme-after {
  font-size: 30px;
  font-weight: 900;
  color: var(--yellow);
  letter-spacing: .03em;
}
.meme-proof p {
  margin: 0;
  font-size: 14px;
  color: #c7d2e8;
  line-height: 1.5;
}
.meme-disclaimer {
  margin: 28px 0 0;
  font-size: 12px;
  color: #8695b8;
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 55%, #1c3d7a 100%);
  color: #fff;
  padding: 56px 0 64px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  background: rgba(255,201,60,.15);
  color: var(--yellow);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 6px 10px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.hero-copy h1 {
  font-size: 44px;
  line-height: 1.1;
  margin: 0 0 16px;
  font-weight: 800;
}
.hero-copy p {
  font-size: 16px;
  line-height: 1.6;
  color: #c7d2e8;
  max-width: 480px;
  margin: 0 0 28px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--yellow);
  color: var(--navy-dark);
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,.4);
  color: #fff;
}
.btn-ghost:hover { border-color: #fff; }
.btn-lg { padding: 16px 30px; font-size: 16px; }

.chart-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding: 20px;
  backdrop-filter: blur(6px);
}
.chart-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #aebbd8;
  margin-bottom: 6px;
}
.chart-value { font-size: 22px; color: #fff; }
.sparkline { width: 100%; height: 120px; }
.sparkline polyline {
  fill: none;
  stroke: #4ee08a;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chart-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 12px;
}
.pill {
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 12px;
}
.pill-up { background: rgba(78,224,138,.15); color: #4ee08a; }
.pill-down { background: rgba(255,107,118,.15); color: #ff6b76; }

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.section-head h2 {
  font-size: 26px;
  margin: 0;
  font-weight: 800;
  color: var(--navy);
}

/* Index cards */
.index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.index-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.index-card:hover { box-shadow: 0 8px 24px rgba(11,28,61,.08); transform: translateY(-2px); }
.index-name { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.index-value { font-size: 28px; font-weight: 800; margin: 6px 0; color: var(--ink); }
.index-change { font-size: 14px; font-weight: 700; }
.index-change.up { color: var(--green); }
.index-change.down { color: var(--red); }

/* Tabs */
.tabs { display: flex; gap: 6px; background: #eef1f7; padding: 4px; border-radius: 8px; }
.tab {
  border: none;
  background: transparent;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}
.tab.active { background: #fff; color: var(--navy); box-shadow: 0 1px 4px rgba(0,0,0,.1); }

/* Movers table */
.table-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.movers-table { width: 100%; border-collapse: collapse; }
.movers-table th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
.movers-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.movers-table tr:last-child td { border-bottom: none; }
.movers-table .sym-cell { font-weight: 800; color: var(--navy); }
.movers-table .change-up { color: var(--green); font-weight: 700; }
.movers-table .change-down { color: var(--red); font-weight: 700; }
.vibe-bar {
  height: 8px;
  border-radius: 100px;
  background: var(--line);
  overflow: hidden;
  width: 100px;
}
.vibe-bar-fill { height: 100%; border-radius: 100px; }

/* Cope */
.cope-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.cope-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--yellow);
  border-radius: var(--radius);
  padding: 22px;
}
.cope-quote { font-size: 15px; font-style: italic; color: var(--ink); line-height: 1.55; margin-bottom: 14px; }
.cope-author { font-size: 13px; color: var(--muted); font-weight: 600; }

/* News */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.news-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}
.news-card:hover { box-shadow: 0 8px 24px rgba(11,28,61,.08); transform: translateY(-2px); }
.news-thumb {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
}
.news-body { padding: 16px; }
.news-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}
.news-title { font-size: 16px; font-weight: 700; line-height: 1.35; margin: 0 0 10px; color: var(--ink); }
.news-meta { font-size: 12px; color: var(--muted); }

/* Ratings */
.ratings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.rating-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
}
.rating-badge { font-size: 40px; margin-bottom: 10px; }
.rating-card h3 { margin: 0 0 10px; font-size: 18px; color: var(--navy); }
.rating-card p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.rating-buy { border-top: 4px solid var(--green); }
.rating-hold { border-top: 4px solid var(--yellow); }
.rating-sell { border-top: 4px solid var(--red); }

/* Buy section */
.buy-section {
  background: var(--navy);
  color: #fff;
  text-align: center;
}
.buy-inner h2 { font-size: 30px; margin: 0 0 12px; }
.buy-inner p { color: #c7d2e8; margin: 0 0 24px; }
.fine-print { font-size: 12px; color: #8695b8; margin-top: 18px !important; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.about-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.about-card h3 { margin: 0 0 10px; font-size: 17px; color: var(--navy); }
.about-card p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.55; }

/* Footer */
.footer {
  background: var(--navy-dark);
  color: #aebbd8;
  padding: 48px 0 24px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.footer-col h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 14px; }
.footer-col a { display: block; margin-bottom: 10px; opacity: .85; }
.footer-col a:hover { opacity: 1; text-decoration: underline; }
.social-links { display: flex; gap: 10px; margin-top: 14px; }
.social-links a {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08);
  border-radius: 100px;
}
.social-links a:hover { background: rgba(255,255,255,.18); }
.footer-bottom { padding-top: 20px; font-size: 12px; line-height: 1.6; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 12px 20px; gap: 12px; }
  .search-bar { order: 3; max-width: 100%; width: 100%; }
  .hero-copy h1 { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .utility-inner { flex-direction: column; height: auto; padding: 6px 0; gap: 2px; }
}
