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

:root {
  --blue: #0057ff;
  --blue-mid: #0046d4;
  --blue-dark: #0035a8;
  --blue-deep: #002878;
  --blue-light: #dbeafe;
  --blue-glow: rgba(0, 87, 255, 0.35);
  --white: #ffffff;
  --text: #1e3a5f;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Big blue 3D text ── */
.text-3d {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  color: #5cb8ff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  -webkit-text-stroke: 1.5px #003da6;
  paint-order: stroke fill;
  text-shadow:
    2px 2px 0 #003da6,
    3px 3px 0 #003090,
    4px 4px 0 #00267a,
    5px 5px 0 #001c64,
    6px 6px 0 #00134e,
    7px 7px 0 #000d3d,
    8px 10px 8px rgba(0, 15, 60, 0.5);
}

.text-3d-hero {
  font-size: clamp(4rem, 14vw, 9.5rem);
  letter-spacing: 0.06em;
  -webkit-text-stroke-width: 2.5px;
  animation: hero-float 4s ease-in-out infinite;
  text-shadow:
    3px 3px 0 #003da6,
    5px 5px 0 #003090,
    7px 7px 0 #00267a,
    9px 9px 0 #001c64,
    11px 11px 0 #00134e,
    13px 13px 0 #000d3d,
    14px 16px 12px rgba(0, 15, 60, 0.55);
}

.text-3d-xl {
  font-size: clamp(2rem, 6vw, 3.5rem);
}

.text-3d-lg {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.text-3d-md {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  -webkit-text-stroke-width: 1px;
  text-shadow:
    1px 1px 0 #003da6,
    2px 2px 0 #003090,
    3px 3px 0 #00267a,
    4px 5px 6px rgba(0, 15, 60, 0.45);
}

.text-3d-sm {
  font-size: clamp(1rem, 2vw, 1.25rem);
  -webkit-text-stroke-width: 1px;
  text-shadow:
    1px 1px 0 #003da6,
    2px 2px 0 #003090,
    3px 4px 5px rgba(0, 15, 60, 0.4);
}

.text-3d-xs {
  font-size: clamp(0.75rem, 1.8vw, 0.95rem);
  letter-spacing: 0.02em;
  -webkit-text-stroke-width: 0.8px;
  text-shadow:
    1px 1px 0 #003da6,
    2px 2px 0 #003090,
    2px 3px 4px rgba(0, 15, 60, 0.35);
}

.footer .text-3d {
  color: #a0d4ff;
  -webkit-text-stroke-color: #001c64;
  text-shadow:
    2px 2px 0 #001c64,
    3px 3px 0 #00134e,
    4px 4px 0 #000d3d,
    5px 6px 6px rgba(0, 0, 0, 0.5);
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-6px) rotate(1deg); }
}

/* ── Header ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo:hover {
  transform: scale(1.08) rotate(-3deg);
}

.nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  text-decoration: none;
  transition: transform 0.2s ease;
}

.nav a:hover {
  transform: scale(1.1) rotate(2deg);
}

/* ── Hero ── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--blue-dark);
  background-image: url('images/hero-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 20, 60, 0.15) 0%,
    rgba(0, 20, 60, 0.05) 40%,
    var(--blue-dark) 100%
  );
  pointer-events: none;
}

.hero-center {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 88px 20px 40px;
  width: 100%;
  max-width: 960px;
}

.hero-tag {
  margin-bottom: 20px;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05em;
  margin-bottom: 28px;
}

.hero-title-line {
  display: block;
}

.hero-title-curve {
  transform: rotate(3deg) translateX(8px);
}

.hero-joke {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  line-height: 1.6;
  margin-bottom: 36px;
  opacity: 0.9;
}

.hero-peg {
  display: inline-block;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.hero-btn:hover {
  transform: translateY(-3px) scale(1.05);
}

.hero-btn-x {
  background: #000;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.hero-btn-x svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.hero-btn-buy {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 16px var(--blue-glow);
}

.hero-btn-how {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.hero-btn-how:hover {
  border-color: var(--white);
}

/* CA copy button */
.ca-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  backdrop-filter: blur(6px);
  word-break: break-all;
  text-align: left;
  max-width: 100%;
}

.ca-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.6);
}

.ca-text {
  flex: 1;
  min-width: 0;
}

.ca-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  opacity: 0.7;
}

.ca-icon svg {
  width: 100%;
  height: 100%;
}

.ca-toast {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--white);
  color: var(--blue-dark);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ca-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* entry anims */
.anim-pop { animation: pop-in 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.anim-slide-up { animation: slide-up 0.9s 0.3s ease both; }
.anim-bounce { animation: slide-up 0.9s 0.5s ease both, peg-pulse 2.5s 1.2s ease-in-out infinite; }
.anim-bob { animation: bob 2s 1s ease-in-out infinite; }

@keyframes pop-in {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes peg-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

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

/* ── Auto-scrolling meme strip ── */
.meme-scroll {
  position: relative;
  z-index: 1;
  padding: 40px 0 40px;
  background: var(--blue-dark);
}

.meme-scroll-label {
  text-align: center;
  margin-bottom: 20px;
}

.meme-scroll-viewport {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}

.meme-scroll-track {
  display: flex;
  align-items: center;
  gap: 20px;
  width: max-content;
  animation: meme-marquee var(--marquee-duration, 40s) linear infinite;
}

.meme-scroll-track:hover {
  animation-play-state: paused;
}

.meme-scroll-track img {
  height: 220px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  border-radius: 16px;
  border: 3px solid var(--blue);
  box-shadow: 0 8px 24px var(--blue-glow);
  background: var(--blue-light);
  flex-shrink: 0;
}

.meme-scroll-empty {
  padding: 40px 24px;
  text-align: center;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

@keyframes meme-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Sections ── */
.section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
  background: var(--blue-mid);
  color: var(--white);
}

.section-alt {
  background: var(--blue-deep);
}

.section-title {
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.8);
}

.reveal-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.2, 0.64, 1);
}

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

.reveal-card:nth-child(2) { transition-delay: 0.1s; }
.reveal-card:nth-child(3) { transition-delay: 0.2s; }
.reveal-card:nth-child(4) { transition-delay: 0.3s; }

.viral-banner {
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 28px 32px;
  margin-bottom: 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.viral-stat {
  flex-shrink: 0;
}

.viral-copy {
  text-align: left;
}

.viral-headline {
  margin-bottom: 8px;
}

.viral-copy p {
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.viral-copy strong {
  color: var(--white);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.card {
  background: linear-gradient(145deg, #1470e8 0%, #0050d0 50%, #003da6 100%);
  border: none;
  border-radius: 24px;
  padding: 32px 24px;
  color: var(--white);
  position: relative;
  box-shadow:
    8px 8px 0 #002878,
    12px 12px 0 #001c64,
    14px 16px 20px rgba(0, 15, 60, 0.5);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
  animation: card-float 3s ease-in-out infinite;
}

.card:nth-child(1) { animation-delay: 0s; }
.card:nth-child(2) { animation-delay: -1s; }
.card:nth-child(3) { animation-delay: -2s; }

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

.card:hover {
  transform: translateY(-14px) rotate(-2deg) scale(1.05);
  box-shadow:
    10px 10px 0 #002878,
    14px 14px 0 #001c64,
    18px 22px 28px rgba(0, 15, 60, 0.55);
}

.card-title {
  margin-bottom: 10px;
  color: var(--white);
  -webkit-text-stroke-color: #001c64;
}

.card p {
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

/* ── Chart section ── */
.chart-wrap {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.chart-wrap iframe {
  display: block;
  width: 100%;
  height: 500px;
  border: none;
}

.steps {
  list-style: none;
  max-width: 600px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 2px dashed rgba(255, 255, 255, 0.2);
}

.step:last-child {
  border-bottom: none;
}

.step-num {
  flex-shrink: 0;
  min-width: 1.2em;
}

.step h3 {
  margin-bottom: 6px;
}

.step p {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.token-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.token-stat {
  background: rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.token-stat:hover {
  transform: scale(1.05) rotate(1deg);
}

.stat-label {
  display: block;
  margin-bottom: 10px;
}

.joke-list {
  list-style: none;
  max-width: 520px;
  margin: 0 auto;
}

.joke-list li {
  font-size: 1.05rem;
  padding: 14px 0;
  border-bottom: 2px dotted rgba(255, 255, 255, 0.2);
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
}

.joke-list li:last-child {
  border-bottom: none;
}

.anim-wiggle:hover {
  animation: wiggle 0.5s ease;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-3deg); }
  75% { transform: rotate(3deg); }
}

.footer {
  position: relative;
  z-index: 1;
  padding: 48px 0;
  text-align: center;
  background: var(--blue-dark);
  color: var(--white);
}

.footer-title {
  margin-bottom: 8px;
}

.footer-joke {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 768px) {
  .cards {
    grid-template-columns: 1fr;
  }

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

  .viral-banner {
    flex-direction: column;
    text-align: center;
  }

  .viral-copy {
    text-align: center;
  }

  .meme-scroll-track img {
    height: 160px;
  }
}

@media (max-width: 480px) {
  .nav {
    gap: 10px;
  }
}
