:root {
  --cream: #fff8f4;
  --cream-soft: #fef1ec;
  --ink: #2b2140;
  --ink-soft: #6b6280;
  --pink: #FFCBDA;
  --pink-deep: #FFCBDA;
  --mint: #4fd8b0;
  --mint-deep: #2fae8a;
  --line: #f0dfe0;

  --font-display: 'Fredoka', system-ui, sans-serif;
  --font-body: 'Fredoka', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}
body {
  margin: 0;
  overflow-x: clip;
  max-width: 100%;
  background-image: url('assets/iceberg.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; color: var(--ink); }
p { margin: 0; }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,248,244,.72);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(43,33,64,.08);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 8px 24px rgba(43,33,64,.05);
}
.nav__inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: nowrap;
  padding: 20px clamp(20px, 5vw, 56px);
  gap: 24px;
}
.nav__brand {
  display: flex; align-items: center; gap: 13px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.5rem;
  color: var(--ink); flex-shrink: 0;
  transition: opacity .15s;
}
.nav__brand:hover { opacity: .8; }
.nav__brand-img {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
  border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(43,33,64,.1), 0 2px 8px rgba(43,33,64,.12);
}
.nav__links { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 1.05rem; flex-shrink: 0; }
.nav__links a {
  color: var(--ink-soft);
  padding: 10px 18px;
  border-radius: 999px;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav__links a:hover { color: var(--ink); background: var(--pink-deep); }
.nav__right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav__divider { width: 1px; height: 28px; background: rgba(43,33,64,.12); margin: 0 2px; }
.nav__icon {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  color: var(--ink-soft); border: 1px solid rgba(43,33,64,.1); background: #fff;
  transition: background .15s, color .15s, transform .15s, border-color .15s;
  flex-shrink: 0;
}
.nav__icon svg { width: 20px; height: 20px; }
.nav__icon:hover { background: var(--pink-deep); color: var(--ink); border-color: var(--pink-deep); transform: translateY(-2px); }
.nav__cta {
  background: var(--pink-deep); color: var(--ink); padding: 14px 28px; border-radius: 999px;
  font-weight: 700; font-size: 1.02rem; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(255,203,218,.7);
  transition: background .15s, transform .15s, box-shadow .15s;
}
.nav__cta:hover { background: #ffb8cf; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,203,218,.9); }
.nav__toggle {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(43,33,64,.1);
  background: #fff; cursor: pointer; padding: 0; flex-shrink: 0;
  transition: background .15s, border-color .15s;
}
.nav__toggle:hover { background: var(--cream-soft); border-color: var(--pink); }
.nav__toggle span { display: block; width: 20px; height: 2.5px; background: var(--ink); border-radius: 2px; }

@media (max-width: 900px) {
  .nav__links {
    position: absolute; top: 100%; left: 16px; right: 16px;
    background: #fff; border: 1px solid rgba(43,33,64,.08);
    border-radius: 16px; box-shadow: 0 12px 32px rgba(43,33,64,.14);
    flex-direction: column; align-items: stretch; gap: 2px; padding: 8px;
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height .25s ease, opacity .2s ease;
  }
  .nav__links.is-open { max-height: 320px; opacity: 1; margin-top: 8px; }
  .nav__links a { padding: 14px 16px; width: 100%; text-align: center; border-radius: 10px; }
  .nav__toggle { display: flex; }
  .nav__cta { padding: 9px 16px; font-size: .82rem; }
}
@media (max-width: 420px) {
  .nav__cta span { display: none; }
  .nav__brand span { display: none; }
  .nav__inner { gap: 10px; padding-left: 16px; padding-right: 16px; }
  .nav__right { gap: 8px; }
  .nav__icon { width: 36px; height: 36px; }
  .nav__toggle { width: 36px; height: 36px; }
  .nav__divider { display: none; }
}

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 26px; border-radius: 12px; font-weight: 700; font-size: 1rem; cursor: pointer; border: 2px solid transparent; font-family: var(--font-body); }
.btn--primary { background: var(--pink-deep); color: var(--ink); }
.btn--primary:hover { background: #ffb8cf; }
.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }

/* HERO */
.hero {
  position: relative;
  min-height: 78vh;
  padding-top: 92px;
  display: flex;
  align-items: center;
  background: transparent;
}
.hero__scrim {
  display: none;
}
.hero__content {
  position: relative; z-index: 1;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 48px clamp(20px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 6vw, 80px);
  box-sizing: border-box;
}
.hero__art { flex: 0 0 auto; }
.hero__art img {
  width: clamp(260px, 28vw, 440px);
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.35));
}
.hero__text { flex: 1 1 auto; min-width: 0; text-align: left; color: var(--ink); }
.hero__kicker { color: var(--mint-deep); font-weight: 700; margin-bottom: 16px; font-size: 1.3rem; }
.hero__title { font-size: clamp(2.6rem, 6.5vw, 4.4rem); line-height: 1.06; color: var(--ink); }
.hero__title-polly { color: var(--pink-deep); }
.hero__title-earn { color: var(--ink); }
.hero__title-pengu { color: #74A5FA; }
.hero__sub { margin-top: 24px; max-width: 60ch; color: var(--ink-soft); font-size: 1.15rem; }
.hero__actions { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.hero__stats {
  display: flex; gap: 40px; margin-top: 48px; padding-top: 26px;
  border-top: 1px solid rgba(43,33,64,.15);
  flex-wrap: wrap;
}
.hero__stats .stat-value { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.9rem; color: var(--ink); }
.hero__stats .stat-label { font-size: 1.05rem; color: var(--ink-soft); }

.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }

@media (max-width: 760px) {
  .hero__content { flex-direction: column; align-items: center; text-align: center; }
  .hero__text { text-align: center; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__actions, .hero__stats { justify-content: center; }
  .hero__art img { width: clamp(160px, 45vw, 240px); }
}
@media (max-width: 640px) {
  .hero { min-height: 100svh; }
  .hero__content { padding-bottom: 48px; }
  .hero__stats { gap: 20px; }
}
@media (max-width: 380px) {
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; }
}

/* SECTIONS */
.section { max-width: 1240px; margin: 0 auto; padding: 70px clamp(20px, 5vw, 56px); }
#how { padding-top: 35px; }
.section__head { max-width: 620px; margin: 0 auto 48px; text-align: center; }
.section__head h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.section__head p { color: var(--ink-soft); margin-top: 12px; }

/* STEPS */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { background: rgba(255,255,255,.85); backdrop-filter: blur(4px); border: 1px solid var(--line); border-radius: 20px; padding: 28px; position: relative; }
.step__num {
  position: absolute; top: -16px; left: 24px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--pink-deep); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
}
.step img { border-radius: 14px; margin-bottom: 18px; aspect-ratio: 1; object-fit: cover; }
.step h3 { font-size: 1.3rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: .95rem; }

@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* REWARDS */
.rewards-card { background: #fff; border-radius: 32px; padding: clamp(28px, 5vw, 56px); }
.rewards-grid { display: flex; flex-direction: column; gap: 8px; }
.rewards-copy h2 { font-size: clamp(2rem, 4vw, 2.7rem); margin-bottom: 18px; text-align: center; }
.rewards-copy > p { color: var(--ink-soft); margin-bottom: 26px; font-size: 1.15rem; }
.rewards-features {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
  margin: 8px 0 30px;
}
.feature-card {
  background: #e8f4fb; border-radius: 20px; padding: 26px;
  transition: transform .15s, box-shadow .15s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(43,33,64,.08); }
.feature-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.feature-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  color: var(--ink);
}
.feature-card__icon--pink { background: var(--pink-deep); }
.feature-card__icon--mint { background: #74A5FA; color: #fff; }
.feature-card h3 { font-size: 1.15rem; margin: 0; }
.feature-card p { color: var(--ink-soft); font-size: 1rem; line-height: 1.55; margin: 0; }

@media (max-width: 640px) {
  .rewards-features { grid-template-columns: 1fr; }
}
.rewards-note { font-size: 1rem; color: var(--ink-soft); font-style: italic; margin: 0; }

.rewards-visual { text-align: center; }
.rewards-visual__img {
  width: 100%; max-width: 720px; margin: 0 auto;
  border-radius: 20px;
}
.reward-card__caption { text-align: center; font-size: 1.15rem; font-weight: 600; color: var(--ink-soft); margin-top: 20px; }

/* TOKENOMICS */
.token-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.token-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 34px 24px; text-align: center; }
.token-card__label { display: block; font-size: .85rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.token-card__value { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; color: var(--pink-deep); }

/* GALLERY */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-grid img { border-radius: 16px; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); }

@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* FOOTER */
.footer { max-width: 640px; margin: 0 auto; padding: 60px 24px 70px; text-align: center; }
.footer__pfp { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px; object-fit: cover; }
.footer__tag { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--pink-deep); margin-bottom: 18px; }
.footer__links { display: flex; justify-content: center; gap: 22px; font-weight: 600; margin-bottom: 22px; flex-wrap: wrap; }
.footer__links a:hover { color: var(--pink-deep); }
.footer__disclaimer { font-size: .78rem; color: var(--ink-soft); line-height: 1.6; }

/* GLOBAL SMALL-SCREEN TIDY-UPS */
@media (max-width: 780px) {
  .token-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .section { padding: 52px 20px; }
  .rewards-card { border-radius: 20px; }
  .step__num { left: 20px; }
}
@media (max-width: 420px) {
  .token-grid { grid-template-columns: 1fr; gap: 14px; }
  .token-card { padding: 24px; }
  .token-card__value { font-size: 1.3rem; }
}
