:root {
  --paper: #f2eee5;
  --ink: #11110f;
  --acid: #dfff00;
  --orange: #ff5c35;
  --blue: #6f8cff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Mono", monospace; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.grain { position: fixed; inset: 0; pointer-events: none; z-index: 20; opacity: .14; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E"); }

.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 4vw; border-bottom: 3px solid var(--ink); position: absolute; inset: 0 0 auto; z-index: 10; }
.wordmark { font: 2rem/1 "Archivo Black", sans-serif; letter-spacing: -3px; }
.wordmark span, h1 span { color: var(--orange); }
nav { display: flex; align-items: center; gap: clamp(15px, 3vw, 44px); font-weight: 500; font-size: .78rem; text-transform: uppercase; }
nav a { border-bottom: 1px solid transparent; }
nav a:hover { border-color: currentColor; }

.hero { min-height: 100svh; padding: 120px 4vw 45px; position: relative; display: grid; grid-template-columns: .9fr 1.2fr; align-items: center; gap: 3vw; }
.hero-copy { position: relative; z-index: 2; align-self: center; }
.eyebrow, .section-number { font-size: .76rem; letter-spacing: .12em; font-weight: 500; text-transform: uppercase; }
.eyebrow::before { content: "●"; color: var(--orange); margin-right: 10px; }
h1 { font: clamp(8rem, 20vw, 19rem)/.72 "Archivo Black", sans-serif; letter-spacing: -.09em; margin: 28px 0 48px -9px; }
.subhead { font: clamp(1.25rem, 2.5vw, 2.4rem)/1.08 "Archivo Black", sans-serif; margin: 0; }
.subhead em { color: var(--orange); font-style: normal; }

.cat-stage { position: relative; width: min(45vw, 660px); justify-self: end; transform: rotate(1.5deg); }
.photo-frame { border: 4px solid var(--ink); background: var(--ink); padding: 8px; box-shadow: 18px 18px 0 var(--blue); }
.photo-frame img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; filter: contrast(1.05) saturate(.88); }
.burst { position: absolute; z-index: 3; top: -34px; right: -32px; background: var(--acid); border: 3px solid var(--ink); border-radius: 50%; padding: 20px 15px; font: 1.4rem/1 "Archivo Black", sans-serif; transform: rotate(10deg); box-shadow: 6px 6px 0 var(--ink); }
.sticker { position: absolute; border: 3px solid var(--ink); font-weight: 500; text-transform: uppercase; text-align: center; background: var(--paper); }
.sticker-one { bottom: -27px; left: -43px; padding: 10px 18px; transform: rotate(-7deg); }
.sticker-two { top: 40%; right: -35px; background: var(--orange); color: white; padding: 12px 18px; font: 1.4rem/1 "Archivo Black", sans-serif; transform: rotate(7deg); }

.contract-card { position: absolute; bottom: 45px; left: 4vw; display: flex; align-items: stretch; border: 3px solid var(--ink); background: var(--ink); gap: 3px; }
.contract-card > span { background: var(--acid); padding: 14px; font-weight: 500; }
.contract-card button { border: 0; background: var(--paper); padding: 0; display: flex; align-items: center; cursor: pointer; }
.contract-card code { padding: 14px; }
.contract-card strong { background: var(--ink); color: white; align-self: stretch; display: grid; place-items: center; padding: 0 16px; text-transform: uppercase; font-size: .75rem; }
.contract-card button:hover strong { background: var(--orange); }
.scroll-cue { position: absolute; right: 4vw; bottom: 30px; border: 2px solid var(--ink); border-radius: 50%; width: 43px; height: 43px; display: grid; place-items: center; font-size: 1.5rem; }

.ticker { background: var(--ink); color: var(--paper); border-block: 3px solid var(--ink); overflow: hidden; transform: rotate(-1deg) scale(1.02); }
.ticker-track { width: max-content; display: flex; animation: marquee 18s linear infinite; }
.ticker span { font: 2.2rem/1 "Archivo Black", sans-serif; padding: 18px 0; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

.about { padding: 150px 4vw 120px; display: grid; grid-template-columns: .3fr 1fr 1fr; gap: 4vw; align-items: start; }
.about h2, .chart-heading h2 { font: clamp(2.7rem, 5.3vw, 6rem)/.95 "Archivo Black", sans-serif; letter-spacing: -.055em; margin: 0 0 40px; }
.about-copy p { font-size: clamp(1rem, 1.4vw, 1.3rem); line-height: 1.65; max-width: 650px; }
.pill-link { display: inline-block; margin-top: 25px; border: 3px solid var(--ink); border-radius: 999px; padding: 13px 22px; text-transform: uppercase; font-weight: 500; box-shadow: 5px 5px 0 var(--ink); transition: .15s; }
.pill-link:hover { background: var(--acid); transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.wide-photo { margin: 100px 0 0; border: 3px solid var(--ink); background: var(--blue); padding: 8px 8px 34px; transform: rotate(2deg); box-shadow: 12px 12px 0 var(--ink); }
.wide-photo img { display: block; width: 100%; aspect-ratio: 1.7; object-fit: cover; }
.wide-photo figcaption { padding: 11px 5px 0; text-transform: uppercase; font-size: .7rem; }

.chart-section { background: var(--orange); padding: 110px 4vw 130px; border-top: 3px solid var(--ink); }
.chart-heading { display: flex; justify-content: space-between; align-items: start; }
.chart-heading h2 { width: 65%; }
.chart-shell { border: 4px solid var(--ink); background: #101010; box-shadow: 14px 14px 0 var(--ink); }
.chart-bar { height: 46px; padding: 0 16px; background: var(--paper); border-bottom: 4px solid var(--ink); display: flex; gap: 12px; align-items: center; font-size: .72rem; font-weight: 500; }
.chart-bar i { flex: 1; border-top: 1px dashed var(--ink); opacity: .4; }
.chart-bar span:last-child::before { content: "●"; color: #20aa55; margin-right: 6px; }
#dexscreener-embed { position: relative; width: 100%; padding-bottom: 65%; }
#dexscreener-embed iframe { position: absolute; width: 100%; height: 100%; inset: 0; border: 0; }

.meme-section { padding: 125px 4vw 145px; border-top: 3px solid var(--ink); }
.meme-heading { display: grid; grid-template-columns: .3fr 1fr .65fr; gap: 4vw; align-items: end; margin-bottom: 65px; }
.meme-heading h2 { font: clamp(2.7rem, 5.3vw, 6rem)/.95 "Archivo Black", sans-serif; letter-spacing: -.055em; margin: 0; }
.meme-heading p { line-height: 1.65; margin: 0; }
.meme-maker { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .78fr); border: 4px solid var(--ink); box-shadow: 14px 14px 0 var(--blue); }
.meme-preview { position: relative; background: var(--ink); padding: clamp(12px, 2vw, 28px); display: grid; place-items: center; }
#meme-canvas { display: block; width: 100%; max-width: 680px; height: auto; background: #222; }
.preview-tag { position: absolute; top: 16px; left: 16px; padding: 7px 10px; background: var(--acid); border: 2px solid var(--ink); font-size: .66rem; font-weight: 500; }
.meme-controls { background: var(--paper); padding: clamp(25px, 4vw, 58px); display: flex; flex-direction: column; justify-content: center; }
.meme-controls label { display: grid; gap: 9px; font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.prompt-row { display: grid; grid-template-columns: 1fr auto; margin: 10px 0 32px; }
.meme-controls input { width: 100%; min-width: 0; border: 3px solid var(--ink); background: white; border-radius: 0; padding: 15px; font: .82rem "DM Mono", monospace; outline: none; }
.meme-controls input:focus { box-shadow: inset 0 -4px var(--acid); }
.generate-btn, .download-btn, .outline-btn { border: 3px solid var(--ink); cursor: pointer; padding: 14px 18px; text-transform: uppercase; font-weight: 500; }
.generate-btn { border-left: 0; background: var(--acid); }
.generate-btn:hover, .download-btn:hover { background: var(--blue); }
.caption-grid { display: grid; gap: 20px; }
.meme-actions { display: flex; gap: 12px; margin-top: 32px; }
.outline-btn { background: transparent; flex: 1; }
.download-btn { background: var(--orange); color: white; flex: 1.35; }
.local-note { font-size: .62rem; line-height: 1.5; opacity: .6; margin: 20px 0 0; }

footer { background: var(--ink); color: var(--paper); min-height: 430px; padding: 60px 4vw 35px; display: grid; grid-template-columns: 1.5fr 1fr; align-items: end; position: relative; }
.footer-face { font: clamp(7rem, 20vw, 18rem)/.7 "Archivo Black", sans-serif; letter-spacing: -.1em; color: var(--acid); }
.footer-links { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; font: clamp(1rem, 2vw, 1.6rem)/1 "Archivo Black", sans-serif; }
.footer-links a:hover { color: var(--orange); }
footer p { grid-column: 1 / -1; border-top: 1px solid #555; padding-top: 20px; margin: 50px 0 0; font-size: .7rem; text-transform: uppercase; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 140%); background: var(--acid); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); padding: 12px 20px; text-transform: uppercase; font-weight: 500; z-index: 30; transition: transform .25s ease; }
.toast.show { transform: translate(-50%, 0); }

@media (max-width: 800px) {
  .topbar { height: 64px; }
  nav a:nth-child(-n+2) { display: none; }
  .hero { min-height: auto; padding-top: 100px; padding-bottom: 130px; grid-template-columns: 1fr; }
  h1 { font-size: 39vw; margin: 24px 0 35px; }
  .hero-copy { z-index: 4; }
  .cat-stage { width: 88vw; justify-self: center; margin-top: 15px; }
  .burst { right: -4px; }
  .sticker-one { left: -4px; }
  .sticker-two { right: -4px; }
  .contract-card { bottom: 42px; left: 4vw; right: 4vw; }
  .contract-card button { flex: 1; justify-content: space-between; min-width: 0; }
  .contract-card code { overflow: hidden; }
  .scroll-cue { display: none; }
  .about { grid-template-columns: 1fr; padding-top: 100px; }
  .about-copy { margin-top: 20px; }
  .wide-photo { margin-top: 35px; }
  .chart-heading { display: block; }
  .chart-heading h2 { width: 100%; margin-top: 25px; }
  #dexscreener-embed { padding-bottom: 125%; }
  .meme-heading { grid-template-columns: 1fr; align-items: start; }
  .meme-heading h2 { margin-top: 20px; }
  .meme-maker { grid-template-columns: 1fr; }
  .prompt-row { grid-template-columns: 1fr; gap: 8px; }
  .generate-btn { border-left: 3px solid var(--ink); }
  .meme-actions { flex-direction: column; }
  footer { grid-template-columns: 1fr; gap: 70px; min-height: 520px; }
  .footer-links { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
}
