:root {
  --bg: #0b0b0b;
  --text: #f0f0f0;
  --muted: #b0b0b0;
  --accent: #f5c542;
  --border: #242424;

  /* easy knobs */
  --coin-size: 260px;        /* coin diameter on desktop */
  --wordmark-width: 200px;   /* wordmark width under the coin */

  /* social layout */
  --logo-row: 100px;         /* fixed height for the logo row to align labels */
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
body { position: relative; }

/* ---------- Background glyphs ---------- */
.bg-glyphs {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  z-index: 0; opacity: 0.5; pointer-events: none;
}
header, .hero, .section, footer { position: relative; z-index: 1; }
.bg-glyphs .base { stroke: rgba(255,255,255,0.12); stroke-width: .8; vector-effect: non-scaling-stroke; }
.bg-glyphs .glow { stroke: rgba(255,255,255,0.75); stroke-width: 1; opacity: 0; filter: blur(1.2px); mix-blend-mode: screen;
  animation: glyphPulse linear infinite; }
@keyframes glyphPulse { 0%,60%,100%{opacity:0} 10%{opacity:.55} 20%{opacity:.25} 30%{opacity:.08} }

/* ---------- Layout ---------- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Header */
header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11,11,11,0.7);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.header-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; }
.brand { display: flex; gap: 10px; align-items: center; font-weight: 800; }
.brand img { width: 32px; height: 32px; border-radius: 50%; }
.top-nav { display: flex; gap: 10px; flex-wrap: wrap; }
.top-nav .nav-btn { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--border); text-decoration: none; color: var(--text); background: #141414; font-size: 14px; }
.top-nav .nav-btn:hover { border-color: #333; }

/* Hero */
.hero {
  width: 100%;
  padding: 80px 0 56px;
  display: grid; place-items: center; text-align: center;
}
.coin { width: min(var(--coin-size), 60vw); height: auto; display: block; filter: drop-shadow(0 6px 16px rgba(0,0,0,.32)); }
.wordmark { width: min(var(--wordmark-width), 50vw); height: auto; margin-top: 14px; image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; }

/* CTA */
.cta { display: flex; justify-content: center; gap: 12px; margin: 36px 0 10px; flex-wrap: wrap; }
.btn { padding: 10px 16px; border-radius: 12px; text-decoration: none; font-size: 15px; }
.btn.buy {
  padding: 12px 18px; border-radius: 14px; background: var(--accent); color: #0d0d0d; font-weight: 700; border: 1px solid transparent;
  transition: box-shadow .16s, transform .12s;
}
.btn.buy:hover { box-shadow: 0 0 0 2px #000 inset, 0 0 24px 6px rgba(245,197,66,.25); transform: translateY(-1px); }

/* Contract chip */
.contract {
  display: inline-block; margin-top: 24px; padding: 6px 10px; border-radius: 10px; background: #121212; border: 1px solid var(--border);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 14px; cursor: pointer;
}

/* ---------- Sections ---------- */
.section { padding: 48px 0; border-top: 1px solid var(--border); }
h2 { margin: 0; }
#community h2 { margin: 0 0 14px; }                 /* one row extra below the title */
.lead { margin: 12px 0 48px; color: var(--text); }  /* Community blurb uses normal text color */

/* Inline Base logo next to heading */
.inline-logo { height: 18px; vertical-align: text-bottom; margin-left: 6px; border-radius: 4px; }
.bullets { margin: 10px 0 0 18px; }

/* ---------- Community logos ---------- */
.social-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr)); /* 5 logos */
  gap: 28px;
  align-items: start;
  justify-items: center;
}

.social-card {
  background: transparent; border: none; padding: 0;
  display: grid; justify-items: center;
  grid-template-rows: var(--logo-row) auto;          /* fixed logo row aligns labels */
  transition: transform .14s ease; text-decoration: none;
}
.social-card:hover { transform: translateY(-2px) scale(1.03); }

/* Images sit at bottom of the logo row so different heights still align */
.social-card img {
  align-self: end;
  width: 84px; height: 84px; object-fit: contain; display: block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
}

/* Visual balance & individual nudges */
.social-card[href*="x.com"] img {
  width: 96px; height: 96px;
  transform: translateY(9px);   /* ↓ push X DOWN (you set 9px) */
}
.social-grid img[src*="telegram"] {
  width: 60px; height: 60px;
  margin-bottom: 4px;           /* ↑ nudge Telegram UP a bit */
}

/* Unified label spacing — all baselines line up */
.social-card .soon {
  margin-top: 16px; font-size: 12px; color: var(--muted); background: transparent; border: none; padding: 0;
}

.social-card.disabled,
.social-card.disabled:hover { transform: none; cursor: default; }

/* Footer */
footer { text-align: center; padding: 32px 0 48px; color: var(--muted); border-top: 1px solid var(--border); font-size: 14px; }
footer .legal { font-size: 12px; line-height: 1.45; color: var(--muted); margin-bottom: 12px; }
footer code { background: #121212; border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .social-grid { grid-template-columns: repeat(3, 1fr); }
  :root { --logo-row: 92px; }
}

@media (max-width: 520px) {
  .social-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  :root { --logo-row: 84px; }
  .social-card img { width: 64px; height: 64px; }
  .social-card[href*="x.com"] img { width: 74px; height: 74px; transform: translateY(4px); }
  .social-grid img[src*="telegram"] { width: 56px; height: 56px; margin-bottom: 3px; }

  /* === Mobile nav right-align (phones) === */
  .header-row { flex-wrap: wrap; }
  .brand { flex: 1 0 auto; }
  .top-nav {
    width: 100%;
    margin-left: auto;          /* pushes nav to the right edge */
    justify-content: flex-end;  /* right-align buttons */
    padding-top: 6px;
    gap: 8px;
  }
  .top-nav .nav-btn {
    padding: 6px 10px;
    font-size: 13px;
  }
}

/* Large screens tweak */
@media (min-width: 900px) {
  :root { --coin-size: 300px; --wordmark-width: 230px; }
  .hero { padding: 96px 0 64px; }
  .cta { margin: 40px 0 12px; }
  .contract { margin-top: 28px; }
}
