/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #222;
  --white: #fff;
  --accent: #c0c0c0;
  --accent-dark: #999;
  --gray: #f5f5f5;
  --gray-dark: #888;
  --bubble-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Fredoka', sans-serif;
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== PAW CANVAS ===== */
#paw-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: url('images/hero-bg.png') center center / cover no-repeat;
  background-color: var(--white);
}

/* ===== HERO TOP BUTTONS ===== */
.hero-buttons {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
}

.hero-btn {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 10px;
  background: var(--black);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.hero-btn-x {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
}

.hero-inner {
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(5rem, 18vw, 14rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 0.02em;
}

.letter {
  display: inline-block;
  animation: letterBounce 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) calc(var(--i) * 0.12s + 0.3s) both;
  text-shadow: 
    3px 3px 0 var(--accent),
    6px 6px 0 rgba(0,0,0,0.06);
  cursor: default;
  transition: transform 0.3s cubic-bezier(0.36, 0.07, 0.19, 0.97), 
              text-shadow 0.3s ease;
}

.letter:hover {
  transform: scale(1.15) rotate(-5deg);
  text-shadow: 
    4px 4px 0 var(--accent-dark),
    8px 8px 0 rgba(0,0,0,0.08);
}

@keyframes letterBounce {
  0% {
    opacity: 0;
    transform: translateY(-80px) scale(0.3) rotate(-15deg);
  }
  50% {
    transform: translateY(10px) scale(1.05) rotate(3deg);
  }
  70% {
    transform: translateY(-5px) scale(0.98) rotate(-1deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0);
  }
}

.hero-tagline {
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: 500;
  color: var(--gray-dark);
  letter-spacing: 0.15em;
  text-transform: lowercase;
}

/* ===== HERO CA BUTTON ===== */
.hero-ca {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  background: var(--black);
  border-radius: 12px;
  padding: 12px 22px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-ca:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.hero-ca-text {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.08em;
  user-select: all;
}

.hero-ca-copy {
  background: none;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  padding: 4px 10px;
  transition: color 0.2s ease, border-color 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-ca-copy:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}

/* ===== CAT IMAGE ===== */
.nigi-cat {
  width: clamp(180px, 30vw, 300px);
  margin: 0 auto 24px;
  animation: catFloat 3s ease-in-out infinite;
  cursor: pointer;
}

.cat-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.1));
  border-radius: 20px;
  transition: transform 0.3s ease;
}

.nigi-cat:hover .cat-img {
  transform: scale(1.05);
}

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

/* ===== SCROLL HINT ===== */
.scroll-hint {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--gray-dark);
  letter-spacing: 0.2em;
  text-transform: lowercase;
}

.scroll-arrow {
  font-size: 1.4rem;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* ===== DOODLES ===== */
.doodle {
  position: absolute;
  left: var(--x);
  top: var(--y);
  font-size: 1.5rem;
  opacity: 0.15;
  animation: doodleFloat var(--d) ease-in-out infinite alternate;
  pointer-events: none;
  user-select: none;
}

@keyframes doodleFloat {
  0% { transform: translateY(0) rotate(0deg) scale(1); }
  100% { transform: translateY(-20px) rotate(15deg) scale(1.1); }
}

.doodle-heart {
  color: var(--accent);
  opacity: 0.2;
}

/* ===== SECTION TITLES ===== */
.section-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 60px;
  display: flex;
  justify-content: center;
  gap: 0.3em;
  flex-wrap: wrap;
}

.title-word {
  display: inline-block;
  text-shadow: 
    2px 2px 0 var(--accent),
    4px 4px 0 rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.title-word:hover {
  transform: scale(1.08) rotate(-2deg);
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0s);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== FADE UP ANIMATION ===== */
.anim-fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0.8s) forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== MEME CAROUSEL ===== */
.memes {
  padding: 120px 0 80px;
  background: var(--white);
  overflow: hidden;
}

.meme-marquee {
  overflow: hidden;
  padding: 10px 0;
}

.meme-track {
  display: flex;
  gap: 20px;
  animation: memeScroll 30s linear infinite;
  width: max-content;
}

.meme-track-reverse {
  animation: memeScrollReverse 35s linear infinite;
}

.meme-slide {
  flex-shrink: 0;
  width: 280px;
  height: 280px;
  border-radius: 20px;
  overflow: hidden;
  border: 3px solid var(--black);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--gray);
}

.meme-slide:hover {
  transform: scale(1.05) rotate(-2deg);
  box-shadow: 6px 6px 0 var(--accent), 6px 6px 0 2px var(--black);
  z-index: 2;
}

.meme-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes memeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes memeScrollReverse {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.meme-marquee-reverse {
  margin-top: 10px;
}

/* ===== HOW TO BUY ===== */
.how-to-buy {
  padding: 120px 0;
  background: var(--white);
}

.buy-subtitle {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--gray-dark);
  margin-top: -40px;
  margin-bottom: 50px;
  letter-spacing: 0.02em;
}

.buy-steps {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.buy-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  background: var(--white);
  border: 2px solid #e0e0e0;
  border-radius: 16px;
  padding: 32px 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: default;
}

.buy-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-color: var(--accent-dark);
}

.step-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--black);
  color: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  transition: transform 0.3s ease;
}

.buy-step:hover .step-number {
  transform: scale(1.1) rotate(-6deg);
}

.step-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.step-content p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #666;
  font-weight: 400;
}

.buy-ca {
  max-width: 640px;
  margin: 32px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--gray);
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 16px 24px;
  flex-wrap: wrap;
}

.ca-label {
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-dark);
}

.ca-address {
  font-size: 0.82rem;
  font-weight: 500;
  color: #555;
  word-break: break-all;
  font-family: 'Courier New', monospace;
}

.ca-copy {
  background: var(--white);
  border: 1.5px solid #ddd;
  border-radius: 8px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-family: 'Fredoka', sans-serif;
}

.ca-copy:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  background: var(--gray);
}

.ca-copy.copied {
  background: var(--accent);
  border-color: var(--accent-dark);
}

/* ===== CHART ===== */
.chart {
  padding: 120px 0;
  background: var(--gray);
}

.chart-placeholder {
  max-width: 800px;
  margin: 0 auto;
}

.chart-embed {
  width: 100%;
  min-height: 480px;
  background: var(--white);
  border: 2px solid #e0e0e0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px;
  text-align: center;
}

.chart-coming-soon p {
  font-size: 1rem;
  color: var(--gray-dark);
  font-weight: 400;
  max-width: 320px;
  line-height: 1.5;
}

/* ===== FOOTER ===== */
.footer {
  padding: 40px 0 30px;
  text-align: center;
  background: var(--white);
}

.footer-year {
  font-size: 0.85rem;
  color: var(--gray-dark);
  font-weight: 400;
}

/* ===== CAT CLICKED STATE ===== */
.nigi-cat.clicked .cat-img {
  animation: catSpin 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes catSpin {
  0% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-15deg) scale(1.1); }
  50% { transform: rotate(15deg) scale(1.1); }
  75% { transform: rotate(-5deg) scale(1.05); }
  100% { transform: rotate(0deg) scale(1); }
}

/* ===== FEES PAGE ===== */
.fees-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.fees-back {
  display: inline-block;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  background: var(--black);
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 10px;
  margin-bottom: 48px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.fees-back:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

.fees-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  display: flex;
  gap: 0.3em;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.fees-intro {
  font-size: 1.05rem;
  color: var(--gray-dark);
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 48px;
}

.fees-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 60px;
}

.fees-card {
  background: var(--white);
  border: 2px solid #e0e0e0;
  border-radius: 16px;
  padding: 36px 32px;
}

.fees-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.fees-percent {
  font-size: 2rem;
  font-weight: 700;
  color: var(--black);
  background: var(--gray);
  border-radius: 12px;
  padding: 8px 18px;
  line-height: 1;
}

.fees-card-header h2 {
  font-size: 1.4rem;
  font-weight: 600;
}

.fees-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555;
  font-weight: 400;
  margin-bottom: 14px;
}

.fees-card p:last-child {
  margin-bottom: 0;
}

.fees-card ul {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fees-card ul li {
  font-size: 0.92rem;
  color: #555;
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.fees-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  background: var(--black);
  border-radius: 2px;
}

.fees-note {
  font-weight: 500;
  color: var(--black) !important;
  font-style: italic;
}

.fees-footer {
  text-align: center;
  padding-top: 20px;
  border-top: 1.5px solid #eee;
}

.fees-footer p {
  font-size: 0.9rem;
  color: var(--gray-dark);
}

.fees-footer a {
  color: var(--black);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--black);
  transition: opacity 0.2s ease;
}

.fees-footer a:hover {
  opacity: 0.6;
}

@media (max-width: 480px) {
  .fees-page {
    padding: 40px 16px 60px;
  }

  .fees-card {
    padding: 24px 20px;
  }

  .fees-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .section-title {
    margin-bottom: 40px;
  }

  .memes, .how-to-buy, .chart {
    padding: 80px 0;
  }

  .meme-slide {
    width: 200px;
    height: 200px;
  }

  .buy-steps {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .chart-embed {
    min-height: 360px;
  }

  .hero-buttons {
    gap: 8px;
  }

  .hero-btn {
    font-size: 0.8rem;
    padding: 8px 16px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    gap: 0;
  }

  .meme-slide {
    width: 160px;
    height: 160px;
  }

  .buy-ca {
    padding: 14px 16px;
  }

  .hero-btn {
    font-size: 0.75rem;
    padding: 8px 12px;
  }
}
