/* RandomCoin — light, airy, blue + gold brand */

:root {
  --blue-deep: #4a6fd4;
  --blue: #5d8bf4;
  --blue-soft: #7b96ff;
  --blue-mist: #e8eeff;
  --gold: #fcd535;
  --gold-bright: #ffd747;
  --gold-dark: #c9a227;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.06);
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--surface-2);
  min-height: 100vh;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: #f1f5f9;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.09) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

a {
  color: var(--blue-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--blue);
}

.mono {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.wrap {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.brand-text {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-random {
  color: var(--ink);
}

.brand-coin-text {
  color: var(--gold-dark);
}

.brand--wordmark {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.brand-wordmark {
  display: block;
  height: 40px;
  width: auto;
  max-width: min(260px, 62vw);
}

/* Optional: gold-on-blue coin asset — circular crop + vignette (favicon / future use) */
.coin-photo {
  display: inline-flex;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  vertical-align: middle;
}

.coin-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.coin-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  box-shadow:
    inset 0 0 18px rgba(15, 23, 42, 0.32),
    inset 0 0 42px rgba(15, 23, 42, 0.14);
}

.coin-photo--sm {
  width: 36px;
  height: 36px;
}

.coin-photo--lg {
  width: 112px;
  height: 112px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.nav a:hover {
  color: var(--blue-deep);
}

.nav-cta {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-soft) 100%);
  color: #fff !important;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.nav-cta:hover {
  filter: brightness(1.05);
  color: #fff !important;
}

/* Hero */

.hero {
  padding: 3rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  color: var(--muted);
  margin: 0 0 1rem;
}

.hero-title {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

.accent-gold {
  color: var(--gold-dark);
}

.hero-lede {
  margin: 0 0 1.75rem;
  max-width: 52ch;
  font-size: 1.08rem;
}

.hero-lede strong {
  color: var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.fineprint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(252, 213, 53, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 10px 28px rgba(252, 213, 53, 0.45);
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  margin-top: 1rem;
  background: var(--surface);
  color: var(--blue-deep);
  border: 1px solid var(--line);
}

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-brand-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  padding: 1.65rem 1.35rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--blue) 0%, #6b93ff 42%, var(--blue-soft) 100%);
  position: relative;
  overflow: hidden;
}

.hero-brand-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 380px) {
  .hero-brand-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

.hero-brand-coin {
  flex-shrink: 0;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.2));
}

.hero-brand-coin .coin-photo::after {
  box-shadow:
    inset 0 0 14px rgba(15, 23, 42, 0.18),
    inset 0 0 36px rgba(15, 23, 42, 0.08);
}

.hero-brand-words {
  min-width: 0;
}

.hero-brand-title {
  margin: 0;
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero-w {
  color: #fff;
}

.hero-brand-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120% 80% at 90% 10%,
    rgba(255, 255, 255, 0.22) 0%,
    transparent 55%
  );
  pointer-events: none;
}

.hero-y {
  color: var(--gold-bright);
}

.hero-brand-sub {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.94);
}

.hero-brand-sub .hero-y {
  font-weight: 700;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 0;
  padding: 0;
}

@media (max-width: 600px) {
  .stat-row {
    grid-template-columns: 1fr;
  }
}

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-sm);
}

.stat dt {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-family: var(--mono);
}

.stat dd {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.98rem;
}

.stat .pos {
  color: #15803d;
}

.stat code {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--blue-deep);
}

/* Sections */

.section {
  padding: 4rem 0;
}

.section-tint {
  background: linear-gradient(180deg, rgba(232, 238, 255, 0.5) 0%, transparent 100%);
}

.section-kicker {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.section-title {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section-lede {
  margin: 0 0 2.5rem;
  max-width: 65ch;
  font-size: 1.05rem;
}

.section-lede strong {
  color: var(--ink);
}

.inline-code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 0.12rem 0.35rem;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--ink);
}

/* Timeline */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid var(--line);
  margin-left: 0.5rem;
}

.timeline-item {
  position: relative;
  padding: 0 0 2.5rem 2rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 3px var(--blue-mist);
}

.timeline-date {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--blue-deep);
  font-weight: 600;
}

.timeline-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: var(--ink);
}

.timeline-body p {
  margin: 0 0 0.75rem;
}

.inline-link {
  font-weight: 600;
  text-decoration: none;
  color: var(--blue-deep);
}

.inline-link:hover {
  text-decoration: underline;
}

/* On-chain (GMGN) */

.link-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  list-style: none;
  margin: -0.5rem 0 2rem;
  padding: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-deep);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.chip:hover {
  border-color: rgba(93, 139, 244, 0.45);
  color: var(--ink);
}

.gmgn-root {
  margin-bottom: 2rem;
}

.gmgn-root.is-refreshing {
  opacity: 0.92;
  transition: opacity 0.2s ease;
}

.gmgn-status {
  margin: 0 0 1rem;
  color: var(--muted);
}

.gmgn-status.is-error {
  color: #b45309;
}

.fee-disclaimer {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  max-width: 62ch;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.04);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.fee-disclaimer strong {
  color: var(--ink-soft);
}

.fee-disclaimer .mono {
  font-size: 0.82em;
}

.gmgn-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.gmgn-stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.05rem;
  box-shadow: var(--shadow-sm);
}

.gmgn-stat dt {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  font-family: var(--mono);
}

.gmgn-stat dd {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.98rem;
  word-break: break-word;
}

.gmgn-stat dd.mono {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
}

.gmgn-stat dd a.mono {
  color: var(--blue-deep);
  text-decoration: none;
  font-weight: 700;
}

.gmgn-stat dd a.mono:hover {
  text-decoration: underline;
}

.gmgn-tables {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.gmgn-tables--single {
  grid-template-columns: 1fr;
}

.gmgn-table-title {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.gmgn-table-hint {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--muted);
  max-width: 70ch;
}

.table-scroll {
  overflow: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.data-table th,
.data-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.data-table th {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: #f8fafc;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table a {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-deep);
  text-decoration: none;
}

.data-table a:hover {
  text-decoration: underline;
}

.num-pos {
  color: #15803d;
  font-weight: 700;
  font-family: var(--mono);
  font-size: 0.82rem;
}

.claims-foot {
  border-top: 1px solid var(--line);
  padding-top: 1.75rem;
  margin-top: 0.5rem;
}

.claims-foot-note {
  margin: 0;
  max-width: 75ch;
  color: var(--muted);
  font-size: 0.98rem;
}

.claims-foot-note strong {
  color: var(--ink);
}

/* SOL fees claimed — hero (Holders & fees) */

.sol-claimed-hero {
  margin: 0 0 1.75rem;
  padding: 1.5rem 1.25rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, #ffffff 0%, var(--blue-mist) 55%, rgba(252, 213, 53, 0.12) 100%);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.sol-claimed-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.sol-claimed-value {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 5.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--ink);
}

.sol-claimed-meta {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
}

.sol-claimed-btn {
  margin-inline: auto;
}

/* X (Twitter) — server oEmbed text (no widgets.js) */

.tweet-embed-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 0.25rem;
}

.tweet-card {
  flex: 1 1 280px;
  max-width: 420px;
  min-width: 0;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.tweet-card .twitter-tweet {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink);
}

.tweet-card .twitter-tweet p {
  margin: 0 0 0.65rem;
}

.tweet-card-loading {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.tweet-card-error {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.tweet-card-open {
  display: inline-block;
}

.tweet-fallback {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

.tweet-fallback a {
  font-weight: 600;
}

/* Quote */

.quote-feature {
  margin: 0 0 2.5rem;
  padding: 0;
  border: none;
}

.quote-feature blockquote {
  margin: 0;
  padding: 2rem 2rem 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff 0%, var(--blue-mist) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.quote-feature blockquote p {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.quote-feature figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.quote-feature .who {
  font-weight: 700;
  color: var(--ink);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 800px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.info-card-title {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  color: var(--ink);
}

.info-card p {
  margin: 0;
}

/* Contract */

.section-contract {
  padding-bottom: 5rem;
}

.contract-block {
  text-align: center;
}

.contract-block .section-kicker,
.contract-block .section-title,
.contract-block .section-lede {
  margin-left: auto;
  margin-right: auto;
}

.contract-block .section-lede {
  max-width: 50ch;
}

.ca-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.ca {
  display: block;
  flex: 1 1 320px;
  max-width: 100%;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.85rem;
  word-break: break-all;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.toast {
  min-height: 1.5rem;
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: #15803d;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 2.5rem 0 3rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.footer-tag {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a {
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink-soft);
}

.footer-links a:hover {
  color: var(--blue-deep);
}
