/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ===== Design tokens ===== */
:root {
  --bg: #f8f6f0;
  --ink: #2b1f13;
  --accent: #dca763;
  --accent-text: #96612d;
  --card: #ffffff;
  --green: #25d366;
  --maxw: 1120px;
  --radius: 20px;
  --font-display: "VT323", monospace;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 4px 4px 0px 0px var(--ink);
  --shadow-hover: 7px 7px 0px 0px var(--ink);
  --shadow-active: 2px 2px 0px 0px var(--ink);
  --transition-bouncy: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== Base ===== */
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  background-image: 
    radial-gradient(var(--accent) 1px, transparent 1px),
    radial-gradient(var(--accent) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  background-attachment: fixed;
  opacity: 0.99; /* Fixes rendering bugs in some browsers */
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Canvas background for interactive tears */
#interactive-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 10;
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 1px;
}
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-title { 
  font-size: clamp(32px, 6vw, 48px); 
  text-align: center; 
  margin-bottom: 12px;
  text-shadow: 2px 2px 0px rgba(220, 167, 99, 0.3);
}
.section-sub { text-align: center; opacity: 0.85; max-width: 620px; margin: 0 auto 48px; font-size: 17px; }

/* ===== Buttons (shared) ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  padding: 14px 28px; border-radius: var(--radius); 
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
  transition: var(--transition-bouncy);
}
.btn:hover { 
  transform: translate(-3px, -3px); 
  box-shadow: var(--shadow-hover);
}
.btn:active {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-active);
}
.btn--primary { background: var(--accent); color: var(--ink); }
.btn--primary:hover { background: #eab471; }
.btn--ghost { background: var(--card); color: var(--ink); }
.btn--ghost:hover { background: var(--bg); }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 246, 240, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--ink);
  transition: var(--transition-bouncy);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__brand { 
  font-size: 24px; 
  transition: var(--transition-bouncy);
}
.nav__brand:hover {
  transform: scale(1.1) rotate(-3deg);
  color: var(--accent-text);
}
.nav__menu { display: flex; align-items: center; gap: 24px; }
.nav__menu a { 
  font-size: 15px; 
  font-weight: 600; 
  opacity: 0.85;
  transition: var(--transition-bouncy);
  position: relative;
}
.nav__menu a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; width: 0; height: 3px;
  background: var(--accent);
  transition: var(--transition-bouncy);
}
.nav__menu a:hover { opacity: 1; color: var(--accent-text); }
.nav__menu a:hover::after { width: 100%; }
.nav__buy { 
  opacity: 1 !important; 
  padding: 8px 20px; 
  font-size: 14px;
  border-radius: 12px;
}
.nav__buy::after { display: none !important; }
.nav__toggle { display: none; font-size: 28px; color: var(--ink); }

@media (max-width: 760px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 18px; padding: 28px;
    background: var(--bg); border-bottom: 3px solid var(--ink);
    transform: translateY(-150%); transition: transform .35s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: -1;
  }
  .nav__menu.is-open { transform: translateY(0); }
}

/* ===== Hero ===== */
.hero { padding: 64px 0; text-align: center; overflow: hidden; }
.hero__inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.hero__logo {
  width: 180px; height: 180px; border-radius: 50%;
  border: 4px solid var(--ink); background: #fff;
  position: relative;
  box-shadow: 0 10px 30px rgba(43, 31, 19, 0.15);
  animation: float 4s ease-in-out infinite;
}
.hero__logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* Cute rotating badge ring around logo */
.hero__logo::before {
  content: "😿 MEOW 🐮 MOO 😿";
  position: absolute;
  top: -24px; left: -24px; right: -24px; bottom: -24px;
  border-radius: 50%;
  border: 2px dashed var(--accent);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-text);
  animation: spin 15s linear infinite;
  pointer-events: none;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}
@keyframes spin {
  100% { transform: rotate(360deg); }
}

.badge {
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  background: var(--card);
  border: 3px solid var(--ink); border-radius: 999px; padding: 6px 18px;
  box-shadow: 2px 2px 0px var(--ink);
  transform: rotate(-1deg);
  transition: var(--transition-bouncy);
}
.badge:hover {
  transform: rotate(2deg) scale(1.05);
}
.hero__wordmark { 
  font-size: clamp(48px, 10vw, 88px); 
  text-shadow: 4px 4px 0px var(--accent);
  animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes popIn {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.hero__tagline { font-size: clamp(20px, 4vw, 28px); color: var(--accent-text); }
.hero__subline { opacity: 0.9; margin-top: -6px; font-size: 16px; max-width: 500px; }
.hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.hero__socials { display: flex; gap: 16px; margin-top: 8px; }
.social {
  width: 48px; height: 48px; border-radius: 50%; 
  border: 3px solid var(--ink); background: var(--card);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 3px 3px 0px var(--ink);
  transition: var(--transition-bouncy);
}
.social:hover { 
  background: var(--accent); 
  transform: translate(-3px, -3px) rotate(12deg); 
  box-shadow: 6px 6px 0px var(--ink);
}
.social:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px var(--ink);
}
.social svg { width: 22px; height: 22px; fill: currentColor; }

/* Trust chips */
.chips { list-style: none; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.chip {
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  background: var(--card); border: 3px solid var(--ink); border-radius: 999px; padding: 8px 16px;
  box-shadow: var(--shadow);
  transition: var(--transition-bouncy);
}
.chip:hover {
  transform: translateY(-3px) rotate(-2deg);
  box-shadow: var(--shadow-hover);
}

/* Contract bar */
.ca {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
  background: var(--card); border: 3px solid var(--ink); border-radius: var(--radius);
  padding: 10px 10px 10px 20px; margin-top: 20px; max-width: 100%;
  box-shadow: var(--shadow);
  transition: var(--transition-bouncy);
}
.ca:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.ca__label { font-family: var(--font-display); font-size: 13px; font-weight: 700; opacity: .8; }
.ca__value { font-family: ui-monospace, monospace; font-size: 14px; font-weight: 700; word-break: break-all; }
.ca__copy {
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  background: var(--accent); color: var(--ink); border: 3px solid var(--ink);
  border-radius: 12px; padding: 8px 18px;
  box-shadow: 2px 2px 0px var(--ink);
  transition: var(--transition-bouncy);
}
.ca__copy:hover {
  background: #eab471;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px var(--ink);
}
.ca__copy:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px var(--ink);
}
.ca__copy[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }

/* ===== Marquee Ticker ===== */
.marquee-container {
  overflow: hidden;
  background: var(--ink);
  color: var(--bg);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  padding: 12px 0;
  display: flex;
  white-space: nowrap;
  user-select: none;
  transform: rotate(-1.5deg) scale(1.02);
  margin: 30px -20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  z-index: 10;
  position: relative;
}
.marquee-content {
  display: inline-flex;
  gap: 3rem;
  animation: marquee-anim 20s linear infinite;
}
.marquee-content span {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}
@keyframes marquee-anim {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

/* ===== Story ===== */
.story { text-align: center; }
.story__body { max-width: 720px; margin: 0 auto; font-size: 19px; line-height: 1.8; }
.story__chips { list-style: none; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 32px; }

/* ===== Roadmap ===== */
.roadmap__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.phase {
  background: var(--card); border: 3px solid var(--ink); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow);
  transition: var(--transition-bouncy);
  position: relative;
  overflow: hidden;
}
.phase::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 6px; height: 100%;
  background: var(--accent);
}
.phase:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-hover);
}
.phase__tag { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--accent-text); }
.phase__title { font-size: 24px; }
.phase--done { border-color: var(--ink); }
.phase--done::before { background: var(--green); }
.phase--done .phase__tag { color: var(--green); }
.phase--live { border-color: var(--ink); }
.phase--live::before { background: var(--accent); }

/* ===== How to Buy ===== */
.buy .container { 
  background: var(--card); 
  border: 3px solid var(--ink); 
  border-radius: var(--radius); 
  padding: 48px 36px;
  box-shadow: var(--shadow);
  transition: var(--transition-bouncy);
}
.buy .container:hover {
  box-shadow: var(--shadow-hover);
}
.buy__steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-bottom: 36px; }
.buy__step { 
  display: flex; 
  align-items: flex-start; 
  gap: 16px; 
  font-size: 16px; 
  padding: 16px;
  border-radius: 12px;
  background: rgba(220, 167, 99, 0.05);
  border: 2px dashed transparent;
  transition: var(--transition-bouncy);
}
.buy__step:hover {
  border-color: var(--accent);
  background: rgba(220, 167, 99, 0.1);
  transform: translateY(-2px);
}
.buy__num {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  font-family: var(--font-display); font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--ink);
}
.buy__cta { text-align: center; }

/* ===== Memes ===== */
.memes__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.meme {
  position: relative;
  aspect-ratio: 1 / 1; border-radius: var(--radius);
  background: var(--card); border: 3px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition-bouncy);
}
.meme:hover {
  transform: translateY(-5px) rotate(1.5deg);
  box-shadow: var(--shadow-hover);
  z-index: 2;
}
.meme img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.meme:hover img { transform: scale(1.05); }

.meme__copy {
  position: absolute; bottom: 12px; right: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  background: var(--accent); color: var(--ink);
  border: 2px solid var(--ink);
  padding: 8px 16px; border-radius: 12px;
  box-shadow: 2px 2px 0px var(--ink);
  opacity: 0; transform: translateY(6px);
  transition: var(--transition-bouncy);
}
.meme:hover .meme__copy, .meme__copy:focus-visible { opacity: 1; transform: none; }
.meme__copy:hover { background: #eab471; transform: translateY(-1px); }
.meme__copy.copied { background: var(--green); color: white; }
@media (hover: none) { .meme__copy { opacity: 1; transform: none; } }
.memes__cta { text-align: center; margin-top: 36px; }

/* ===== Community ===== */
.community { text-align: center; }
.community__ctas { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ===== Footer ===== */
.footer { border-top: 3px solid var(--ink); padding: 48px 0; text-align: center; background: var(--card); position: relative; z-index: 10; }
.footer__brand { 
  font-size: 28px; 
  margin-bottom: 16px; 
  transition: var(--transition-bouncy);
  display: inline-block;
}
.footer__brand:hover {
  transform: scale(1.1) rotate(3deg);
  color: var(--accent-text);
}
.footer__links { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.footer__links a { font-size: 15px; font-weight: 600; opacity: .8; transition: var(--transition-bouncy); }
.footer__links a:hover { opacity: 1; color: var(--accent-text); }
.footer__disclaimer { max-width: 680px; margin: 0 auto 16px; font-size: 13px; opacity: .7; line-height: 1.7; }
.footer__copy { font-size: 13px; opacity: .6; }

/* ===== Scroll Reveal Base ===== */
.reveal-element {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.reveal-element.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive polish ===== */
@media (max-width: 760px) {
  .section { padding: 60px 0; }
  .hero { padding: 48px 0; }
  .hero__logo { width: 150px; height: 150px; }
  .ca { padding: 10px 14px; }
}
.footer__ca { font-size: 13px; opacity: .8; margin-bottom: 16px; word-break: break-all; }
.footer__ca code { font-family: ui-monospace, monospace; font-weight: 700; }
