/* ========= RETERD — red & white meme coin theme ========= */

:root {
  --red: #ff1f2d;
  --red-deep: #c20812;
  --red-dark: #8c0009;
  --white: #ffffff;
  --cream: #fff5f5;
  --ink: #2a0203;
  --shadow-red: rgba(194, 8, 18, 0.35);

  --font-bubble: "Baloo 2", system-ui, sans-serif;
  --font-body: "Fredoka", system-ui, sans-serif;
  --font-display: "Luckiest Guy", "Baloo 2", cursive;

  --radius: 26px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.5;
}

a { text-decoration: none; color: inherit; }

/* ========= NAV ========= */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 22px clamp(18px, 5vw, 60px);
  background: transparent;
}
.nav-links {
  display: flex;
  gap: clamp(12px, 2.5vw, 30px);
  font-weight: 600;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-links a { position: relative; color: var(--ink); transition: color 0.2s; }
.nav-links a:hover { color: var(--red); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.btn-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #000;
  color: #fff;
  box-shadow: 0 5px 0 #000;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-x:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #000; }
.btn-x:active { transform: translateY(3px); box-shadow: 0 2px 0 #000; }

/* CA (contract address) button under the hero buttons */
.btn-ca {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  cursor: pointer;
  font-family: var(--font-bubble);
  font-weight: 700;
  background: #fff;
  color: var(--ink);
  border: 3px solid #000;
  border-radius: 999px;
  padding: 10px 12px 10px 18px;
  box-shadow: 5px 5px 0 #000;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-ca:hover { transform: translateY(-2px); box-shadow: 7px 7px 0 #000; }
.btn-ca:active { transform: translateY(2px); box-shadow: 3px 3px 0 #000; }
.btn-ca-label {
  font-family: var(--font-display);
  letter-spacing: 1px;
  color: var(--red);
}
.btn-ca-addr {
  font-family: monospace;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.btn-ca-copy {
  font-family: var(--font-bubble);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--red);
  color: #fff;
  padding: 5px 12px;
  border-radius: 999px;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 3px; width: 0; background: var(--red); border-radius: 3px; transition: width 0.25s;
}
.nav-links a:hover::after { width: 100%; }

/* ========= BUTTONS ========= */
.btn {
  font-family: var(--font-bubble);
  font-weight: 700;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 14px 26px;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 7px 0 var(--red-dark);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 9px 0 var(--red-dark); }
.btn-primary:active { transform: translateY(4px); box-shadow: 0 3px 0 var(--red-dark); }
.btn-ghost {
  background: #fff;
  color: var(--red-deep);
  border: 3px solid var(--red);
  box-shadow: 0 7px 0 rgba(194, 8, 18, 0.25);
}
.btn-ghost:hover { transform: translateY(-2px); }
.btn-nav { padding: 10px 20px; background: var(--red); color: #fff; box-shadow: 0 5px 0 var(--red-dark); }
.btn-nav:hover { transform: translateY(-2px); }
.btn-small { padding: 8px 16px; font-size: 14px; background: var(--red); color: #fff; box-shadow: 0 4px 0 var(--red-dark); }
.btn-small:hover { transform: translateY(-2px); }

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

  /* >>> HERO BACKGROUND IMAGE: put your PNG at  assets/hero-bg.png  <<< */
  background-color: var(--white);
  background-image: url("assets/hero-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-inner { max-width: 1000px; margin: 0 auto; }

/* big 3D word */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(80px, 20vw, 240px);
  line-height: 0.9;
  letter-spacing: 4px;
  color: var(--red);
  position: relative;
  display: inline-block;
  transform: perspective(700px) rotateX(12deg);
  -webkit-text-stroke: 3px #000;
  paint-order: stroke fill;
  text-shadow:
    2px 2px 0 #000,
    4px 4px 0 #000,
    6px 6px 0 var(--red-dark),
    8px 8px 0 #000,
    10px 10px 0 var(--red-dark),
    12px 12px 0 #000,
    14px 16px 18px rgba(0, 0, 0, 0.45);
  animation: heroPop 0.7s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
@keyframes heroPop {
  0% { transform: perspective(700px) rotateX(12deg) scale(0.6); opacity: 0; }
  100% { transform: perspective(700px) rotateX(12deg) scale(1); opacity: 1; }
}

.hero-tagline {
  font-family: var(--font-bubble);
  font-weight: 600;
  font-size: clamp(18px, 3vw, 30px);
  margin: 24px auto 0;
  max-width: 640px;
  color: var(--ink);
}
.hl {
  color: #fff;
  background: var(--red);
  padding: 0 12px;
  border-radius: 10px;
  box-shadow: 0 4px 0 var(--red-dark);
  display: inline-block;
  transform: rotate(-2deg);
}

.hero-cta { display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 34px; }

/* ========= MARQUEE ========= */
.marquee {
  position: absolute;
  left: 0;
  bottom: -18px;
  width: 100%;
  background: var(--red);
  border-top: 4px solid var(--red-dark);
  border-bottom: 4px solid var(--red-dark);
  overflow: hidden;
  transform: rotate(-1.5deg) scale(1.04);
}
.marquee-track {
  display: flex;
  gap: 26px;
  white-space: nowrap;
  padding: 14px 0;
  width: max-content;
  animation: scroll 22s linear infinite;
  font-family: var(--font-display);
  color: #fff;
  font-size: 26px;
  letter-spacing: 2px;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ========= SECTIONS ========= */
.section {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: clamp(60px, 9vw, 110px) clamp(18px, 5vw, 40px);
}
.section-head { text-align: center; margin-bottom: 50px; }
.bubble-heading {
  font-family: var(--font-bubble);
  font-weight: 800;
  font-size: clamp(36px, 6vw, 64px);
  color: var(--red-deep);
  text-shadow: 3px 3px 0 #fff, 6px 6px 0 rgba(194, 8, 18, 0.25);
}
.section-sub {
  font-family: var(--font-bubble);
  font-weight: 600;
  color: var(--red);
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-top: 8px;
}

/* ========= CARDS ========= */
.card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  border: 3px solid #000;
  padding: 32px;
  box-shadow:
    7px 7px 0 #000,
    0 18px 34px -20px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.card-3d:hover {
  transform: translateY(-6px);
  box-shadow:
    11px 13px 0 #000,
    0 26px 44px -20px rgba(0, 0, 0, 0.5);
}
.card h3 {
  font-family: var(--font-bubble);
  font-weight: 800;
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 10px;
}
.card p { color: #4a2c2d; font-size: 16px; }
.card strong { color: var(--red); font-weight: 700; }

/* idle float animation for the Mission + Why cards
   (uses the `translate` property so it composes with the hover/tilt transform) */
@keyframes cardFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}
.about-card,
.feature-card { animation: cardFloat 4.5s ease-in-out infinite; }
.about-card:nth-child(2),
.feature-card:nth-child(2) { animation-delay: 0.5s; }
.about-card:nth-child(3),
.feature-card:nth-child(3) { animation-delay: 1s; }
.feature-card:nth-child(4) { animation-delay: 1.5s; }

/* ABOUT / MISSION */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 30px; }
.about-card { padding-top: 30px; }
.about-kicker {
  display: inline-block;
  font-family: var(--font-bubble);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  background: #000;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.about-card h3 { font-size: 24px; line-height: 1.2; }
.about-card-feature {
  background: linear-gradient(160deg, var(--red) 0%, var(--red-deep) 100%);
}
.about-card-feature h3 { color: #fff; }
.about-card-feature p { color: rgba(255, 255, 255, 0.95); }
.about-card-feature strong { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.55); }
.about-card-feature .about-kicker { color: #000; background: #fff; }

/* FEATURES */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.feature-card h3 { font-size: 22px; color: var(--red-deep); }

/* TOKENOMICS */
.token-panel { max-width: 900px; margin: 0 auto; padding: 14px 14px 24px; }
.token-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2px;
  background: rgba(194, 8, 18, 0.1);
  border-radius: 18px;
  overflow: hidden;
}
.token-stats li {
  background: #fff;
  text-align: center;
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.token-num {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 46px);
  line-height: 1;
  color: var(--red);
}
.token-num small { font-size: 0.55em; color: var(--red-deep); }
.token-label {
  font-family: var(--font-bubble);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #8a6566;
}
.contract {
  margin: 22px 14px 0;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  background: var(--cream);
  border: 1px solid rgba(194, 8, 18, 0.15);
  border-radius: 16px;
  padding: 16px 20px;
}
.contract-label { font-family: var(--font-bubble); font-weight: 800; color: var(--red-deep); text-transform: uppercase; letter-spacing: 2px; font-size: 13px; }
.contract-addr { font-family: monospace; color: #6b4b4c; font-size: 15px; word-break: break-all; flex: 1; min-width: 180px; text-align: center; }

/* CHART */
.chart-frame {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 14px;
  height: 560px;
}
.chart-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 16px;
  display: block;
  background: #fff;
}
.chart-overlay {
  position: absolute;
  inset: 14px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255,255,255,0.96), rgba(255,235,236,0.96));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  padding: 20px;
}
.chart-overlay p { font-family: var(--font-bubble); font-weight: 700; font-size: 20px; color: var(--red-deep); }
.chart-overlay.hidden { display: none; }

/* STEPS */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; }
.step-card { position: relative; padding-top: 44px; }
.step-num {
  position: absolute;
  top: -24px;
  left: 24px;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 26px;
  border: 3px solid #000;
  border-radius: 14px;
  box-shadow: 4px 4px 0 #000;
}

/* ========= FOOTER ========= */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 70px 20px 50px;
  background: var(--red);
  color: #fff;
  margin-top: 40px;
  border-top: 5px solid var(--red-dark);
}
.footer-logo { font-family: var(--font-display); font-size: 52px; letter-spacing: 3px; text-shadow: 3px 3px 0 var(--red-dark); }
.footer-tag { font-family: var(--font-bubble); font-weight: 600; font-size: 18px; margin-top: 6px; opacity: 0.95; }
.footer-links { display: flex; gap: 24px; justify-content: center; margin: 22px 0; font-weight: 600; }
.footer-links a:hover { text-decoration: underline; }
.footer-fine { max-width: 560px; margin: 16px auto 0; font-size: 13px; opacity: 0.85; }

/* ========= reveal-on-scroll ========= */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ========= responsive ========= */
@media (max-width: 720px) {
  .nav-links { display: none; }
}
