:root {
  --bg: #0a1410;
  --bg-2: #0f1d18;
  --surface: #122621;
  --surface-2: #163029;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(46, 196, 142, 0.35);
  --text: #e8f3ee;
  --text-dim: #9bb0a7;
  --accent: #2ec48e;
  --accent-2: #1e9d70;
  --accent-glow: rgba(46, 196, 142, 0.35);
  --danger: #ff6b6b;
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

code, .ticker, #contract-address { font-family: 'JetBrains Mono', ui-monospace, monospace; }

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

img { display: block; max-width: 100%; }

/* Background */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(46, 196, 142, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 196, 142, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 75%);
}
.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 600px 400px at 20% 0%, rgba(46, 196, 142, 0.18), transparent 60%),
    radial-gradient(ellipse 700px 500px at 90% 30%, rgba(46, 196, 142, 0.10), transparent 65%);
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 20, 16, 0.7);
  border-bottom: 1px solid var(--border);
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.04em; }
.nav-brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--text-dim); font-size: 14px; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta { font-size: 14px; padding: 9px 18px; }
@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600; font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #07120e;
  box-shadow: 0 8px 30px var(--accent-glow);
}
.btn-primary:hover { background: #3ad99e; transform: translateY(-1px); box-shadow: 0 12px 36px var(--accent-glow); }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--surface-2); border-color: var(--border-strong); }

/* Hero */
.hero {
  position: relative;
  padding: 80px 24px 100px;
  text-align: center;
}
.hero-inner { max-width: 820px; margin: 0 auto; }
.hero-logo {
  width: 140px; height: 140px; margin: 0 auto 28px;
  border-radius: 28px;
  box-shadow: 0 20px 60px var(--accent-glow), 0 0 0 1px var(--border);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero h1 {
  font-size: clamp(48px, 9vw, 96px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  background: linear-gradient(180deg, #ffffff 0%, #b6e6d3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}
.ticker {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  border: 1px solid var(--border-strong);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(46, 196, 142, 0.08);
  margin-bottom: 24px;
}
.hero-tag {
  font-size: clamp(18px, 2.4vw, 22px);
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 36px;
}
.hero-tag em { color: var(--accent); font-style: normal; font-weight: 600; }

/* Contract */
.contract {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 12px 10px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 32px;
  max-width: 100%;
}
.contract-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--accent);
  background: rgba(46, 196, 142, 0.12);
  padding: 4px 8px; border-radius: 6px;
}
.contract code {
  font-size: 13px;
  color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: min(60vw, 380px);
}
.copy-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  background: var(--accent);
  color: #07120e;
  border: 0; border-radius: 999px;
  font-weight: 600; font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}
.copy-btn:hover { background: #3ad99e; }
.copy-btn.copied { background: #1e9d70; color: white; }

.hero-cta {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-socials {
  display: flex; gap: 16px; justify-content: center;
}
.hero-socials a {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--text-dim);
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.hero-socials a:hover { color: var(--accent); border-color: var(--border-strong); }

/* Sections */
.section { padding: 80px 24px; position: relative; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(46, 196, 142, 0.03), transparent); }
.container { max-width: var(--max); margin: 0 auto; }
.section h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.lead {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 680px;
  margin-bottom: 40px;
}

/* Stats */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.stat:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.stat-label {
  font-size: 12px; letter-spacing: 0.12em;
  color: var(--text-dim); text-transform: uppercase;
  margin-bottom: 8px;
}
.stat-value {
  font-size: 26px; font-weight: 700;
  color: var(--accent);
}

/* Tweet */
.tweet-card {
  display: block;
  max-width: 560px;
  margin: 0 auto;
  background: #15202b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 22px 24px;
  color: #e7e9ea;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.tweet-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(46, 196, 142, 0.15);
}
.tweet-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
}
.tweet-avatar {
  width: 48px; height: 48px;
  background: #000;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.tweet-avatar svg { width: 22px; height: 22px; }
.tweet-id { display: flex; flex-direction: column; line-height: 1.2; }
.tweet-name {
  display: flex; align-items: center; gap: 4px;
  font-weight: 700; font-size: 16px; color: #fff;
}
.verified { width: 18px; height: 18px; fill: #1d9bf0; flex-shrink: 0; }
.tweet-handle { font-size: 14px; color: #8b98a5; }
.tweet-body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 4px 0 18px;
}
.tweet-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: #8b98a5;
}
.tweet-meta { font-weight: 600; }
.tweet-arrow { width: 16px; height: 16px; }
.tweet-card:hover .tweet-arrow { color: var(--accent); }

/* Chart */
.chart-wrap {
  position: relative;
  width: 100%;
  height: 640px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
.chart-wrap iframe {
  width: 100%; height: 100%;
  border: 0;
}
.chart-cta { margin-top: 20px; text-align: center; }
@media (max-width: 720px) {
  .chart-wrap { height: 520px; }
}

/* Memes */
.meme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.meme-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.meme-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.meme-card a { display: block; line-height: 0; }
.meme-card img {
  width: 100%;
  height: auto;
  display: block;
}
.meme-placeholder {
  aspect-ratio: 1 / 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 24px;
  background:
    radial-gradient(circle at 30% 20%, rgba(46, 196, 142, 0.18), transparent 50%),
    linear-gradient(135deg, #143028, #0c1c17);
  position: relative;
}
.meme-placeholder::before {
  content: '';
  position: absolute; inset: 14px;
  border: 1px dashed rgba(46, 196, 142, 0.25);
  border-radius: 10px;
  pointer-events: none;
}
.meme-quote {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 12px;
}
.meme-attr {
  font-size: 13px;
  color: var(--text-dim);
  font-style: italic;
}
.meme-card figcaption {
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  border-top: 1px solid var(--border);
  letter-spacing: 0.04em;
}

/* Steps */
.steps {
  list-style: none;
  display: grid;
  gap: 16px;
  margin-top: 32px;
}
.steps li {
  display: flex; gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s;
}
.steps li:hover { border-color: var(--border-strong); }
.step-num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent);
  color: #07120e;
  font-weight: 700; font-size: 18px;
  border-radius: 50%;
}
.steps h3 { font-size: 18px; margin-bottom: 4px; }
.steps p { color: var(--text-dim); font-size: 15px; }

/* Disclaimer */
.disclaimer { max-width: 760px; }
.disclaimer p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.7;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  background: var(--bg-2);
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 24px;
  align-items: center; justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.footer-brand img { width: 28px; height: 28px; border-radius: 6px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text-dim); font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-meta { font-size: 12px; color: var(--text-dim); width: 100%; text-align: center; padding-top: 16px; border-top: 1px solid var(--border); margin-top: 16px; }

/* Flappy Sam */
.game-wrap {
  position: relative;
  max-width: 480px;
  margin: 0 auto 24px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--border-strong);
  background: #0a3a28;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
#flappy {
  display: block;
  width: 100%;
  height: auto;
  touch-action: manipulation;
  cursor: pointer;
}
.game-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 5;
  padding: 20px;
}
.game-overlay.hidden { display: none; }
.overlay-card {
  text-align: center;
  padding: 24px;
  max-width: 320px;
}
.overlay-card h3 {
  font-size: 44px; font-weight: 900;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.overlay-card p {
  color: var(--text-dim);
  margin-bottom: 16px;
  line-height: 1.5;
  font-size: 16px;
}
.overlay-card .hi-line { font-size: 14px; }
.overlay-card strong { color: var(--accent); font-weight: 700; }

.game-stats {
  display: flex; gap: 32px; justify-content: center;
  font-size: 13px; color: var(--text-dim);
  letter-spacing: 0.12em; text-transform: uppercase;
}
.game-stats strong {
  color: var(--accent);
  font-size: 20px;
  margin-left: 6px;
  font-weight: 700;
}

/* Selection */
::selection { background: var(--accent); color: #07120e; }
