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

:root {
  --bg: #0c0a09;
  --bg-card: #141110;
  --bg-elevated: #1c1816;
  --text: #f5f0e8;
  --muted: #9a9088;
  --accent: #e85d04;
  --accent-glow: #ff6b2b;
  --gold: #f5c542;
  --line: rgba(245, 240, 232, 0.1);
  --display: "Bebas Neue", Impact, sans-serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --wrap: 1120px;
  --pad: clamp(1rem, 3vw, 2rem);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1rem;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; }
code { font-family: ui-monospace, monospace; }

.wrap {
  width: min(var(--wrap), calc(100% - 2 * var(--pad)));
  margin-inline: auto;
}

/* Nav */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(12, 10, 9, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.nav-brand span {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover {
  background: rgba(232, 93, 4, 0.15);
  color: var(--accent-glow);
}

.nav-links .nav-cta {
  background: var(--accent);
  color: #fff;
}

.nav-links .nav-cta:hover {
  background: var(--accent-glow);
  color: #fff;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 6rem 0 3rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 10, 9, 0.3) 0%, rgba(12, 10, 9, 0.55) 40%, rgba(12, 10, 9, 0.95) 85%, var(--bg) 100%),
    radial-gradient(ellipse 60% 40% at 15% 20%, rgba(232, 93, 4, 0.25) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
  align-items: end;
}

.hero-logo {
  border: 3px solid var(--accent);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(232, 93, 4, 0.35);
  animation: float 4s ease-in-out infinite;
}

.hero-logo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-text h1 {
  font-family: var(--display);
  font-size: clamp(3rem, 10vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
  margin-bottom: 0.5rem;
}

.hero-ticker {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--gold);
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.hero-tagline {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 36em;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 8px;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(232, 93, 4, 0.4);
}

.btn-primary:hover {
  background: var(--accent-glow);
  box-shadow: 0 6px 28px rgba(255, 107, 43, 0.5);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-glow);
}

.hero-ca {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(20, 17, 16, 0.8);
  border: 1px dashed rgba(232, 93, 4, 0.4);
  border-radius: 10px;
  max-width: 640px;
}

.hero-ca code {
  font-size: 0.62rem;
  word-break: break-all;
  color: var(--muted);
  flex: 1;
  min-width: 200px;
}

.btn-copy-sm {
  padding: 0.45rem 0.85rem;
  background: transparent;
  color: var(--accent-glow);
  border: 1px solid var(--accent);
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.btn-copy-sm:hover {
  background: var(--accent);
  color: #fff;
}

/* Stats */
.stats-section {
  padding: 0 0 3rem;
  margin-top: -1rem;
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  border: 1px solid var(--line);
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1.25rem;
}

.stats-bar > div {
  text-align: center;
  padding: 0.5rem;
}

.stats-bar span {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.stats-bar strong {
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
}

.stats-bar strong.up { color: #6ee7a0; }
.stats-bar strong.down { color: #f87171; }

.stats-note {
  margin-top: 0.65rem;
  font-size: 0.68rem;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.04em;
}

/* Sections */
section {
  padding: 4rem 0;
}

.section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

section h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: 0.04em;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.section-lede {
  color: var(--muted);
  max-width: 40em;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* About */
.about {
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.about-copy p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.about-copy p:first-of-type {
  color: var(--text);
  font-size: 1.05rem;
}

.about-copy strong { color: var(--gold); }

.about-visual {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.about-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.about-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232, 93, 4, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.dossier {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.dossier-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
}

.dossier-item span {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.dossier-item strong {
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}

/* Gallery */
.gallery {
  background: var(--bg-card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.gallery-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--line);
  transition: border-color 0.2s, transform 0.2s;
}

.gallery-frame:hover {
  border-color: var(--accent);
  transform: scale(1.01);
}

.gallery-frame img {
  width: 100%;
  object-fit: cover;
}

.gallery-frame:first-child img { aspect-ratio: 1; }
.gallery-frame:last-child img { aspect-ratio: 16 / 9; }

.gallery-caption {
  padding: 0.75rem 1rem;
  background: var(--bg-elevated);
  font-size: 0.82rem;
  color: var(--muted);
}

.gallery-caption b {
  color: var(--accent);
  font-weight: 700;
  margin-right: 0.35rem;
}

/* Tweet embed */
.tweet-section {
  border-top: 1px solid var(--line);
}

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

.tweet-copy h2 { margin-bottom: 0.75rem; }

.tweet-copy p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.tweet-copy a {
  color: var(--accent-glow);
  font-weight: 600;
}

.tweet-copy a:hover { text-decoration: underline; }

.tweet-embed-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.tweet-embed-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-elevated);
}

.tweet-embed-header img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.tweet-embed-header strong {
  display: block;
  font-size: 0.92rem;
}

.tweet-embed-header span {
  font-size: 0.78rem;
  color: var(--muted);
}

.tweet-embed-header a {
  margin-left: auto;
  padding: 0.4rem 0.85rem;
  background: #000;
  color: #fff;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.tweet-embed-header a:hover {
  background: var(--accent);
}

.tweet-embed-body {
  display: flex;
  justify-content: center;
  padding: 1.25rem;
  min-height: 320px;
  background: #000;
}

.tweet-embed-body .twitter-tweet {
  margin: 0 auto !important;
}

/* Chart */
.chart-section {
  background: var(--bg-card);
  border-top: 1px solid var(--line);
}

.chart-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1.5rem;
}

.trade-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
  background: var(--bg);
}

.trade-panel h3 {
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.ca-block {
  margin-bottom: 1rem;
}

.ca-block label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.ca-block code {
  display: block;
  font-size: 0.62rem;
  word-break: break-all;
  padding: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.ticker-display {
  font-family: var(--display);
  font-size: 2rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin: 1rem 0;
}

.trade-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.copy-toast {
  min-height: 1.2rem;
  font-size: 0.75rem;
  color: var(--accent-glow);
  opacity: 0;
  margin-top: 0.5rem;
}

.copy-toast.show { opacity: 1; }

.chart-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  min-height: 480px;
}

.chart-wrapper { height: 100%; min-height: 480px; }

.dexscreener-embed {
  width: 100%;
  height: 100%;
  min-height: 480px;
  border: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--accent);
}

.footer-brand strong {
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: 0.06em;
}

.fineprint {
  font-size: 0.78rem;
  color: var(--muted);
  max-width: 48em;
  line-height: 1.55;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: right;
}

.footer-links a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent-glow); }

.footer-ca {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.footer-ca code {
  font-size: 0.6rem;
  color: var(--muted);
  word-break: break-all;
  flex: 1;
}

@media (max-width: 900px) {
  .hero-content,
  .about-grid,
  .tweet-grid,
  .chart-grid,
  .gallery-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    grid-template-columns: 100px 1fr;
    gap: 1.25rem;
  }

  .dossier {
    grid-template-columns: 1fr 1fr;
  }

  .stats-bar {
    grid-template-columns: 1fr 1fr;
  }

  .footer-links {
    text-align: left;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-logo {
    width: 100px;
    margin: 0 auto;
  }

  .hero-actions,
  .hero-ca {
    justify-content: center;
  }

  .stats-bar {
    grid-template-columns: 1fr;
  }

  .dossier {
    grid-template-columns: 1fr;
  }
}
