/* ===================================
   CEREAL GUY - Bold Comic Aesthetic
   v5.0 - Cleaned & Fixed
   =================================== */

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

html {
  scroll-behavior: auto;
}

body {
  font-family: "Space Grotesk", "Arial Black", sans-serif;
  background: #fff6f1;
  color: #0b0b0b;
  overflow-x: hidden;
  line-height: 1.6;
  max-width: 100vw;
}

:root {
  --black: #0b0b0b;
  --paper: #fff6f1;
  --red: #e31221;
  --pink: #ff6b9d;
  --green: #14f195;
  --white: #ffffff;
  --stroke: 4px;
  --stroke-sm: 2px;
}

/* === NAVIGATION === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2.5rem;
  background: rgba(255, 246, 241, 0.95);
  border-bottom: var(--stroke) solid var(--black);
  backdrop-filter: blur(10px);
  max-width: 100vw;
  box-sizing: border-box;
}

.nav-logo {
  font-family: "Anton", sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.nav-socials {
  display: flex;
  gap: 0.5rem;
  margin-right: 2.5rem;
}

.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--black);
  color: var(--paper);
  border: var(--stroke-sm) solid var(--black);
  font-weight: 900;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.nav-btn:hover {
  background: var(--red);
  transform: scale(1.05);
}

.nav-btn-pump {
  background: var(--green);
  border-color: var(--green);
}

.nav-btn-pump:hover {
  background: var(--black);
  border-color: var(--black);
}

.pump-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* === SECTIONS === */
.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  position: relative;
}

/* === DIVIDERS === */
.divider {
  width: 100%;
  height: 80px;
  display: block;
}

/* === 1. HERO === */
.hero {
  background: var(--paper);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 20% 30%,
      rgba(255, 107, 157, 0.1),
      transparent 40%
    ),
    radial-gradient(circle at 80% 70%, rgba(227, 18, 33, 0.05), transparent 40%);
  pointer-events: none;
}

.hero-ribbon {
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  background: var(--red);
  color: var(--paper);
  text-align: center;
  padding: 0.5rem;
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  border-top: var(--stroke) solid var(--black);
  border-bottom: var(--stroke) solid var(--black);
  z-index: 5;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 1200px;
}

.hero-title {
  font-family: "Anton", sans-serif;
  font-size: clamp(4rem, 15vw, 12rem);
  line-height: 0.85;
  letter-spacing: -0.02em;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-line {
  display: block;
  color: var(--paper);
  -webkit-text-stroke: var(--stroke) var(--black);
  paint-order: stroke fill;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--black);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* === BUTTONS === */
.btn {
  text-decoration: none;
  padding: 1rem 2rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  border: var(--stroke) solid var(--black);
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transform: scale(0);
}

.btn-primary {
  background: var(--red);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--black);
  transform: scale(1.05);
}

.btn-pump {
  background: var(--green);
  color: var(--black);
  border-color: var(--green);
}

.btn-pump:hover {
  background: var(--black);
  color: var(--green);
  border-color: var(--black);
  transform: scale(1.05);
}

.btn-pump-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Copy CA Button (hero) */
.btn-copy {
  background: var(--black);
  color: var(--paper);
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.2;
}

.btn-copy:hover {
  background: var(--red);
  color: var(--paper);
  transform: scale(1.05);
}

.btn-copy #copyBtnText {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

.copy-hint {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

/* === FLOATING STICKERS === */
.sticker-float {
  position: absolute;
  width: clamp(120px, 20vw, 300px);
  height: clamp(120px, 20vw, 300px);
  background-size: cover;
  background-position: center;
  border: var(--stroke) solid var(--black);
  background-color: var(--white);
  box-shadow: 8px 8px 0 rgba(11, 11, 11, 0.2);
  pointer-events: none;
  z-index: 1;
}

.sticker-float[data-sticker="1"] {
  top: 15%;
  left: 5%;
  transform: rotate(-12deg);
}

.sticker-float[data-sticker="2"] {
  top: 60%;
  right: 8%;
  transform: rotate(8deg);
}

.sticker-float[data-sticker="3"] {
  bottom: 10%;
  left: 10%;
  transform: rotate(-5deg);
}

/* === 2. STICKER RAIL === */
.sticker-rail {
  background: var(--paper);
  padding: 4rem 0;
  min-height: auto;
}

.rail-title {
  font-family: "Anton", sans-serif;
  font-size: clamp(2rem, 6vw, 4rem);
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.rail-container {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--red) var(--paper);
}

.rail-container::-webkit-scrollbar {
  height: 8px;
}

.rail-container::-webkit-scrollbar-track {
  background: var(--paper);
}

.rail-container::-webkit-scrollbar-thumb {
  background: var(--red);
  border-radius: 4px;
}

.rail-track {
  display: flex;
  gap: 2rem;
  padding: 2rem;
}

.rail-sticker {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: var(--white);
  border: var(--stroke) solid var(--black);
  box-shadow: 6px 6px 0 rgba(11, 11, 11, 0.15);
  cursor: pointer;
  transition: transform 0.3s ease;
  opacity: 0;
  transform: scale(0) rotate(180deg);
}

.rail-sticker:hover {
  transform: scale(1.1) rotate(2deg) !important;
}

/* === 3. COMIC PANELS === */
.comic-panels {
  background: var(--paper);
  padding: 4rem 2rem;
  min-height: auto;
}

.panels-title {
  font-family: "Anton", sans-serif;
  font-size: clamp(2rem, 6vw, 4rem);
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

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

.panel {
  opacity: 1;
}

.panel-frame {
  background: var(--paper);
  border: var(--stroke) solid var(--black);
  border-radius: 8px;
  padding: 0.5rem;
  box-shadow: 8px 8px 0 rgba(11, 11, 11, 0.1);
  margin-bottom: 1rem;
  overflow: hidden;
}

.panel-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  border: var(--stroke-sm) solid var(--black);
}

.panel-caption {
  text-align: center;
  font-weight: 900;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* === 4. FINAL CALL === */
.final-call {
  background: var(--black);
  color: var(--paper);
  text-align: center;
  flex-direction: column;
  padding: 6rem 2rem 2rem;
  min-height: auto;
}

.final-title {
  font-family: "Anton", sans-serif;
  font-size: clamp(3rem, 10vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 3rem;
}

.final-line {
  display: block;
}

.final-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.btn-large {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem 2.5rem;
  border: var(--stroke) solid var(--paper);
  text-decoration: none;
  font-weight: 900;
  font-size: 2rem;
  transition: all 0.3s ease;
  min-width: 180px;
  opacity: 0;
  transform: scale(0);
}

.btn-icon {
  font-size: 2rem;
}

.btn-label {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.btn-x {
  background: var(--paper);
  color: var(--black);
}

.btn-x:hover {
  background: var(--red);
  color: var(--paper);
  transform: scale(1.05) rotate(-2deg);
}

.btn-tg {
  background: var(--red);
  color: var(--paper);
}

.btn-tg:hover {
  background: var(--paper);
  color: var(--black);
  transform: scale(1.05) rotate(2deg);
}

.btn-pump-large {
  background: var(--green);
  color: var(--black);
  border-color: var(--green);
}

.btn-pump-large:hover {
  background: var(--paper);
  color: var(--black);
  border-color: var(--paper);
  transform: scale(1.05);
}

.btn-pump-large-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

/* Copy CA Button (final section) */
.btn-copy-large {
  background: var(--paper);
  color: var(--black);
  border-color: var(--paper);
  cursor: pointer;
  font-family: "Space Grotesk", sans-serif;
}

.btn-copy-large:hover {
  background: var(--red);
  color: var(--paper);
  border-color: var(--red);
  transform: scale(1.05) rotate(-2deg);
}

/* === LOADER === */

#cereal-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #0b0b0b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.55s ease;
}

#cereal-loader.cl-exit {
  opacity: 0;
  pointer-events: none;
}

.cl-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.cl-figure-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cl-figure {
  width: 180px;
  height: 240px;
  filter: drop-shadow(0 0 20px rgba(227, 18, 33, 0.3));
}

.cl-token {
  position: absolute;
  top: 20px;
  right: -110px;
  width: 75px;
  height: 75px;
  border-radius: 50%;
  border: 4px solid var(--red);
  overflow: hidden;
  opacity: 0;
  transform: translateX(40px) scale(0.4);
  transition: opacity 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cl-token--in {
  opacity: 1;
  transform: translateX(0) scale(1);
}
.cl-token img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cl-spit-zone {
  position: absolute;
  top: 55px;
  right: -20px;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.cl-title {
  display: flex;
  gap: 1rem;
  font-family: "Anton", sans-serif;
  font-size: clamp(2.5rem, 8vw, 5rem);
  letter-spacing: 0.05em;
  color: var(--paper);
  opacity: 0;
  transform: scale(0.5) translateY(20px);
  transition: opacity 0.4s ease,
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cl-title--in {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.cl-title span:last-child {
  color: var(--red);
}

/* === ABOUT SECTION === */
.about {
  background: var(--black);
  color: var(--paper);
  min-height: auto;
  padding: 6rem 2rem;
  align-items: flex-start;
}

.about-inner {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-title {
  font-family: "Anton", sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.9;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.about-desc {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
  opacity: 0.85;
}

.about-desc strong {
  color: var(--red);
  opacity: 1;
}

.about-timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.5rem;
  border-left: 4px solid var(--red);
  padding-left: 1.5rem;
}

.timeline-item {
  display: flex;
  flex-direction: column;
}

.tl-year {
  font-family: "Anton", sans-serif;
  font-size: 2rem;
  color: var(--red);
  line-height: 1;
}

.tl-label {
  font-size: 0.85rem;
  opacity: 0.7;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.about-visual {
  display: flex;
  justify-content: center;
}

.about-img-frame {
  position: relative;
  border: var(--stroke) solid var(--paper);
  box-shadow: 10px 10px 0 var(--red);
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  overflow: hidden;
  background: #1a1a1a;
}

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

.about-img-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--red);
  color: var(--paper);
  text-align: center;
  font-family: "Anton", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.2em;
  padding: 0.5rem;
  border-top: var(--stroke-sm) solid var(--paper);
}

@media (max-width: 768px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-visual {
    order: -1;
  }
  .about-img-frame {
    max-width: 280px;
  }
}

/* === FLOATING CEREAL PIECES (hero background) === */
.cereal-float {
  position: absolute;
  border-radius: 50%;
  border: 3px solid rgba(227, 18, 33, 0.4);
  pointer-events: none;
  z-index: 0;
  animation: cerealDrift linear infinite;
}

@keyframes cerealDrift {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.6;
  }
  50% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-120px) rotate(360deg);
    opacity: 0;
  }
}

/* === SCROLL SPIT (particles) === */
.spit-scroll-particle {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  animation: spitAcross 0.8s ease-out forwards;
}

@keyframes spitAcross {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(0.2);
  }
}

/* === CURSOR TRAIL === */
.cursor-cereal {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--red);
  pointer-events: none;
  z-index: 9997;
  animation: cursorFade 0.5s ease-out forwards;
}

@keyframes cursorFade {
  0% {
    opacity: 0.8;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.2);
  }
}

/* === MARQUEE === */

.marquee {
  width: 100%;
  overflow: hidden;
  background: var(--red);
  border: var(--stroke) solid var(--paper);
  padding: 1rem 0;
  margin-bottom: 2rem;
  position: relative;
}

.marquee-content {
  display: inline-flex;
  gap: 3rem;
  animation: marquee 40s linear infinite;
  white-space: nowrap;
  padding-right: 3rem;
}

.marquee-content span {
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-block;
}

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

.copyright {
  font-size: 0.8rem;
  opacity: 0.6;
  padding: 1rem;
}

/* === CONFETTI === */
.confetti-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .section {
    padding: 5rem 1.5rem 3rem;
  }

  .hero-title {
    font-size: clamp(3rem, 12vw, 8rem);
  }

  .rail-sticker {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 0.75rem 1.5rem 0.75rem 1rem;
  }

  .nav-logo {
    font-size: 1.1rem;
  }

  .nav-socials {
    margin-right: 2.75rem;
    gap: 0.4rem;
  }

  .nav-btn {
    width: 2rem;
    height: 2rem;
    font-size: 0.75rem;
    border-width: 2px;
  }

  .pump-icon {
    width: 16px;
    height: 16px;
  }

  .section {
    padding: 4rem 1rem 2rem;
  }

  .hero-ribbon {
    font-size: 0.6rem;
    padding: 0.4rem;
    top: 70px;
  }

  .hero-title {
    font-size: clamp(2.5rem, 10vw, 6rem);
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  /* Show stickers on mobile - LARGER SIZE */
  .sticker-float {
    width: clamp(120px, 25vw, 220px);
    height: clamp(120px, 25vw, 220px);
  }

  .sticker-float[data-sticker="1"] {
    top: 18%;
    left: 2%;
  }

  .sticker-float[data-sticker="2"] {
    top: 58%;
    right: 2%;
  }

  .sticker-float[data-sticker="3"] {
    bottom: 12%;
    left: 3%;
  }

  .rail-title,
  .panels-title,
  .final-title {
    font-size: clamp(1.8rem, 8vw, 3rem);
  }

  .rail-track {
    gap: 1rem;
    padding: 1rem;
  }

  .rail-sticker {
    width: 150px;
    height: 150px;
  }

  .panels-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .panel-img {
    height: 240px;
  }

  .final-cta {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .btn-large {
    width: 100%;
    max-width: 280px;
    padding: 1.5rem 2rem;
  }

  .btn-pump-large-icon {
    width: 50px;
    height: 50px;
  }

  .marquee-content span {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .nav {
    padding: 0.6rem 1.25rem 0.6rem 0.75rem;
  }

  .nav-logo {
    font-size: 0.95rem;
  }

  .nav-socials {
    margin-right: 2.5rem;
    gap: 0.35rem;
  }

  .nav-btn {
    width: 1.85rem;
    height: 1.85rem;
    font-size: 0.7rem;
    border-width: 2px;
  }

  .pump-icon {
    width: 14px;
    height: 14px;
  }

  .hero-title {
    font-size: clamp(2rem, 12vw, 4rem);
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }

  /* Stickers for very small screens - LARGER */
  .sticker-float {
    width: 100px;
    height: 100px;
    border-width: 3px;
  }

  .sticker-float[data-sticker="1"] {
    top: 20%;
    left: 1%;
  }

  .sticker-float[data-sticker="2"] {
    top: 52%;
    right: 1%;
  }

  .sticker-float[data-sticker="3"] {
    bottom: 15%;
    left: 2%;
  }

  .rail-sticker {
    width: 130px;
    height: 130px;
  }

  .panel-img {
    height: 200px;
  }

  .btn-large {
    padding: 1.25rem 1.5rem;
  }

  .btn-icon {
    font-size: 1.5rem;
  }

  .btn-pump-large-icon {
    width: 40px;
    height: 40px;
  }
}
