/*
 * OOPS (OopsCoin) Custom Stylesheet
 * Vanilla CSS implementation for landing page mockup
 */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@600;700&family=Inter:wght@400;500;700;800;900&family=Kanit:ital,wght@0,800;0,900;1,800;1,900&display=swap');

:root {
  --color-bg-main: #0b0a23;
  --color-bg-darker: #070617;
  --color-bg-card: #161540;
  --color-bg-section-purple: #231f54;
  --color-accent: #f5c928;
  --color-accent-hover: #dbb61f;
  --color-text-white: #ffffff;
  --color-text-muted: #9ca3af;
  --color-text-purple-muted: #a5b4fc;
  
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Kanit', sans-serif;
  --font-comic: 'Fredoka', sans-serif;
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg-main);
  color: var(--color-text-white);
  font-family: var(--font-sans);
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* Offset for fixed header (~5rem on mobile, ~4.5rem on desktop) */
  padding-top: 5rem;
}

/* Typography Custom Rules */
h1, h2, h3, h4 {
  font-family: var(--font-display);
}

.text-stroke-custom {
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
  color: transparent;
}

.text-stroke-black {
  -webkit-text-stroke: 2px #000000;
  color: var(--color-text-white);
}

.text-white {
  color: #ffffff !important;
}

.text-purple {
  color: #a855f7 !important;
}

.text-yellow {
  color: #f5c928 !important;
}

/* Grid & Layout Containers */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navigation */
.header {
  width: 100%;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(11, 10, 35, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.logo-container {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.logo-link:hover .logo-container {
  border-color: var(--color-accent);
  transform: rotate(-10deg) scale(1.05);
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-text-wrapper {
  display: flex;
  flex-direction: column;
  line-height: 0.9;
}

.logo-title {
  font-family: var(--font-comic);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--color-accent);
  letter-spacing: -0.05em;
  transition: color 0.3s ease;
}

.logo-link:hover .logo-title {
  color: var(--color-text-white);
}

.logo-subtitle {
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Nav Menu */
.nav-menu {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .nav-menu {
    display: flex;
  }
}

.nav-link {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
  font-size: 0.95rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--color-bg-darker);
  padding: 0.75rem 1.75rem;
  border-radius: 0.75rem;
  font-weight: 900;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(245, 201, 40, 0.2);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(245, 201, 40, 0.3);
}

.btn-primary:active {
  transform: translateY(1px) scale(0.98);
}

.btn-outline {
  display: inline-block;
  background-color: transparent;
  color: var(--color-text-white);
  padding: 0.75rem 1.75rem;
  border-radius: 0.75rem;
  font-weight: 900;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.9rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--color-text-white);
  transform: translateY(-2px);
}

.btn-outline:active {
  transform: translateY(1px);
}

.btn-dark {
  display: inline-block;
  background-color: var(--color-bg-darker);
  color: var(--color-text-white);
  padding: 0.9rem 2rem;
  border-radius: 1rem;
  font-weight: 900;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(7, 6, 23, 0.2);
  transition: all 0.2s ease;
}

.btn-dark:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(7, 6, 23, 0.3);
}

.btn-dark:active {
  transform: scale(0.97);
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 6rem;
  background-image: url('assets/hero_bg.jpg');
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.8fr 0.7fr;
    gap: 2.5rem;
  }
}

.hero-left {
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-left {
    text-align: left;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.4rem 1rem;
  border-radius: 50rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  animation: pulse-glow 2s infinite ease-in-out;
}

.hero-title {
  font-size: 2.8rem;
  line-height: 0.95;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4.2rem;
  }
}

.hero-title span {
  display: block;
}

/* Hero Sticker Banner */
.hero-banner-sticker {
  display: inline-block;
  background-color: #7c3aed; /* bright violet purple brush style */
  color: var(--color-text-white);
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 1.15rem;
  padding: 0.5rem 2rem;
  border-radius: 0.35rem;
  transform: rotate(-1.5deg);
  margin-bottom: 1.5rem;
  border: 3px solid var(--color-bg-darker);
  box-shadow: 4px 4px 0 var(--color-bg-darker);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: pulse-glow 3s infinite ease-in-out;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  max-w: 28rem;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

@media (min-width: 1024px) {
  .hero-desc {
    margin: 0 0 2rem;
  }
}

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

@media (min-width: 1024px) {
  .hero-btns {
    justify-content: flex-start;
  }
}

/* Center Mascot Container */
.hero-mascot-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 1.5rem 0;
}

.mascot-wrapper {
  position: relative;
  width: 100%;
  max-width: 280px;
  animation: float-character 5s ease-in-out infinite;
}

@media (min-width: 768px) {
  .mascot-wrapper {
    max-width: 320px;
  }
}

.mascot-img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  filter: drop-shadow(0 15px 35px rgba(245, 201, 40, 0.18));
  display: block;
}

.speech-bubble {
  position: absolute;
  top: -1.5rem;
  right: -1rem;
  background-color: var(--color-text-white);
  color: var(--color-bg-darker);
  font-family: var(--font-comic);
  font-weight: 700;
  font-size: 1.8rem;
  padding: 0.3rem 1.5rem;
  border-radius: 50rem;
  border: 4px solid var(--color-bg-darker);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  transform: rotate(12deg);
  user-select: none;
  animation: bubble-bounce 3s ease-in-out infinite alternate;
}

/* Right Sidebar Card */
.hero-sidebar {
  width: 100%;
}

.sidebar-card {
  background-color: rgba(22, 21, 64, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem;
  border-radius: 1.8rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.sidebar-title span {
  color: var(--color-accent);
}

.sidebar-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.social-btn {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 1rem;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
}

.social-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px) scale(1.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.social-icon {
  width: 1.25rem;
  height: 1.25rem;
  fill: var(--color-text-white);
}

/* Faint Decorative Backgrounds */
.bg-deco-text {
  position: absolute;
  pointer-events: none;
  user-select: none;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 12vw;
  color: rgba(255, 255, 255, 0.015);
  text-transform: uppercase;
  z-index: -1;
  letter-spacing: -0.05em;
}

.bg-deco-text-1 {
  top: 15%;
  left: -2%;
  transform: rotate(-6deg);
}

.bg-deco-text-2 {
  bottom: 10%;
  right: -2%;
  transform: rotate(8deg);
}

.sparkle-icon {
  position: absolute;
  pointer-events: none;
  color: rgba(245, 201, 40, 0.15);
  z-index: -1;
}

/* How OOPS Works Section */
.how-works-section {
  background-color: var(--color-bg-section-purple);
  padding: 5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.how-works-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .how-works-grid {
    grid-template-columns: 0.9fr 3.1fr;
    gap: 3rem;
  }
}

.how-works-left {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.how-works-title {
  font-size: 2.8rem;
  line-height: 0.9;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
}

.how-works-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.6;
}

.arrow-decoration {
  display: none;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.25;
  margin-top: 1rem;
}

@media (min-width: 1024px) {
  .arrow-decoration {
    display: flex;
  }
}

.arrow-deco-text {
  font-family: var(--font-comic);
  font-weight: 700;
  font-size: 1.5rem;
  font-style: italic;
}

.arrow-svg {
  width: 4rem;
  height: auto;
}

/* How Works Cards Grid */
.how-works-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .how-works-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .how-works-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

.fail-card {
  background-color: var(--color-bg-main);
  border-radius: 1.8rem;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fail-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-accent);
  box-shadow: 0 10px 25px rgba(245, 201, 40, 0.08);
}

.fail-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.fail-icon-container {
  width: 2.25rem;
  height: 2.25rem;
  background-color: var(--color-accent);
  border-radius: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-bg-darker);
  box-shadow: 0 4px 10px rgba(245, 201, 40, 0.15);
}

.fail-icon {
  width: 1.15rem;
  height: 1.15rem;
}

.fail-card-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.72rem;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: 0.05em;
}

.fail-card-title span {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 800;
}

.fail-img-wrapper {
  border-radius: 1.25rem;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.fail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: all 0.5s ease;
}

.fail-card:hover .fail-img {
  filter: grayscale(0);
  transform: scale(1.04);
}

.live-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background-color: #dc2626;
  color: var(--color-text-white);
  font-size: 0.6rem;
  font-weight: 900;
  padding: 0.2rem 0.6rem;
  border-radius: 50rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3);
  animation: live-blink 1.5s infinite;
}

.fail-card-desc {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
  min-height: 2.2rem;
}

.fail-card-oops-btn {
  background-color: var(--color-accent);
  color: var(--color-bg-darker);
  text-align: center;
  padding: 0.5rem 0;
  border-radius: 0.75rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  margin-top: auto;
  user-select: none;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.fail-card:hover .fail-card-oops-btn {
  background-color: var(--color-text-white);
}

/* Donut chart layout */
.tokenomics-roadmap-grid {
  padding: 5rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 5rem;
}

@media (min-width: 1024px) {
  .tokenomics-roadmap-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
  }
}

.section-subtitle {
  font-size: 2.5rem;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  line-height: 1;
}

/* Tokenomics Chart Layout */
.tokenomics-box {
  background-color: rgba(22, 21, 64, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1.8rem;
  padding: 2rem;
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

@media (min-width: 640px) {
  .tokenomics-box {
    flex-direction: row;
    justify-content: space-between;
    gap: 2rem;
  }
}

.chart-wrapper {
  position: relative;
  width: 14rem;
  height: 14rem;
  flex-shrink: 0;
}

.donut-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.donut-center-mascot {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 6rem;
  height: 6rem;
  background-color: var(--color-bg-main);
  border-radius: 50%;
  border: 4px solid var(--color-accent);
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.donut-mascot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
}

.tokenomics-legend {
  list-style: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.5rem;
}

.legend-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.legend-label-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.legend-dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
}

.legend-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
}

.legend-percentage {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.9rem;
}

/* Donut segment colors */
.color-community { background-color: var(--color-accent); color: var(--color-accent); }
.color-marketing { background-color: #06b6d4; color: #06b6d4; }
.color-liquidity { background-color: #8b5cf6; color: #8b5cf6; }
.color-development { background-color: #ec4899; color: #ec4899; }
.color-team { background-color: #3b82f6; color: #3b82f6; }

/* Roadmap Timeline Styles */
.roadmap-box {
  background-color: rgba(22, 21, 64, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1.8rem;
  padding: 2.2rem;
  backdrop-filter: blur(8px);
  position: relative;
}

.roadmap-timeline-line {
  position: absolute;
  top: 4.2rem;
  left: 10%;
  right: 10%;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.08);
  display: none;
  z-index: 1;
}

@media (min-width: 768px) {
  .roadmap-timeline-line {
    display: block;
  }
}

.roadmap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .roadmap-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

.roadmap-step {
  text-align: center;
}

.roadmap-icon-circle {
  width: 4rem;
  height: 4rem;
  background-color: var(--color-bg-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  border-width: 2px;
  border-style: solid;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.roadmap-step:hover .roadmap-icon-circle {
  transform: scale(1.1);
}

.roadmap-icon {
  width: 1.8rem;
  height: 1.8rem;
}

/* Phase Colors */
.phase-launch { border-color: #8b5cf6; color: #8b5cf6; }
.phase-launch:hover .roadmap-icon-circle { background-color: #8b5cf6; color: var(--color-text-white); }
.phase-viral { border-color: var(--color-accent); color: var(--color-accent); }
.phase-viral:hover .roadmap-icon-circle { background-color: var(--color-accent); color: var(--color-bg-darker); }
.phase-expand { border-color: #06b6d4; color: #06b6d4; }
.phase-expand:hover .roadmap-icon-circle { background-color: #06b6d4; color: var(--color-text-white); }
.phase-dominate { border-color: #ec4899; color: #ec4899; }
.phase-dominate:hover .roadmap-icon-circle { background-color: #ec4899; color: var(--color-text-white); }

.roadmap-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.roadmap-subtitle {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.1em;
  margin-bottom: 0.65rem;
}

.roadmap-desc {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  max-w: 12rem;
  margin: 0 auto;
}

/* Meme banner (Oops movement cta banner) */
.meme-cta-section {
  padding-bottom: 6rem;
}

.meme-banner {
  background-color: var(--color-accent);
  color: var(--color-bg-darker);
  border-radius: 2.5rem;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(245, 201, 40, 0.15);
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .meme-banner {
    padding: 3rem 4rem;
    flex-direction: row;
    gap: 4rem;
  }
}

.banner-deco {
  position: absolute;
  right: -2rem;
  bottom: -2rem;
  width: 18rem;
  height: 18rem;
  color: rgba(7, 6, 23, 0.05);
  pointer-events: none;
}

.meme-cta-left {
  text-align: center;
  width: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .meme-cta-left {
    text-align: left;
    width: 32%;
  }
}

.meme-cta-title {
  font-size: 2.8rem;
  line-height: 0.95;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
}

.meme-cta-title span {
  color: rgba(7, 6, 23, 0.4);
}

.meme-cta-desc {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(7, 6, 23, 0.7);
  line-height: 1.5;
  max-w: 22rem;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .meme-cta-desc {
    margin: 0;
  }
}

.meme-cta-left .btn-dark {
  align-self: center;
  margin-top: 0.5rem;
}

@media (min-width: 1024px) {
  .meme-cta-left .btn-dark {
    align-self: flex-start;
  }
}

/* Meme Cards Grid */
.meme-grid {
  width: 100%;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 580px) {
  .meme-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .meme-grid {
    grid-template-columns: repeat(4, 1fr);
    width: 68%;
  }
}

.meme-card {
  background-color: var(--color-bg-main);
  border-radius: 1.8rem;
  padding: 0.85rem;
  border: 1px solid rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.meme-card:nth-child(even) {
  transform: rotate(1deg);
}

.meme-card:nth-child(odd) {
  transform: rotate(-1deg);
}

.meme-card:hover {
  transform: translateY(-8px) rotate(0deg) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.meme-card-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.62rem;
  color: var(--color-text-white);
  text-align: center;
  text-transform: uppercase;
  line-height: 1.2;
  letter-spacing: 0.03em;
  min-height: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.25rem;
}

.meme-img-wrapper {
  border-radius: 1.25rem;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.meme-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.meme-card:hover .meme-img {
  transform: scale(1.05);
}

.meme-overlay-text {
  position: absolute;
  bottom: 0.5rem;
  left: 0;
  width: 100%;
  text-align: center;
  color: var(--color-text-white);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8), 0 2px 10px rgba(0,0,0,0.8);
  user-select: none;
}

/* Footer Section */
.footer {
  background-color: var(--color-bg-darker);
  padding: 4rem 0 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.footer-deco-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  user-select: none;
  opacity: 0.03;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6rem;
  z-index: 1;
}

.footer-deco-svg {
  width: 8rem;
  height: 8rem;
  fill: var(--color-text-white);
}

.footer-deco-spin {
  animation: spin-clockwise 25s linear infinite;
}

.footer-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-brand {
  max-w: 24rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.footer-brand-title {
  font-family: var(--font-comic);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--color-accent);
  letter-spacing: -0.05em;
}

.footer-brand-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

@media (min-width: 1024px) {
  .footer-right {
    align-items: flex-end;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-link {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--color-accent);
}

.footer-copyright {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-disclaimer {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  max-w: 38rem;
  margin: 0 auto;
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
}

/* Animations Definition */
@keyframes float-character {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes bubble-bounce {
  0% { transform: rotate(12deg) scale(0.96); }
  100% { transform: rotate(14deg) scale(1.03); }
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(245, 201, 40, 0.2); }
  70% { box-shadow: 0 0 0 10px rgba(245, 201, 40, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 201, 40, 0); }
}

@keyframes live-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes spin-clockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Presale Launch Widget Styles */
.presale-countdown-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.countdown-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--color-accent);
  text-align: center;
  letter-spacing: 0.05em;
}

.presale-timer {
  display: flex;
  justify-content: space-between;
  background-color: var(--color-text-white);
  border: 3px solid var(--color-bg-darker);
  border-radius: 1rem;
  padding: 0.75rem 0.5rem;
  box-shadow: 4px 4px 0 var(--color-bg-darker);
}

.timer-unit {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 2px solid rgba(7, 6, 23, 0.15);
}

.timer-unit:last-child {
  border-right: none;
}

.timer-unit span {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--color-bg-darker);
  line-height: 1.1;
}

.timer-unit label {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 800;
  color: rgba(7, 6, 23, 0.5);
  letter-spacing: 0.05em;
  margin-top: 0.15rem;
}

/* Presale Progress */
.presale-progress-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.progress-labels span:first-child {
  color: var(--color-text-white);
}

.progress-labels span:last-child {
  color: var(--color-text-purple-muted);
}

.presale-progress-track {
  height: 1.35rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 3px solid var(--color-bg-darker);
  border-radius: 50rem;
  position: relative;
  overflow: visible;
  padding: 1px;
}

.presale-progress-fill {
  height: 100%;
  background-color: #59f405;
  border-radius: 50rem;
  position: relative;
  transition: width 0.5s ease-in-out;
}

.presale-progress-fill::after {
  content: '';
  position: absolute;
  right: -12px;
  top: -10px;
  width: 30px;
  height: 30px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23f5c928"><path d="M11 21h-1l1-7H5l9-11h1l-1 7h6z"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

/* Presale Action Buttons */
.presale-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.btn-presale-buy {
  display: block;
  width: 100%;
  text-align: center;
  background-color: var(--color-accent);
  color: var(--color-bg-darker);
  padding: 0.85rem 1.5rem;
  border-radius: 0.85rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  text-transform: uppercase;
  border: 3px solid var(--color-bg-darker);
  box-shadow: 4px 4px 0 var(--color-bg-darker);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-presale-buy:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 6px 6px 0 var(--color-bg-darker);
}

.btn-presale-buy:active {
  transform: translateY(1px);
  box-shadow: 2px 2px 0 var(--color-bg-darker);
}

.btn-presale-connect {
  display: block;
  width: 100%;
  text-align: center;
  background-color: #59f405;
  color: var(--color-bg-darker);
  padding: 0.85rem 1.5rem;
  border-radius: 0.85rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  text-transform: uppercase;
  border: 3px solid var(--color-bg-darker);
  box-shadow: 4px 4px 0 var(--color-bg-darker);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-presale-connect:hover {
  background-color: #4ce002;
  transform: translateY(-2px);
  box-shadow: 6px 6px 0 var(--color-bg-darker);
}

.btn-presale-connect:active {
  transform: translateY(1px);
  box-shadow: 2px 2px 0 var(--color-bg-darker);
}

/* Illustration Section Styles */
.illustration-section {
  padding: 3rem 0;
  background-color: var(--color-bg-main);
  text-align: center;
}

.illustration-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.illustration-img {
  width: 100%;
  max-width: 1200px;
  height: auto;
  border: 4px solid var(--color-bg-darker);
  border-radius: 1.8rem;
  box-shadow: 0 20px 45px rgba(0,0,0,0.3);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.illustration-img:hover {
  transform: translateY(-4px) scale(1.005);
  box-shadow: 0 25px 55px rgba(245, 201, 40, 0.08);
  border-color: var(--color-accent);
}

/* ============================================================
   MOBILE COMPATIBILITY & RESPONSIVE OVERHAUL
   Covers: 320px to 1920px. Desktop UI preserved exactly.
   ============================================================ */

/* --- Skip Link (Accessibility) --- */
.skip-link {
  position: absolute;
  top: -9999px;
  left: 0;
  z-index: 9999;
  background: var(--color-accent);
  color: var(--color-bg-darker);
  padding: 0.75rem 1.5rem;
  font-weight: 900;
  text-decoration: none;
  border-radius: 0 0 0.5rem 0;
}
.skip-link:focus {
  top: 0;
}

/* --- Safe Area & Viewport Fixes --- */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* --- Remove tap highlight on mobile --- */
* {
  -webkit-tap-highlight-color: transparent;
}

/* --- Prevent horizontal overflow globally --- */
section, main, footer, header {
  max-width: 100%;
  overflow-x: hidden;
}

/* --- Header safe area padding (notch/Dynamic Island support) --- */
.header {
  padding-left: max(1.5rem, env(safe-area-inset-left));
  padding-right: max(1.5rem, env(safe-area-inset-right));
  padding-top: max(1rem, env(safe-area-inset-top));
}

/* --- Mobile Hamburger Button --- */
.mobile-menu-btn {
  display: none;
  position: fixed;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  z-index: 200;
  background: var(--color-bg-card);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0.6rem;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.2s ease;
}
.mobile-menu-btn:hover,
.mobile-menu-btn:focus-visible {
  background: var(--color-bg-section-purple);
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.hamburger-bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  background-color: var(--color-text-white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* --- Mobile Nav Drawer --- */
.mobile-nav {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(80vw, 300px);
  background: var(--color-bg-darker);
  border-left: 1px solid rgba(255,255,255,0.08);
  z-index: 300;
  padding-top: max(5rem, calc(4rem + env(safe-area-inset-top)));
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
  padding-left: 2rem;
  padding-right: 2rem;
  gap: 0.25rem;
  transform: translateX(110%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  will-change: transform;
  -webkit-transform: translateX(110%);
}
.mobile-nav.is-open {
  transform: translateX(0);
  -webkit-transform: translateX(0);
}
.mobile-nav-close {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top));
  right: 1rem;
  background: none;
  border: none;
  color: var(--color-text-white);
  font-size: 1.5rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.2s ease;
}
.mobile-nav-close:hover,
.mobile-nav-close:focus-visible {
  background: rgba(255,255,255,0.1);
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.mobile-nav-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  min-height: 44px;
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
  color: var(--color-accent);
}
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 250;
  opacity: 0;
  transition: opacity 0.3s ease;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.mobile-nav-overlay.is-open {
  display: block;
  opacity: 1;
}

/* Show hamburger on mobile only */
@media (max-width: 1023px) {
  .mobile-menu-btn {
    display: flex;
  }
}

/* --- Container Responsive Padding --- */
@media (max-width: 639px) {
  .container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
}

/* --- Hero Section Mobile Fixes --- */
.hero {
  background-attachment: scroll; /* Fix iOS fixed background bug */
}

@media (max-width: 1023px) {
  .hero {
    padding: 5rem 0 3rem;
  }
  .hero-grid {
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 4rem 0 2.5rem;
  }
}

/* Prevent hero title overflow on small screens */
.hero-title {
  word-break: break-word;
  overflow-wrap: break-word;
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
    letter-spacing: -0.03em;
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  .hero-title {
    font-size: 3rem;
  }
}

/* Hero banner sticker responsive */
.hero-banner-sticker {
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  font-size: clamp(0.85rem, 2.5vw, 1.15rem);
}

@media (max-width: 360px) {
  .hero-banner-sticker {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
  }
}

/* Hero description fix invalid max-w property */
.hero-desc {
  max-width: 28rem;
}

/* Hero buttons full-width on very small screens */
@media (max-width: 360px) {
  .hero-btns {
    flex-direction: column;
    align-items: center;
  }
  .hero-btns .btn-primary,
  .hero-btns .btn-outline {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* Mascot container mobile ordering */
@media (max-width: 1023px) {
  .hero-mascot-container {
    order: -1;
    padding: 0.5rem 0;
  }
  .mascot-wrapper {
    max-width: 200px;
  }
  .hero-sidebar {
    max-width: 420px;
    margin: 0 auto;
  }
  .sidebar-card {
    padding: 1.25rem;
  }
}

/* Social buttons minimum touch target */
.social-btn {
  min-width: 44px;
  min-height: 44px;
  touch-action: manipulation;
}

/* Poster image responsive */
.hero-poster-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* --- Illustration Section --- */
@media (max-width: 640px) {
  .illustration-section {
    padding: 2rem 0;
  }
  .illustration-img {
    border-radius: 0.75rem;
    border-width: 2px;
  }
}

/* --- How It Works Section --- */
@media (max-width: 640px) {
  .how-works-section {
    padding: 3rem 0;
  }
  .how-works-title {
    font-size: 2.2rem;
  }
  .how-works-cards {
    gap: 1rem;
  }
}

/* Fail cards prevent overflow */
.fail-card {
  min-width: 0;
  overflow: hidden;
}

/* --- Meme CTA Section --- */
@media (max-width: 640px) {
  .meme-cta-section {
    padding-bottom: 3rem;
  }
  .meme-banner {
    border-radius: 1.5rem;
    padding: 1.5rem 1.25rem;
    gap: 2rem;
  }
  .meme-cta-title {
    font-size: 2rem;
  }
}

.meme-card {
  min-width: 0;
  overflow: hidden;
}

@media (max-width: 640px) {
  .meme-card-title {
    font-size: 0.7rem;
  }
}

/* --- Buttons minimum touch target --- */
.btn-primary,
.btn-outline,
.btn-dark {
  min-height: 44px;
  touch-action: manipulation;
}

/* --- Footer Safe Area --- */
.footer {
  padding-bottom: max(3rem, calc(2rem + env(safe-area-inset-bottom)));
}

@media (max-width: 640px) {
  .footer {
    padding-top: 3rem;
  }
  .footer-top {
    gap: 1.5rem;
  }
  .footer-links {
    gap: 1rem;
  }
}

/* Footer links minimum touch target */
.footer-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Nav links minimum touch target */
.nav-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding-bottom: 0;
}

/* --- Fix invalid CSS max-w: properties with proper max-width --- */
.footer-brand {
  max-width: 24rem;
}
.footer-disclaimer {
  max-width: 38rem;
}
.roadmap-desc {
  max-width: 12rem;
}
.meme-cta-desc {
  max-width: 22rem;
}

/* --- GPU acceleration for animated elements --- */
.mascot-wrapper,
.fail-card,
.meme-card {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* --- iOS Safari input zoom prevention (minimum 16px font) --- */
input, textarea, select {
  font-size: max(16px, 1rem);
}

/* --- Images GPU acceleration on iOS --- */
img {
  -webkit-transform: translateZ(0);
}

/* --- Flexbox Safari compatibility --- */
.hero-btns {
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
}

/* --- Very small screens (320px - 360px) --- */
@media (max-width: 360px) {
  .logo-title {
    font-size: 1.4rem;
  }
  .logo-subtitle {
    font-size: 0.55rem;
  }
  .logo-container {
    width: 2.25rem;
    height: 2.25rem;
  }
  .how-works-title {
    font-size: 1.8rem;
  }
  .meme-cta-title {
    font-size: 1.75rem;
  }
  .meme-banner {
    padding: 1.25rem 1rem;
  }
  .fail-card {
    padding: 1rem;
  }
}

/* --- Tablet adjustments (768px - 1023px) --- */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .hero-mascot-container {
    grid-column: 1 / -1;
    order: -1;
  }
  .hero-left {
    grid-column: 1 / -1;
  }
  .hero-sidebar {
    grid-column: 1 / -1;
    max-width: 500px;
    margin: 0 auto;
  }
  .how-works-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .meme-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Large Desktop safety (1920px+) --- */
@media (min-width: 1920px) {
  .container {
    max-width: 1440px;
  }
}

/* --- Print safety --- */
@media print {
  .mobile-menu-btn,
  .mobile-nav,
  .mobile-nav-overlay,
  .skip-link {
    display: none !important;
  }
}
