:root {
  --bg-top: #f9eedb;
  --bg-mid: #f3be79;
  --bg-bottom: #e06838;
  --ink: #24110a;
  --muted: rgba(36, 17, 10, 0.72);
  --soft-strong: rgba(255, 249, 239, 0.94);
  --line: rgba(78, 28, 11, 0.12);
  --accent: #f05027;
  --accent-deep: #b82912;
  --accent-dark: #6d1307;
  --shadow: 0 24px 70px rgba(74, 22, 5, 0.16);
  --radius-xl: 34px;
  --radius-lg: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  cursor: url("./assets/fpom/fpom-cursor.svg") 4 4, auto;
}

body {
  margin: 0;
  min-height: 100%;
  padding: 24px;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  cursor: inherit;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.84), transparent 22%),
    radial-gradient(circle at 82% 16%, rgba(255, 110, 61, 0.32), transparent 20%),
    radial-gradient(circle at 12% 92%, rgba(114, 33, 11, 0.18), transparent 24%),
    linear-gradient(160deg, var(--bg-top), var(--bg-mid) 46%, var(--bg-bottom));
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    url("./assets/community/moon-graffiti.webp") right -90px top 24px / 420px auto no-repeat,
    url("./assets/community/gala-floor.webp") left -150px bottom 60px / 440px auto no-repeat,
    url("./assets/community/launch-training.webp") right -140px bottom -20px / 360px auto no-repeat;
  opacity: 0.11;
  mix-blend-mode: multiply;
}

body::after {
  background:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.26;
}

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

a,
button,
iframe,
input,
textarea,
select {
  cursor: url("./assets/fpom/fpom-pointer.svg") 6 4, pointer;
}

a:hover,
a:focus-visible,
a:active,
button:hover,
button:focus-visible,
button:active,
iframe:hover,
input:hover,
textarea:hover,
select:hover {
  cursor: url("./assets/fpom/fpom-logo-pointer.png") 6 4, pointer;
}

a {
  color: inherit;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1240px, 100%);
  margin: 0 auto;
}

.surface {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 250, 241, 0.92), rgba(255, 245, 229, 0.88));
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.surface::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.16)),
    var(--panel-image, none);
  background-position: center;
  background-size: cover;
  opacity: 0.24;
  pointer-events: none;
}

.surface::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.18;
  pointer-events: none;
}

.hero {
  --panel-image: url("./assets/community/hero-boardroom.webp");
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(30px, 4vw, 50px);
}

.hero-copy,
.hero-visual,
.panel-head,
.routes-layout,
.link-grid,
.swap-layout,
.community-stage,
.community-strip,
.info-grid,
.footer-note {
  position: relative;
  z-index: 1;
}

.eyebrow,
.panel-kicker,
.slide-tag,
.contract-label {
  margin: 0 0 14px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Bowlby One SC", sans-serif;
  font-weight: 400;
  line-height: 0.98;
  text-transform: uppercase;
}

h1 {
  max-width: 9ch;
  font-size: clamp(3.2rem, 7vw, 6rem);
}

h2 {
  max-width: 13ch;
  font-size: clamp(1.85rem, 3.4vw, 3.1rem);
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.85rem);
}

.lead,
.panel-copy,
.community-copy p,
.footer-note p {
  margin: 0;
  max-width: 62ch;
  font-size: 1.05rem;
  line-height: 1.72;
  color: var(--muted);
}

.hero-badges,
.swap-notes,
.route-notes,
.contract-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-badges {
  margin-top: 24px;
}

.hero-badges span,
.swap-notes span,
.route-notes span,
.contract-list span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(97, 33, 9, 0.08);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 10px 20px rgba(82, 24, 8, 0.08);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.86rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.cta,
.link-card,
.simple-link,
.nav-button,
.nav-dot,
.community-thumb {
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    opacity 180ms ease;
}

.cta:hover,
.link-card:hover,
.simple-link:hover,
.nav-button:hover,
.nav-dot:hover,
.community-thumb:hover {
  transform: translateY(-2px);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
}

.cta-primary {
  color: #fff9f2;
  background: linear-gradient(180deg, #ff683f, #dc3418);
  box-shadow: 0 16px 28px rgba(193, 51, 24, 0.22);
}

.cta-secondary,
.cta-ghost {
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 24px rgba(78, 24, 7, 0.08);
}

.cta-secondary {
  border-color: rgba(91, 30, 9, 0.08);
}

.cta-ghost {
  border-color: rgba(98, 34, 9, 0.14);
}

.hero-visual {
  min-height: 490px;
}

.hero-card {
  position: absolute;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 28px 48px rgba(76, 25, 7, 0.16);
}

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

.hero-card-main {
  inset: 78px 108px 34px 0;
  transform: rotate(-6deg);
}

.hero-card-tall {
  width: 176px;
  height: 238px;
}

.hero-card-top {
  top: 0;
  right: 8px;
  transform: rotate(9deg);
}

.hero-card-bottom {
  right: 22px;
  bottom: 54px;
  transform: rotate(-11deg);
}

.meme-sticker {
  position: absolute;
  padding: 8px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 34px rgba(76, 25, 7, 0.16);
  backdrop-filter: blur(8px);
  animation: hero-float 5.4s ease-in-out infinite;
}

.meme-sticker-pepe {
  width: 164px;
  top: 48px;
  right: 168px;
  transform: rotate(-9deg);
}

.meme-sticker-doge {
  width: 124px;
  left: -8px;
  bottom: 106px;
  transform: rotate(-14deg);
  animation-delay: 0.8s;
}

.meme-sticker-shiba {
  width: 144px;
  right: 112px;
  bottom: 6px;
  transform: rotate(11deg);
  animation-delay: 1.6s;
}

.hero-stamp,
.route-badge {
  position: absolute;
  padding: 12px 16px;
  border: 2px solid rgba(111, 18, 5, 0.18);
  border-radius: 18px;
  color: var(--accent-dark);
  background: rgba(255, 242, 224, 0.8);
  box-shadow: 0 14px 26px rgba(90, 29, 9, 0.1);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-stamp {
  right: 170px;
  top: -20px;
  transform: rotate(7deg);
}

.signal-strip {
  margin-top: 28px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(90, 30, 8, 0.14);
  background: rgba(48, 16, 8, 0.92);
  box-shadow: 0 18px 40px rgba(67, 19, 5, 0.14);
}

.signal-track {
  display: flex;
  gap: 34px;
  width: max-content;
  padding: 13px 24px;
  color: #ffe7cb;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  animation: scroll-track 22s linear infinite;
}

.content-stack {
  display: grid;
  gap: clamp(30px, 4vw, 48px);
  margin-top: clamp(30px, 4vw, 48px);
}

.panel {
  padding: clamp(28px, 4vw, 42px);
}

.swap-panel {
  --panel-image: url("./assets/community/trading-desk.webp");
}

.routes-panel {
  --panel-image: url("./assets/community/launch-training.webp");
}

.social-panel {
  --panel-image: url("./assets/community/talk-show.webp");
}

.contract-panel {
  --panel-image: url("./assets/community/rocket-hodl.webp");
}

.panel-head {
  margin-bottom: 28px;
}

.split-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.split-head > * {
  flex: 1 1 0;
}

.routes-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  gap: 26px;
  align-items: center;
}

.routes-visual {
  position: relative;
  min-height: 430px;
}

.route-poster {
  position: absolute;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 24px 42px rgba(76, 25, 7, 0.16);
}

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

.route-poster-main {
  inset: 64px 46px 26px 0;
  transform: rotate(-5deg);
}

.route-poster-top {
  top: 0;
  right: 0;
  width: 180px;
  height: 210px;
  transform: rotate(11deg);
}

.route-poster-bottom {
  right: 18px;
  bottom: 10px;
  width: 210px;
  height: 160px;
  transform: rotate(-10deg);
}

.route-badge {
  left: 22px;
  top: 10px;
  transform: rotate(-7deg);
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.link-card {
  display: grid;
  gap: 10px;
  min-height: 188px;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(89, 29, 9, 0.1);
  background: var(--soft-strong);
  color: inherit;
  box-shadow: 0 18px 30px rgba(82, 24, 8, 0.08);
}

.link-card.hot {
  background:
    linear-gradient(180deg, rgba(255, 106, 69, 0.18), rgba(255, 247, 236, 0.96)),
    var(--soft-strong);
}

.link-label {
  font-family: "Bowlby One SC", sans-serif;
  font-size: 1.26rem;
  line-height: 1.05;
  text-transform: uppercase;
}

.link-note {
  color: var(--muted);
  line-height: 1.6;
}

.link-meta {
  align-self: end;
  margin-top: auto;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.swap-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: start;
}

.swap-frame {
  position: relative;
  padding: 16px;
  border-radius: 30px;
  overflow: hidden;
  background: rgba(255, 248, 239, 0.9);
  border: 1px solid rgba(88, 29, 9, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.swap-frame::after {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  bottom: 16px;
  width: 16px;
  border-radius: 0 20px 20px 0;
  background: rgba(255, 248, 239, 0.9);
  pointer-events: none;
  display: none;
  opacity: 0;
  transition: opacity 180ms ease;
  z-index: 2;
}

.swap-frame:has(iframe:not([hidden]))::after {
  opacity: 1;
}

.swap-launch {
  display: grid;
  gap: 16px;
  align-content: center;
  min-height: 520px;
  padding: clamp(24px, 4vw, 34px);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(55, 177, 255, 0.22), transparent 34%),
    radial-gradient(circle at bottom right, rgba(0, 214, 255, 0.14), transparent 46%),
    linear-gradient(180deg, #04183d, #00163c);
  border: 1px solid rgba(86, 158, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(132, 208, 255, 0.14),
    0 22px 40px rgba(2, 12, 33, 0.24);
}

.swap-launch .panel-kicker,
.swap-launch .panel-copy,
.swap-launch h3 {
  margin: 0;
}

.swap-launch .panel-kicker {
  color: rgba(132, 207, 255, 0.86);
}

.swap-launch h3 {
  color: #f5fbff;
}

.swap-launch .panel-copy {
  max-width: 36ch;
  color: rgba(214, 236, 255, 0.86);
}

.swap-activate {
  justify-self: start;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.32);
}

.swap-frame iframe {
  display: block;
  width: 100%;
  margin-right: 0;
  height: 680px;
  min-height: 680px;
  border: 0;
  border-radius: 20px;
  background: #00163c;
}

.swap-refresh-button {
  width: 100%;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.swap-refresh-button[hidden],
.swap-frame iframe[hidden],
.swap-launch[hidden] {
  display: none;
}

.swap-links,
.stack {
  display: grid;
  gap: 14px;
}

.simple-link {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid rgba(91, 31, 9, 0.08);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 14px 24px rgba(77, 25, 8, 0.06);
}

.community-panel::before {
  background:
    linear-gradient(135deg, rgba(255, 253, 249, 0.82), rgba(255, 241, 220, 0.3)),
    var(--community-bg);
  background-position: center;
  background-size: cover;
  opacity: 0.3;
}

.community-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
}

.nav-button {
  border: 1px solid rgba(88, 27, 9, 0.1);
  background: rgba(255, 255, 255, 0.74);
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
}

.nav-dots {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(111, 18, 5, 0.18);
}

.nav-dot.is-active {
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(240, 78, 37, 0.14);
}

.community-stage {
  min-height: 440px;
}

.community-slide {
  display: none;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 36px);
  align-items: center;
}

.community-slide.is-active {
  display: grid;
}

.community-photo,
.community-thumb {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 24px 40px rgba(85, 27, 8, 0.12);
}

.community-photo {
  transform: rotate(-2.2deg);
}

.community-photo img,
.community-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-photo img {
  aspect-ratio: 4 / 3;
}

.community-copy {
  display: grid;
  gap: 16px;
}

.community-copy h3 {
  max-width: 14ch;
}

.community-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.community-thumb {
  aspect-ratio: 1 / 1;
}

.info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(28px, 3vw, 36px);
}

.token-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.token-side {
  display: grid;
  gap: 18px;
}

.contract-box {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(35, 18, 11, 0.92);
  box-shadow: 0 18px 36px rgba(53, 16, 5, 0.14);
}

.contract-box code {
  color: #ffead2;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.98rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.footer-note {
  margin-top: 26px;
  padding: 0 8px 18px;
}

.footer-note p {
  max-width: 72ch;
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(52, 23, 13, 0.62);
}

@keyframes scroll-track {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes hero-float {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .signal-track {
    animation: none;
  }

  .cta,
  .link-card,
  .simple-link,
  .nav-button,
  .nav-dot,
  .community-thumb {
    transition: none;
  }
}

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

  .hero-visual,
  .routes-visual {
    min-height: 400px;
  }

  .split-head {
    flex-direction: column;
  }

  .routes-layout,
  .swap-layout,
  .community-slide,
  .info-grid,
  .token-layout {
    grid-template-columns: 1fr;
  }

  .swap-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    padding: 14px;
  }

  body::before {
    background:
      url("./assets/community/moon-graffiti.webp") right -120px top 40px / 280px auto no-repeat,
      url("./assets/community/gala-floor.webp") left -120px bottom 160px / 260px auto no-repeat;
    opacity: 0.12;
  }

  .surface {
    border-radius: 28px;
  }

  .hero,
  .panel {
    padding: 22px;
  }

  .hero-visual {
    min-height: 360px;
  }

  .hero-card-main {
    inset: 74px 72px 20px 0;
  }

  .hero-card-tall {
    width: 132px;
    height: 184px;
  }

  .hero-card-top {
    right: 2px;
  }

  .hero-card-bottom {
    right: 8px;
    bottom: 26px;
  }

  .meme-sticker {
    width: 96px;
    padding: 6px;
    border-radius: 20px;
  }

  .meme-sticker-pepe {
    right: 108px;
    top: 34px;
  }

  .meme-sticker-doge {
    left: -2px;
    bottom: 72px;
  }

  .meme-sticker-shiba {
    right: 72px;
    bottom: 2px;
  }

  .hero-stamp {
    right: 114px;
    top: 12px;
    font-size: 0.72rem;
  }

  .signal-track {
    gap: 22px;
    font-size: 0.74rem;
    letter-spacing: 0.18em;
  }

  .route-poster-main {
    inset: 68px 70px 10px 0;
  }

  .route-poster-top {
    width: 132px;
    height: 164px;
  }

  .route-poster-bottom {
    width: 156px;
    height: 120px;
  }

  .link-grid,
  .swap-links,
  .community-strip {
    grid-template-columns: 1fr;
  }

  .swap-frame iframe {
    height: clamp(440px, 54dvh, 520px);
    min-height: clamp(440px, 54dvh, 520px);
  }

  .swap-launch {
    min-height: clamp(320px, 44dvh, 400px);
    padding: 20px;
  }

  .swap-frame::after {
    display: block;
    width: 20px;
  }

  .community-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}
