/* ============================================
   GULYA — meme token site
   ============================================ */

:root {
  --ton-blue: #0098ea;
  --ton-blue-deep: #0077c2;
  --ton-navy: #0a1f3d;
  --sky-light: #cdebff;
  --sky-mid: #8ecffb;
  --cloud: #ffffff;
  --crumb: #ffd56b;
  --pop: #ff6b9d;
  --lime: #b6f36b;
  --ink: #0a1f3d;
  --shadow: 8px 8px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --border: 4px solid var(--ink);
  --border-thick: 6px solid var(--ink);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Pixelify Sans", "Courier New", monospace;
  background: linear-gradient(180deg, var(--sky-light) 0%, var(--sky-mid) 100%);
  color: var(--ink);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* drifting clouds bg */
body::before,
body::after {
  content: "";
  position: fixed;
  top: 10%;
  left: -20%;
  width: 200px;
  height: 80px;
  background: var(--cloud);
  border-radius: 100px;
  box-shadow:
    300px 100px 0 -10px var(--cloud),
    600px -50px 0 -20px var(--cloud),
    900px 200px 0 -10px var(--cloud),
    1200px 50px 0 -30px var(--cloud);
  opacity: 0.7;
  animation: drift 60s linear infinite;
  z-index: 0;
  pointer-events: none;
}
body::after {
  top: 50%;
  animation-duration: 90s;
  animation-direction: reverse;
  opacity: 0.5;
}

@keyframes drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(50vw);
  }
}

img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: var(--ton-blue);
  border-bottom: var(--border-thick);
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 28px;
  font-weight: 700;
  color: var(--cloud);
  text-shadow: 3px 3px 0 var(--ink);
}
.nav-logo img {
  width: 70px;
  height: 70px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--cloud);
  animation: bob 2s ease-in-out infinite;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 24px;
}
.nav-links a {
  font-size: 20px;
  color: var(--cloud);
  padding: 6px 12px;
  border: 3px solid transparent;
  transition: all 0.15s;
}
.nav-links a:hover {
  background: var(--crumb);
  color: var(--ink);
  border-color: var(--ink);
  transform: rotate(-2deg);
}

.chain-badge {
  background: var(--cloud);
  color: var(--ton-blue);
  padding: 8px 14px;
  border: 3px solid var(--ink);
  font-size: 18px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px 80px;
  z-index: 1;
}

.hero-title {
  font-size: clamp(80px, 18vw, 220px);
  line-height: 0.9;
  color: var(--cloud);
  -webkit-text-stroke: 4px var(--ink);
  text-stroke: 4px var(--ink);
  text-shadow:
    8px 8px 0 var(--ton-navy),
    16px 16px 0 var(--crumb);
  letter-spacing: 0.02em;
  animation: shake 4s ease-in-out infinite;
  margin-bottom: 24px;
}

.hero-tag {
  font-size: clamp(18px, 2.4vw, 26px);
  background: var(--cloud);
  border: var(--border);
  padding: 12px 24px;
  box-shadow: var(--shadow);
  max-width: 720px;
  margin: 0 auto 32px;
  transform: rotate(-1deg);
}
.hero-tag span {
  color: var(--ton-blue);
  font-weight: 700;
}

.hero-gulya {
  width: clamp(220px, 30vw, 360px);
  height: auto;
  margin: 0 auto 32px;
  animation: bob 2.5s ease-in-out infinite;
  filter: drop-shadow(8px 8px 0 var(--ink));
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 40px;
}

.btn {
  display: inline-block;
  padding: 16px 32px;
  font-size: 22px;
  font-weight: 700;
  border: var(--border-thick);
  box-shadow: var(--shadow);
  text-transform: uppercase;
  transition: all 0.12s;
  letter-spacing: 0.04em;
}
.btn:hover {
  transform: translate(-3px, -3px) rotate(-1deg);
  box-shadow: 12px 12px 0 var(--ink);
}
.btn:active {
  transform: translate(4px, 4px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn-primary {
  background: var(--crumb);
  color: var(--ink);
}
.btn-secondary {
  background: var(--cloud);
  color: var(--ink);
}
.btn-tertiary {
  background: var(--lime);
  color: var(--ink);
}

/* inline utya avatar — sits in line with text */
.utya-inline {
  display: inline-block;
  width: 1.4em;
  height: 1.4em;
  border-radius: 50%;
  border: 2px solid var(--ink);
  object-fit: cover;
  vertical-align: -0.35em;
  background: var(--cloud);
}
.utya-inline.lg {
  width: 1.8em;
  height: 1.8em;
  border-width: 3px;
  vertical-align: -0.5em;
}

/* "ft. UTYA" sticker badge — narrative hook */
.ft-badge {
  display: inline-block;
  background: var(--pop);
  color: var(--cloud);
  border: 4px solid var(--ink);
  padding: 6px 18px;
  font-size: clamp(14px, 1.8vw, 20px);
  font-weight: 700;
  letter-spacing: 0.1em;
  box-shadow: var(--shadow-sm);
  transform: rotate(-4deg);
  margin-bottom: 18px;
  text-shadow: 2px 2px 0 var(--ink);
  animation: bob 3.2s ease-in-out infinite;
  white-space: nowrap;
}
.ft-badge-alt {
  background: var(--lime);
  color: var(--ink);
  text-shadow: 2px 2px 0 var(--cloud);
  transform: rotate(3deg);
  margin-bottom: 12px;
}

/* BFF ribbon under About title */
.bff-ribbon {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: -24px auto 56px;
  padding: 10px 22px;
  background: var(--cloud);
  border: 4px solid var(--ink);
  box-shadow: var(--shadow-sm);
  font-size: clamp(14px, 1.8vw, 20px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  transform: rotate(-1.5deg);
  color: var(--ton-navy);
}

/* CA copy box */
.ca-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ton-navy);
  color: var(--cloud);
  padding: 10px 14px;
  border: var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 16px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
}
.ca-label {
  color: var(--crumb);
  font-weight: 700;
}
.ca-value {
  font-family: "Courier New", monospace;
  word-break: break-all;
}
.ca-copy {
  background: var(--crumb);
  color: var(--ink);
  border: 3px solid var(--cloud);
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 700;
}
.ca-copy:hover {
  background: var(--pop);
  color: var(--cloud);
}
.ca-copy.copied {
  background: var(--lime);
}

/* floating decorative GIFs */
.float-deco {
  position: absolute;
  width: 110px;
  height: auto;
  z-index: 0;
  animation: float-bob 5s ease-in-out infinite;
  filter: drop-shadow(4px 4px 0 var(--ink));
}
.deco-1 {
  top: 8%;
  left: 4%;
  animation-delay: 0s;
  transform: rotate(-12deg);
}
.deco-2 {
  top: 12%;
  right: 5%;
  animation-delay: 1s;
  transform: rotate(8deg);
}
.deco-3 {
  bottom: 8%;
  left: 6%;
  animation-delay: 2s;
  transform: rotate(6deg);
}
.deco-4 {
  bottom: 10%;
  right: 7%;
  animation-delay: 1.5s;
  transform: rotate(-9deg);
}

/* ============================================
   MARQUEES
   ============================================ */
.marquee {
  background: var(--ton-blue);
  color: var(--cloud);
  border-top: var(--border-thick);
  border-bottom: var(--border-thick);
  overflow: hidden;
  padding: 14px 0;
  position: relative;
  z-index: 2;
}
.marquee-alt {
  background: var(--crumb);
  color: var(--ink);
}
.marquee-pop {
  background: var(--pop);
  color: var(--cloud);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  animation: scroll-left 28s linear infinite;
  padding-right: 36px;
}
.marquee-reverse .marquee-track {
  animation: scroll-right 32s linear infinite;
}

.marquee-track span {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-shadow: 2px 2px 0 var(--ink);
}
.marquee-alt .marquee-track span {
  text-shadow: 2px 2px 0 var(--cloud);
}

.marquee-track img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--cloud);
  flex-shrink: 0;
}

.marquee-track .dot {
  width: 14px;
  height: 14px;
  background: var(--cloud);
  border: 2px solid var(--ink);
  border-radius: 50%;
  flex-shrink: 0;
}
.marquee-alt .marquee-track .dot {
  background: var(--ton-blue);
}

@keyframes scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@keyframes scroll-right {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  position: relative;
  padding: 100px 24px;
  z-index: 1;
}

.section-title {
  font-size: clamp(56px, 10vw, 120px);
  text-align: center;
  color: var(--cloud);
  -webkit-text-stroke: 3px var(--ink);
  text-stroke: 3px var(--ink);
  text-shadow: 6px 6px 0 var(--pop);
  margin-bottom: 16px;
  line-height: 1;
}
.section-sub {
  text-align: center;
  font-size: 20px;
  margin-bottom: 60px;
  color: var(--ton-navy);
}

.bubble-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.bubble {
  background: var(--cloud);
  border: var(--border-thick);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  text-align: center;
  position: relative;
  transition: transform 0.2s;
}
.bubble:nth-child(1) {
  transform: rotate(-2deg);
  background: var(--cloud);
}
.bubble:nth-child(2) {
  transform: rotate(1deg);
  background: var(--crumb);
}
.bubble:nth-child(3) {
  transform: rotate(-1deg);
  background: var(--lime);
}
.bubble:hover {
  transform: rotate(0) scale(1.04);
  box-shadow: 12px 12px 0 var(--ink);
}
.bubble img {
  width: 140px;
  height: 140px;
  margin: 0 auto 16px;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: var(--sky-light);
  object-fit: cover;
  animation: bob 3s ease-in-out infinite;
}
.bubble:nth-child(2) img {
  animation-delay: 0.5s;
}
.bubble:nth-child(3) img {
  animation-delay: 1s;
}
.bubble p {
  font-size: 22px;
  line-height: 1.4;
  font-weight: 600;
}

/* ============================================
   TOKENOMICS
   ============================================ */
.tokenomics {
  position: relative;
  padding: 100px 24px;
  background: var(--ton-blue);
  border-top: var(--border-thick);
  border-bottom: var(--border-thick);
  z-index: 1;
}
.tokenomics .section-title {
  text-shadow: 6px 6px 0 var(--crumb);
}
.tokenomics .section-sub {
  color: var(--cloud);
}

.tk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.tk-card {
  background: var(--cloud);
  border: var(--border-thick);
  box-shadow: var(--shadow);
  padding: 36px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s;
}
.tk-card:nth-child(1) {
  transform: rotate(-2deg);
  background: var(--crumb);
}
.tk-card:nth-child(2) {
  transform: rotate(2deg);
  background: var(--pop);
  color: var(--cloud);
}
.tk-card:nth-child(3) {
  transform: rotate(-1deg);
  background: var(--lime);
}

.tk-card:hover {
  transform: rotate(0) scale(1.05);
  box-shadow: 14px 14px 0 var(--ink);
}

.tk-label {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tk-value {
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  -webkit-text-stroke: 2px var(--ink);
  text-stroke: 2px var(--ink);
  color: var(--cloud);
  text-shadow: 4px 4px 0 var(--ink);
}
.tk-card:nth-child(2) .tk-value {
  color: var(--crumb);
}
.tk-note {
  font-size: 16px;
  font-style: italic;
  opacity: 0.85;
}

/* ============================================
   JOIN
   ============================================ */
.join {
  position: relative;
  padding: 100px 24px 120px;
  text-align: center;
  z-index: 1;
}
.join .hero-gulya {
  width: clamp(180px, 22vw, 260px);
  margin-bottom: 24px;
}
.join .section-title {
  text-shadow: 6px 6px 0 var(--ton-blue);
}
.join p {
  font-size: 22px;
  margin-bottom: 40px;
  color: var(--ton-navy);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--ton-navy);
  color: var(--cloud);
  text-align: center;
  padding: 32px 24px;
  font-size: 14px;
  border-top: var(--border-thick);
  position: relative;
  z-index: 2;
}
footer span {
  color: var(--crumb);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes float-bob {
  0%,
  100% {
    transform: translateY(0) rotate(var(--r, 0deg));
  }
  50% {
    transform: translateY(-18px) rotate(var(--r, 0deg));
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translate(0, 0) rotate(0);
  }
  10% {
    transform: translate(-2px, 1px) rotate(-0.5deg);
  }
  20% {
    transform: translate(2px, -1px) rotate(0.5deg);
  }
  30% {
    transform: translate(-1px, 2px) rotate(-0.3deg);
  }
  40% {
    transform: translate(1px, -2px) rotate(0.3deg);
  }
  50% {
    transform: translate(0, 0) rotate(0);
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 720px) {
  .nav {
    padding: 10px 14px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .nav-logo {
    font-size: 22px;
  }
  .nav-logo img {
    width: 60px;
    height: 60px;
  }
  .nav-links {
    gap: 10px;
    order: 3;
    width: 100%;
    justify-content: center;
  }
  .nav-links a {
    font-size: 16px;
    padding: 4px 8px;
  }
  .chain-badge {
    font-size: 14px;
    padding: 6px 10px;
  }

  .hero {
    padding: 40px 16px 60px;
    min-height: auto;
  }
  .hero-tag {
    font-size: 16px;
    padding: 10px 16px;
  }
  .btn {
    padding: 14px 22px;
    font-size: 18px;
  }

  .float-deco {
    width: 70px;
  }
  .deco-1,
  .deco-2 {
    top: 4%;
  }

  .marquee-track span {
    font-size: 20px;
  }
  .marquee-track img {
    width: 42px;
    height: 42px;
  }

  .about,
  .tokenomics,
  .join {
    padding: 60px 16px;
  }
  .bubble p {
    font-size: 18px;
  }
  .tk-value {
    font-size: 48px;
  }
  .ca-value {
    font-size: 13px;
  }
}
