:root {
  --wool: #f6eee4;
  --wool-deep: #eadfd0;
  --cream: #fff8f1;
  --felt: #f3e6d8;
  --hat: #f0a3bc;
  --hat-deep: #e07a9a;
  --rose: #c45d78;
  --rose-ink: #8d3d54;
  --ginger: #e09b4a;
  --ginger-deep: #c47a32;
  --ink: #4a3428;
  --mute: #7a5c50;
  --stitch: #d9b8a8;
  --line: rgba(74, 52, 40, 0.12);
  --shadow: 0 18px 50px rgba(92, 48, 58, 0.12);
  --font-hat: "Bagel Fat One", "Fredoka", system-ui, sans-serif;
  --font-ui: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", "Fredoka", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(900px 520px at 12% -10%, rgba(240, 163, 188, 0.28), transparent 60%),
    radial-gradient(800px 480px at 92% 8%, rgba(224, 155, 74, 0.16), transparent 58%),
    radial-gradient(700px 500px at 50% 100%, rgba(196, 93, 120, 0.08), transparent 55%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 248, 241, 0.35) 0 10px,
      rgba(234, 223, 208, 0.25) 10px 12px
    ),
    var(--wool);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

button,
.pill,
.join-card,
.copy-btn {
  font-family: var(--font-ui);
}

#yarn-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.wool-veil {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 248, 241, 0.18) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 60%, rgba(224, 155, 74, 0.08) 0 1px, transparent 2px);
  background-size: 140px 140px, 90px 90px;
  animation: veil-drift 28s linear infinite;
  mix-blend-mode: multiply;
}

.float-yarn {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(0.2px);
}

.yarn-a,
.yarn-b,
.yarn-c {
  width: 86px;
  height: 86px;
  background:
    repeating-radial-gradient(circle at 40% 40%, #f4b3c6 0 7px, #e88aa8 7px 10px);
  box-shadow: inset -12px -14px 0 rgba(141, 61, 84, 0.12), 0 12px 24px rgba(196, 93, 120, 0.18);
  opacity: 0.28;
}

.yarn-a { top: 18%; left: -20px; animation: yarn-roll 22s linear infinite; }
.yarn-b { top: 62%; right: -24px; width: 64px; height: 64px; animation: yarn-roll 28s linear infinite reverse; }
.yarn-c { bottom: 8%; left: 12%; width: 48px; height: 48px; opacity: 0.18; animation: yarn-roll 18s linear infinite; }

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  z-index: 20;
  background: var(--cream);
  padding: 8px 12px;
  border-radius: 999px;
}

.skip:focus {
  top: 16px;
}

.mast {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(246, 238, 228, 0.78);
  border-bottom: 1px solid var(--line);
}

.mast-rib,
.foot .mast-rib {
  height: 10px;
  background:
    repeating-linear-gradient(
      90deg,
      #f0a3bc 0 14px,
      #f7c3d2 14px 18px,
      #fff8f1 18px 22px,
      #e8c48a 22px 36px,
      #fff8f1 36px 40px
    );
  animation: rib-shift 18s linear infinite;
}

.mast-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #f0a3bc;
  box-shadow: 0 0 0 3px #fff8f1, 0 8px 16px rgba(196, 93, 120, 0.2);
  animation: hat-bob 4.5s ease-in-out infinite;
}

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

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-copy strong {
  font-family: var(--font-hat);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.brand-copy small {
  color: var(--rose);
  font-family: var(--font-ui);
  font-weight: 600;
}

.nav {
  display: flex;
  gap: 22px;
}

.nav a {
  position: relative;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--mute);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--rose) 0 6px, transparent 6px 10px);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.nav a:hover,
.nav a.is-on {
  color: var(--ink);
}

.nav a:hover::after,
.nav a.is-on::after {
  transform: scaleX(1);
}

.mast-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 2px dashed transparent;
  font-weight: 650;
  letter-spacing: 0.01em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.pill:hover {
  transform: translateY(-2px);
}

.pill-hat {
  background: linear-gradient(180deg, #f4b3c6, #e07a9a);
  color: #fff8f1;
  box-shadow: 0 10px 22px rgba(224, 122, 154, 0.28);
}

.pill-cream {
  background: var(--cream);
  border-color: #e8c4b0;
  color: var(--ink);
}

.pill-ghost {
  background: rgba(255, 248, 241, 0.6);
  border-color: var(--stitch);
}

.yarn-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
}

.yarn-toggle span {
  display: block;
  height: 3px;
  margin: 6px 8px;
  border-radius: 99px;
  background: var(--rose);
}

.mark {
  width: 18px;
  height: 18px;
  display: inline-block;
  background: currentColor;
  -webkit-mask: var(--mark) center / contain no-repeat;
  mask: var(--mark) center / contain no-repeat;
}

.mark-x { --mark: url("assets/icons/x.svg"); }
.mark-dex { --mark: url("assets/icons/dexscreener.svg"); color: var(--rose); }
.mark-pump { --mark: url("assets/icons/pumpswap.svg"); color: var(--ginger-deep); }

.pill-hat .mark { color: #fff8f1; }

main {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  padding: 48px 16px 88px;
}

.hero-glow {
  position: absolute;
  inset: 8% 20% auto;
  height: 280px;
  background: radial-gradient(circle, rgba(240, 163, 188, 0.35), transparent 70%);
  filter: blur(12px);
  animation: pulse-glow 6s ease-in-out infinite;
}

.hero-stage {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.loom {
  position: relative;
  width: min(420px, 100%);
  margin: 0 auto;
  aspect-ratio: 1;
}

.loom-halo {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  background: conic-gradient(from 90deg, #f0a3bc, #fff8f1, #e8c48a, #f0a3bc);
  filter: blur(8px);
  opacity: 0.7;
  animation: spin-slow 18s linear infinite;
}

.loom-face {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 10px solid #fff8f1;
  box-shadow: var(--shadow);
}

.loom-stitch {
  position: absolute;
  inset: 6px;
  z-index: 3;
  border-radius: 50%;
  border: 2px dashed rgba(196, 93, 120, 0.45);
  animation: dash-walk 16s linear infinite;
  pointer-events: none;
}

.hero-copy .eyebrow,
.section-head .eyebrow {
  margin: 0 0 8px;
  color: var(--rose);
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1 {
  margin: 0;
  font-family: var(--font-hat);
  font-weight: 400;
  font-size: clamp(3.4rem, 8vw, 6.4rem);
  line-height: 0.88;
  letter-spacing: 0.01em;
}

h1 .word {
  display: inline-block;
  background: linear-gradient(180deg, #c45d78 0%, #8d3d54 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 10px 0 rgba(240, 163, 188, 0.18);
  animation: word-pop 0.8s ease both;
}

h1 .word:nth-child(2) { animation-delay: 0.08s; }
h1 .word:nth-child(3) { animation-delay: 0.16s; }

h1 .word-soft {
  background: linear-gradient(180deg, #e09b4a, #c47a32);
  -webkit-background-clip: text;
  background-clip: text;
}

.ticker {
  display: inline-flex;
  margin: 14px 0 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff8f1;
  border: 2px dashed var(--hat-deep);
  color: var(--rose);
  font-family: var(--font-ui);
  font-weight: 700;
  animation: ticker-pulse 3.2s ease-in-out infinite;
}

.lede {
  margin: 18px 0 0;
  font-family: var(--font-hat);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--ink);
}

.sub {
  max-width: 34rem;
  color: var(--mute);
  font-size: 1.05rem;
  line-height: 1.65;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.ca-tray {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  background: rgba(255, 248, 241, 0.72);
  border: 2px dashed var(--stitch);
  border-radius: 18px;
  width: fit-content;
}

.ca-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose);
  font-weight: 700;
}

#ca-value {
  font-size: 0.92rem;
  color: var(--ink);
}

.copy-btn {
  border: 0;
  background: var(--hat);
  color: #fff8f1;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  cursor: pointer;
}

.copy-btn.is-copied {
  background: var(--ginger);
}

.about,
.howtobuy,
.chart,
.joinus {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 88px;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 36px;
  text-align: center;
}

h2 {
  margin: 0;
  font-family: var(--font-hat);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 400;
  line-height: 1;
  color: var(--rose-ink);
}

.section-lead {
  color: var(--mute);
  font-size: 1.08rem;
  line-height: 1.7;
}

.felt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.felt {
  position: relative;
  padding: 28px 24px 26px;
  background: linear-gradient(180deg, #fff8f1, #f3e6d8);
  border-radius: 28px;
  border: 2px dashed #e4c2b2;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.felt::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 20px;
  border: 1px solid rgba(196, 93, 120, 0.12);
  pointer-events: none;
}

.felt-num {
  font-family: var(--font-hat);
  color: var(--hat-deep);
  font-size: 1.8rem;
}

.felt h3,
.row-body h3 {
  margin: 8px 0 10px;
  font-family: var(--font-hat);
  font-size: 1.8rem;
  font-weight: 400;
}

.felt p,
.row-body p {
  margin: 0;
  color: var(--mute);
  line-height: 1.65;
}

.pattern {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.row-card {
  display: grid;
  grid-template-columns: 92px 84px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 248, 241, 0.8);
  border: 2px dashed #e4c2b2;
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(74, 52, 40, 0.06);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.row-card:hover {
  transform: translateX(6px);
  border-color: var(--hat-deep);
}

.row-index {
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose);
  font-size: 0.78rem;
}

.row-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: var(--cream);
  border: 2px solid #f0d3c4;
  animation: icon-float 4.8s ease-in-out infinite;
}

.row-icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.icon-theme {
  filter: sepia(0.35) saturate(0.85) hue-rotate(-12deg) brightness(0.96);
}

.icon-dex {
  filter: hue-rotate(300deg) saturate(0.75) brightness(0.88) sepia(0.15);
}

.icon-pump {
  filter: sepia(0.25) hue-rotate(-8deg) saturate(0.8) brightness(1.02);
}

.icon-solana {
  filter: hue-rotate(-20deg) saturate(0.7) sepia(0.2) brightness(1.05);
}

.icon-phantom {
  filter: hue-rotate(-18deg) saturate(0.75) sepia(0.25) brightness(1.05);
}

.row-body a {
  display: inline-block;
  margin-top: 10px;
  color: var(--rose);
  font-family: var(--font-ui);
  font-weight: 700;
  border-bottom: 2px dashed currentColor;
}

.chart-frame {
  background: #fff8f1;
  border: 3px dashed #e4c2b2;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.chart-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background:
    repeating-linear-gradient(
      90deg,
      #fbe4ea 0 16px,
      #fff8f1 16px 20px
    );
  font-family: var(--font-ui);
  font-weight: 650;
}

.chart-bar a {
  margin-left: auto;
  color: var(--rose);
}

.chart-pane {
  height: min(640px, 70vh);
  background: #f6eee4;
}

.chart-pane iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.banner-frame {
  margin: 0 auto 28px;
  width: min(1100px, 100%);
  aspect-ratio: 3 / 1;
  border-radius: 28px;
  overflow: hidden;
  border: 4px solid #fff8f1;
  box-shadow: var(--shadow), 0 0 0 3px #f0a3bc;
  animation: banner-glow 5.5s ease-in-out infinite;
}

.banner-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.join-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.join-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 18px;
  background: linear-gradient(180deg, #fff8f1, #f7e6dc);
  border: 2px dashed #e4c2b2;
  border-radius: 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.join-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.join-card strong {
  font-family: var(--font-hat);
  font-size: 1.5rem;
  font-weight: 400;
}

.join-card span:last-child {
  color: var(--mute);
}

.foot {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  background: rgba(243, 230, 216, 0.7);
}

.foot-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 12px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.foot-brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--hat);
}

.foot-brand strong {
  font-family: var(--font-hat);
  font-size: 1.3rem;
  font-weight: 400;
}

.foot-brand p {
  margin: 4px 0 0;
  color: var(--mute);
}

.foot-links,
.foot-social {
  display: flex;
  gap: 16px;
  align-items: center;
}

.foot-links a {
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--mute);
}

.foot-social a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cream);
  border: 2px dashed var(--stitch);
}

.legal {
  margin: 0;
  padding: 0 16px 24px;
  text-align: center;
  color: var(--mute);
  font-size: 0.88rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
}

[data-reveal].is-in {
  animation: rise-in 0.8s ease forwards;
}

.felt:nth-child(2) { animation-delay: 0.1s; }
.felt:nth-child(3) { animation-delay: 0.2s; }
.row-card:nth-child(2) { animation-delay: 0.08s; }
.row-card:nth-child(3) { animation-delay: 0.16s; }
.row-card:nth-child(4) { animation-delay: 0.24s; }

@keyframes hat-bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-4px) rotate(2deg); }
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

@keyframes dash-walk {
  to { transform: rotate(-360deg); }
}

@keyframes rib-shift {
  to { background-position: 80px 0; }
}

@keyframes yarn-roll {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-24px) rotate(180deg); }
  100% { transform: translateY(0) rotate(360deg); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.08); }
}

@keyframes ticker-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224, 122, 154, 0.25); }
  50% { box-shadow: 0 0 0 8px rgba(224, 122, 154, 0); }
}

@keyframes word-pop {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

@keyframes rise-in {
  to { opacity: 1; transform: none; }
}

@keyframes icon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes banner-glow {
  0%, 100% { box-shadow: var(--shadow), 0 0 0 3px #f0a3bc; }
  50% { box-shadow: var(--shadow), 0 0 0 6px rgba(240, 163, 188, 0.45); }
}

@keyframes veil-drift {
  to { background-position: 140px 140px, -90px 90px; }
}

@media (max-width: 920px) {
  .hero-stage,
  .felt-grid,
  .join-row,
  .foot-inner {
    grid-template-columns: 1fr;
  }

  .hero-stage,
  .foot-inner {
    display: flex;
    flex-direction: column;
  }

  .nav {
    position: absolute;
    top: 86px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    background: var(--cream);
    border: 2px dashed var(--stitch);
    border-radius: 18px;
  }

  body.nav-open .nav { display: flex; }
  .yarn-toggle { display: block; }

  .row-card {
    grid-template-columns: 72px 1fr;
  }

  .row-index {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
