/* Yellow polka dots on violet backdrop with frosted glass hacker theme
   Mobile-first, single stylesheet for "EVM Trending Tokens" page
*/

/* Color tokens */
:root{
  --violet: #2a0a4a;
  --violet-soft: #5b2a9f;
  --panel: rgba(255,255,255,.08);
  --border: rgba(255,255,255,.25);
  --text: #eef3ff;
  --muted: #cbd5e1;
  --silver: #d8dee8;
  --shadow: 0 12px 40px rgba(0,0,0,.45);
  --cta: #fff;
  --cta-text: #0b0a0f;
  --gold: #ffd166;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: var(--text);
  background-color: #1a0a2b;
  /* Yellow polka dots over violet */
  background-image:
    radial-gradient(circle, rgba(255, 223, 0, .75) 2px, transparent 2px),
    radial-gradient(circle, rgba(255, 223, 0, .75) 2px, transparent 2px);
  background-position: 0 0, 10px 10px;
  background-size: 20px 20px;
  background-color: var(--violet);
  background-blend-mode: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  position: relative;
}
body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  /* subtle glow/shimmer for cyberpunk feel */
  background: radial-gradient(circle at 70% 20%, rgba(255,255,255,.05), transparent 40%),
              radial-gradient(circle at 20% 80%, rgba(0,0,0,.25), transparent 40%);
  mix-blend-mode: overlay;
  z-index: 0;
}

/* Header */
.site-header {
  padding: 1rem;
  text-align: center;
  color: #e8e6ff;
  z-index: 1;
  position: relative;
}

/* Main layout */
main { padding: 0; }

/* Hero section: prominent centerpiece with frosted glass & grid layout */
.hero {
  display: grid;
  grid-template-rows: auto auto auto auto;
  justify-items: center;
  text-align: center;
  gap: 1rem;
  padding: clamp(1.25rem, 6vw, 3rem) 1rem;
  margin: 2rem auto;
  width: 100%;
  max-width: 1000px;
  border-radius: 16px;
  background: rgba(18, 10, 30, 0.68); /* frosted glass on violet backdrop */
  border: 1px solid var(--border);
  backdrop-filter: saturate(1.25) blur(8px);
  -webkit-backdrop-filter: saturate(1.25) blur(8px);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.hero > h1 {
  font-size: clamp(1.8rem, 6vw, 2.9rem);
  margin: 0.25rem 0;
  font-weight: 900;
  color: #f6f6ff;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.hero-image {
  width: min(92%, 720px);
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 0.4rem auto;
  box-shadow: 0 18px 40px rgba(0,0,0,.55);
  background: rgba(0,0,0,.25);
}
.subhead {
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  color: #eefa?; /* fallback */
  color: #e8eaff;
  opacity: .95;
  margin: 0.25rem 0;
}
.hero-cta {
  display: inline-block;
  padding: 1rem 1.75rem;
  font-size: clamp(1.15rem, 3vw, 1.25rem);
  font-weight: 800;
  color: var(--cta-text);
  text-decoration: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd166 0%, #ffd24d 60%, #ffd166 100%);
  border: 1px solid rgba(0,0,0,.25);
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
  transition: transform .2s ease, box-shadow .2s ease;
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,.5);
}
.hero-cta:focus-visible {
  outline: 3px solid #fff2a4;
  outline-offset: 2px;
  border-radius: 999px;
}

/* Footer */
.site-footer {
  padding: 1.5rem 1rem;
  text-align: center;
  color: #dde6f4;
  font-family: inherit;
}
.footer-ad a {
  color: #ffd166;
  text-decoration: none;
  font-weight: 700;
}
.footer-ad a:hover { text-decoration: underline; }

/* Accessibility: focus for links */
a:focus-visible {
  outline: 3px solid #ffd166;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Responsive tweaks */
@media (min-width: 640px) {
  .hero { grid-template-columns: 1fr; }
  .hero-cta { padding: 1.15rem 2rem; font-size: 1.125rem; }
}
@media (min-width: 1024px) {
  .hero { padding: 4rem 2rem; }
  .hero-image { width: min(70%, 820px); }
  .hero > h1 { font-size: 3rem; }
}