@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&family=Sniglet&display=swap');

/* ==============================
   DESIGN TOKENS — HARMONIOUS PASTELS
   ============================== */
:root {
  /* Soft, watercolor-like background colors matching the illustrations */
  --sky-top: #e8f4f8;
  --sky-mid: #fdf0e6;
  --sky-sunset: #fce1d5;
  --sky-pink: #f8cdd6;
  
  --grass-light: #d6e8d1;
  --grass-mid: #b5d1b1;
  --grass-dark: #8eb38e;

  /* Accents */
  --hippo-pink: #f4b8c2;
  --hippo-peach: #f9d3ca;
  --text-dark: #5c4b45;
  --text-mid: #856e66;
  --text-light: #a8948d;

  /* UI Elements */
  --card-bg: rgba(255, 255, 255, 0.85);
  --card-shadow: 0 10px 40px rgba(133, 110, 102, 0.08);
  --card-border: rgba(255, 255, 255, 0.6);

  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --radius-xl: 48px;
  --radius-pill: 100px;

  /* Typography */
  --font-display: 'Sniglet', cursive;
  --font-body: 'Quicksand', sans-serif;
}

/* ==============================
   RESET & BASE
   ============================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  background-color: var(--sky-top);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ==============================
   SVG ICON UTILITY
   ============================== */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.icon svg {
  width: 100%;
  height: 100%;
}
.icon--lg {
  width: 32px;
  height: 32px;
}
.icon--xl {
  width: 48px;
  height: 48px;
}

/* ==============================
   SECTIONS & SEAMLESS BLENDING
   ============================== */
/* Hero section flows from blue sky to peach sunset */
.hero-section {
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 40%, var(--sky-sunset) 100%);
  position: relative;
  z-index: 1;
}

/* About flows from peach sunset to pink to light grass */
.about-section {
  background: linear-gradient(180deg, var(--sky-sunset) 0%, var(--sky-pink) 50%, var(--grass-light) 100%);
  position: relative;
  z-index: 1;
}

/* Stats flows from light grass to mid grass */
.stats-section {
  background: linear-gradient(180deg, var(--grass-light) 0%, var(--grass-mid) 100%);
  position: relative;
  z-index: 1;
}

/* Community stays in grass and transitions to footer */
.community-section {
  background: var(--grass-mid);
  position: relative;
  z-index: 1;
}

.footer-section {
  background: var(--grass-dark);
  color: white;
  position: relative;
  z-index: 2;
}

/* Seamless Dividers */
.divider {
  width: 100vw;
  max-width: 100%;
  display: block;
  object-fit: cover;
  pointer-events: none;
}
.divider-hills, .divider-grass {
  width: 100vw;
  max-width: 100%;
  display: block;
  object-fit: cover;
  pointer-events: none;
}
.divider-hills { margin-top: -2px; margin-bottom: -2px; }
.divider-grass { margin-top: -2px; margin-bottom: -4px; position: relative; z-index: 2; }

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

@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulseSoft {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* ==============================
   PARTICLES (Minimal & Tiring-free)
   ============================== */
.particles-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.6; /* Very subtle */
}

.particle {
  position: absolute;
  opacity: 0;
  animation: floatUpSlow linear infinite;
  color: rgba(255, 255, 255, 0.6);
}

@keyframes floatUpSlow {
  0% { transform: translateY(110vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-10vh) rotate(180deg); opacity: 0; }
}

/* ==============================
   NAVBAR
   ============================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
  padding: 12px 40px;
  backdrop-filter: blur(15px);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 30px rgba(133, 110, 102, 0.05);
}

.navbar__logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.5px;
}

.navbar__logo-img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  mix-blend-mode: multiply; /* Blends white background seamlessly */
  object-fit: cover;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar__link {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-mid);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar__link:hover {
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.5);
}

.navbar__link--cta {
  background: var(--hippo-pink);
  color: white !important;
  box-shadow: 0 4px 15px rgba(244, 184, 194, 0.4);
}

.navbar__link--cta:hover {
  background: #f0a3b0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 184, 194, 0.6);
}

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

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  max-width: 800px;
}

/* Background Floating USDC */
.bg-usdc {
  position: absolute;
  width: 280px;
  height: 280px;
  opacity: 0.35; /* Much more visible */
  z-index: 0;
  pointer-events: none;
  animation: floatGentle 8s ease-in-out infinite;
}
.bg-usdc--left {
  top: 15%;
  left: 5%;
  transform: rotate(-15deg);
}
.bg-usdc--right {
  top: 35%;
  right: 8%;
  transform: rotate(20deg);
  animation-delay: 2s;
}
.bg-usdc--bottom {
  top: 65%;
  left: 12%;
  transform: rotate(-30deg);
  animation-delay: 4s;
  width: 220px;
  height: 220px;
}

.hero__illustration {
  position: relative;
  animation: floatGentle 4s ease-in-out infinite;
  margin-bottom: 10px;
}

.hero__illustration img {
  width: 100%;
  max-width: 480px;
  height: auto;
  mix-blend-mode: multiply; /* Removes white bg perfectly against pastels */
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(39, 117, 202, 0.2);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  color: #2775ca; /* USDC Blue */
  box-shadow: 0 4px 15px rgba(39, 117, 202, 0.1);
  margin-top: 12px;
  margin-bottom: -10px;
}
.usdc-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  color: var(--text-dark);
  line-height: 1.1;
  letter-spacing: 1px;
}

.hero__subtitle {
  font-size: 1.25rem;
  color: var(--text-mid);
  max-width: 540px;
  line-height: 1.6;
  font-weight: 500;
}

/* Hero Key Stats */
.key-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 10px;
}

.key-stat {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  text-align: center;
  min-width: 160px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.key-stat:hover {
  transform: translateY(-4px);
}

.key-stat__icon {
  margin-bottom: 8px;
  color: var(--text-light);
}

.key-stat__value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.2;
}

.key-stat__label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-mid);
  margin-top: 4px;
}

.key-stat__value--loading {
  display: inline-block;
  width: 80px;
  height: 20px;
  background: rgba(0,0,0,0.05);
  border-radius: 4px;
  animation: pulseSoft 1.5s infinite;
}

/* Soft Buttons */
.btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn--primary {
  background: var(--hippo-pink);
  color: white;
  box-shadow: 0 8px 25px rgba(244, 184, 194, 0.4);
}
.btn--primary:hover {
  background: #f0a3b0;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(244, 184, 194, 0.6);
}

.btn--glass {
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-dark);
  backdrop-filter: blur(10px);
}
.btn--glass:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(133, 110, 102, 0.1);
}

/* ==============================
   TICKER (Soft & Clean)
   ============================== */
.ticker-strip {
  background: rgba(255, 255, 255, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding: 14px 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.ticker-strip__inner {
  display: flex;
  gap: 60px;
  animation: tickerScroll 30s linear infinite;
  width: max-content;
}

.ticker-strip__item {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

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

/* ==============================
   ABOUT SECTION
   ============================== */
.section-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 80px 40px;
  position: relative;
  z-index: 1;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-mid);
  text-align: center;
  font-weight: 500;
  margin-bottom: 48px;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-illustration {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  animation: floatSlow 5s ease-in-out infinite;
  mix-blend-mode: multiply; /* Perfect blending for white bg */
}

.about-text { text-align: left; }

.about-text h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.about-text p {
  color: var(--text-mid);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  font-weight: 500;
}

.fun-fact-box {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 24px 30px;
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 24px;
}

.fun-fact-box svg {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  color: var(--hippo-peach);
}

.fun-fact-box p {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1.05rem;
}

/* ==============================
   MARKET STATS
   ============================== */
.stats-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}

.stats-illustration {
  width: 120px;
  height: auto;
  animation: floatGentle 4s ease-in-out infinite;
  mix-blend-mode: multiply;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-card:hover {
  transform: translateY(-6px);
}

.stat-card__icon {
  margin-bottom: 16px;
  color: var(--text-mid);
  display: flex;
  justify-content: center;
  align-items: center;
}
.stat-card__icon svg { width: 40px; height: 40px; }

.stat-card__label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-mid);
  margin-bottom: 8px;
}

.stat-card__value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--text-dark);
}

.stat-card__value--green { color: var(--grass-dark); }

/* ==============================
   COMMUNITY
   ============================== */
.community-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  text-align: center;
  box-shadow: var(--card-shadow);
  max-width: 700px;
  margin: 0 auto;
}

.community-illustration {
  width: 220px;
  height: auto;
  margin: 0 auto 24px;
  animation: pulseSoft 4s ease-in-out infinite;
  mix-blend-mode: multiply;
}

.community-card h3 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.community-card p {
  color: var(--text-mid);
  font-size: 1.15rem;
  max-width: 500px;
  margin: 0 auto 36px;
}

/* ==============================
   CONTRACT ADDRESS
   ============================== */
.contract-section {
  display: flex;
  justify-content: center;
  width: 100%;
}
.contract-box {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-pill);
  padding: 12px 16px 12px 32px;
  margin-top: 40px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--card-shadow);
}
.contract-box > div {
  text-align: left;
}
.contract-box:hover {
  background: white;
  transform: translateY(-2px);
}

.contract-address {
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 700;
}

.contract-copy {
  background: var(--hippo-pink);
  color: white;
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 24px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.contract-copy:hover { background: #f0a3b0; }

/* ==============================
   FOOTER
   ============================== */
.footer-inner {
  padding: 40px 40px 60px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-link {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}
.footer-link:hover { color: var(--hippo-peach); }
.footer-link svg { width: 20px; height: 20px; }

.footer-copy {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ==============================
   ANIMATIONS UTILS
   ============================== */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0) scale(1); }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.4s; opacity: 1; transform: none; }

/* ==============================
   TOAST
   ============================== */
.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text-dark);
  color: white;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  z-index: 200;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 900px) {
  .about-content { grid-template-columns: 1fr; gap: 40px; }
  .about-text { text-align: center; }
  .fun-fact-box { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 600px) {
  .hero { padding: 120px 20px 40px; }
  .hero__title { font-size: 2.5rem; }
  .hero__illustration img { width: 280px; }
  .stats-header { flex-direction: column; gap: 8px; }
  .section-inner { padding: 60px 20px; }
  .navbar { padding: 12px 20px; }
  .navbar__links { display: none; /* Hide on mobile for cleanliness, or implement hamburger */ }
  .btn-group { flex-direction: column; width: 100%; }
  .btn { width: 100%; }
  .contract-box { flex-direction: column; padding: 16px; border-radius: var(--radius-md); gap: 12px; }
  .contract-address { font-size: 0.8rem; }
}
