
:root {
  --bg: #F2EBD4;          
  --text: #2D241E;        
  --text-dim: #6D5B4B;    
  --accent: #E05A00;      
  --stroke: #2D241E;      
  --card-bg: #FFFBF2;     
  
  --radius: 4px;
  --transition: transform 0.1s ease-in-out, box-shadow 0.1s;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 100%; scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0; padding: 0; 
  background-color: var(--bg);
  background-image: radial-gradient(#D1C6B9 1px, transparent 1px);
  background-size: 20px 20px;
  color: var(--text); 
  font-family: 'Inter', system-ui, sans-serif; 
  line-height: 1.6;
}

h1, h2, h3, .mono, .btn, .tag { 
  font-family: 'Courier Prime', monospace; 
  text-transform: uppercase; 
  letter-spacing: -0.5px;
}

h1 { font-size: clamp(1.5rem, 5vw, 2.2rem); font-weight: 700; line-height: 1.2; }
h2 { font-size: clamp(2rem, 6vw, 2.8rem); color: var(--accent); line-height: 1.2; }
h3 { font-size: 1.5rem; border-bottom: 3px double var(--stroke); padding-bottom: 8px; margin-bottom: 24px;}

a { color: var(--accent); text-decoration: none; font-weight: 700; }

@keyframes jitter {
  0% { transform: translate(0,0); }
  25% { transform: translate(1px, 1px); }
  50% { transform: translate(-1px, -1px); }
  75% { transform: translate(-1px, 1px); }
  100% { transform: translate(0,0); }
}

@keyframes socket-flicker {
  0%, 100% {
    opacity: 1;
    text-shadow: 0 0 0 transparent;
  }
  5% {
    opacity: 0.7;
    text-shadow: 0 0 4px rgba(224, 90, 0, 0.6);
  }
  6% {
    opacity: 1;
    text-shadow: 0 0 0 transparent;
  }
  10% {
    opacity: 0.8;
    text-shadow: 0 0 8px rgba(224, 90, 0, 0.9);
  }
  11% {
    opacity: 1;
    text-shadow: 0 0 0 transparent;
  }
}

.site-header, main > section, .site-footer { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
main > section { margin: 64px auto; }

.animated-section { 
  opacity: 0; transform: translateY(20px); 
  transition: opacity 0.5s ease, transform 0.5s ease; 
  will-change: opacity, transform;
}
.animated-section.visible { opacity: 1; transform: translateY(0); }

.site-header { padding-top: 32px; }
.logo-row { display: flex; gap: 20px; align-items: center; }
.logo { border-radius: 4px; border: 3px solid var(--stroke); background: #FFF; flex-shrink: 0; }
.title-col h1, .title-col p { margin: 0; }
.tag { color: var(--text-dim); font-size: 0.8rem; font-style: italic; }

.btn {
  display: inline-block; text-align: center;
  padding: 16px 24px; 
  border-radius: var(--radius); 
  border: 2px solid var(--stroke);
  background: #E8E1D3; 
  box-shadow: inset 2px 2px 0px #FFF, inset -2px -2px 0px #B0A491, 3px 3px 0px rgba(0,0,0,0.15);
  color: var(--text); font-weight: 700; text-decoration: none; 
  transition: var(--transition); cursor: pointer; font-size: 1rem;
  position: relative;
}

.btn:hover { 
  background: #FFF; 
  color: var(--accent); border-color: var(--accent);
  animation: jitter 0.2s linear infinite; /* Vibrate on hover */
}

.btn:active { 
  background: #D1C6B9; 
  box-shadow: inset 2px 2px 0px #918675, inset -2px -2px 0px #FFF;
  transform: translateY(2px);
  animation: none;
}

.btn.primary {
  background: var(--accent); color: #FFF;
  box-shadow: inset 2px 2px 0px #FF9E66, inset -2px -2px 0px #993D00, 3px 3px 0px rgba(0,0,0,0.15);
}
.btn.primary:hover { background: #FF7A29; border-color: var(--stroke); }

.btn[data-disabled="true"] {
  opacity: 0.7; cursor: not-allowed; background: #CCC; color: #777;
  box-shadow: none; border-style: dashed;
  animation: none;
}
.btn[data-disabled="true"]:hover { transform: none; background: #CCC; color: #777; }

[data-tooltip] { position: relative; }
[data-tooltip]::after { 
    content: attr(data-tooltip); 
    position: absolute; bottom: 105%; left: 50%; 
    transform: translateX(-50%) translateY(10px); 
    background-color: #000; color: #FFF; 
    padding: 8px 12px; border-radius: 2px; 
    font-size: 0.8rem; font-weight: 700; font-family: 'Inter', sans-serif;
    white-space: nowrap; pointer-events: none; z-index: 999;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    opacity: 0; visibility: hidden; 
    transition: opacity 0.2s, transform 0.2s;
}
[data-tooltip]::before {
    content: ''; position: absolute; bottom: 100%; left: 50%; 
    transform: translateX(-50%) translateY(10px);
    border: 6px solid transparent; border-top-color: #000;
    opacity: 0; visibility: hidden; pointer-events: none; z-index: 999;
    transition: opacity 0.2s, transform 0.2s;
}
[data-tooltip]:hover::after, [data-tooltip].show-tooltip::after,
[data-tooltip]:hover::before, [data-tooltip].show-tooltip::before { 
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); 
}

.hero-copy { text-align: center; }
#hero { display: flex; flex-direction: column; gap: 32px; align-items: center; }

.hero-art { width: 100%; max-width: 900px; margin: 0 auto; /* rest stays as you had it */ }
.hero-img { 
  display: block; width: 100%; height: auto; 
  aspect-ratio: 3 / 1; object-fit: cover; 
  border-radius: 4px; border: 3px solid var(--stroke); box-shadow: 8px 8px 0px rgba(0,0,0,0.1);
}
.hero-copy p { margin: 16px auto 0; color: var(--text-dim); max-width: 55ch; font-size: 1.1rem; }
.hero-copy h2 {
  position: relative;
  text-shadow: 0 0 0 transparent;
  animation: socket-flicker 3.5s infinite steps(1, end);
}

.tokenomics-text,
.roadmap-text,
.meme-intro {
  max-width: 40rem;
  margin: 0 auto 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-dim);
}

.meme-intro {
  text-align: center;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.centered-note {
  text-align: center;
}

.card { padding: 24px; background: var(--card-bg); border: 2px solid var(--stroke); border-radius: var(--radius); box-shadow: 4px 4px 0px rgba(45, 36, 30, 0.1); }
.links-grid, .meme-gallery, .token-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.info-card { background: #FFF; border: 2px solid var(--stroke); border-radius: var(--radius); padding: 20px; text-align: center; overflow: hidden; }
.info-card strong { display: block; color: var(--accent); font-size: 1.1rem; margin-top: 5px;}

.note {
    background: #FFEA00;
    border: 2px dashed var(--stroke);
    color: var(--text);
    padding: 12px;
    font-size: 0.9rem;
    text-align: center;
    font-family: 'Courier Prime', monospace;
    margin-top: 24px;
    display: inline-block;
    width: 100%;
}

.meme-placeholder { 
    aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; 
    background: rgba(255,255,255,0.5); border: 2px dashed var(--text-dim); 
    color: var(--text-dim); font-weight: 600; text-align: center; padding: 10px;
}
.links-grid-single { display: grid; grid-template-columns: 1fr; max-width: 400px; margin: 0 auto;}

.floating-nav { position: fixed; bottom: 24px; right: 24px; z-index: 1000; }
#nav-toggle-btn { 
  width: 60px; height: 60px; background: var(--accent); 
  border: 3px solid var(--stroke); border-radius: 50%; 
  display: flex; align-items: center; justify-content: center; 
  box-shadow: 4px 4px 0px rgba(0,0,0,0.3); cursor: pointer; transition: transform 0.2s;
}
#nav-toggle-btn:active { transform: scale(0.9); }
#nav-menu { 
  position: absolute; bottom: 80px; right: 0; width: 200px;
  background: #FFF; border: 3px solid var(--stroke); border-radius: var(--radius); 
  padding: 8px; transform-origin: bottom right; transform: scale(0); opacity: 0; 
  pointer-events: none; transition: all 0.2s ease; box-shadow: 8px 8px 0px rgba(0,0,0,0.2);
}
.floating-nav.nav-open #nav-menu { transform: scale(1); opacity: 1; pointer-events: auto; }
#nav-menu ul { list-style: none; padding: 0; margin: 0; }
#nav-menu a { display: block; padding: 12px 16px; color: var(--text); border-bottom: 1px dashed var(--text-dim); }
#nav-menu a:last-child { border-bottom: none; }
#nav-menu a:hover { background: var(--bg); color: var(--accent); }

.site-footer { margin-top: 80px; margin-bottom: 100px; border-top: 4px solid var(--stroke); padding-top: 30px; text-align: center; color: var(--text-dim); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 768px) {
  .logo-row { flex-direction: column; }
  .links-grid, .meme-gallery, .token-info-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; margin-bottom: 8px; }
}