:root { --header-h: 60px; }

/* Reset / base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Goldman', Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #f0f0f0;
  background: #0e0e0e;
  padding-top: var(--header-h);       /* pushes content below fixed header */
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--header-h);            /* header uses the same value */
  background: linear-gradient(130deg, #131b01,#253204);
  /*background: rgba(20,20,20,0.95);*/
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  z-index: 1000;
}
.site-header .logo {
  font-weight: bold;
  font-size: 1.2rem;
  letter-spacing: 2px;
  font-family: 'Rubik Dirt';
}
.site-header .socials a {
  margin-left: 15px;
  color: #f0f0f0;
  text-decoration: none;
  transition: color 0.3s ease;
}
.site-header .socials a:hover {
  color: #eaff00;
  cursor: pointer;
}

/* Hero section */
.hero {
  position: relative;
  isolation: isolate;             /* keep bg layers behind content */
  height: 40vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
}

/* Background container */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;           /* clicks go through to buttons/links */
}

/* Video fills like CSS background-size: cover */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Transparent leaf overlay image above the video */
.hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;              /* or 'contain' if you need exact framing */
  object-position: center;

  /* base glow + prep for animation */
  will-change: filter;
  filter:
    drop-shadow(0 0 10px rgba(7, 88, 18, 0.3))   /* inner glow */
    drop-shadow(0 0 24px rgba(40, 173, 58, 0.3)); /* outer glow */
  animation: leaf-overlay-glow 5s ease-in-out infinite;
}

@keyframes leaf-overlay-glow {
  0%, 100% {
    filter:
      drop-shadow(0 0 8px  rgba(7, 88, 18, 0.665))
      drop-shadow(0 0 16px rgba(40, 173, 58, 0.477));
  }
  25% {
    filter:
      drop-shadow(0 0 16px rgba(200, 228, 17, 0.7))
      drop-shadow(0 0 30px rgba(232, 255, 85, 0.7));
  }
  50% {
    filter:
    drop-shadow(0 0 8px  rgba(7, 88, 18, 0.665))
    drop-shadow(0 0 16px rgba(40, 173, 58, 0.477));
  }
  75% {
    filter:
    drop-shadow(0 0 16px rgba(255, 179, 66, 0.7))
    drop-shadow(0 0 30px rgba(138, 86, 6, 0.7));
  }
}


@media (max-width: 1000px){@keyframes leaf-overlay-glow {
  0%, 100% {
    filter:
      drop-shadow(0 0 6px  rgba(7, 88, 18, 0.615))
      drop-shadow(0 0 12px rgba(40, 173, 58, 0.427));
  }
  25% {
    filter:
      drop-shadow(0 0 10px rgba(200, 228, 17, 0.65))
      drop-shadow(0 0 20px rgba(232, 255, 85, 0.65));
  }
  50% {
    filter:
    drop-shadow(0 0 6px  rgba(7, 88, 18, 0.615))
    drop-shadow(0 0 12px rgba(40, 173, 58, 0.427));
  }
  75% {
    filter:
    drop-shadow(0 0 10px rgba(255, 179, 66, 0.65))
    drop-shadow(0 0 20px rgba(138, 86, 6, 0.65));
  }
}
}


@media (max-width: 600px){@keyframes leaf-overlay-glow {
  0%, 100% {
    filter:
      drop-shadow(0 0 4px  rgba(7, 88, 18, 0.565))
      drop-shadow(0 0 8px rgba(40, 173, 58, 0.377));
  }
  25% {
    filter:
      drop-shadow(0 0 8px rgba(200, 228, 17, 0.6))
      drop-shadow(0 0 15px rgba(232, 255, 85, 0.6));
  }
  50% {
    filter:
    drop-shadow(0 0 4px  rgba(7, 88, 18, 0.565))
    drop-shadow(0 0 8px rgba(40, 173, 58, 0.377));
  }
  75% {
    filter:
    drop-shadow(0 0 8px rgba(255, 179, 66, 0.6))
    drop-shadow(0 0 15px rgba(138, 86, 6, 0.6));
  }
}
}

/* Motion-friendly fallback */
@media (prefers-reduced-motion: reduce) {
  .hero__overlay { animation: none; }
}

/* Ensure your hero content is above the background stack */
.hero > :not(.hero__bg) {
  position: relative;
  z-index: 1;
}

.hero-logo {
  display: block;              /* you don't need inline-block inside a flex parent */
  width: 100%;                 /* fill available space */
  max-width: 50rem;            /* but never exceed 50rem */
  height: auto;                /* keep aspect ratio */
  filter: drop-shadow(0 0 9px #000);
  animation: logo-overlay-glow 6s ease-in-out infinite;
}


@keyframes logo-overlay-glow {
  0%, 100% {
    filter:
      drop-shadow(0 0 4px  rgba(7, 88, 18, 0.665))
      drop-shadow(0 0 8px rgba(40, 173, 58, 0.277));
  }
  25% {
    filter:
      drop-shadow(0 0 8px rgba(200, 228, 17, 0.7))
      drop-shadow(0 0 15px rgba(232, 255, 85, 0.7));
  }
  50% {
    filter:
    drop-shadow(0 0 4px  rgba(7, 88, 18, 0.665))
    drop-shadow(0 0 8px rgba(40, 173, 58, 0.277));
  }
  75% {
    filter:
      drop-shadow(0 0 8px rgba(255, 179, 66, 0.7))
      drop-shadow(0 0 15px rgba(138, 86, 6, 0.7));
  }
}

@media (max-width: 1000px){@keyframes logo-overlay-glow {
  0%, 100% {
    filter:
      drop-shadow(0 0 3px  rgba(7, 88, 18, 0.615))
      drop-shadow(0 0 6px rgba(40, 173, 58, 0.227));
  }
  25% {
    filter:
      drop-shadow(0 0 6px rgba(200, 228, 17, 0.65))
      drop-shadow(0 0 12px rgba(232, 255, 85, 0.65));
  }
  50% {
    filter:
    drop-shadow(0 0 3px  rgba(7, 88, 18, 0.615))
    drop-shadow(0 0 6px rgba(40, 173, 58, 0.227));
  }
  75% {
    filter:
      drop-shadow(0 0 6px rgba(255, 179, 66, 0.65))
      drop-shadow(0 0 12px rgba(138, 86, 6, 0.65));
  }
}
}


@media (max-width: 600px){@keyframes logo-overlay-glow {
  0%, 100% {
    filter:
      drop-shadow(0 0 2px  rgba(7, 88, 18, 0.565))
      drop-shadow(0 0 4px rgba(40, 173, 58, 0.177));
  }
  25% {
    filter:
      drop-shadow(0 0 4px rgba(200, 228, 17, 0.6))
      drop-shadow(0 0 8px rgba(232, 255, 85, 0.6));
  }
  50% {
    filter:
    drop-shadow(0 0 2px  rgba(7, 88, 18, 0.565))
    drop-shadow(0 0 4px rgba(40, 173, 58, 0.177));
  }
  75% {
    filter:
      drop-shadow(0 0 4px rgba(255, 179, 66, 0.6))
      drop-shadow(0 0 8px rgba(138, 86, 6, 0.6));
  }
}
}

.hero-logo-sub {
  display: block;
  width: 100%;
  max-width: 25rem;            /* but never exceed 25rem */
  height: auto;
  filter: drop-shadow(0 0 9px #000);
}

/* Buy button */
.buy-button {
  display: inline-block;
  padding: 6px 12px;
  background: #eaff00;
  color: #111;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  transition: background, scale 0.3s ease;
  font-family: 'Rubik Dirt';
  font-size: 1.5rem; /* increase font size here */

  /* set a stable base */
  transform: scale(1);
  transform-origin: center;
  will-change: transform;

  /* only transition the color; the size will be handled by animation */
  transition: background-color 0.3s ease;

}

.buy-button:hover,
.buy-button:focus-visible {
  background: #62ff00;
  animation: btn-pulse 2s ease-in-out infinite;
}

@keyframes btn-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); } /* adjust 1.04–1.10 to taste */
}

/* Optional: respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  .buy-button:hover,
  .buy-button:focus-visible {
    animation: none;
    transform: scale(1.05); /* simple one-off grow instead */
  }
}

/* CA tinted box */
.ca-box {
  background: rgba(4, 62, 7, 0.433);
  padding: 10px 20px;
  border-radius: 6px;
  display: inline-block;
  cursor: pointer;
  position: relative;
  margin-bottom: 1rem;
}

.ca-box:hover {
  animation: logo-overlay-glow 6s ease-in-out infinite;
}

/* small “Copied!” feedback */
.ca-box::after {
  content: attr(data-feedback);
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 8px);
  background: #eaff00;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #000000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  font-family: 'Goldman', sans-serif;
}
.ca-box.copied::after {
  opacity: 1;
  transform: translate(-50%, 0);
}
.contract-address {
  margin: 0;
  font-size: 1rem;
  color: #fff;
  font-family: 'Goldman', sans-serif;
  cursor: pointer;
}


/* Tokenomics */
.tokenomics {
  padding: 80px 20px;
  background: linear-gradient(130deg, #394c0b,#253204);
}
.tokenomics .container {
  max-width: 900px;
  margin: auto;
}
.tokenomics h2 {
  font-size: 2rem;
  letter-spacing: 0.3rem;
  margin-bottom: 20px;
  font-family: 'Goldman', sans-serif;
}
.tokenomics p {
  font-size: 1.1rem;
  color: #ddd;
  font-family: 'Goldman', sans-serif;
}

.tagline p {
  font-size: 1rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 1rem;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 40px 20px;
  background: #111;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  color: #bbb;
  font-family: 'Goldman', sans-serif;
}
.ca-footer {
  cursor: pointer;
  display: inline-block;
  position: relative;
}

.site-footer a {
  color: inherit;           /* same color as surrounding text */
  text-decoration: none;    /* remove underline */
  font-weight: inherit;     /* same weight as surrounding text */
}

.site-footer a:hover {
  text-decoration: underline; /* optional subtle hover effect */
}


/* optional tooltip feedback */
.ca-footer::after {
  content: attr(data-feedback);
  position: absolute;
  top: -150%; /* above text */
  left: 50%;
  transform: translateX(-50%);
  background: #eaff00;
  color: #111;
  font-size: 0.85rem;
  padding: 4px 8px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.ca-footer.copied::after {
  opacity: 1;
  transform: translate(-50%, -100%);
}





/* --- Global helpers for long addresses --- */
.ca-box {
  max-width: 90vw;              /* keep boxes inside small screens */
}
.contract-address {
  overflow-wrap: anywhere;       /* allow breaks anywhere in the long CA */
  word-break: break-word;        /* extra safety for older browsers */
}

/* --- Base: make header links tighter --- */
.site-header .socials {
  display: flex;
  align-items: center;
  gap: 10px;                     /* replace big margins with a small gap */
}
.site-header .socials a { margin-left: 0; }  /* gap handles spacing */

/* =========================
   Tablet and down (<= 768px)
   ========================= */
@media (max-width: 768px) {
  /* 1) Header: shrink text so it stays on one line */
  :root { --header-h: 56px; }
  .site-header { padding: 0 12px; }
  .site-header .logo { font-size: 1rem; letter-spacing: 1px; }
  .site-header .socials a { font-size: 0.9rem; }

  /* 2) Hero CA: smaller text, allow wrap */
  .contract-address { font-size: 0.9rem; }

  /* 3) Tokenomics list indent */
  .tokenomics .container { padding: 0 16px; } /* extra inner padding */
  .tokenomics ul { padding-left: 1.25rem; }   /* clear bullet indent */

  /* 4) Footer CA: same treatment */
  .site-footer .contract-address { font-size: 0.9rem; }
}

/* =========================
   Small phones (<= 480px)
   ========================= */
@media (max-width: 480px) {
  /* 1) Header: keep on one line */
  :root { --header-h: 54px; }
  .site-header { padding: 0 10px; }
  .site-header .logo { font-size: 0.95rem; letter-spacing: 0.5px; }
  .site-header .socials { gap: 8px; }
  .site-header .socials a { font-size: 0.85rem; }

  /* 2) Hero sizing */
  .hero { gap: 6px; }
  .hero-logo { max-height: 90px; }             /* reduce logo height */
  .buy-button { font-size: 1.1rem; padding: 6px 12px; }  /* smaller CTA */
  .ca-box { padding: 8px 12px; }               /* slimmer box */
  .contract-address { font-size: 0.85rem; }

  /* 3) Tokenomics spacing/size */
  .tokenomics { padding: 56px 16px; }          /* less vertical padding */
  .tokenomics h2 { font-size: 1.4rem; letter-spacing: 0.15rem; }
  .tokenomics ul { padding-left: 1.1rem; }
  .tokenomics li { margin-bottom: 6px; }

  /* 4) Footer CA width + size */
  .site-footer { padding: 28px 16px; }
  .site-footer .ca-box { max-width: 90vw; padding: 8px 12px; }
  .site-footer .contract-address { font-size: 0.85rem; }
}